/* ================================================================
   نُور — نظام التصميم
   ================================================================ */
:root {
  --green-900: #072a1f;
  --green-800: #0b3d2e;
  --green-700: #14532d;
  --green-600: #1c6b45;
  --green-400: #3f9e74;
  --gold-600:  #b8912f;
  --gold-500:  #c9a227;
  --gold-400:  #d9bd6a;
  --cream:     #f7f3e8;
  --paper:     #fffdf6;
  --ink:       #1f2a24;
  --ink-soft:  #4b5850;
  --line:      #e3dcc7;
  --danger:    #b23b3b;

  --bg:        var(--cream);
  --surface:   var(--paper);
  --surface-2: #f1ecdd;
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --border:    var(--line);
  --brand:     var(--green-700);
  --brand-2:   var(--brand);
  --brand-ink: #ffffff;
  --accent:    var(--gold-600);
  --tab-active: var(--green-700);

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 10px 30px -12px rgba(7, 42, 31, .25);
  --shadow-sm:0 4px 14px -8px rgba(7, 42, 31, .3);
  --font-ui:  "Tajawal", system-ui, "Segoe UI", sans-serif;
  --font-quran:"Amiri Quran", "Amiri", serif;
  --font-mushaf:"KFGQPC HAFS Uthmanic Script", "Amiri Quran", "Amiri", serif; /* خط مصحف المدينة — لنص الآيات */
  --font-display:"Aref Ruqaa", "Amiri", serif;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0a1712;
    --surface:   #10241b;
    --surface-2: #142e22;
    --text:      #e9efe9;
    --text-soft: #a9b8ae;
    --border:    #1f3a2c;
    --brand:     #123f2c;
    --brand-2:   var(--gold-400);
    --accent:    var(--gold-400);
    --tab-active: #55b985;
    --shadow:    0 12px 34px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg:        #0a1712;
  --surface:   #10241b;
  --surface-2: #142e22;
  --text:      #e9efe9;
  --text-soft: #a9b8ae;
  --border:    #1f3a2c;
  --brand:     #123f2c;
  --brand-2:   var(--gold-400);
  --accent:    var(--gold-400);
  --tab-active: #55b985;
  --shadow:    0 12px 34px -14px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* خلفية زخرفية — نجوم ثمانية (خاتم) */
.bg-pattern {
  position: fixed; inset: 0; z-index: -1; opacity: .1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23b8912f' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z' transform='translate(50 50)'/%3E%3Cpath d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z' transform='translate(0 0)'/%3E%3Cpath d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z' transform='translate(100 0)'/%3E%3Cpath d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z' transform='translate(0 100)'/%3E%3Cpath d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z' transform='translate(100 100)'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="dark"] .bg-pattern { opacity: .16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-pattern { opacity: .16; }
}

/* ---------- الترويسة ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(14px, 4vw, 28px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; display: block; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .5px; }
.brand-text small {
  color: var(--brand-2); font-family: var(--font-quran, serif);
  font-size: .82rem; margin-top: 2px; white-space: nowrap;
}
:root[data-theme="dark"] .brand-text small { color: var(--gold-400); }

.top-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.top-nav a {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--text-soft); transition: .2s;
}
.top-nav a:hover { color: var(--text); background: var(--surface-2); }
.top-nav a.active { color: var(--brand-ink); background: var(--brand); }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
}
.icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
:root[data-theme="light"] .icon-btn .i-sun { display: block; }
:root[data-theme="light"] .icon-btn .i-moon { display: none; }

/* ---------- الحاوية ---------- */
.view {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) clamp(14px, 4vw, 28px) 90px;
  min-height: 72vh; /* يثبّت ارتفاع الحاوية أثناء تبديل المحتوى فيقلّ انزياح التخطيط (CLS) */
  animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 4px; }
