@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --green-950: #123f39;
  --green-900: #174b43;
  --green-800: #1e5f54;
  --green-700: #26776b;
  --green-100: #e7efea;
  --green-50: #f0f5f1;
  --sand-50: #fbfaf6;
  --sand-100: #f6f4ed;
  --sand-200: #ebe7dc;
  --sand-300: #ddd7c7;
  --gold-700: #9b723d;
  --gold-500: #bd955a;
  --gold-100: #f3ead9;
  --ink: #24312e;
  --muted: #76817d;
  --line: #e9e7e0;
  --white: #fffefa;
  --shadow: 0 14px 38px rgba(39, 54, 48, .055);
  --font-ui: 'Noto Sans Arabic', 'Tahoma', sans-serif;
  --font-display: 'Noto Naskh Arabic', 'Noto Sans Arabic', serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand-100); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(189,149,90,.78); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.app-shell { width: min(1540px, 100%); min-height: 100vh; margin-inline: auto; display: grid; grid-template-columns: 258px minmax(0, 1fr); direction: rtl; }
.sidebar { position: sticky; top: 0; height: 100vh; min-height: 660px; padding: 31px 21px 22px; display: flex; flex-direction: column; background: var(--white); border-left: 1px solid #eeece6; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 2px; }
.brand__mark { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; }
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__text { display: grid; line-height: 1.55; }
.brand__text strong { color: var(--green-950); font-size: 14px; font-weight: 700; }
.brand__text span { color: #7a817d; font-size: 12px; }
.sidebar__caption { margin: 48px 10px 13px; color: #9da39e; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.side-nav { display: grid; gap: 5px; }
.nav-link { position: relative; min-height: 48px; padding: 0 13px; border: 0; border-radius: 11px; background: transparent; color: #697570; display: flex; align-items: center; gap: 12px; text-align: right; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover { color: var(--green-800); background: var(--green-50); }
.nav-link.is-active { background: var(--green-50); color: var(--green-800); font-weight: 700; }
.nav-link.is-active::before { content: ''; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 4px; background: var(--green-700); }
.sidebar__spacer { flex: 1; min-height: 34px; }
.sidebar-note { position: relative; overflow: hidden; padding: 20px 17px 17px; background: #f4f5ee; border-radius: 13px; color: var(--green-950); }
.sidebar-note::after { content: ''; position: absolute; left: -19px; bottom: -32px; width: 90px; height: 90px; border: 1px solid rgba(38,119,107,.13); border-radius: 50%; box-shadow: 0 0 0 9px rgba(38,119,107,.035), 0 0 0 19px rgba(38,119,107,.025); }
.sidebar-note__ornament { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-bottom: 6px; color: var(--gold-700); }
.sidebar-note__ornament svg { width: 23px; height: 23px; }
.sidebar-note p { margin: 0 0 12px; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.55; }
.sidebar-note__place { display: flex; align-items: center; gap: 6px; color: #6b7b74; font-size: 10px; }
.sidebar-note__place svg { width: 13px; height: 13px; }
.sidebar__footer { display: flex; align-items: center; gap: 8px; margin: 18px 8px 0; color: #8b9490; font-size: 10px; }
.status-dot, .pending-badge i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px rgba(189,149,90,.12); }

.main-content { min-width: 0; }
.topbar { height: 77px; padding: 0 clamp(24px, 4.4vw, 64px); display: flex; align-items: center; justify-content: flex-start; gap: 19px; border-bottom: 1px solid rgba(221,215,199,.53); }
.topbar__location { display: inline-flex; align-items: center; gap: 6px; color: #727d77; font-size: 12px; }
.topbar__location svg { width: 15px; height: 15px; color: var(--green-700); }
.topbar__date { margin-inline-start: auto; min-height: 33px; padding: 4px 12px; display: flex; align-items: center; border: 1px solid #e8e5dc; border-radius: 20px; color: #6e7973; background: rgba(255,254,250,.64); font-size: 11px; }
.mobile-brand { display: none; align-items: center; gap: 8px; color: var(--green-950); font-size: 12px; font-weight: 700; }
.mobile-brand img { display: block; }
.page-wrap { width: min(1120px, 100%); padding: 25px clamp(24px, 4.4vw, 64px) 27px; margin-inline: auto; }
.view { animation: appear .24s ease both; }
.view[hidden] { display: none !important; }
@keyframes appear { from { opacity: .72; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-intro { min-height: 68px; margin-bottom: 19px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.page-intro h1 { margin: 2px 0 0; color: var(--green-950); font-family: var(--font-display); font-size: clamp(24px, 2.45vw, 31px); font-weight: 700; line-height: 1.35; }
.page-intro > p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold-700); font-size: 10px; font-weight: 700; }
.eyebrow__line { width: 21px; height: 1px; background: var(--gold-500); }
.hero-panel { position: relative; isolation: isolate; overflow: hidden; min-height: 278px; padding: clamp(27px, 4.4vw, 46px); display: flex; align-items: center; border-radius: 16px 16px 16px 5px; background: linear-gradient(111deg, #143e38 0%, #1c5449 54%, #246356 100%); color: var(--white); box-shadow: 0 15px 32px rgba(18,63,57,.12); }
.hero-panel::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .15; background-image: radial-gradient(circle at 1px 1px, rgba(240,234,213,.5) 1px, transparent 1.4px); background-size: 21px 21px; mask-image: linear-gradient(270deg, transparent 14%, #000 100%); }
.hero-panel::after { content: ''; position: absolute; z-index: -1; width: 252px; height: 252px; inset-inline-end: 14%; top: -145px; border: 1px solid rgba(237,227,199,.13); border-radius: 50%; box-shadow: 0 0 0 17px rgba(237,227,199,.025), 0 0 0 34px rgba(237,227,199,.025), 0 0 0 51px rgba(237,227,199,.025); }
.hero-panel__content { max-width: 620px; position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #d8d8bd; font-size: 11px; }
.hero-kicker svg { width: 16px; height: 16px; color: #d8b77d; }
.hero-panel h2 { margin: 8px 0 6px; color: var(--white); font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; line-height: 1.27; letter-spacing: -.015em; }
.hero-panel h2 span { color: #dfc28e; }
.hero-panel__content > p { max-width: 470px; margin: 0; color: #d0ddd5; font-size: 12px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 16px; height: 16px; }
.button--sand { background: #f3ebd8; color: var(--green-950); box-shadow: 0 3px 10px rgba(15,35,30,.1); }
.button--sand:hover { background: #fff7e5; }
.button--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #f8f7f0; }
.button--ghost:hover { background: rgba(255,255,255,.14); }
.button--outline { background: transparent; border-color: #dddcd3; color: var(--green-800); }
.button--outline:hover { border-color: var(--green-700); background: var(--green-50); }
.button--green { background: var(--green-800); color: #fffefa; }
.button--green:hover { background: var(--green-950); }
.hero-seal { width: 155px; height: 155px; margin-inline-start: auto; margin-inline-end: 7%; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(240,234,213,.25); border-radius: 50%; outline: 1px solid rgba(240,234,213,.1); outline-offset: 8px; background: rgba(6,40,34,.2); transform: translateY(-6px); }
.hero-seal img { width: 91px; height: 91px; opacity: .91; }
.hero-caption { position: absolute; bottom: 19px; inset-inline-start: 24px; display: flex; align-items: center; gap: 8px; color: rgba(231,235,220,.65); font-size: 9px; }
.hero-caption__rule { width: 20px; height: 1px; background: #c5ab77; }
.notice-strip { min-height: 65px; margin-top: 15px; padding: 11px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #eadfca; border-radius: 10px; background: #fbf7ee; }
.notice-strip__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--gold-100); color: var(--gold-700); }
.notice-strip__icon svg { width: 17px; height: 17px; }
.notice-strip > div { display: grid; line-height: 1.7; }
.notice-strip strong { color: #725b39; font-size: 11px; }
.notice-strip > div span { color: #8a8378; font-size: 10px; }
.text-link { margin-inline-start: auto; padding: 7px 0 7px 4px; display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; color: #87683e; font-size: 10px; font-weight: 700; cursor: pointer; }
.text-link svg { width: 14px; height: 14px; }
.prayer-times-card { margin-top: 15px; }
.prayer-times-card__actions { display: flex; align-items: center; gap: 9px; }
.prayer-times-date { color: #75817b; font-size: 10px; white-space: nowrap; }
.prayer-times-status { min-height: 20px; margin: 7px 0 11px; color: #87918c; font-size: 10px; }
.prayer-times-status[data-state="error"] { color: #9b5c4c; }
.prayer-times-status[data-state="stale"] { color: #8b7045; }
.prayer-times-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.prayer-time-item { min-width: 0; min-height: 62px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #eeede7; border-radius: 9px; background: #fffefa; }
.prayer-time-item__name { color: #65716b; font-size: 11px; }
.prayer-time-item__time { color: var(--green-800); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prayer-times-footer { margin-top: 13px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; border-top: 1px solid #f0efe9; color: #89928d; font-size: 9px; }
.prayer-times-footer a { color: var(--green-800); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.content-columns { margin-top: 15px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; align-items: stretch; }
.surface { min-width: 0; padding: 20px 21px; border: 1px solid #eceae4; border-radius: 11px; background: var(--white); box-shadow: var(--shadow); }
.surface-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.surface-heading h2, .about-card h2 { margin: 1px 0 0; color: var(--green-950); font-family: var(--font-display); font-size: 20px; line-height: 1.5; }
.section-label { color: #8e7957; font-size: 10px; font-weight: 700; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ecebe6; border-radius: 50%; color: var(--green-800); background: var(--white); cursor: pointer; transition: background .17s, transform .17s; }
.icon-button:hover { background: var(--green-50); transform: translateX(-2px); }
.icon-button svg { width: 16px; height: 16px; }
.muted-copy { margin: 6px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.prayer-list { border-top: 1px solid #eeede8; }
.prayer-row { min-height: 40px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; border-bottom: 1px solid #f0efe9; }
.prayer-row:last-child { border-bottom: 0; }
.prayer-name { display: inline-flex; align-items: center; gap: 9px; color: #45514d; font-size: 11px; font-weight: 600; }
.prayer-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #9b835d; background: #f6f2e8; }
.prayer-icon svg { width: 13px; height: 13px; }
.prayer-time { min-width: 36px; color: #a4a8a4; direction: ltr; text-align: center; font-size: 15px; font-weight: 500; }
.surface-footnote { margin-top: 8px; display: flex; align-items: center; gap: 7px; color: #909793; font-size: 9px; }
.surface-footnote svg { width: 13px; height: 13px; color: #b09566; }
.empty-mini { min-height: 118px; margin-top: 12px; display: flex; align-items: center; gap: 13px; }
.empty-mini__mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #e5ece6; border-radius: 13px; background: #f2f6f1; color: var(--green-700); }
.empty-mini__mark svg { width: 20px; height: 20px; }
.empty-mini > div { min-width: 0; }
.empty-mini strong { display: block; color: #495550; font-size: 11px; }
.empty-mini p { margin: 4px 0 0; color: #89928d; font-size: 10px; line-height: 1.8; }
.wide-link { width: 100%; min-height: 38px; padding: 7px 0 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid #efeee9; background: transparent; color: var(--green-800); font-size: 10px; font-weight: 700; cursor: pointer; }
.wide-link svg { width: 15px; height: 15px; }
.location-band { margin-top: 15px; min-height: 77px; padding: 13px 17px; display: flex; align-items: center; gap: 13px; border: 1px solid #e4e7df; border-radius: 10px; background: #f0f3ec; }
.location-band__mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: #e2ebe2; }
.location-band__mark svg { width: 18px; height: 18px; }
.location-band__copy { display: grid; line-height: 1.65; }
.location-band__copy span { color: #85918a; font-size: 9px; }
.location-band__copy strong { color: var(--green-950); font-size: 12px; }
.location-band .button { min-height: 36px; margin-inline-start: auto; font-size: 10px; }
.location-band .button svg { width: 14px; height: 14px; }

.page-intro--inner { min-height: 72px; margin-bottom: 19px; }
.section-banner { position: relative; overflow: hidden; min-height: 205px; padding: 27px clamp(22px, 4vw, 39px); display: flex; align-items: center; gap: 21px; border-radius: 14px 14px 14px 4px; }
.section-banner--green { color: #f8f8f0; background: linear-gradient(112deg, #143f39, #205c50); }
.section-banner--sand { color: var(--green-950); background: linear-gradient(112deg, #ece4d2, #f5efe1); }
.section-banner__symbol { width: 53px; height: 53px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(235,229,206,.26); border-radius: 15px; color: #ddc697; background: rgba(255,255,255,.07); }
.section-banner__symbol svg { width: 24px; height: 24px; }
.section-banner__symbol img { width: 36px; height: 36px; object-fit: contain; }
.section-banner__symbol--large { width: 67px; height: 67px; }
.section-banner__symbol--large img { width: 52px; height: 52px; }
.section-banner--sand .section-banner__symbol { border-color: rgba(38,119,107,.14); background: rgba(255,255,255,.4); color: var(--green-800); }
.section-banner > div:nth-child(2) { position: relative; z-index: 1; }
.section-banner h2 { margin: 5px 0 3px; font-family: var(--font-display); font-size: clamp(25px, 3.4vw, 37px); font-weight: 700; line-height: 1.3; }
.section-banner p { max-width: 440px; margin: 0; color: rgba(244,245,236,.78); font-size: 11px; }
.section-banner--sand p { color: #72796f; }
.section-label--light { color: #d5c79d; }
.section-banner__arch { position: absolute; width: 180px; height: 215px; inset-inline-start: 15%; top: 58px; border: 1px solid rgba(240,234,213,.15); border-radius: 100px 100px 0 0; box-shadow: 0 0 0 10px rgba(240,234,213,.025), 0 0 0 21px rgba(240,234,213,.02); }
.section-banner--sand .section-banner__arch { border-color: rgba(38,119,107,.12); box-shadow: 0 0 0 10px rgba(38,119,107,.025), 0 0 0 21px rgba(38,119,107,.02); }
.prayer-detail { margin-top: 18px; padding: 23px clamp(18px, 3vw, 31px); }
.surface-heading--detail { align-items: center; }
.surface-heading--detail h2 { font-size: 22px; }
.pending-badge { min-height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #eee3cf; border-radius: 18px; background: #fcf8ef; color: #896e42; font-size: 9px; white-space: nowrap; }
.pending-badge i { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(189,149,90,.11); }
.prayer-detail > .muted-copy { margin: 10px 0 17px; font-size: 11px; }
.prayer-table { border-top: 1px solid var(--line); }
.prayer-row--large { min-height: 57px; grid-template-columns: minmax(130px,1fr) 1fr auto; }
.prayer-row--large .prayer-name { font-size: 12px; }
.prayer-row--large .prayer-icon { width: 29px; height: 29px; }
.prayer-row--large .prayer-icon svg { width: 15px; height: 15px; }
.time-pending { color: #9ba19c; font-size: 10px; }
.prayer-time--large { min-width: 44px; font-size: 18px; }
.surface-footnote--roomy { margin-top: 18px; padding-top: 13px; border-top: 1px solid #f0efe9; font-size: 10px; }
.announcements-empty { margin-top: 18px; min-height: 263px; padding: 29px 23px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-illustration { position: relative; width: 55px; height: 55px; margin-bottom: 11px; display: grid; place-items: center; border-radius: 50%; color: var(--green-700); background: #eef4ef; }
.empty-illustration svg { width: 23px; height: 23px; }
.empty-illustration i { position: absolute; width: 6px; height: 6px; inset-inline-start: 4px; top: 2px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px #f5eedf; }
.announcements-empty h2 { margin: 3px 0 0; color: var(--green-950); font-family: var(--font-display); font-size: 22px; }
.announcements-empty p { max-width: 390px; margin: 5px 0 16px; color: var(--muted); font-size: 11px; }
.announcements-empty .button { min-height: 37px; font-size: 10px; }
.about-layout { margin-top: 18px; display: grid; grid-template-columns: 1.07fr .93fr; gap: 15px; }
.about-card { padding: 23px; }
.about-card h2 { margin: 2px 0 12px; font-size: 20px; }
.address-row { padding: 13px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid #efeee8; border-bottom: 1px solid #efeee8; }
.address-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--green-800); background: var(--green-50); }
.address-icon svg { width: 18px; height: 18px; }
.address-row > div { display: grid; line-height: 1.75; }
.address-row strong { color: #3e4b46; font-size: 11px; }
.address-row span:not(.address-icon) { color: #919a94; font-size: 9px; }
.about-caveat { margin: 12px 0 14px; }
.map-link { min-height: 38px; font-size: 10px; }
.map-link svg { width: 16px; height: 16px; }
.about-card--soft { background: #f5f6f0; }
.about-card--soft > p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.about-card--soft .button { min-height: 38px; font-size: 10px; }
.contact-note { margin-top: 17px; padding-top: 12px; display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid #e7eae2; color: #818c84; font-size: 9px; line-height: 1.8; }
.contact-note svg { width: 14px; height: 14px; margin-top: 1px; color: #a28655; }
.page-footer { min-height: 49px; margin-top: 20px; display: flex; align-items: center; gap: 7px; color: #969d98; font-size: 9px; }
.footer-divider { color: #c4b99f; }
.footer-note { margin-inline-start: auto; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 20; right: 50%; bottom: 23px; max-width: calc(100vw - 30px); padding: 9px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: #153f39; color: white; box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (min-width: 1500px) {
  .page-wrap { padding-inline: 72px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 228px minmax(0, 1fr); }
  .sidebar { padding-inline: 17px; }
  .page-wrap { padding-inline: 27px; }
  .hero-seal { width: 124px; height: 124px; margin-inline-end: 3%; }
  .hero-seal img { width: 76px; height: 76px; }
}
@media (max-width: 820px) {
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; min-height: auto; }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 8; height: 61px; padding-inline: 17px; background: rgba(246,244,237,.92); border-bottom-color: rgba(221,215,199,.55); backdrop-filter: blur(14px); }
  .mobile-brand { display: inline-flex; }
  .mobile-brand img { width: 35px; height: 35px; }
  .topbar__location { display: none; }
  .topbar__date { min-height: 29px; padding-inline: 9px; font-size: 9px; }
  .page-wrap { padding: 19px 17px 14px; }
  .page-intro { min-height: 60px; margin-bottom: 14px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro > p { max-width: 150px; font-size: 10px; text-align: left; }
  .hero-panel { min-height: 275px; padding: 27px 23px 42px; }
  .hero-panel__content { max-width: 73%; }
  .hero-panel h2 { font-size: clamp(34px, 7.4vw, 44px); }
  .hero-panel__content > p { font-size: 10px; }
  .hero-seal { position: absolute; width: 80px; height: 80px; inset-inline-start: 22px; top: 23px; margin: 0; outline-offset: 5px; }
  .hero-seal img { width: 50px; height: 50px; }
  .hero-panel::after { inset-inline-start: -80px; inset-inline-end: auto; top: -110px; }
  .hero-caption { bottom: 14px; inset-inline-start: 19px; font-size: 8px; }
  .notice-strip { margin-top: 12px; padding: 9px 11px; gap: 9px; }
  .notice-strip > div span { max-width: 215px; font-size: 9px; }
  .notice-strip strong { font-size: 10px; }
  .notice-strip__icon { width: 30px; height: 30px; }
  .text-link { font-size: 9px; }
  .prayer-times-card { margin-top: 12px; }
  .prayer-times-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .prayer-time-item { min-height: 56px; padding: 9px 10px; }
  .prayer-time-item__name { font-size: 10px; }
  .prayer-time-item__time { font-size: 14px; }
  .prayer-times-footer { align-items: flex-start; flex-direction: column; }
  .content-columns { grid-template-columns: 1fr; gap: 11px; margin-top: 12px; }
  .surface { padding: 17px; }
  .schedule-preview .muted-copy { margin-bottom: 9px; }
  .prayer-row { min-height: 37px; }
  .empty-mini { min-height: 78px; }
  .location-band { margin-top: 12px; min-height: 70px; padding: 10px; }
  .location-band__mark { width: 34px; height: 34px; }
  .location-band .button { min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .page-footer { min-height: 35px; margin-top: 12px; font-size: 8px; }
  .page-intro--inner { min-height: 66px; margin-bottom: 14px; }
  .section-banner { min-height: 180px; padding: 21px 18px; gap: 14px; }
  .section-banner__symbol { width: 43px; height: 43px; border-radius: 12px; }
  .section-banner__symbol svg { width: 21px; height: 21px; }
  .section-banner__symbol--large { width: 53px; height: 53px; }
  .section-banner__symbol--large img { width: 42px; height: 42px; }
  .section-banner h2 { font-size: 30px; }
  .section-banner p { max-width: 270px; font-size: 10px; }
  .section-banner__arch { inset-inline-start: 8%; }
  .prayer-detail, .announcements-empty, .about-layout { margin-top: 12px; }
  .about-layout { grid-template-columns: 1fr; gap: 11px; }
  .mobile-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; min-height: calc(62px + env(safe-area-inset-bottom)); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #e5e2d8; background: rgba(255,254,250,.96); backdrop-filter: blur(14px); }
  .mobile-nav__item { min-width: 0; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 9px; background: transparent; color: #89928d; cursor: pointer; }
  .mobile-nav__item svg { width: 19px; height: 19px; }
  .mobile-nav__item span { font-size: 9px; }
  .mobile-nav__item.is-active { color: var(--green-800); font-weight: 700; }
  .mobile-nav__item.is-active svg { stroke-width: 2; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 12px; }
  .mobile-brand { font-size: 10px; gap: 6px; }
  .mobile-brand img { width: 32px; height: 32px; }
  .topbar__date { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .page-wrap { padding-inline: 12px; }
  .page-intro h1 { font-size: 23px; }
  .page-intro > p { max-width: 120px; }
  .hero-panel { min-height: 286px; padding: 25px 18px 43px; }
  .hero-panel__content { max-width: 100%; }
  .hero-panel__content > p { max-width: 265px; padding-inline-end: 46px; }
  .hero-panel h2 { font-size: 35px; }
  .hero-kicker { font-size: 9px; }
  .hero-seal { width: 57px; height: 57px; inset-inline-start: 17px; top: 18px; outline-offset: 4px; }
  .hero-seal img { width: 38px; height: 38px; }
  .hero-actions { gap: 7px; margin-top: 16px; }
  .button { min-height: 39px; padding-inline: 11px; font-size: 9px; }
  .hero-actions .button svg { width: 14px; height: 14px; }
  .notice-strip { align-items: flex-start; }
  .notice-strip__icon { margin-top: 4px; flex: 0 0 auto; }
  .notice-strip > div { padding-top: 1px; }
  .notice-strip > div span { max-width: 200px; line-height: 1.65; }
  .text-link { padding-top: 5px; }
  .location-band { gap: 8px; }
  .location-band__copy strong { font-size: 10px; }
  .location-band .button { gap: 4px; }
  .section-banner { min-height: 165px; padding: 19px 14px; gap: 10px; }
  .section-banner__symbol { width: 38px; height: 38px; }
  .section-banner h2 { font-size: 27px; }
  .section-banner p { max-width: 230px; font-size: 9px; }
  .section-label, .section-label--light { font-size: 9px; }
  .prayer-detail { padding: 17px 13px; }
  .surface-heading--detail { align-items: flex-start; }
  .surface-heading--detail h2 { font-size: 19px; }
  .pending-badge { min-height: 27px; padding-inline: 8px; gap: 6px; font-size: 8px; }
  .prayer-row--large { min-height: 52px; grid-template-columns: minmax(74px,.7fr) 1fr auto; gap: 5px; }
  .prayer-row--large .prayer-name { gap: 6px; font-size: 10px; }
  .prayer-row--large .prayer-icon { width: 25px; height: 25px; }
  .time-pending { font-size: 8px; }
  .prayer-time--large { min-width: 29px; font-size: 15px; }
  .about-card { padding: 18px 15px; }
  .about-card h2 { font-size: 19px; }
  .page-footer { gap: 4px; }
  .footer-note { max-width: 75px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* مجتمع المسجد والعبادات */
.topbar__dates { margin-inline-start: auto; display: flex; align-items: center; gap: 7px; }
.topbar__dates .topbar__date { margin-inline-start: 0; }
.topbar__hijri { color: #95856a; font-size: 10px; white-space: nowrap; }
.notice-strip--whatsapp { border-color: #dce9df; background: #f1f6f0; }
.notice-strip--whatsapp .notice-strip__icon { background: #e2eee3; color: #267b55; }
.notice-strip--whatsapp strong { color: #315b45; }
.notice-strip--whatsapp > div span { color: #77877b; }
.notice-strip--whatsapp .text-link { color: #28724f; }
.home-feature-grid { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.home-feature-card { min-height: 185px; display: flex; flex-direction: column; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #e6ece5; border-radius: 11px; background: #f2f6f1; color: var(--green-700); }
.feature-icon svg { width: 19px; height: 19px; }
.feature-icon--whatsapp { color: #287b53; border-color: #dfeae0; background: #edf5ed; }
.feature-description { min-height: 42px; margin: 10px 0 11px; color: #7d8882; font-size: 10px; line-height: 1.9; }
.home-feature-card .wide-link { margin-top: auto; }
.community-card { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; padding: 23px; border-color: #e3ebe3; background: #fffefa; }
.community-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #edf5ed; color: #287b53; }
.community-card__icon svg { width: 25px; height: 25px; }
.community-card__copy h2 { margin: 2px 0 4px; color: var(--green-950); font-family: var(--font-display); font-size: 20px; line-height: 1.5; }
.community-card__copy p { max-width: 630px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.9; }
.community-card .button { white-space: nowrap; }
.notice-strip--subtle { margin-top: 13px; border-color: #e8e7df; background: #f7f6f1; }
.notice-strip--subtle .notice-strip__icon { color: #81765f; background: #eeeadd; }
.notice-strip--subtle strong { color: #555d58; }
.notice-strip--subtle > div span { color: #858d87; }
.devotional-grid { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.devotional-panel, .tasbeeh-panel { min-width: 0; padding: 20px; }
.devotional-panel .surface-heading, .tasbeeh-panel .surface-heading { margin-bottom: 11px; }
.devotional-panel .surface-heading h2, .tasbeeh-panel .surface-heading h2 { font-size: 19px; }
.devotional-links { border-top: 1px solid #efeee8; }
.devotional-links a { min-height: 42px; padding: 8px 2px; display: flex; align-items: center; justify-content: space-between; gap: 11px; border-bottom: 1px solid #f0efe9; color: #45534d; font-size: 10px; font-weight: 600; transition: color .16s ease, padding .16s ease; }
.devotional-links a:hover { padding-inline: 6px; color: var(--green-700); }
.devotional-links a:last-child { border-bottom: 0; }
.devotional-links a svg { width: 14px; height: 14px; color: #a58b5d; }
.source-note { margin: 11px 0 0; color: #959b96; font-size: 9px; line-height: 1.8; }
.tasbeeh-panel { border-color: #e5ebe3; background: linear-gradient(155deg, #fffefa, #f6f8f3); }
.tasbeeh-label { display: block; margin: 4px 0 5px; color: #78837c; font-size: 9px; }
.tasbeeh-select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #e6e8df; border-radius: 7px; background: #fffefa; color: var(--green-950); font: inherit; font-size: 10px; }
.tasbeeh-select:focus-visible { outline: 3px solid rgba(189,149,90,.55); outline-offset: 2px; }
.tasbeeh-counter { width: 112px; height: 112px; margin: 15px auto 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dce7dd; border-radius: 50%; background: radial-gradient(circle, #fffefa 52%, #f0f5ef 53%); box-shadow: 0 0 0 7px #f7f9f4, 0 0 0 8px #e6ede5; color: var(--green-800); }
.tasbeeh-counter span { font-size: 30px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.tasbeeh-counter small { color: #88938c; font-size: 9px; }
.tasbeeh-actions { display: flex; justify-content: center; gap: 8px; }
.tasbeeh-actions .button { min-height: 36px; font-size: 10px; }
.tasbeeh-actions .button svg { width: 15px; height: 15px; }
.tasbeeh-panel .source-note { text-align: center; }
.devotional-panel--links .devotional-links a { min-height: 43px; }
.worship-banner .section-banner__symbol { border-color: rgba(235,229,206,.24); background: rgba(255,255,255,.08); color: #e0c990; }
.announcements-banner .section-banner__symbol { color: #287b53; }
.announcements-banner .section-banner__symbol svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .topbar__dates { gap: 5px; }
  .topbar__hijri { font-size: 8px; }
  .home-feature-grid, .devotional-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 12px; }
  .home-feature-card { min-height: 160px; }
  .community-card { margin-top: 12px; grid-template-columns: auto minmax(0,1fr); gap: 11px; padding: 16px; }
  .community-card .button { grid-column: 1 / -1; justify-self: stretch; }
  .community-card__copy h2 { font-size: 18px; }
  .devotional-panel, .tasbeeh-panel { padding: 17px; }
  .section-banner .section-banner__symbol { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .topbar__dates { gap: 4px; }
  .topbar__hijri { max-width: 94px; overflow: hidden; text-overflow: ellipsis; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { min-height: 39px; }
  .notice-strip--whatsapp { align-items: center; }
  .notice-strip--whatsapp > div span { max-width: 175px; }
  .notice-strip--whatsapp .text-link { max-width: 82px; gap: 2px; font-size: 8px; }
  .community-card { grid-template-columns: auto minmax(0,1fr); }
  .community-card__icon { width: 42px; height: 42px; border-radius: 12px; }
  .community-card__icon svg { width: 21px; height: 21px; }
  .community-card__copy .section-label { font-size: 8px; }
  .community-card__copy h2 { font-size: 17px; }
  .community-card__copy p { grid-column: 1/-1; font-size: 9px; }
  .tasbeeh-counter { width: 105px; height: 105px; }
}

.dhikr-shortcuts { margin-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dhikr-shortcuts > span { width: 100%; color: #859087; font-size: 9px; }
.dhikr-shortcuts button { min-height: 27px; padding: 2px 9px; border: 1px solid #e6ebe2; border-radius: 15px; background: #fffefa; color: #526458; font: inherit; font-size: 8px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.dhikr-shortcuts button:hover { border-color: #c9d9cc; background: #edf5ed; color: var(--green-800); }
.dhikr-shortcuts button:focus-visible { outline: 3px solid rgba(189,149,90,.55); outline-offset: 2px; }

.rakah-panel { margin-top: 14px; padding: 18px 22px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; border-color: #e3eae2; background: linear-gradient(100deg, #f7f8f2, #fffefa); }
.rakah-panel__copy h2 { margin: 2px 0 3px; color: var(--green-950); font-family: var(--font-display); font-size: 20px; }
.rakah-panel__copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.rakah-counter { width: 78px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dce7dd; border-radius: 50%; background: #fffefa; box-shadow: 0 0 0 5px #f1f5ef; color: var(--green-800); }
.rakah-counter span { font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rakah-counter small { color: #88938c; font-size: 9px; }
.rakah-actions { display: flex; gap: 7px; }
.rakah-actions .button { min-height: 36px; font-size: 9px; white-space: nowrap; }
.rakah-actions .button svg { width: 14px; height: 14px; }
@media (max-width: 820px) {
  .rakah-panel { grid-template-columns: 1fr auto; gap: 13px; padding: 15px; }
  .rakah-panel__copy { grid-column: 1 / -1; }
  .rakah-actions { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 520px) {
  .rakah-panel { gap: 10px; }
  .rakah-actions .button { min-height: 34px; padding-inline: 10px; }
}


/* تدفق إعلانات المسجد من مجموعة الأعمال */
.announcement-feed { margin-top: 18px; }
.feed-status { min-height: 39px; margin: 12px 0 0; padding: 9px 1px; color: #87918b; font-size: 10px; }
.feed-status[data-state="ready"] { color: #4c6f5a; }
.feed-status[data-state="empty"] { color: #858d87; }
.feed-status[data-state="error"] { color: #8a684c; }
.announcement-list { display: grid; gap: 0; }
.announcement-item { padding: 15px 2px 17px; display: grid; gap: 7px; border-top: 1px solid #efeee8; }
.announcement-item__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-item__heading strong { color: var(--green-800); font-size: 10px; }
.announcement-item__date { color: #9a9180; font-size: 9px; direction: ltr; text-align: left; }
.announcement-item__body { margin: 0; color: #3e4944; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
#home-announcement-preview { display: -webkit-box; overflow: hidden; line-clamp: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
#refresh-announcements:disabled { opacity: .55; cursor: wait; }
.community-card--compact { margin-top: 14px; }
@media (max-width: 820px) {
  .community-card { grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px; padding: 17px; }
  .community-card .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) {
  .announcement-feed { margin-top: 12px; }
  .announcement-feed .surface-heading h2 { font-size: 18px; }
  .announcement-item { padding-block: 13px; }
  .announcement-item__body { font-size: 11px; }
  .community-card { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .community-card__icon { width: 38px; height: 38px; border-radius: 11px; }
  .community-card__icon svg { width: 20px; height: 20px; }
  .community-card .button { grid-column: 1 / -1; width: 100%; }
  .community-card__copy h2 { font-size: 17px; }
}


/* الإعلانات اليدوية والخصوصية */
.announcement-item__title { margin: 0; color: var(--green-950); font-family: var(--font-display); font-size: 17px; line-height: 1.6; }
.announcement-item__image { width: min(100%, 720px); max-height: 420px; margin: 2px auto 3px; border: 1px solid #ecebe4; border-radius: 10px; background: #f7f6f1; object-fit: contain; }
.privacy-note { margin: 12px 0; color: #8a938d; font-size: 9px; line-height: 1.8; }
.footer-admin { margin-inline-start: 10px; color: #6f806f; font-size: 9px; font-weight: 700; white-space: nowrap; }
.footer-admin:hover { color: var(--green-800); text-decoration: underline; }
@media (max-width: 520px) {
  .announcement-item__title { font-size: 15px; }
  .privacy-note { font-size: 8px; }
  .footer-admin { margin-inline-start: 4px; font-size: 8px; }
}


/* فهرس مكتبة العبادات */
.worship-index { margin: 15px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.worship-index a { min-height: 34px; padding: 6px 11px; display: inline-flex; align-items: center; border: 1px solid #e1e8df; border-radius: 999px; background: #fffefa; color: #53665b; font-size: 10px; font-weight: 600; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.worship-index a:hover { border-color: #c9d9cc; background: #edf5ed; color: var(--green-800); }
.worship-index a:focus-visible { outline: 3px solid rgba(189,149,90,.55); outline-offset: 2px; }
.devotional-grid--worship > section { scroll-margin-block-start: 16px; }
.devotional-intro { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.devotional-links--months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.worship-source-note { margin: 14px 2px 0; text-align: center; color: #858d87; }
@media (max-width: 520px) {
  .worship-index { gap: 6px; }
  .worship-index a { min-height: 32px; padding-inline: 9px; font-size: 9px; }
  .devotional-links--months { column-gap: 10px; }
}


/* تثبيت تطبيق المسجد وإعدادات الإشعارات */
.app-onboarding-grid { margin: 15px 0 0; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 12px; align-items: stretch; }
.app-install-card, .push-settings-card { min-width: 0; padding: 17px; border-color: #e4e9df; background: linear-gradient(145deg,#fffefa,#f7f8f2); }
.app-install-card[hidden], #push-enable[hidden], #push-save[hidden], #push-disable[hidden] { display: none !important; }
.app-onboarding-heading { display: flex; align-items: center; gap: 10px; }
.app-onboarding-heading .feature-icon { width: 36px; height: 36px; border-radius: 10px; }
.app-onboarding-heading h2 { margin: 1px 0 0; color: var(--green-950); font-family: var(--font-display); font-size: 17px; line-height: 1.5; }
.app-onboarding-card .muted-copy, .app-install-card > .muted-copy, .push-settings-card > .muted-copy { margin: 9px 0 11px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.app-onboarding-actions, .push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.app-onboarding-actions .button, .push-actions .button { min-height: 35px; font-size: 9px; }
.pwa-install-help { margin: 9px 0 0; padding: 8px 10px; border-radius: 7px; background: #f3efe3; color: #6e634c; font-size: 9px; line-height: 1.8; }
.push-options { margin: 4px 0 11px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; border: 0; }
.push-options label { display: inline-flex; align-items: center; gap: 6px; color: #53635a; font-size: 9px; cursor: pointer; }
.push-options input { width: 15px; height: 15px; accent-color: var(--green-700); }
.push-options input:focus-visible, .app-onboarding-actions button:focus-visible, .push-actions button:focus-visible { outline: 3px solid rgba(189,149,90,.55); outline-offset: 2px; }
.push-status { min-height: 18px; margin: 8px 0 0; color: #6c7d70; font-size: 9px; line-height: 1.7; }
.push-status[data-state="error"] { color: #8b5d4c; }
.push-status[data-state="ready"] { color: #3e7555; }
.push-privacy-note { margin: 5px 0 0; color: #929b93; font-size: 8px; line-height: 1.7; }
@media (max-width: 820px) {
  .app-onboarding-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .app-install-card, .push-settings-card { padding: 15px; }
}
@media (max-width: 520px) {
  .app-onboarding-heading h2 { font-size: 16px; }
  .app-onboarding-actions .button, .push-actions .button { min-height: 36px; }
  .push-options { gap: 8px 10px; }
  .push-options label { font-size: 8px; }
}
