/* ==========================================================
   فجر | FAJR — التصميم (الهاتف أولاً)
   ========================================================== */
:root {
  /* ألوان الهوية مأخوذة من اللوجو نفسه: الأخضر #1B6E5E والذهبي #C7B666 */
  --brand: #1B6E5E;
  --navy: #0E4237;   /* أخضر داكن للنصوص البارزة والأسطح العميقة */
  --navy-2: #14574A;
  --green: #1B6E5E;
  --green-2: #14574A;
  --green-tint: #E3F0EB;
  --ivory: #F7F8F6;
  --gold: #C7B666;
  --gold-ink: #6F6122;
  --gold-tint: #F5F1DE;
  --text: #202A35;
  --text-2: #667085;
  --line: #E2E7E4;
  --card: #FFFFFF;
  --danger: #B42318;
  --miss: #A3443B;      /* يوم بلا تسجيل: لون هادئ لا ينفّر */
  --miss-tint: #FBEDEB;
  --miss-line: #EBC4BF;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 4px 16px rgba(16, 27, 45, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-h: 68px;
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ivory); color: var(--text); }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.b { font-weight: 700; }
.en { font-family: "Cairo", system-ui, sans-serif; letter-spacing: 0.08em; direction: ltr; unicode-bidi: isolate; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 28px; height: 28px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- الهيكل ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--brand); color: #FFFFFF;
}
.top .logo { height: 42px; width: auto; display: block; }
.top .tag { margin-inline-start: auto; font-size: 10px; color: var(--gold); letter-spacing: 0.12em; font-weight: 700; }
html, body { overflow-x: hidden; }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #FFFFFF; border-top: 1px solid var(--line);
}
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text-2); font-size: 12px; font-weight: 700; min-height: 44px; }
.nav a[aria-current="page"] { color: var(--green); }
.nav a .dot { position: absolute; }
@media (min-width: 900px) {
  .nav { position: sticky; top: 52px; bottom: auto; height: 56px; padding: 0; max-width: 640px; margin: 0 auto; border: 0; background: transparent; grid-template-columns: repeat(4, auto); justify-content: center; gap: 8px; }
  .nav a { flex-direction: row; gap: 6px; padding: 0 16px; border-radius: 999px; }
  .nav a[aria-current="page"] { background: var(--green-tint); }
  main { padding-bottom: 48px; }
}

/* ---------- البطاقات والأزرار ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.card-title .ic { color: var(--green); }
.card-title .more { margin-inline-start: auto; font-size: 13px; font-weight: 700; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); background: #FFFFFF; color: var(--text);
  transition: background-color 150ms var(--ease), transform 150ms var(--ease), opacity 150ms;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.btn.primary:hover { background: var(--green-2); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.danger { color: var(--danger); border-color: #F3C9C4; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- بطاقة تسجيل اليوم (أهم عنصر) ---------- */
.today { background: var(--brand); color: #FFFFFF; border: 0; padding: 20px; gap: 16px; }
.today h1 { font-size: 22px; font-weight: 800; }
.today .date { font-size: 13px; color: #CFE3DC; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border-radius: 14px;
  font-size: 17px; font-weight: 800; text-align: start;
  transition: transform 150ms var(--ease), background-color 150ms;
}
.choice:active { transform: scale(0.98); }
.choice.mosque { background: #FFFFFF; color: var(--brand); }
.choice.other { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.4); }
.choice .ic { width: 30px; height: 30px; }
.logged { display: grid; gap: 10px; }
.logged .lstate { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.12); }
.logged .lstate.mosque { background: #FFFFFF; color: var(--brand); }
.logged .lstate.mosque .enc { color: var(--gold-ink); }
.logged .lstate .t { font-size: 17px; font-weight: 800; }
.logged .enc { color: var(--gold); font-weight: 700; }
.logged .btn { min-height: 44px; background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.4); }