.page-sub { color: var(--text-soft); margin: 0 0 24px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}
.card + .card { margin-top: 18px; }
.dash-row .card + .card, .dash-row > .card { margin-top: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; transition: .18s; background: var(--brand); color: var(--brand-ink);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.gold { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); color: #23200f; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn .bi { display: inline-flex; flex: none; }
.btn .bi svg { width: 17px; height: 17px; display: block; }

.field {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* حالة التركيز المرئية الموحّدة (وصولية — لوحة المفاتيح) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
.ayah:focus-visible,
.surah-chip:focus-visible,
.qsr-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.bottom-nav a:focus-visible { outline-offset: -3px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 160px; }
.row > div > small { display: block; margin-bottom: 6px; font-size: .78rem; }
.muted { color: var(--text-soft); }
.center { text-align: center; }

/* ---------- القبلة ---------- */
.compass-wrap { display: grid; place-items: center; gap: 20px; }
.compass {
  position: relative; width: min(78vw, 340px); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
  border: 2px solid var(--border);
  box-shadow: inset 0 0 40px -20px rgba(0,0,0,.35), var(--shadow);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.compass.aligned {
  border-color: var(--green-400);
  box-shadow: inset 0 0 40px -20px rgba(0,0,0,.35), var(--shadow), 0 0 0 6px color-mix(in srgb, var(--green-400) 30%, transparent);
}
.compass .ring {
  position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--text-soft) 45%, transparent);
}
.compass .ticks { position: absolute; inset: 0; }
.compass .tick-mark {
  position: absolute; top: 0; left: 50%; width: 2px; height: 50%;
  transform-origin: 50% 100%; margin-inline-start: -1px;
  background: linear-gradient(to top, color-mix(in srgb, var(--text-soft) 55%, transparent) 0 9px, transparent 9px);
}
.compass .dir {
  position: absolute; font-weight: 800; color: var(--text-soft); font-size: .8rem;
  left: 50%; transform: translateX(-50%);
}
.compass .n { top: 8px; color: var(--danger); }
.compass .s { bottom: 8px; }
.compass .e { top: 50%; right: 10px; left: auto; transform: translateY(-50%); }
.compass .w { top: 50%; left: 10px; transform: translateY(-50%); }

.needle {
  position: absolute; inset: 0; transition: transform .25s ease-out;
  display: grid; place-items: center;
}
.needle .arrow {
  width: 0; height: 0;
  border-inline: 16px solid transparent;
  border-bottom: 44%; border-bottom-style: solid; border-bottom-color: var(--green-600);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transform: translateY(-6%);
}
.compass.aligned .needle .arrow { border-bottom-color: var(--gold-600); }
.needle .kaaba {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  background: #111; border: 2px solid var(--gold-500);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.needle .kaaba .kaaba-band { position: absolute; inset-inline: 0; top: 54%; height: 24%; background: var(--gold-500); }
.qibla-readout { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.readout b { display: block; font-size: 1.6rem; font-family: var(--font-display); }
.readout span { color: var(--text-soft); font-size: .82rem; }

.status-line { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--text-soft); font-size: .88rem; }
.status-line.aligned-msg { color: var(--green-600); font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-soft); }
.dot.ok { background: var(--green-400); }
.dot.warn { background: var(--gold-500); }
.dot.err { background: var(--danger); }

.heading-live { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: .8rem; color: var(--text-soft); }
.heading-live b { color: var(--text); font-weight: 800; }
.acc-line { text-align: center; font-size: .8rem; font-weight: 700; margin: 4px 0 0; }
.acc-line.ok { color: var(--green-600); }
.acc-line.mid { color: var(--gold-600); }
.acc-line.low { color: var(--danger); }

/* ---------- القرآن ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .field { width: auto; flex: 1 1 200px; }

.surah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.surah-chip {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: .16s ease; text-align: start;
}
.surah-chip:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.surah-chip:hover .meta b { color: var(--brand-2); }
/* مدالية النجمة الثمانية — شارة ترقيم موحّدة تُستخدم في كل قوائم الموقع المرقّمة */
.medal {
  display: grid; place-items: center; flex: none;
  font-weight: 800; color: var(--green-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10L58 18L82 18L82 42L90 50L82 58L82 82L58 82L50 90L42 82L18 82L18 58L10 50L18 42L18 18L42 18Z' fill='%23d9bd6a'/%3E%3C/svg%3E");
  background-size: 100% 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.12));
}
.medal.sz-40 { width: 40px; height: 40px; font-size: .8rem; }
.medal.sz-30 { width: 28px; height: 28px; font-size: .68rem; }
.surah-chip .meta { line-height: 1.35; min-width: 0; }
.surah-chip .meta b {
  display: block; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--text); transition: color .16s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.surah-chip .meta small { display: flex; align-items: center; gap: 5px; color: var(--text-soft); font-size: .78rem; margin-top: 2px; }
.surah-chip .meta small .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.surah-chip .meta small .dot.meccan { background: var(--gold-600); }
.surah-chip .meta small .dot.medinan { background: var(--green-600); }

.continue-card {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); border-inline-start: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.continue-card .cc-ic {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-2); color: var(--brand-2);
}
.continue-card .cc-ic svg { width: 20px; height: 20px; }
.continue-card .cc-text { flex: 1; min-width: 0; }
.continue-card .cc-text b { display: block; font-size: .78rem; font-weight: 800; color: var(--accent); letter-spacing: .3px; }
.continue-card .cc-text span { color: var(--text); font-size: .95rem; }
.continue-card .btn { flex: none; }

/* أزرار تصفية/تبويب — نمط موحّد لجميع صفحات الموقع (فهرس القرآن، الأذكار، المِسبحة) */
.filter-tabs, .cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs button, .cat-tabs button {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: .85rem; transition: .16s;
}
.filter-tabs button.active, .cat-tabs button.active { background: var(--brand); color: var(--brand-ink); border-color: transparent; }

.reader-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.reader-head h1 { font-family: var(--font-display); font-size: 1.8rem; margin: 0; font-weight: 700; }
.basmala { text-align: center; font-family: var(--font-mushaf); font-size: 1.7rem; margin: 10px 0 22px; color: var(--brand-2); }

.ayah-flow { font-family: var(--font-mushaf); line-height: 2.6; text-align: justify; overflow-wrap: break-word; }
.ayah-flow.fs-sm { font-size: clamp(1.25rem, 3.6vw, 1.55rem); line-height: 2.4; }
.ayah-flow.fs-md { font-size: clamp(1.5rem, 4.4vw, 2rem); }
.ayah-flow.fs-lg { font-size: clamp(1.8rem, 5.4vw, 2.5rem); line-height: 2.8; }
.ayah-flow.fs-xl { font-size: clamp(2.15rem, 6.6vw, 3.1rem); line-height: 3; }
.ayah {
  cursor: pointer; border-radius: 8px; padding: 2px 4px; transition: background .15s;
}
.ayah:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ayah.playing { background: color-mix(in srgb, var(--green-400) 22%, transparent); }
.ayah.resume-flash { background: color-mix(in srgb, var(--gold-500) 30%, transparent); animation: resumeFade 2.2s ease; }
@keyframes resumeFade { 0%,55% { background: color-mix(in srgb, var(--gold-500) 34%, transparent); } 100% { background: transparent; } }

.fs-ctl { display: inline-flex; gap: 4px; }
.fs-btn {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); font-family: var(--font-quran);
  font-size: .95rem; font-weight: 700; line-height: 1;
}
.fs-btn:hover { border-color: var(--accent); color: var(--brand-2); }

.surah-nav { display: flex; gap: 8px; justify-content: space-between; margin-top: 18px; }
.surah-nav .btn { flex: 1; font-size: .85rem; }

