/* ═══════════════════════════════════════════════════
   Sanad Nursing — صفحة الحجز (على شكل تطبيق المريض)
   مصممة لكبار السن: خط كبير، زراير كبيرة، خطوة واحدة في كل شاشة
   ═══════════════════════════════════════════════════ */
:root {
  --navy: #152459; --navy2: #1D3372; --sky: #9BCBE8; --blue: #1E5BA8;
  --mint: #5EE5D0; --bg: #F4F7FB; --card: #FFFFFF; --line: #E4EBF3;
  --txt: #152459; --muted: #66798F;
  --ok: #0E8060; --warn: #B06F00; --bad: #C2352C; --wa: #25D366; --fb: #1877F2;
  --stage: #E7EDF6;
  --surface: #FFFFFF;      /* الكروت والزراير البيضا */
  --ink: #152459;          /* العناوين والكلام المهم */
  --notice-bg: #FFF7E0; --notice-line: #F3DFA6; --notice-ink: #6B4E00;
  --rate-bg: #FFFBF1; --rate-line: #FFE3A9;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stage); color: var(--txt);
  font: 17px/1.6 'IBM Plex Sans Arabic', system-ui, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.logo-font { font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif; font-weight: 800; }

/* الإطار: عمود تطبيق في النص على الكمبيوتر، ملو الشاشة على الموبايل */
.app {
  max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(21,36,89,.08);
}
.screen { display: flex; flex-direction: column; flex: 1; min-height: 100vh; min-height: 100dvh; }
.body { flex: 1; }
.pad { padding: 18px 16px; }

/* ═══ التحميل ═══ */
.boot {
  flex: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy), #0D1738); color: #fff;
}
.word { font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 64px; line-height: 1; color: #fff; }
.tagline { background: var(--sky); color: var(--ink); font-size: 14px; font-weight: 600; padding: 6px 16px; margin-top: 12px; }
.spin { width: 34px; height: 34px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; margin-top: 34px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ شريط العنوان ═══ */
.appbar {
  position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 14px 12px; display: flex; align-items: center; gap: 8px; min-height: 64px;
}
.appbar h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); flex: 1; }
.back {
  border: 0; background: var(--bg); color: var(--ink); font-size: 22px; width: 46px; height: 46px;
  border-radius: 14px; display: grid; place-items: center; flex: none;
}
.progress { height: 6px; background: var(--line); position: sticky; top: 64px; z-index: 9; }
.progress span { display: block; height: 100%; background: var(--blue); transition: width .3s; border-start-end-radius: 6px; border-end-end-radius: 6px; }

/* ═══ الكروت والكلام ═══ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: 0 3px 14px rgba(21,36,89,.06);
}
.card + .card { margin-top: 12px; }
.card.accent { border-color: var(--sky); border-width: 2px; }
.h { font-size: 19px; font-weight: 700; color: var(--ink); margin: 22px 0 12px; }
.h:first-child { margin-top: 0; }
.sub { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0; }
.muted { color: var(--muted); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ═══ الأزرار ═══ */
.btn {
  width: 100%; border: 0; border-radius: 16px; background: var(--navy); color: #fff;
  min-height: 58px; padding: 14px 16px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--navy2); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-size: 16px; }