/* ---------- السلسلة والإنجاز ---------- */
.bar { height: 10px; border-radius: 999px; background: #E3EAE6; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width 700ms var(--ease); }
.bar.gold > i { background: var(--gold); }
.prog-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.prog-meta b { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-tint); color: var(--green); }
.pill.gold { background: var(--gold-tint); color: var(--gold-ink); }
.pill.gray { background: #EEF0F3; color: var(--text-2); }
.pill.red { background: #FEF3F2; color: var(--danger); }

/* ---------- التقويم ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head h2 { font-size: 18px; font-weight: 800; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); }
.icon-btn:hover { background: #E8EEEB; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.mosque { background: var(--green); }
.lg.other { background: var(--gold-tint); border: 1.5px solid var(--gold); }
.lg.unlogged { background: var(--miss-tint); border: 1.5px solid var(--miss-line); }
.lg.now { border: 2px solid var(--navy); }

/* ---------- القوائم والنماذج ---------- */
.list > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--text-2); }
.input, .select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #FFFFFF; font-size: 16px;
}
.input:focus-visible, .select:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #CBD5D1; flex: none; transition: background-color 200ms; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: transform 200ms var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(-20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--gold); outline-offset: 2px; }
.switch input:disabled + .track { opacity: 0.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-ink); font-size: 14px; }
.note.info { background: #EEF2F8; color: #344054; }
.note.err { background: #FEF3F2; color: var(--danger); }

/* ---------- الترحيب والدخول ---------- */
.welcome { min-height: 100dvh; background: var(--brand); color: #FFFFFF; display: grid; place-items: center; padding: 32px 20px; text-align: center; }
.welcome-in { width: min(420px, 100%); display: grid; gap: 18px; justify-items: center; }
.welcome .logo { width: min(230px, 62vw); height: auto; margin-bottom: 4px; }
.welcome h1 { font-size: 40px; font-weight: 800; line-height: 1.2; }
.welcome h1 .en { font-size: 22px; color: var(--gold); }
.welcome .slogan { font-size: 15px; letter-spacing: 0.18em; color: var(--gold); font-weight: 800; direction: ltr; }
.welcome .sub { color: #D5E8E2; }
.welcome .btn { min-height: 56px; font-size: 17px; }
.welcome .fine { font-size: 13px; color: #B5D3CA; }
.welcome a { color: var(--gold); }
.welcome .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #FFFFFF; text-align: start; width: 100%; box-shadow: none; }
.welcome .input { background: #12503F; border-color: rgba(255,255,255,.22); color: #FFFFFF; }

/* ---------- النوافذ والإشعارات ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(16, 27, 45, 0.45); opacity: 0; transition: opacity 250ms; }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 51; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  background: #FFFFFF; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 300ms var(--ease); display: grid; gap: 14px; max-height: 90dvh; overflow-y: auto;
}
.sheet.open { transform: none; }
.sheet h2 { font-size: 18px; font-weight: 800; }
.toasts { position: fixed; z-index: 60; inset-inline: 0; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: none; background: var(--navy); color: var(--ivory); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 480px; animation: tin 250ms var(--ease); }
.toast.err { background: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.skel { background: #E6ECE9; border-radius: 12px; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: 0.55; } }
.state { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; text-align: center; color: var(--text-2); }
.state .ic { width: 36px; height: 36px; color: #A9B8B2; }
.state b { color: var(--text); }

/* ---------- لوحة المسؤول ---------- */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #E8EEEB; color: var(--text-2); }
.admin-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; direction: ltr; }
.bars i { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; min-height: 2px; }
.linkbox { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--green-tint); }
.linkbox code { direction: ltr; font-size: 13px; word-break: break-all; text-align: left; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.welcome h1 .sep { color: #3A4A63; font-weight: 400; }
.pw { position: relative; }
.pw .input { padding-inline-start: 48px; }
.pw-eye { position: absolute; inset-inline-start: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--text-2); }
.welcome .pw-eye { color: #B5D3CA; }
.today .fajr-time { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #F1E9C2; font-size: 14px; font-weight: 700; }
.today .fajr-time b { color: #FFFFFF; }
.today .muted-l { color: #CFE3DC; font-weight: 400; }
.group-today { display: flex; align-items: center; gap: 14px; grid-template-columns: none; }
.group-today .ic { color: var(--green); }
.group-today b { font-size: 20px; color: var(--green); }
.ms-num { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--navy); font-size: 40px; font-weight: 800; border: 3px solid var(--gold); }
.wa-card { display: grid; gap: 10px; } .wa-card .btn { white-space: nowrap; }

/* ---------- الإشعارات ---------- */
.top .bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ivory); }
.top .bell:hover { background: rgba(255,255,255,.12); }
.top .badge { position: absolute; top: 3px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.top .badge[hidden] { display: none; }
.list.inbox > li { padding: 0; }
.ib { display: flex; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.ib .grow { display: grid; gap: 2px; }
.ib .dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: transparent; }
.inbox li.unread { background: var(--gold-tint); }
.inbox li.unread .dot { background: var(--gold-ink); }
.ib .link { color: var(--green); font-weight: 700; }
.preview { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: #EEF0F3; }
.preview .pv-app { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.preview .pv-app img { width: 18px; height: 18px; border-radius: 5px; }
textarea.input { font: inherit; letter-spacing: normal; min-height: 84px; padding-block: 10px; resize: vertical; line-height: 1.6; }

/* ---------- التحدّيات ---------- */
.fc { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fc:last-of-type { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.checks { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.checks[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.about { justify-items: center; text-align: center; gap: 6px; padding-block: 24px; }
.about img { width: 150px; height: auto; }
.about .en { color: var(--gold-ink); font-size: 12px; letter-spacing: 0.16em; direction: ltr; }

/* ---------- الملف الشخصي والتهيئة ---------- */
.chip-r { position: relative; display: inline-flex; cursor: pointer; }
.chip-r input { position: absolute; opacity: 0; pointer-events: none; }
.chip-r span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; }
.chip-r input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip-r input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
fieldset.vis { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
fieldset.vis legend { font-weight: 800; padding: 0 6px; }
fieldset.vis .chip-r span { width: 100%; }
.ob-head { display: grid; gap: 6px; }
.ob-head h1 { font-size: 22px; font-weight: 800; }
.ob-prog { height: 8px; border-radius: 999px; background: #E3EAE6; overflow: hidden; }
.ob-prog > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 300ms var(--ease); }
.ob-step.cur { border: 2px solid var(--green); }
.steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.center { text-align: center; }
.setup-card { display: grid; gap: 8px; text-decoration: none; color: inherit; border: 1px solid var(--gold); }
.pinned { border: 1px solid var(--gold); background: var(--gold-tint); gap: 6px; }
.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-weight: 800; }
/* ---------- لوحة المسؤول: الأعضاء والمساجد ---------- */
.obstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.obstats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #EFF3F1; }
.obstats b { font-size: 22px; color: var(--navy); }
.obstats span { font-size: 12px; color: var(--text-2); font-weight: 700; }
.obdots { display: inline-flex; gap: 4px; margin-top: 4px; }
.obdots i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5D1; }
.obdots i.on { background: var(--green); }
.kvs { display: grid; gap: 2px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--text-2); }
.kv b { text-align: end; }
.gcounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gcounts > div { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; background: #EFF3F1; }
.gcounts b { font-size: 24px; color: var(--navy); line-height: 1.2; }
.gcounts span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.gcounts .g { background: var(--green-tint); }
.gcounts .g b { color: var(--green); }
.gcounts .u { background: var(--gold-tint); }
.gcounts .u b { color: var(--gold-ink); }
.gcounts > .ib { padding: 0; display: block; }
.gcounts > .ib > div { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; background: #EFF3F1; }
.gcounts > .ib > div.g { background: var(--green-tint); }
.gcounts > .ib > div.g b { color: var(--green); }
.gcounts > .ib > div.u { background: var(--gold-tint); }
.gcounts > .ib > div.u b { color: var(--gold-ink); }
/* البحث عن المسجد */
.mpick { display: grid; gap: 10px; }
.mchosen { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--green); background: var(--green-tint); }
.msearch[hidden] { display: none; }
.msearch { display: grid; gap: 8px; }
.mlist { display: grid; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mopt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-weight: 700; color: inherit; text-align: start; cursor: pointer; }
.mopt:last-child { border-bottom: 0; }
.mopt small { color: var(--text-2); font-weight: 600; }
.mopt:hover, .mopt:focus-visible { background: var(--green-tint); }
.mopt.alt { color: var(--green); justify-content: flex-start; }

/* ---------- التقويم (2026-11-24): مضغوط، ملخص أولاً، وتفاصيل اليوم تحته ---------- */
.cal-card { gap: 14px; }
.cal-title { text-align: center; }
.cal-now { justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-size: 13px; }
.cal-sum { display: flex; align-items: center; gap: 14px; }
.cal-nums { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cn { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 12px; background: #F3F6F4; text-align: center; }
.cn i { width: 8px; height: 8px; border-radius: 50%; }
.cn b { font-size: 20px; line-height: 1.3; color: var(--navy); }
.cn span { font-size: 11px; font-weight: 700; color: var(--text-2); }
.cn.mosque i { background: var(--green); }
.cn.other i { background: var(--gold); }
.cn.unlogged i { background: var(--miss-line); }
.cal2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 360px; width: 100%; margin: 0 auto; touch-action: pan-y; }
.cal2 .wd { text-align: center; font-size: 11px; color: var(--text-2); font-weight: 700; padding-bottom: 2px; }
.cd { aspect-ratio: 1; min-width: 0; max-height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text);
  border: 1.5px solid transparent; transition: transform 120ms var(--ease), box-shadow 120ms; justify-self: center; width: 100%; max-width: 46px; }
.cd.empty { visibility: hidden; }
.cd.mosque { background: var(--green); color: #FFFFFF; }
.cd.other { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-ink); }
.cd.unlogged { background: var(--miss-tint); border-color: var(--miss-line); color: var(--miss); }
.cd.now { background: #FFFFFF; border: 1.5px dashed var(--navy-2); color: var(--navy); }
.cd.before { color: #B4BDB9; }
.cd.future { color: #B4BDB9; cursor: default; }
.cd.is-today { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--navy); }
.cd[aria-pressed="true"] { transform: scale(1.08); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--gold); }
.dayinfo { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #F3F6F4; min-height: 52px; }
.di-head { display: flex; align-items: center; gap: 10px; }
.di-head .grow { flex: 1; min-width: 0; }
.di-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; color: var(--text-2); }
.di-ic.mosque { background: var(--green); color: #FFFFFF; }
.di-ic.other { background: var(--gold-tint); color: var(--gold-ink); }
.di-ic.unlogged { background: var(--miss-tint); color: var(--miss); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 12px; background: #FFFFFF; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.seg button.on { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.seg button[data-s=""] { flex: 0 1 auto; color: var(--text-2); }
.sum3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum3 > div { display: grid; justify-items: center; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--gold-tint); }
.sum3 b { font-size: 22px; line-height: 1.2; color: var(--navy); }
.sum3 span { font-size: 11px; font-weight: 700; color: var(--gold-ink); }
.cmp { font-weight: 700; color: var(--text-2); }
.cmp.up { color: var(--green); }
.cmp.down { color: var(--miss); }

/* ---------- حلقة التقدّم ---------- */
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .rt { stroke: #E3EAE6; }
.ring .rv { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 700ms var(--ease); }
.ring span { position: relative; display: grid; justify-items: center; line-height: 1.1; }
.ring b { font-size: 20px; font-weight: 800; color: var(--navy); }
.ring small { font-size: 11px; font-weight: 700; color: var(--text-2); }

/* ---------- التحدّي الشخصي ---------- */
.pc { border: 1.5px solid var(--green); }
.linkish { color: var(--green); background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 32px; }
.pc-main { display: flex; align-items: center; gap: 14px; }
.pc-txt { display: grid; gap: 2px; min-width: 0; }
.pc-title { font-size: 18px; font-weight: 800; color: var(--navy); }
.pstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pstrip i { aspect-ratio: 1; max-height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700;
  background: #F3F6F4; color: #A9B8B2; border: 1.5px solid transparent; }
.pstrip.dense { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.pstrip.dense i { border-radius: 50%; max-height: 22px; }
.pstrip i.mosque { background: var(--green); color: #FFFFFF; }
.pstrip i.other { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-ink); }
.pstrip i.missed { background: var(--miss-tint); border-color: var(--miss-line); color: var(--miss); }
.pstrip i.now { background: #FFFFFF; border: 1.5px dashed var(--navy-2); color: var(--navy); }
.pc-msg.reached { color: var(--green); font-weight: 700; }

/* ---------- التحدّي العام: لون ذهبي مختلف عن التحدّي الشخصي ---------- */
.pub, .pub-sec { border: 1.5px solid var(--gold); background: linear-gradient(180deg, var(--gold-tint), var(--card) 90px); }
.pub-tag { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--gold-ink); }
.pub-tag .more { margin-inline-start: auto; font-size: 13px; text-decoration: none; color: var(--gold-ink); }
.pub-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.page-h { font-size: 20px; font-weight: 800; }

/* ---------- لوحة الآيات والأحاديث ---------- */
.verse { gap: 6px; text-align: center; justify-items: center; padding: 16px 18px; background: var(--card); border-color: var(--line); position: relative; }
.verse::before { content: ""; position: absolute; top: 0; inset-inline: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--gold); }
.verse .vk { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--gold-ink); }
.verse .vt { font-family: "Amiri", "Cairo", serif; font-size: 20px; line-height: 1.9; color: var(--navy); }
.verse .vs { font-size: 12px; color: var(--text-2); }

@media (min-width: 900px) {
  .cal2 { max-width: 380px; }
}

/* لوحة المسؤول: نظرة عامة */
.ov-today { display: flex; align-items: center; gap: 12px; }
.ov-k b, .ov-seg b { font-size: 24px; }
.obstats b small { font-size: 13px; color: var(--text-2); font-weight: 700; }
.dl { font-size: 11px; font-weight: 700; color: var(--text-2); }
.dl.up { color: var(--green); }
.dl.down { color: var(--miss); }
.sbars { display: flex; align-items: flex-end; gap: 2px; height: 110px; direction: ltr; }
.sbars > div { flex: 1; display: flex; flex-direction: column; gap: 1px; min-height: 2px; background: #E3EAE6; border-radius: 3px 3px 0 0; overflow: hidden; }
.sbars i.m { background: var(--green); }
.sbars i.o { background: var(--gold); }
.hb { display: grid; gap: 8px; }
.hb-r { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hb-k { font-weight: 700; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.hb-k small { display: block; font-size: 11px; font-weight: 700; color: var(--text-2); }
.gcounts b small { font-size: 13px; color: var(--text-2); }
.hb-t { height: 10px; border-radius: 999px; background: #E3EAE6; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); opacity: .55; }
.hb-t i.hi { opacity: 1; background: var(--green); }
.hb-v { font-size: 12px; color: var(--text-2); min-width: 34px; text-align: end; }
.segbar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; background: #E3EAE6; }
.segbar i, .sw { background: #E3EAE6; }
.segbar .regular, .sw.regular { background: var(--green); }
.segbar .mid, .sw.mid { background: #7FB3A5; }
.segbar .low, .sw.low { background: var(--gold); }
.segbar .none, .sw.none { background: #C9D2CE; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; vertical-align: 1px; }
.sbars + .spread > span { direction: rtl; unicode-bidi: isolate; }
.ov-today .gcounts { flex: 1; }