.quran-search-results { display: grid; gap: 8px; margin-bottom: 4px; }
.qsr-head { font-family: var(--font-display); font-size: 1.05rem; margin: 6px 0 2px; color: var(--text-soft); }
.qsr-item {
  display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: .16s;
}
.qsr-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.qsr-text { font-family: var(--font-mushaf); font-size: 1.2rem; line-height: 2; margin: 0 0 4px; }
.qsr-ref { color: var(--accent); font-weight: 700; font-size: .82rem; }
.tafseer-line { border-bottom: 1px solid var(--border); padding: 10px 0; line-height: 1.9; content-visibility: auto; contain-intrinsic-size: auto 60px; }
.ayah-num {
  font-family: var(--font-ui); font-size: .58em; font-weight: 700;
  color: var(--brand-2); background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px; padding: 1px 8px; margin: 0 6px; vertical-align: middle;
}
:root[data-theme="dark"] .ayah-num { color: var(--gold-400); border-color: color-mix(in srgb, var(--gold-400) 35%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ayah-num { color: var(--gold-400); border-color: color-mix(in srgb, var(--gold-400) 35%, transparent); }
}
.ayah-bm {
  display: inline-flex; vertical-align: middle; width: 20px; height: 20px;
  padding: 0; border: none; background: none; color: var(--text-soft); cursor: pointer;
}
.ayah-bm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ayah-bm:hover { color: var(--accent); }
.ayah-bm.active { color: var(--gold-600); }
.ayah-bm.active svg { fill: currentColor; }

.player-bar {
  position: sticky; bottom: 74px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 100%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 8px 10px; box-shadow: var(--shadow); margin-top: 20px;
}

/* منتقي القارئ */
.pb-reciter {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px 5px 8px; min-width: 0; flex: 0 1 auto;
}
.pb-reciter .pb-ic.sm { width: 16px; height: 16px; color: var(--text-soft); flex: none; }
.pb-reciter select {
  appearance: none; -webkit-appearance: none;
  border: none; background: transparent; color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 600; padding: 2px 4px;
  max-width: 130px; text-overflow: ellipsis; cursor: pointer; min-width: 0;
}
.pb-reciter select:focus { outline: none; }
.pb-reciter:focus-within { border-color: var(--accent); }

/* مجموعة أزرار التلاوة */
.pb-controls { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pb-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: transparent; color: var(--text-soft);
  cursor: pointer; transition: background .15s, color .15s;
}
.pb-btn svg { width: 20px; height: 20px; display: block; }
.pb-btn:hover { background: var(--surface-2); color: var(--brand-2); }
.pb-btn.active { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-2); }
:root[data-theme="dark"] .pb-btn.active { color: var(--gold-400); background: color-mix(in srgb, var(--gold-400) 16%, transparent); }

/* زرّ التشغيل الرئيسي */
.pb-play {
  display: inline-grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  border: none; background: var(--brand); color: var(--brand-ink);
  cursor: pointer; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 65%, transparent);
  transition: transform .12s, filter .15s;
}
.pb-play:hover { filter: brightness(1.08); transform: scale(1.04); }
.pb-play:active { transform: scale(.97); }
.pb-play .pb-ic { width: 22px; height: 22px; }
.pb-play .pb-ic svg { width: 100%; height: 100%; display: block; }

@media (max-width: 460px) {
  .player-bar { gap: 6px; padding: 8px; }
  .pb-reciter select { max-width: 88px; }
  .pb-btn { width: 34px; height: 34px; }
  .pb-btn svg { width: 18px; height: 18px; }
  .pb-play { width: 46px; height: 46px; }
}

/* أدوات رأس القارئ: تبديل الوضع + حجم الخط */
.reader-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* زرّ تفسير الآية + بطاقة التفسير المضمّنة */
.ayah-tf svg { fill: none !important; }
.ayah-tf.active { color: var(--brand-2); }
:root[data-theme="dark"] .ayah-tf.active { color: var(--gold-400); }
.ayah-tafseer {
  display: block; margin: 10px 0; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent); border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .95rem; line-height: 1.9; text-align: start;
}
.ayah-tafseer b { color: var(--brand-2); }
:root[data-theme="dark"] .ayah-tafseer b { color: var(--gold-400); }

/* وضع المصحف: صفحات مؤطّرة مع رقم الصفحة */
.mushaf-wrap { display: flex; flex-direction: column; gap: 16px; }
.mushaf-page {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px 10px; box-shadow: var(--shadow-sm);
  content-visibility: auto; contain-intrinsic-size: auto 600px;
}
.mp-num {
  text-align: center; margin-top: 12px; padding-top: 8px;
  border-top: 1px solid var(--border); color: var(--text-soft);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
}

/* ---------- الأذكار ---------- */
.cat-tabs { margin-bottom: 20px; }

.dhikr {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: .2s;
}
.dhikr.done { opacity: .55; }
.dhikr .dhikr-head { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.dhikr .text {
  font-family: var(--font-quran); font-size: 1.4rem; line-height: 2.4; text-align: justify;
}
.dhikr .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dhikr .ref { color: var(--text-soft); font-size: .82rem; max-width: 60ch; }
.counter {
  display: inline-flex; align-items: center; gap: 12px;
}
.counter button {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 1.3rem; font-weight: 800; color: var(--brand-2);
}
.counter .count { font-family: var(--font-display); font-size: 1.5rem; min-width: 68px; text-align: center; }
.counter .count small { color: var(--text-soft); font-size: .9rem; }

.dhikr .dhikr-head { justify-content: space-between; align-items: center; }
.dhikr-actions, .gd-actions { display: inline-flex; gap: 6px; }
.ic-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-soft);
}
.ic-btn.sm { width: 30px; height: 30px; }
.ic-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.ic-btn:hover { color: var(--accent); border-color: var(--accent); }
.ic-btn.active { color: var(--gold-600); border-color: var(--gold-600); }
.ic-btn.active svg { fill: currentColor; }