.btn.wa { background: var(--wa); color: #04361D; }
.btn.fb { background: var(--fb); color: #fff; }
.btn.danger { background: var(--surface); color: var(--bad); border: 1.5px solid #EFD2CF; font-size: 16px; }
.btn.sm { min-height: 48px; font-size: 16px; padding: 10px 12px; border-radius: 14px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

/* ═══ الحقول ═══ */
.field { margin-bottom: 16px; }
.field > label, .field > .lb { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field .opt-l { font-weight: 500; color: var(--muted); font-size: 14px; }
.inp {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 14px; font-size: 18px; color: var(--txt); min-height: 56px; outline: none;
}
.inp:focus { border-color: var(--blue); }
.inp.err { border-color: var(--bad); background: #FFF6F5; }
.inp::placeholder { color: #9DAEC4; }
textarea.inp { resize: none; min-height: 84px; }
.inp.ltr { direction: ltr; text-align: left; letter-spacing: 1px; font-weight: 700; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.err-box { background: #FDECEB; color: var(--bad); border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-bottom: 14px; }

/* اختيار من اتنين/تلاتة */
.choice { display: flex; gap: 10px; }
.choice button {
  flex: 1; min-height: 60px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface);
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.choice button.on { border-color: var(--blue); background: rgba(155,203,232,.25); }

/* اختيار بدايرة (الراديو الكبير) */
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  border: 2px solid var(--line); border-radius: 18px; background: var(--surface);
  padding: 16px; margin-bottom: 10px; min-height: 64px;
}
.opt .rd { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C3CEDE; flex: none; }
.opt.on { border-color: var(--blue); background: rgba(155,203,232,.12); }
.opt.on .rd { border: 7px solid var(--blue); }
.opt .tx { flex: 1; font-size: 18px; font-weight: 600; }
.opt .tx small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.opt.on .tx { font-weight: 700; }
.opt .em { font-size: 26px; }

/* ═══ الرئيسية ═══ */
.hero {
  background: linear-gradient(150deg, var(--navy), #1B2E6B); color: #fff;
  border-radius: 0 0 28px 28px; padding: 22px 18px 26px;
}
.hero .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .top .logo-font { font-size: 34px; line-height: 1; }
.hero .greet { font-size: 26px; font-weight: 700; margin: 18px 0 4px; }
.hero .tag { font-size: 16px; color: rgba(255,255,255,.78); margin: 0; }
.hero-links { display: flex; gap: 8px; }
.hero-links a {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 20px; font-weight: 800;
}
.hero-links a.wa { background: var(--wa); color: #04361D; }
.hero-links a.fb { background: var(--fb); font-family: Arial, sans-serif; }
.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--notice-ink); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }

.banner {
  border-radius: 18px; background: linear-gradient(115deg, var(--navy), #2B4A9E); color: #fff;
  padding: 18px; position: relative; overflow: hidden; margin-bottom: 12px; display: block; width: 100%; text-align: start; border: 0;
}
.banner b { display: block; font-size: 18px; margin-bottom: 4px; }
.banner span { font-size: 15px; opacity: .85; line-height: 1.7; display: block; max-width: 80%; }
.banner i { position: absolute; inset-inline-end: 16px; bottom: 10px; font-size: 44px; opacity: .3; font-style: normal; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px;
  text-align: start; box-shadow: 0 3px 14px rgba(21,36,89,.06);
  display: flex; flex-direction: column; gap: 10px; min-height: 150px;
}
.svc:hover, .svc:focus-visible { border-color: var(--sky); }
.svc .ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(155,203,232,.28); display: grid; place-items: center; font-size: 28px; }
.svc .nm { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); flex: 1; }
.svc .pr { font-size: 16px; }
.svc .pr small { font-size: 12px; color: var(--muted); font-weight: 500; }

.steps { display: flex; gap: 4px; margin: 14px 0 10px; }
.steps span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps span.done { background: var(--mint); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.p-blue { background: rgba(30,91,168,.12); color: var(--blue); }
.p-ok { background: rgba(14,128,96,.12); color: var(--ok); }
.p-warn { background: rgba(192,122,0,.13); color: var(--warn); }
.p-bad { background: rgba(194,53,44,.1); color: var(--bad); }

.social { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.social a { text-decoration: none; padding: 8px 16px; border-radius: 20px; font-size: 15px; font-weight: 700; }

/* ═══ الشريط السفلي ═══ */
.tabbar {
  position: sticky; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line);
  display: flex; padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
}
.tabbar button {
  flex: 1; border: 0; background: none; color: var(--muted); min-height: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; font-weight: 700;
}
.tabbar .ti { font-size: 24px; line-height: 1; }
.tabbar button.on { color: var(--ink); }
.footbar {
  position: sticky; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 14px; align-items: center;
}
.footbar .tot { flex: none; }
.footbar .tot small { display: block; font-size: 13px; color: var(--muted); }
.footbar .tot .money { font-size: 22px; }

/* ═══ المعاد ═══ */
.days { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 80px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 10px 0; text-align: center;
}
.day.on { background: var(--navy); border-color: var(--ink); color: #fff; }
.day .w { font-size: 13px; font-weight: 700; color: var(--muted); }
.day .d { font-size: 26px; font-weight: 800; line-height: 1.3; }
.day .m { font-size: 12px; color: var(--muted); }
.day.on .w, .day.on .m { color: rgba(255,255,255,.75); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time {
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 54px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.time.on { background: var(--navy); border-color: var(--ink); color: #fff; }
.time[disabled] { background: var(--bg); color: #B4C0D0; cursor: not-allowed; }
.picked { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }

/* ═══ المكان ═══ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 2px solid var(--line); background: var(--surface); border-radius: 22px; padding: 8px 18px; font-size: 16px; font-weight: 700; color: var(--muted); }
.chips button.on { background: rgba(155,203,232,.35); border-color: var(--sky); color: var(--ink); }
.addr { display: flex; gap: 12px; align-items: flex-start; }
.addr .ai { font-size: 24px; }
.addr b { display: block; font-size: 17px; }
.addr span { font-size: 15px; color: var(--muted); line-height: 1.6; }
.geo-ok { color: var(--ok); font-weight: 700; font-size: 15px; margin-top: 8px; }

/* ═══ الملخص ═══ */
.pr-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 16px; }
.pr-row .l { color: var(--muted); font-weight: 500; flex: none; }
.pr-row .v { font-weight: 700; text-align: end; word-break: break-word; }
.pr-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.pr-row.total .l { color: var(--ink); font-weight: 700; font-size: 18px; }
.pr-row.total .v { font-size: 22px; font-weight: 800; color: var(--blue); }
.cash { background: rgba(14,128,96,.08); border-radius: 14px; padding: 12px; margin-top: 12px; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ok); font-size: 15px; }

/* ═══ المتابعة ═══ */
.okbanner {
  background: rgba(14,128,96,.1); border: 1px solid rgba(14,128,96,.25); border-radius: 18px;
  padding: 16px; display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; color: var(--ok); line-height: 1.7; margin-bottom: 14px;
}
.okbanner .e { font-size: 30px; }
.tl { display: flex; flex-direction: column; }
.tl .it { display: flex; gap: 14px; align-items: flex-start; }
.tl .dot { width: 34px; height: 34px; border-radius: 50%; flex: none; border: 2px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; font-size: 15px; }
.tl .it.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl .it.now .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(30,91,168,.15); }
.tl .bar { width: 3px; min-height: 22px; background: var(--line); margin: 3px 15px; }
.tl .bar.done { background: rgba(14,128,96,.4); }
.tl .lb { font-size: 17px; font-weight: 500; color: var(--muted); padding-top: 4px; }
.tl .lb small { display: block; font-size: 13px; font-weight: 500; }
.tl .it.done .lb, .tl .it.now .lb { font-weight: 700; color: var(--ink); }

.av {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(155,203,232,.4); object-fit: cover;
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--ink); flex: none;
}
.av.dark { background: var(--navy); color: #fff; }
.av.f { background: #E6E0F5; color: #5B4A9A; }
.person { display: flex; align-items: center; gap: 14px; }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-size: 18px; }
.person .who span { font-size: 14px; color: var(--muted); }
.icon-btn { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; text-decoration: none; background: rgba(14,128,96,.12); color: var(--ok); border: 0; flex: none; }

/* طلباتي */
.tabs2 { display: flex; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 9; }
.tabs2 button { flex: 1; border: 0; background: none; padding: 14px 0; font-size: 17px; font-weight: 700; color: var(--muted); border-bottom: 4px solid transparent; }
.tabs2 button.on { color: var(--ink); border-bottom-color: var(--sky); }
.ocard { display: block; width: 100%; text-align: start; }
.ocard .tp { display: flex; align-items: center; gap: 12px; }
.ocard .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; font-size: 24px; flex: none; }
.ocard .tp b { display: block; font-size: 17px; }
.ocard .tp small { font-size: 14px; color: var(--muted); }
.ocard .bt { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.ocard .bt .money { margin-inline-start: auto; font-size: 17px; }
.rate-hint { background: rgba(192,122,0,.1); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-weight: 700; color: var(--warn); font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; font-size: 17px; }
.empty .e { font-size: 46px; display: block; margin-bottom: 8px; }

/* حسابي */
.lst .li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--txt); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: start; font-size: 17px; font-weight: 600; }
.lst .li:last-child { border-bottom: 0; }
.lst .li .ic { width: 28px; text-align: center; font-size: 20px; }
.lst .li .tx { flex: 1; }
.lst .li .ar { color: var(--muted); }
.lst .li.danger { color: var(--bad); }

/* التقييم */
.faces { display: flex; gap: 6px; }
.face { flex: 1; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); padding: 12px 2px; text-align: center; }
.face.on { border-color: var(--blue); background: rgba(155,203,232,.22); }
.face .e { font-size: 30px; line-height: 1.3; display: block; }
.face .t { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; display: block; }
.face.on .t { color: var(--ink); }

/* الشيت السفلي */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,15,34,.5); z-index: 50; display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.on { display: flex; }
.sheet { background: var(--surface); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: up .25s ease; }
.sheet .grab { width: 46px; height: 5px; background: var(--line); border-radius: 4px; margin: 0 auto 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }

.nurse-pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); padding: 12px; margin-bottom: 10px; }
.nurse-pick.on { border-color: var(--blue); background: rgba(155,203,232,.12); }
.nurse-pick .who { flex: 1; }
.nurse-pick .who b { display: block; font-size: 17px; }
.nurse-pick .who span { font-size: 14px; color: var(--muted); }
.stars { color: #E2A400; letter-spacing: 1px; }
.lnk { background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 700; font-size: 15px; }
.rv { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.rv p { margin: 4px 0; }
.rv small { color: var(--muted); }
.count { display: flex; align-items: center; gap: 8px; }
.count button { width: 50px; height: 50px; border: 0; border-radius: 14px; background: rgba(155,203,232,.3); color: var(--ink); font-size: 24px; font-weight: 700; }
.count .n { width: 46px; text-align: center; font-size: 24px; font-weight: 800; }

.preview-bar { background: #FFE9A8; color: #5A4300; text-align: center; font-weight: 700; font-size: 14px; padding: 8px; position: sticky; top: 0; z-index: 20; }

/* الترحيب */
.welcome { background: linear-gradient(160deg, var(--navy), #0D1738); padding: 34px 18px 60px; text-align: center; color: #fff; }
.welcome .ph { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 10px; direction: ltr; }
.welcome-card { margin: -40px 16px 20px; }
.terms { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.8; margin: 14px 0 0; }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: .25s; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ اللمسة الاحترافية ═══════════ */
.i { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.i.big { width: 48px; height: 48px; color: #B4C3D6; margin-bottom: 8px; }
.btn .i { width: 22px; height: 22px; }
.btn.wa .i, .btn.fb .i { width: 24px; height: 24px; }
.appbar-logo { height: 34px; width: auto; border-radius: 9px; flex: none; background: var(--navy); padding: 3px 7px; }
.back .i { width: 24px; height: 24px; }
.step-lb { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 16px 0; letter-spacing: .2px; }

.boot .welcome-logo, .welcome-logo { width: 220px; max-width: 70%; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.welcome { padding: 40px 18px 70px; }
.welcome-en { color: var(--sky); font-weight: 700; letter-spacing: 3px; font-size: 13px; margin-top: 14px; text-transform: uppercase; direction: ltr; }
.welcome-card { margin: -46px 16px 18px; padding: 22px 18px; box-shadow: 0 18px 40px rgba(21,36,89,.12); border: 0; }
.w-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.terms .i { width: 16px; height: 16px; color: var(--ok); margin-inline-end: 4px; }
.closed { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.closed-msg { font-size: 19px; font-weight: 700; margin: 30px 0 22px; line-height: 1.8; }

.hero { padding: 18px 18px 30px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(155,203,232,.18), transparent 70%); pointer-events: none; }
.hero-logo { height: 56px; width: auto; border-radius: 8px; }
.hero-links a { width: 48px; height: 48px; }
.hero-links a .i { width: 24px; height: 24px; }
.hero .greet { font-size: 28px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-i { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.trust-i .i { width: 28px; height: 28px; color: var(--blue); display: block; margin: 0 auto 6px; }

.notice { display: flex; gap: 10px; align-items: flex-start; }
.notice .i { color: #B88A00; }
.banner em { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 20px; }
.banner em .i { width: 16px; height: 16px; }

.svc { transition: border-color .15s, box-shadow .15s, transform .1s; }
.svc:active { transform: scale(.98); }
.svc:hover { box-shadow: 0 8px 22px rgba(21,36,89,.1); }
.svc .pr { display: flex; align-items: baseline; gap: 2px; }
.svc-ic { width: 62px; height: 62px; border-radius: 18px; background: rgba(155,203,232,.28); display: grid; place-items: center; font-size: 32px; flex: none; }
.svc-ic.sm { width: 50px; height: 50px; font-size: 26px; border-radius: 14px; }

.opt .oi { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--blue); display: grid; place-items: center; flex: none; }
.opt.on .oi { background: rgba(30,91,168,.12); }
.ok-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.ok-dot .i { width: 18px; height: 18px; }
.ok-dot.big { width: 44px; height: 44px; }
.ok-dot.big .i { width: 26px; height: 26px; }
.meta-row { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.meta-row .i { width: 18px; height: 18px; }
.cash .i { width: 22px; height: 22px; }
.geo-ok .i { width: 18px; height: 18px; }

.tl .dot .i { width: 18px; height: 18px; }
.tl .it.now.bad .dot { background: var(--bad); border-color: var(--bad); box-shadow: none; }

.tabbar button .i { width: 26px; height: 26px; }
.tabbar button.on { position: relative; }
.tabbar button.on::before { content: ''; position: absolute; top: -9px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--navy); }

.contact .divider { border-top: 1px solid var(--line); margin: 16px 0 12px; }
.soc { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 9px 16px; border-radius: 22px; font-size: 15px; font-weight: 700; }
.soc .i { width: 20px; height: 20px; }
.soc.fb { background: rgba(24,119,242,.1); color: #1877F2; }
.soc.ig { background: rgba(225,48,108,.1); color: #E1306C; }
.soc.tt { background: rgba(21,36,89,.08); color: var(--ink); }
.soc.yt { background: rgba(255,0,0,.08); color: #C00; }

.review { flex: none; width: 270px; margin: 0 !important; }
.review p { margin: 6px 0; font-size: 15px; }
.foot-note { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 6px; }
.edit { color: var(--blue); }
.addr .ai { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--blue); display: grid; place-items: center; flex: none; }
.lst .li .ic { color: var(--blue); display: grid; place-items: center; }
.lst .li .ar .i { width: 18px; height: 18px; color: #B4C3D6; }
.lst .li.danger .ic { color: var(--bad); }
.icon-btn .i { width: 24px; height: 24px; }
.rate-hint { display: flex; gap: 6px; align-items: center; }
.rate-hint .i { width: 18px; height: 18px; }
.spin.dark { display: inline-block; border-color: var(--line); border-top-color: var(--ink); }
.pill { letter-spacing: .1px; }

/* ═══════════ ثبات الشاشة على الموبايل ═══════════
   مفيش حركة يمين وشمال، والتذييل (التالي / القائمة) ثابت تحت دايمًا */
html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }
html { touch-action: pan-y; }
.days, .chips { touch-action: pan-x pan-y; }
.app { overflow-x: clip; width: 100%; }
.screen { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tabbar, .footbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  box-shadow: 0 -6px 24px rgba(21,36,89,.08);
}
.footbar { padding-top: 12px; }
.toast { bottom: calc(108px + env(safe-area-inset-bottom)); }
img, iframe, svg { max-width: 100%; }

@media (max-width: 360px) {
  body { font-size: 16px; }
  .times { grid-template-columns: repeat(2, 1fr); }
  .svc .nm { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ═══════════ اللغات ═══════════ */
.lang-btn {
  min-width: 48px; height: 48px; border-radius: 14px; border: 0; padding: 0 10px;
  background: rgba(255,255,255,.14); color: #fff; font: 800 15px 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
.welcome { position: relative; }
.welcome-lang { position: absolute; top: 14px; inset-inline-end: 14px; }
/* في الإنجليزي (شمال ← يمين): الأسهم بتتقلب */
[dir="ltr"] .back .i, [dir="ltr"] [data-dir] .i, [dir="ltr"] .lst .li .ar .i, [dir="ltr"] .banner em .i { transform: scaleX(-1); }
[dir="ltr"] body { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
[dir="ltr"] .pr-row .v { text-align: end; }
/* ═══════════ التقييم بضغطة ═══════════ */
.rate-card { border: 2px solid var(--rate-line); background: var(--rate-bg); }
.ocard + .rate-card { margin-top: -6px; border-top-left-radius: 0; border-top-right-radius: 0; }
.rate-svc { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.rate-inline { text-align: center; }
.rate-q { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.rate-inline .face { min-height: 78px; }
.rate-inline .face .e { font-size: 32px; }
.rate-inline .face[disabled] { opacity: .5; }
.rate-inline .face.on { opacity: 1; }
.rate-tip { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rated { display: flex; gap: 8px; align-items: center; justify-content: center; background: rgba(14,128,96,.08); color: var(--ok); border-radius: 14px; padding: 10px; font-size: 16px; margin-top: 10px; }
.rate-thanks { text-align: center; color: var(--ok); font-weight: 700; margin-top: 8px; }

/* ═══════════ الوضع الليلي — بيشتغل لوحده حسب إعداد الموبايل ═══════════
   وجوده بيمنع متصفحات زي سامسونج إنها تقلب الألوان بالعافية */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1226; --stage: #060A18; --card: #141D38; --surface: #182244; --line: #29365A;
    --txt: #E6ECF7; --ink: #F2F6FD; --muted: #9AA8C2;
    --blue: #6FA8F2; --sky: #9BCBE8;
    --notice-bg: #2A2410; --notice-line: #4A3D17; --notice-ink: #F3D98F;
    --rate-bg: #221E12; --rate-line: #4A3F1A;
  }
  .card, .svc, .trust-i { box-shadow: none; }
  .inp::placeholder { color: #6E7C98; }
  .inp.err { background: #3A1A1D; }
  .err-box { background: #3A1A1D; color: #FF9A92; }
  .av { background: rgba(155,203,232,.18); color: var(--ink); }
  .av.f { background: #2E2850; color: #CFC4FF; }
  .svc .ico, .svc-ic { background: rgba(155,203,232,.14); }
  .opt .oi, .addr .ai, .ocard .ic { background: #0F1730; }
  .opt.on, .nurse-pick.on, .choice button.on, .chips button.on, .face.on { background: rgba(111,168,242,.16); }
  .day .w, .day .m { color: var(--muted); }
  .time[disabled] { background: #10182F; color: #4D5B7A; }
  .p-blue { background: rgba(111,168,242,.16); }
  .rated { background: rgba(14,128,96,.18); color: #5FD3A6; }
  .cash, .geo-ok { color: #5FD3A6; }
  .cash { background: rgba(14,128,96,.16); }
  .okbanner { background: rgba(14,128,96,.16); color: #5FD3A6; border-color: rgba(95,211,166,.3); }
  .btn.danger { border-color: #5A2A2E; }
  .tabbar, .footbar { box-shadow: 0 -6px 24px rgba(0,0,0,.4); }
  .soc.tt { background: rgba(255,255,255,.08); color: var(--ink); }
  .preview-bar { background: #4A3D17; color: #F3D98F; }
  .lst .li .ar .i, .i.big { color: #4D5B7A; }
}

/* الكارت فوق الجزء الكحلي في شاشة التسجيل (كانت «أهلاً بيك» بتتغطى) */
.welcome-card { position: relative; z-index: 2; }

/* رسايل وعروض الإدارة */
.offer-card { position: relative; margin-bottom: 14px; border: 2px solid var(--gold, #F2B33D); background: linear-gradient(160deg, rgba(242,179,61,.14), transparent 60%), var(--surface, #fff); }
.offer-tp { display: flex; align-items: center; gap: 10px; padding-inline-end: 30px; }
.offer-tp b { font-size: 18px; color: var(--ink); }
.offer-ic { font-size: 30px; line-height: 1; }
.offer-card p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink); }
.offer-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(127,127,127,.14); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.offer-code { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; border: 2px dashed var(--gold, #F2B33D); background: transparent; color: var(--ink); font: 800 20px/1 ui-monospace, monospace; letter-spacing: 2px; padding: 10px 16px; border-radius: 12px; cursor: pointer; direction: ltr; }

/* كود الخصم */
.coupon-box { margin-top: 12px; }
.coupon-box .lb { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 8px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .inp { flex: 1; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.coupon-row .btn { width: auto; padding: 0 22px; flex: none; }
.code-ok { margin-top: 8px; color: #128A4B; font-weight: 700; }
.code-bad { margin-top: 8px; color: #C2412D; font-weight: 700; }
.pr-row.disc .v, .pr-row.disc .l { color: #128A4B; font-weight: 700; }

/* ورق الممرض */
.verified { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #128A4B; font-weight: 700; font-size: 15px; }
.papers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.papers .btn { flex: 1 1 45%; width: auto; min-height: 48px; font-size: 15px; }
.doc-view { text-align: center; padding-bottom: 8px; }
.doc-view h3 { margin: 4px 0 12px; font-size: 20px; color: var(--ink); }
.doc-view img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #000; margin-bottom: 12px; }
.doc-view .sub { display: flex; gap: 6px; align-items: flex-start; text-align: start; margin-bottom: 12px; }

/* ═══════ 🔔 فحص الإشعارات ═══════ */
.pd { border-radius: 16px; padding: 14px; border: 2px solid; }
.pd-ok { border-color: rgba(18,138,75,.4); background: rgba(18,138,75,.08); }
.pd-warn { border-color: rgba(245,165,36,.5); background: rgba(245,165,36,.10); }
.pd-bad { border-color: rgba(217,72,59,.45); background: rgba(217,72,59,.08); }
.pd-t { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.pd-fix { margin: 0; padding-inline-start: 22px; line-height: 1.8; font-size: 15px; }
.pd-acts { display: grid; gap: 8px; margin-top: 12px; }
.pd-acts .btn { width: 100%; justify-content: center; }
.pd-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.pd-msg.ok { background: rgba(18,138,75,.12); color: #0E6B3A; }
.pd-msg.bad { background: rgba(217,72,59,.12); color: #A3271C; }
.pd-tips { margin-top: 12px; font-size: 14.5px; }
.pd-tips summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.pd-tips ul { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.8; }.pd-sheet h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 4px 0 6px; color: var(--ink); }
.pd-msg.ok { color: #128A4B; }
/* حجم الكلام */
#app { zoom: var(--cz, 1); }
.ts-row { cursor: default; }
.ts-seg { display: flex; gap: 4px; margin-inline-start: auto; }
.ts-seg button { min-width: 50px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px inherit; font-family: inherit; cursor: pointer; padding: 0 8px; }
.ts-seg button.on { border-color: var(--blue); background: var(--blue); color: #fff; }

/* التقييم العام لسند */
.rate-sum { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rate-sum > b { font: 800 38px 'Alexandria', sans-serif; color: var(--ink); line-height: 1; }
.rate-sum .stars { font-size: 20px; color: #F2B33D; }

/* 📞 كلّم ممرض — أول التطبيق */
.callbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, #0E8060, #15A37A); color: #fff; box-shadow: 0 8px 22px rgba(14,128,96,.28); }
.callbar .cb-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; flex: none;
  animation: cbPulse 2.2s ease-in-out infinite; }
.callbar .cb-tx { flex: 1; min-width: 0; } .callbar b { display: block; font-size: 17px; } .callbar small { display: block; opacity: .9; font-size: 13px; }
.callbar .cb-go { background: #fff; color: #0E8060; font-weight: 800; border-radius: 12px; padding: 8px 14px; flex: none; }
@keyframes cbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* 💊 أدويتي */
.meds-home { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; border: 2px solid rgba(242,179,61,.6);
  background: linear-gradient(135deg, rgba(242,179,61,.14), transparent 70%), var(--surface); color: var(--ink); }
.meds-home .mh-ic { font-size: 30px; } .meds-home b { display: block; font-size: 16px; } .meds-home small { display: block; color: var(--muted); font-size: 13px; }
.meds-home .cb-go { color: var(--muted); }
.dose { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dose:last-child { border-bottom: 0; }
.dose-t { min-width: 76px; font-weight: 800; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dose-x { flex: 1; min-width: 0; } .dose-x b { display: block; font-size: 16px; } .dose-x small { color: var(--muted); font-size: 13px; }
.dose-btn { border: 0; border-radius: 12px; padding: 10px 14px; font: 800 15px inherit; font-family: inherit; cursor: pointer; background: var(--blue); color: #fff; flex: none; }
.dose-btn.ok { background: rgba(18,138,75,.14); color: #128A4B; }
.dose-tag { font-size: 13px; color: var(--muted); flex: none; }
.dose-now { background: linear-gradient(90deg, rgba(242,179,61,.16), transparent); border-radius: 12px; padding-inline: 8px; }
.dose-missed .dose-t { color: #C2412D; } .dose-missed .dose-btn { background: #C2412D; }
.dose-taken { opacity: .75; }

/* ═══ 💊 أدويتي — إضافة الدوا من التطبيق ═══ */
.med-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.med-row:last-child { border-bottom: 0; }
.med-x { flex: 1; min-width: 0; }
.med-x b { font-size: 16px; }
.med-dose { display: inline-block; margin-inline-start: 8px; background: rgba(242,179,61,.18); color: var(--ink); border-radius: 10px; padding: 1px 8px; font-size: 13px; font-weight: 700; }
.med-x small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.med-x .med-by { font-size: 12px; }
.med-acts { display: flex; flex-direction: column; gap: 2px; flex: none; }
.lnk.bad { color: #C2412D; }
.mtimes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt { position: relative; display: inline-flex; }
.mt .inp { width: 130px; text-align: center; font-weight: 800; }
.mt-x { position: absolute; top: -8px; inset-inline-end: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #C2412D; color: #fff; font-weight: 800; line-height: 1; }

/* ═══ 📈 قياساتي ═══ */
.vt-tabs button { flex: 1; }
.vstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.vs { background: var(--bg, #F4F7FC); border-radius: 12px; padding: 8px; text-align: center; }
.vs small { display: block; color: var(--muted); font-size: 12px; } .vs b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.vchart { width: 100%; height: auto; margin-top: 10px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; }
.vrow-v { min-width: 72px; text-align: center; } .vrow-v b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; } .vrow-v small { color: var(--muted); font-size: 11px; }
.vrow-x { flex: 1; min-width: 0; } .vrow-x small { display: block; color: var(--muted); font-size: 12.5px; }
.vlv { font-weight: 800; font-size: 14px; }
.inp.vbig { font-size: 26px; font-weight: 800; text-align: center; }
.vit-home { border-color: rgba(31,79,163,.35); }

/* ═══ 📈 قياساتي — جدول ═══ */
.vcard { padding: 10px 10px 14px; }
.vtw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 430px; }
.vtable th { background: #F1F5FB; color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 8px 6px; text-align: center; white-space: nowrap; }
.vtable td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.vtable td.nw { white-space: nowrap; }
.vtable td.vnote { text-align: start; color: var(--muted); font-size: 12.5px; max-width: 120px; }
.vtable tfoot td { background: #F7F9FC; font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }
.vval { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 9px; font-size: 15px; font-variant-numeric: tabular-nums; }
.vval.t-ok { background: #E4F5EA; color: #1E7B4A; }
.vval.t-hi { background: #FBE4E2; color: #B65A55; }
.vval.t-lo { background: #ECEFF3; color: #5B6B7F; }
.vdel { border: 0; background: none; color: #B0B7C3; font-size: 20px; line-height: 1; padding: 0 4px; }
.vleg { text-align: center; font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.body-card { display: block; width: 100%; text-align: start; margin-bottom: 10px; }
.body-card b { display: block; } .body-card small { color: var(--muted); }
.bstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-bottom: 6px; }
.choice.wrap { flex-wrap: wrap; } .choice.wrap button { flex: 1 1 40%; }
.alarm-li { margin: 8px 0 14px; }
.alarm-opts .opt { margin-bottom: 8px; }
@media (prefers-color-scheme: dark) {
  .vtable th, .vtable tfoot td { background: rgba(255,255,255,.06); }
  .vval.t-ok { background: rgba(59,167,118,.18); color: #8FE0B5; } .vval.t-hi { background: rgba(224,122,122,.18); color: #F3B0AC; } .vval.t-lo { background: rgba(154,165,177,.18); color: #C4CCD6; }
}

/* ═══ جدول القياسات يدخل في عرض الشاشة (من غير سحب) + كارت الصيدلية ═══ */
.vtw { overflow-x: visible; margin: 0; }
.vtable { min-width: 0; table-layout: fixed; font-size: 12.5px; }
.vtable th { font-size: 11.5px; padding: 7px 2px; white-space: normal; }
.vtable td { padding: 7px 2px; word-break: break-word; }
.vtable td .vd { display: block; font-size: 12px; } .vtable td small { display: block; color: var(--muted); font-size: 11px; }
.vtable td.vx { font-size: 11.5px; }
.vtable td.vnote { font-size: 11.5px; max-width: none; position: relative; padding-inline-end: 16px; }
.vtable .vdel { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 17px; padding: 2px; }
.vval { min-width: 0; padding: 2px 5px; font-size: 14px; }
.vtable tfoot td small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.bmi-live { margin: -4px 0 14px; font-size: 16px; color: var(--ink); }
.pharm-soon { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; opacity: .72; filter: grayscale(.35); border: 2px dashed var(--line); cursor: default; }
.pharm-soon .mh-ic { font-size: 28px; } .pharm-soon b { display: block; font-size: 16px; } .pharm-soon small { display: block; color: var(--muted); font-size: 13px; }
.soon-badge { background: #F2B33D; color: #152459; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; flex: none; }

/* 🚨 قراية خطيرة */
.urgent { text-align: center; }
.urgent-ic { font-size: 52px; }
.urgent h3 { margin: 4px 0 8px; color: #A9504B; font-size: 21px; }
.urgent p { font-size: 16px; line-height: 1.8; margin: 0 0 14px; }
.urgent .btn { margin-bottom: 8px; }
.urgent-call { background: #C2412D; }

/* ═══ 📅 مواعيدي ═══ */
.appt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; } .appt.past { opacity: .55; }
.appt-ic { font-size: 28px; line-height: 1; } .appt-x { flex: 1; min-width: 0; } .appt-x b { display: block; font-size: 16px; }
.appt-x small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; } .appt-rep { color: #1F4FA3 !important; font-weight: 700; }
.appt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.appt-in { font-size: 12px; font-weight: 800; color: var(--muted); } .appt-in.on { color: #1F4FA3; background: rgba(31,79,163,.1); padding: 2px 8px; border-radius: 10px; }
.appt-home { border-color: rgba(31,79,163,.3); }
/* ═══ 👨‍👩‍👧 عيلتي ═══ */
.fam-home { border-color: rgba(59,167,118,.4); } .fam-home.urgent, .fperson.urgent { border: 2px solid #E8A39E; background: #FFF7F6; }
.fperson { display: block; width: 100%; text-align: start; margin-bottom: 12px; }
.fp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .fp-head b { font-size: 17px; }
.fchips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fchip { background: var(--bg, #F4F7FC); border-radius: 12px; padding: 8px 4px; text-align: center; }
.fchip small { display: block; color: var(--muted); font-size: 11.5px; } .fchip b { display: inline-block; margin: 3px 0; font-size: 15px; }
.fp-foot { margin-top: 10px; font-size: 13.5px; color: var(--ink); line-height: 1.8; }
.fam-code { font-size: 44px; font-weight: 900; letter-spacing: 10px; text-align: center; color: #152459; background: #F1F5FB; border-radius: 16px; padding: 14px 0; margin: 6px 0 10px; direction: ltr; }

/* ══════════════════════════════════════════════════════════════
   🎨 التصميم الهادي (نوفمبر 2026) — شكل أبسط وأنضف:
   ظلال أخف · زوايا أصغر · عناوين صغيرة منظمة · أيقونات خط بدل الإيموجي
   ══════════════════════════════════════════════════════════════ */
.card { border-radius: 14px; box-shadow: 0 1px 2px rgba(21,36,89,.04); }
.h { font-size: 15.5px; font-weight: 700; color: var(--muted); margin: 26px 2px 10px; letter-spacing: .1px; }
.btn { border-radius: 12px; min-height: 54px; font-size: 17px; }
.btn.sm { border-radius: 10px; }
/* الهيدر: لون واحد مسطّح من غير دواير وتوهّج */
.hero { padding: 16px 16px 22px; background: var(--navy); }
.hero::after { display: none; }
.hero .greet { font-size: 22px; margin: 14px 0 2px; }
.hero .tag { font-size: 14.5px; }
.hero-logo { height: 46px; }
.hero-links a, .lang-btn { width: 40px !important; height: 40px !important; border-radius: 10px !important; }
/* كلّم ممرض: صف أبيض بسيط وزرار أخضر */
.callbar { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; padding: 10px 12px; margin-bottom: 4px; }
.callbar .cb-ic { width: 40px; height: 40px; background: rgba(14,128,96,.1) !important; color: #0E8060; }
.callbar .cb-ic .i { width: 20px; height: 20px; }
.callbar b { font-size: 15.5px !important; } .callbar small { color: var(--muted); opacity: 1 !important; font-size: 12.5px !important; }
.callbar .cb-go { background: #0E8060 !important; color: #fff !important; border-radius: 10px; padding: 8px 16px; font-size: 14.5px; }
/* الخدمات */
.grid2 { gap: 10px; }
.svc { border-radius: 14px; box-shadow: none; padding: 14px 12px; gap: 8px; }
.svc .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); font-size: 22px; }
.svc .nm { font-size: 15px; }
.svc:hover { box-shadow: 0 2px 10px rgba(21,36,89,.06); }
/* متابعتي الصحية — 4 مربعات صغيرة */
.ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ht { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px 12px; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.ht:active { transform: scale(.98); }
.ht-ic { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ht-ic .i { width: 20px; height: 20px; }
.ht-amber .ht-ic { background: rgba(183,121,31,.12); color: #A26A14; }
.ht-blue .ht-ic { background: rgba(31,79,163,.1); color: #1F4FA3; }
.ht-navy .ht-ic { background: rgba(21,36,89,.08); color: var(--ink); }
.ht-green .ht-ic { background: rgba(14,128,96,.1); color: #0E8060; }
.ht-dot { position: absolute; top: -3px; inset-inline-end: -3px; width: 11px; height: 11px; border-radius: 50%; background: #D9534F; border: 2px solid var(--surface); }
.ht-x { min-width: 0; flex: 1; }
.ht-x b { display: block; font-size: 15px; }
.ht-x small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ثقة + آراء */
.trust-i { border-radius: 12px; font-size: 12.5px; font-weight: 600; padding: 10px 4px; }
.trust-i .i { width: 22px; height: 22px; }
.review { width: 250px; border-radius: 14px; box-shadow: none; }
.review .stars { font-size: 13px; letter-spacing: 1px; }
.review p { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
/* التاب تحت */
.tabbar { box-shadow: 0 -1px 0 var(--line); }
.tabbar button .i { width: 23px; height: 23px; }
/* اختيار الممرض بالاسم */
.nurse-opt { align-items: center; gap: 12px; }
.nurse-opt .av, .nurse-opt img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.nurse-opt .tx { flex: 1; }
.nurse-rv { display: block; margin: -4px 0 10px; padding: 0 6px; font-size: 13.5px; }
.opt { border-radius: 12px; }

/* ═══ الرئيسية (تعديل 2): متابعتي الصحية صف مدمج فوق · الخدمات 3 في الصف ═══ */
.ht-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.ht-row .ht { flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 0; padding: 10px 4px 8px; text-align: center; }
.ht-row .ht b { font-size: 13px; line-height: 1.3; }
.ht-row .ht small { font-size: 10.5px; color: var(--muted); line-height: 1.3; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-row .ht-ic { width: 40px; height: 40px; border-radius: 12px; }
.grid2 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc { padding: 10px 6px; gap: 6px; align-items: center; text-align: center; min-height: 0; }
.svc .ico { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; margin: 0 auto; }
.svc .nm { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc .pr { font-size: 12.5px; justify-content: center; }
.svc .pr small { font-size: 10px; }
@media (max-width: 340px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }

/* ═══ 🆘 كارت الطوارئ · النهارده عندك · اسأل ممرض ═══ */
.sos-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #C2412D; color: #fff; font: 800 12px 'Segoe UI', system-ui, sans-serif; letter-spacing: .5px; }
.sos-card { border: 2px solid #F0C9C4; }
.sos-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.sos-head b { font-size: 18px; } .sos-head span { color: var(--muted); font-size: 14px; }
.sos-r { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.sos-r:last-child { border-bottom: 0; } .sos-r span { color: var(--muted); min-width: 108px; flex: none; font-size: 13.5px; }
.sos-r.blood b { color: #C2412D; font-size: 20px; } .sos-r.warn b { color: #A9504B; }
.blood-pick button { flex: 1 1 20%; font-weight: 800; }
.fam-sos summary { cursor: pointer; font-weight: 800; color: #A9504B; }
.today-card { padding: 12px 14px; margin: 10px 0 4px; }
.td-h { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.td-i { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--ink); width: 100%; border: 0; background: none; text-align: start; }
.td-i .i { width: 18px; height: 18px; color: var(--blue); flex: none; }
.td-i.warn, .td-i.warn .i { color: #A9504B; }
.td-act { cursor: pointer; } .td-act span { text-decoration: underline; text-underline-offset: 3px; }
.td-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.td-tip .i { width: 18px; height: 18px; color: #B7791F; flex: none; margin-top: 2px; }
.callwrap { margin-bottom: 4px; }
.ask-link { display: block; width: 100%; margin-top: 6px; border: 0; background: none; color: var(--blue); font-size: 13.5px; font-weight: 700; text-align: center; padding: 4px; }
.qa { padding: 12px 14px; }
.qa-q { font-size: 15px; color: var(--ink); } .qa-q small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.qa-a { margin-top: 10px; padding: 10px 12px; background: rgba(14,128,96,.07); border-radius: 10px; font-size: 15px; line-height: 1.8; }
.qa-a b { display: block; font-size: 13px; color: #0E8060; margin-bottom: 2px; }
.qa-w { margin-top: 8px; font-size: 13.5px; color: #B7791F; }
.med-stock { color: var(--muted) !important; } .med-stock.low { color: #A9504B !important; font-weight: 700; }

.today-card .td-tip:first-child { border-top: 0; margin-top: 0; padding-top: 0; }


/* ═══ «اشتغل معانا» في الرئيسية ← صفحة التقديم ═══ */
.work-card{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:14px 16px;border-radius:18px;text-decoration:none;color:#fff;
  background:linear-gradient(135deg,#0F766E,#14B8A6 55%,#7C3AED);box-shadow:0 10px 24px rgba(124,58,237,.22)}
.work-card .wc-ic{flex:none;width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.2);display:grid;place-items:center}
.work-card .wc-ic svg{width:24px;height:24px;color:#fff;stroke:#fff}
.work-card .wc-tx{flex:1;min-width:0}
.work-card b{display:block;font-size:17px;font-weight:800}
.work-card small{display:block;font-size:13px;opacity:.92}
.work-card .wc-go svg{width:20px;height:20px;stroke:#fff;color:#fff}