.cat-tabs .fav-tab { color: var(--gold-600); }
.cat-tabs .fav-tab.active { background: var(--gold-600); color: #23200f; }

/* رأس التقدّم */
.adhkar-prog { margin-bottom: 16px; }
.adhkar-prog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.adhkar-prog-title { font-family: var(--font-display); font-size: 1.15rem; }
.adhkar-prog .progress-bar { margin: 0; max-width: none; }
.adhkar-prog > b { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-soft); }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.view-toggle button { padding: 6px 14px; border: none; background: var(--surface); color: var(--text-soft); font-weight: 700; font-size: .82rem; }
.view-toggle button.active { background: var(--brand); color: var(--brand-ink); }

/* الوضع الموجّه */
.gd-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gd-idx { font-weight: 800; color: var(--text-soft); font-size: .85rem; }
.gd-card { padding: 0; overflow: hidden; }
.gd-tap {
  display: block; width: 100%; border: none; background: none; cursor: pointer;
  padding: 26px 22px; text-align: center; -webkit-tap-highlight-color: transparent;
}
.gd-tap:active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gd-text { font-family: var(--font-quran); font-size: clamp(1.5rem, 5.2vw, 2.1rem); line-height: 2.5; text-align: center; color: var(--text); }
.gd-count { font-family: var(--font-display); font-size: 2.6rem; color: var(--brand-2); margin-top: 16px; }
.gd-count small { font-size: 1.1rem; color: var(--text-soft); margin-inline-start: 6px; }
.gd-hint { display: block; margin-top: 4px; font-size: .78rem; }
.gd-nav { display: flex; gap: 8px; margin-top: 14px; }
.gd-nav .btn { flex: 1; font-size: .85rem; }
.gd-nav .btn:disabled { opacity: .4; pointer-events: none; }

.adhkar-complete { padding: 34px 22px; }
.adhkar-complete .ac-check {
  width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--green-400) 22%, transparent); color: var(--green-600);
}
.adhkar-complete .ac-check svg { width: 28px; height: 28px; }
.adhkar-complete b { font-family: var(--font-display); font-size: 1.4rem; display: block; margin-bottom: 4px; }

/* ---------- المواقيت ---------- */
.next-prayer {
  text-align: center; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--green-700), var(--green-600));
  color: #fff; box-shadow: var(--shadow);
}
.next-prayer .name { font-family: var(--font-display); font-size: 2.2rem; margin: 6px 0; }
.next-prayer .count { font-size: 1.4rem; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 18px; }
.time-cell {
  padding: 16px; text-align: center; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: .16s ease;
}
.time-cell.now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: var(--shadow); }
.time-cell b { display: block; font-size: 1.3rem; font-family: var(--font-display); }
.time-cell span { color: var(--text-soft); font-size: .85rem; }
.time-cell .iqama { display: block; margin-top: 5px; font-size: .7rem; font-weight: 700; color: var(--accent); }

.cal-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.cal-table { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
.cal-table th, .cal-table td { padding: 9px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.cal-table th { color: var(--text-soft); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
.cal-table tbody tr:last-child td { border-bottom: none; }
.cal-table tr.today td { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 800; color: var(--brand-2); }

/* ---------- عناصر مساعدة ---------- */
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--brand-2);
  animation: spin .8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.empty { text-align: center; color: var(--text-soft); padding: 40px 10px; }

/* شريط التبويب السفلي — وفق إرشادات Apple HIG: مادة شفّافة مع طمس الخلفية */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
  display: none; align-items: stretch; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid color-mix(in srgb, var(--text-soft) 22%, transparent);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 46px; padding: 4px 0; border-radius: 10px;
  color: var(--text-soft); font-size: 10px; font-weight: 500; letter-spacing: .2px;
  -webkit-tap-highlight-color: transparent; transition: color .18s ease;
}
.bottom-nav a svg { width: 25px; height: 25px; transition: transform .16s ease; }
.bottom-nav a.active { color: var(--tab-active); font-weight: 600; background: none; }
.bottom-nav a:active svg { transform: scale(.88); }

@media (prefers-reduced-transparency: reduce) {
  .bottom-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav a svg, .bottom-nav a { transition: none; }
}

.app-footer {
  max-width: var(--maxw); margin: 24px auto 0; padding: 28px clamp(14px,4vw,28px) 44px;
  color: var(--text-soft); font-size: .82rem; text-align: center;
  border-top: 1px solid var(--border);
}
.app-footer .foot-brand strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--text); }
.app-footer .foot-brand span { display: block; margin-top: 2px; }
.app-footer .foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.app-footer .foot-links a { font-weight: 700; color: var(--text-soft); }
.app-footer .foot-links a:hover { color: var(--brand-2); }
.app-footer .foot-copy { margin: 0; opacity: .8; font-size: .76rem; }

/* رابط التخطّي للوصولية */
.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top .18s;
}
.skip-link:focus { top: 12px; }
.view:focus { outline: none; }

/* صفحات المحتوى الثابتة */
.doc { max-width: 68ch; margin: 0 auto; line-height: 1.95; }
.doc p { margin: 0 0 14px; }
.doc .doc-h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 26px 0 8px; color: var(--brand-2); }
.doc .doc-ul { margin: 0 0 14px; padding-inline-start: 22px; }
.doc .doc-ul li { margin-bottom: 6px; }
.doc a:not(.btn) { color: var(--accent); font-weight: 600; text-decoration: underline; }

.city-links { display: flex; gap: 8px; flex-wrap: wrap; }
.city-links .btn { font-size: .85rem; }

/* مدن الخليج مجمّعة حسب الدولة */
.city-groups { display: flex; flex-direction: column; gap: 16px; }
.city-group-h, .ssr-city-group h4 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 1rem;
  color: var(--brand-2); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
:root[data-theme="dark"] .city-group-h, :root[data-theme="dark"] .ssr-city-group h4 { color: var(--gold-400); }
.city-group-h::before, .ssr-city-group h4::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.ssr-city-group { margin-bottom: 16px; }
.ssr-city-group nav.ssr-links { flex-direction: row; flex-wrap: wrap; }

/* ---------- مواد تسويقية (انشُر نُور) ---------- */
.btn.btn-sm { padding: 7px 14px; font-size: .82rem; }
.promo-link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.promo-link {
  flex: 1 1 220px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: ui-monospace, "Consolas", monospace; font-size: .9rem; color: var(--text);
}
.promo-copy { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.promo-copy:last-child { margin-bottom: 0; }
.promo-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.promo-copy-text {
  margin: 0; white-space: pre-line; line-height: 1.9; font-size: .92rem; color: var(--text);
  background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
}
/* لوحة التحكّم: اللون والآية */
.promo-controls {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 14px; margin-bottom: 18px;
  display: flex; flex-direction: column;
}
.promo-ctl-label { font-weight: 800; font-size: .82rem; color: var(--text-soft); margin-bottom: 8px; letter-spacing: .3px; }
.promo-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-swatch {
  width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--border);
  cursor: pointer; padding: 0; transition: transform .12s, border-color .12s;
}
.promo-swatch:hover { transform: scale(1.08); border-color: var(--accent); }
.promo-swatch.custom {
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: conic-gradient(from .25turn, #e53, #ec3, #3c6, #39c, #63c, #e53);
}
.promo-color-input { position: absolute; inset: -6px; width: 46px; height: 46px; border: none; padding: 0; background: none; cursor: pointer; opacity: 0; }
.promo-controls .field { margin-top: 8px; }
.promo-controls textarea.field { font-family: var(--font-quran, serif); line-height: 1.9; resize: vertical; }

/* مجموعات المقاسات والحُلل */
.promo-size-group { margin-top: 20px; }
.promo-size-group:first-of-type { margin-top: 4px; }
.promo-size-head { margin-bottom: 10px; }
.promo-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.promo-size-group.horiz .promo-variants { grid-template-columns: 1fr; }
.promo-variant { display: flex; flex-direction: column; gap: 6px; }
.promo-variant-foot { display: flex; align-items: center; gap: 6px; }
.promo-vname { font-size: .78rem; font-weight: 700; color: var(--text-soft); margin-inline-end: auto; }
.promo-banner {
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; transition: box-shadow .15s, transform .15s;
}
.promo-banner:hover { box-shadow: 0 6px 20px rgba(0,0,0,.14); transform: translateY(-1px); }
.promo-banner:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.promo-banner svg { display: block; width: 100%; height: auto; }

/* نافذة عرض البنر بالحجم الكامل */
.promo-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(12, 18, 15, .62); backdrop-filter: blur(3px);
  animation: promoFade .16s ease;
}
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }
.promo-modal-box {
  display: flex; flex-direction: column; max-width: 92vw; max-height: 92vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.4); overflow: hidden;
}
.promo-modal-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.promo-modal-head b { font-size: .92rem; color: var(--text); }
.promo-modal-x {
  margin-inline-start: auto; flex: none; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.promo-modal-x:hover { background: var(--border); }
.promo-modal-canvas {
  overflow: auto; padding: 16px; background: var(--surface-2); flex: 1 1 auto;
  display: flex; align-items: flex-start; justify-content: center;
}
.promo-modal-frame { width: 100%; }
.promo-modal-frame svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.promo-modal-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.promo-modal-foot .row { margin-inline-start: auto; }
@media (max-width: 480px) {
  .promo-modal { padding: 0; }
  .promo-modal-box { max-width: 100vw; max-height: 100vh; border-radius: 0; width: 100%; height: 100%; }
}
.promo-embed {
  margin: 0; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.promo-embed code { font-family: ui-monospace, "Consolas", monospace; font-size: .8rem; color: var(--text); white-space: pre; }

.toast {
  position: fixed; inset-inline: 0; bottom: 90px; margin: 0 auto; width: max-content; max-width: 90vw;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: .88rem; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: none; }

.offline-bar {
  position: fixed; inset-inline: 0; top: 0; z-index: 120;
  background: var(--danger); color: #fff; text-align: center;
  font-size: .82rem; font-weight: 700; padding: 6px 12px;
}

.install-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.install-banner .ib-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; }
.install-banner .ib-ic img { width: 100%; height: 100%; display: block; }
.install-banner .ib-body { flex: 1; min-width: 0; }
.install-banner .ib-body b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.install-banner .ib-body span { color: var(--text-soft); font-size: .84rem; }
.install-banner .ib-actions { display: flex; gap: 6px; flex: none; }
.install-banner .btn { padding: 8px 14px; font-size: .85rem; }

/* ---------- الصفحة الرئيسية ---------- */
.home { display: grid; gap: 22px; }

.hero {
  position: relative; overflow: hidden;
  text-align: center; padding: clamp(30px, 7vw, 60px) clamp(18px, 5vw, 44px);
  border-radius: 26px; border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-600));
  color: #fff; box-shadow: var(--shadow);
}
.hero > * { position: relative; }
.hero-logo {
  width: clamp(108px, 28vw, 140px); height: auto; display: block; margin: 0 auto 12px;
  object-fit: contain;
}
.hero-title { font-family: var(--font-display); font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin: 0; letter-spacing: 2px; }
.hero-basmala { font-family: var(--font-mushaf); font-size: clamp(1.1rem, 3.6vw, 1.5rem); color: var(--gold-400); margin: 4px 0 14px; }
.hero-lead { max-width: 54ch; margin: 0 auto 22px; opacity: .92; font-size: 1.02rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn.ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-strip {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.hero-strip .chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  font-size: .86rem; font-weight: 600; white-space: nowrap; color: #fff;
}
.hero-strip .chip .ci { display: inline-flex; color: var(--gold-400); }
.hero-strip .chip .ci svg { width: 15px; height: 15px; display: block; }
.hero-strip .chip .dim { opacity: .72; font-weight: 500; }
.hero-strip a.chip { text-decoration: none; transition: background .16s; }
.hero-strip a.chip:hover { background: rgba(255,255,255,.18); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: .18s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature-ic {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 4px;
  color: var(--brand-2); background: var(--surface-2); border-radius: 13px;
}
.feature-ic svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: .92rem; flex: 1; }
.feature-go { color: var(--accent); font-weight: 800; font-size: .9rem; }

.more-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--brand-2); font-weight: 700; font-size: .92rem; transition: .16s;
}
:root[data-theme="dark"] .more-row { border-color: color-mix(in srgb, var(--brand-2) 32%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .more-row { border-color: color-mix(in srgb, var(--brand-2) 32%, transparent); }
}
.more-row:hover { border-color: var(--accent); background: var(--surface-2); }
.more-row .arrow { font-weight: 800; }

.daily .daily-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kicker {
  font-weight: 800; font-size: .78rem; letter-spacing: 1px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 4px 12px; border-radius: 999px;
}
.daily-text { font-family: var(--font-quran); font-size: 1.35rem; line-height: 2.3; margin: 0 0 10px; text-align: justify; }
.daily-text.quran { font-family: var(--font-mushaf); }

/* ---------- لوحة العبادة اليومية (الرئيسية) ---------- */
.dashboard { display: grid; gap: 18px; }
.dashboard .section-h, .more-page .section-h {
  margin: 10px 0 -2px; font-family: var(--font-display); font-size: 1.18rem;
  color: var(--text); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.dashboard .section-h::before, .more-page .section-h::before {
  content: ""; flex: none; width: 20px; height: 20px; opacity: .85;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cpath fill='%23b8912f' d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z'/%3E%3C/svg%3E");
}
.dashboard .section-h::after, .more-page .section-h::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- صفحة «أدوات نُور» (المزيد) ---------- */
.more-page { display: flex; flex-direction: column; gap: 16px; }
.more-page .page-sub { margin-bottom: 6px; }

/* البطاقة المميّزة (وِردي) */
.more-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius); border: none;
  color: #fff; background: linear-gradient(150deg, var(--green-800), var(--green-600));
  box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.more-hero::after {
  content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px;
  width: 150px; height: 150px; opacity: .12; pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cpath fill='%23f2d98c' d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z'/%3E%3C/svg%3E");
}
.more-hero:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--brand) 70%, transparent); }
@media (max-width: 480px) {
  .more-hero { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
  .more-hero-ic { width: 46px; height: 46px; }
  .more-hero-go { align-self: flex-start; }
}
.more-hero-ic {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 16px; background: rgba(255,255,255,.14); color: var(--gold-400);
}
.more-hero-ic svg { width: 26px; height: 26px; }
.more-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.more-hero-body .kicker { align-self: flex-start; background: rgba(255,255,255,.16); color: #fff; }
.more-hero-title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; }
.more-hero-body .muted { color: rgba(255,255,255,.82) !important; }
.more-hero .progress-bar.sm { margin: 6px 0 3px; max-width: none; height: 7px; background: rgba(255,255,255,.18); }
.more-hero-go { flex: none; font-weight: 800; font-size: .92rem; color: var(--gold-400); white-space: nowrap; }

/* شبكة الأدوات */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px; border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(158deg, var(--surface), color-mix(in srgb, var(--surface-2) 55%, var(--surface)));
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s, box-shadow .18s;
}
.tool-card::before {
  content: ""; position: absolute; inset-inline-end: -18px; bottom: -22px;
  width: 84px; height: 84px; opacity: .05; pointer-events: none;
  transition: opacity .2s, transform .35s;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cpath fill='%23b8912f' d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z'/%3E%3C/svg%3E");
}
.tool-ic {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: var(--brand-2);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--brand) 12%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent);
  transition: background .2s, color .2s, transform .2s;
}
.tool-ic svg { width: 23px; height: 23px; }
.tool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tool-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; }
.tool-desc { color: var(--text-soft); font-size: .82rem; line-height: 1.5; }
.tool-stat {
  align-self: flex-start; margin-top: 5px;
  font-size: .74rem; font-weight: 700; color: var(--brand-2);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  padding: 2px 10px; border-radius: 999px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tool-arrow { flex: none; color: var(--text-soft); font-weight: 800; transition: transform .18s, color .18s; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--brand) 42%, transparent); }
.tool-card:hover .tool-ic { background: linear-gradient(145deg, var(--gold-500), var(--brand)); color: #fff; transform: scale(1.05); }
.tool-card:hover .tool-arrow { color: var(--brand-2); transform: translateX(-4px); }
.tool-card:hover::before { opacity: .12; transform: rotate(12deg) scale(1.05); }

.more-soon { margin-top: 6px; }
.more-soon .kicker { display: inline-block; }

/* شريط الترحيب */
.greet {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 2px 4px;
}
.greet-txt strong { font-family: var(--font-display); font-size: 1.55rem; display: block; line-height: 1.2; }
.greet-date {
  display: inline-block; margin-top: 5px; font-size: .78rem; font-weight: 700;
  color: var(--brand-2); background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 3px 11px; border-radius: 999px;
}
:root[data-theme="dark"] .greet-date { color: var(--gold-400); background: color-mix(in srgb, var(--gold-400) 12%, transparent); }
.greet-logo {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.greet-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.greet-logo img { display: block; border-radius: 9px; }

/* صفّ بطاقتَي المهام (Bento) — تخطيط عمودي داخل كل بطاقة */
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 600px) { .dash-row { grid-template-columns: 1fr; } }

.dash-row .task-card {
  height: 100%;
  display: grid; gap: 0 14px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  padding: 18px 18px 16px;
}
.dash-row .task-card .task-ic { grid-column: 2; grid-row: 1; margin: 0; }
.dash-row .task-card .task-body {
  grid-column: 1; grid-row: 1 / 3; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.dash-row .task-card .task-body .kicker { align-self: flex-start; margin: 0; }
.dash-row .task-card .task-title { font-size: 1.22rem; }
.dash-row .task-card .mini-bar { max-width: none; margin: 2px 0 0; }
.dash-row .task-card .task-cta {
  grid-column: 1 / -1; grid-row: 3;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  text-align: start;
}

/* بطاقة الصلاة القادمة */
.next-prayer-card {
  text-align: center; color: #fff; padding: clamp(22px, 5vw, 32px);
  background: linear-gradient(155deg, var(--green-800), var(--green-600));
  border: none;
}
.np-kicker { font-size: .78rem; font-weight: 800; letter-spacing: 1px; opacity: .8; }
.np-name { font-family: var(--font-display); font-size: clamp(2.3rem, 8.5vw, 3rem); line-height: 1.15; margin: 14px 0 6px; }
.np-count { font-size: 1.15rem; font-weight: 700; color: var(--gold-400); }
.np-at { font-size: .85rem; opacity: .8; margin-top: 4px; }
.np-sep { height: 1px; background: rgba(255,255,255,.18); margin: 18px 0 14px; }
.np-times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.np-time {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px; border-radius: 12px; color: #fff; transition: background .16s;
}
.np-time:hover { background: rgba(255,255,255,.1); }
.np-time .np-l { font-size: .68rem; opacity: .75; }
.np-time .np-t { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.np-time.now { background: rgba(255,255,255,.16); }
.np-time.now .np-l { opacity: 1; color: var(--gold-400); }
.np-loc {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: .82rem; opacity: .85; flex-wrap: wrap;
}
.np-loc .np-pin svg { width: 13px; height: 13px; }
.np-loc a { text-decoration: underline; font-weight: 700; }
.np-loc .np-stale { color: var(--gold-400); opacity: 1; }

/* بطاقات المهام (أكمل قراءتك / أذكار وقتك) */
.task-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  transition: .16s ease;
}
.task-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.task-ic {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-2); color: var(--brand-2);
}
.task-ic svg { width: 22px; height: 22px; }
.task-body { flex: 1; min-width: 0; }
.task-body .kicker { display: inline-block; margin-bottom: 6px; }
.task-title { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; }
.task-cta { flex: none; color: var(--accent); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.mini-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; max-width: 220px; }
.mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); border-radius: 999px; transition: width .3s; }

.friday-card { border-inline-start: 4px solid var(--accent); }

/* بطاقة «لهذا اليوم» — تبويب موحّد (ذكر / اسم / آية) */
.daily-card { padding: 6px; overflow: hidden; }
.daily-seg {
  display: flex; gap: 4px; padding: 5px; margin-bottom: 4px;
  background: var(--surface-2); border-radius: 14px;
}
.daily-seg button {
  flex: 1; padding: 9px 6px; border: none; border-radius: 10px;
  background: transparent; color: var(--text-soft);
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.daily-seg button:hover { color: var(--text); }
.daily-seg button.active { background: var(--surface); color: var(--brand-2); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .daily-seg button.active { color: var(--gold-400); }
.daily-pane { padding: 14px 14px 12px; animation: fade .25s ease; }
.daily-pane .daily-text { font-size: 1.4rem; line-height: 2.35; margin: 0; }
.daily-name {
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--brand-2);
}
:root[data-theme="dark"] .daily-name { color: var(--gold-400); }
.daily-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: .82rem;
}
.daily-link { color: var(--accent); font-weight: 800; white-space: nowrap; }

/* لمسة النجمة على بطاقات المهام */
.task-card { position: relative; overflow: hidden; }
.task-card::after {
  content: ""; position: absolute; inset-inline-end: -20px; bottom: -24px;
  width: 82px; height: 82px; opacity: .05; pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cpath fill='%23b8912f' d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z'/%3E%3C/svg%3E");
}

/* خدمات سريعة — بطاقات راقية بلمسة النجمة الثمانية من هوية نُور */
.quick-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 20px 10px 16px;
  border: 1px solid var(--border); border-radius: 16px;
  background:
    linear-gradient(158deg, var(--surface), color-mix(in srgb, var(--surface-2) 60%, var(--surface)));
  color: var(--text); font-size: .84rem; font-weight: 700; letter-spacing: .1px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
/* نجمة ثمانية (خاتم) خافتة في الزاوية */
.quick-item::before {
  content: ""; position: absolute; inset-inline-end: -16px; bottom: -18px;
  width: 78px; height: 78px; opacity: .06; pointer-events: none;
  transition: opacity .25s ease, transform .4s ease;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cpath fill='%23b8912f' d='M30 0L18.6 11.4L18.6 18.6L11.4 18.6L0 30L-11.4 18.6L-18.6 18.6L-18.6 11.4L-30 0L-18.6 -11.4L-18.6 -18.6L-11.4 -18.6L0 -30L11.4 -18.6L18.6 -18.6L18.6 -11.4Z'/%3E%3C/svg%3E");
}
.quick-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: var(--brand-2);
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--accent) 24%, transparent),
    color-mix(in srgb, var(--brand) 12%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent);
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.quick-ic svg { width: 23px; height: 23px; }
:root[data-theme="dark"] .quick-ic { color: var(--gold-400); }

.quick-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--brand) 48%, transparent);
}
.quick-item:hover .quick-ic {
  background: linear-gradient(145deg, var(--gold-500), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  transform: scale(1.06);
}
.quick-item:hover::before { opacity: .13; transform: rotate(14deg) scale(1.06); }
.quick-item:active { transform: translateY(-1px); }

/* بطاقة تمهيد إذن الموقع */
.loc-prompt { text-align: center; }
.loc-prompt-ic {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--surface-2); color: var(--brand-2);
}
.loc-prompt-ic svg { width: 24px; height: 24px; }
.loc-prompt .row { flex-wrap: wrap; }
.loc-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.loc-city {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: start; padding: 10px 16px; border-radius: 14px;
}
.picker .loc-city, .loc-prompt .loc-city { margin-bottom: 6px; }
.loc-city-name { font-weight: 600; line-height: 1.4; }
.loc-city-pop { font-size: .74rem; font-weight: 400; color: var(--text-soft); }

.stale-note { color: var(--gold-600); font-size: .85rem; margin: -8px 0 4px; }

@media (max-width: 560px) {
  .quick-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .np-times { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- أسماء الله الحسنى ---------- */
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.name-card {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: .16s ease; text-align: start;
}
.name-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.name-card:hover .name-ar { color: var(--brand-2); }
.name-card .name-meta { min-width: 0; }
.name-card .name-ar { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); transition: color .16s; }
.name-card p { margin: 3px 0 0; color: var(--text-soft); font-size: .82rem; line-height: 1.5; }

/* ---------- المِسبحة ---------- */
.dhikr-label { font-family: var(--font-quran); font-size: 1.6rem; color: var(--brand-2); margin-bottom: 18px; }
.tasbih-dial {
  position: relative; width: 220px; height: 220px; margin: 0 auto;
  border: none; background: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tasbih-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tasbih-dial .ring-track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.tasbih-dial .ring-progress {
  fill: none; stroke: var(--brand); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.tasbih-dial:active svg { transform: rotate(-90deg) scale(.97); }
.tasbih-center {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 2px;
  pointer-events: none;
}
.tasbih-count { font-family: var(--font-display); font-size: 3.2rem; color: var(--text); line-height: 1; }
.tasbih-target { color: var(--text-soft); font-size: .85rem; }

/* ---------- التقويم الهجري ---------- */
.occ-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.occ-row:last-child { border-bottom: none; }
.occ-row.today { color: var(--brand-2); font-weight: 700; }

/* ---------- ختمة القرآن ---------- */
.progress-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px auto 0; max-width: 320px; }
.progress-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); transition: width .3s ease; }

.khatma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.khatma-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: .16s ease; -webkit-tap-highlight-color: transparent;
}
.khatma-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.khatma-item.done { background: color-mix(in srgb, var(--green-600) 9%, var(--surface)); border-color: var(--green-600); }
.khatma-item .meta { flex: 1; min-width: 0; line-height: 1.3; }
.khatma-item .meta b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.khatma-item .meta small { color: var(--text-soft); font-size: .76rem; }
.khatma-item .km-open {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--surface-2); color: var(--brand-2);
}
.khatma-item .km-open svg { width: 15px; height: 15px; }
.khatma-item .km-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  display: grid; place-items: center; transition: .16s;
}
.khatma-item.done .km-check { background: var(--green-600); border-color: var(--green-600); }
.khatma-item.done .km-check::after {
  content: ""; width: 9px; height: 5px; margin-bottom: 2px;
  border-inline-start: 2px solid #fff; border-block-end: 2px solid #fff; transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .top-nav { display: none; }
  .bottom-nav { display: flex; }
  .app-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .player-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ---------- وِردي اليومي ---------- */
.wird-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.wird-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center;
}
.wird-stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--brand-2); }
.wird-stat span { display: block; font-size: .76rem; margin-top: 2px; }

/* أداة: مخفي بصريًا لكن متاح لقارئ الشاشة ومحركات البحث */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- المحتوى المُصيَّر أوّليًا (SSR) — يظهر قبل JS، ثم يستبدله التطبيق ---------- */
.crumbs { font-size: .82rem; color: var(--text-soft); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }
.crumb-sep { opacity: .5; }

.ssr-links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ssr-links a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.ssr-links a:hover { border-color: var(--accent); }
.ssr-links small { display: block; color: var(--text-soft); font-size: .82rem; margin-top: 3px; }
nav.ssr-links { flex-direction: row; flex-wrap: wrap; }
nav.ssr-links a { flex: 0 1 auto; }

.ssr-surah-list { columns: 2; column-gap: 14px; padding-inline-start: 1.4em; margin: 0; }
.ssr-surah-list li { break-inside: avoid; margin-bottom: 6px; }
.ssr-surah-list a { color: var(--text); }
.ssr-surah-list small { color: var(--text-soft); font-size: .78rem; }
@media (max-width: 560px) { .ssr-surah-list { columns: 1; } }

.ssr-dhikr-list { padding-inline-start: 1.2em; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ssr-dhikr-list li { line-height: 2; }
.ssr-dhikr-text { font-family: var(--font-quran, inherit); margin: 0 0 4px; }
.ssr-dhikr-ref { display: block; font-size: .82rem; }

.ssr-home .ssr-links a,
.ssr-more .ssr-links a { font-weight: 600; }
