/* حكيم — ثيم «ذهبي فضائي» (Gold Cosmic) */
:root {
  --bg: #04060f;
  --bg-2: #080d1e;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --border: rgba(212, 175, 55, .20);
  --border-soft: rgba(255, 255, 255, .09);
  --border-strong: rgba(212, 175, 55, .45);
  --text: #f7f2e4;
  --muted: #a79f8b;
  --gold: #d4af37;
  --gold-light: #f9edb8;
  --gold-deep: #8a6a1c;
  --gold-grad: linear-gradient(135deg, #8a6a1c 0%, #d4af37 30%, #f9edb8 52%, #d4af37 72%, #8a6a1c 100%);
  --ink: #171204;
  --danger: #f87171;
  --success: #63d68f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --quran-size: 34px;
  --font-ui: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-display: 'Reem Kufi', 'Noto Naskh Arabic', serif;
  --font-quran: 'Amiri Quran', 'Noto Naskh Arabic', serif;
  --max: 1120px;
  color-scheme: dark;
}
body.day {
  --bg: #fbf7ec;
  --bg-2: #f4ecda;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .92);
  --border: rgba(138, 106, 28, .26);
  --border-soft: rgba(138, 106, 28, .16);
  --border-strong: rgba(138, 106, 28, .5);
  --text: #241f14;
  --muted: #6e6553;
  --shadow: 0 18px 40px rgba(120, 100, 40, .16);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; margin: 0 0 .35rem; font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .6rem; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: middle; flex: none; }
/* الخلفية الفضائية */
.stars-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#stars { width: 100%; height: 100%; display: block; }
.aurora {
  position: fixed; inset: -30% -20% auto -20%; height: 85vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 22% 8%, rgba(212, 175, 55, .20), transparent 65%),
    radial-gradient(ellipse 45% 40% at 78% 0%, rgba(109, 90, 200, .22), transparent 62%),
    radial-gradient(ellipse 60% 50% at 50% 95%, rgba(30, 120, 130, .16), transparent 70%);
}
body.day .aurora { opacity: .55; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app { position: relative; z-index: 1; }
.view { max-width: var(--max); margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }

/* الترويسة */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem 1.1rem;
  background: rgba(4, 6, 15, .86);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--ink); box-shadow: 0 6px 20px rgba(212, 175, 55, .35);
}
.brand-mark .ico { width: 22px; height: 22px; }
.brand-text { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: .3rem; margin-inline-start: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(212, 175, 55, .10); }
.nav-link.active { color: var(--gold-light); background: rgba(212, 175, 55, .14); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nav-actions { display: flex; gap: .4rem; margin-inline-start: .4rem; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .18s ease, border-color .2s, background .2s, box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(212, 175, 55, .12); }
.icon-btn.on { color: var(--ink); background: var(--gold-grad); border-color: transparent; }
/* الأزرار — ذهبية فضائية */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .24s ease, background .2s ease, border-color .2s ease;
}
.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn-gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(212, 175, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  position: relative; overflow: hidden;
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transition: transform .7s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(212, 175, 55, .45); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: var(--surface); border-color: var(--border); color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(212, 175, 55, .12); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.panel-kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  color: var(--gold); text-transform: uppercase; margin-bottom: .3rem;
}
.panel { border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.1rem; }
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 2.4rem 1.4rem; }
.empty .ico { width: 42px; height: 42px; color: var(--gold); margin-bottom: .6rem; }
.empty-acts { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
/* الرئيسية */
.hero { text-align: center; padding: 2.6rem 0 1.6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; color: var(--gold-light); padding: .4rem 1rem; border-radius: 999px;
  background: rgba(212, 175, 55, .10); border: 1px solid var(--border);
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  margin: 1rem 0 .3rem; letter-spacing: .02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(212, 175, 55, .35));
  animation: fadeUp .7s ease both;
}
.tagline { max-width: 620px; margin: 0 auto 1.6rem; color: var(--muted); font-size: clamp(.95rem, 2vw, 1.1rem); }
.hero-search {
  position: relative; display: flex; align-items: center; gap: .5rem; max-width: 620px; margin: 0 auto;
  padding: .4rem .5rem .4rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero-search > .ico { color: var(--gold); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font-family: var(--font-ui); font-size: 1rem; padding: .55rem .2rem; outline: none;
}
.suggest {
  position: absolute; top: calc(100% + .5rem); inset-inline: 0; z-index: 5;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: start;
}
.suggest-item {
  display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; text-decoration: none;
  border-bottom: 1px solid var(--border-soft); transition: background .18s;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: rgba(212, 175, 55, .12); }
.suggest-item .sg-num { font-family: var(--font-display); color: var(--gold); min-width: 3ch; text-align: center; }
.suggest-item small { display: block; color: var(--muted); font-size: .78rem; }
.suggest-empty { padding: .8rem 1rem; color: var(--muted); font-size: .9rem; }
.quick-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.6rem 0; }
.kpi { padding: 1rem .6rem; text-align: center; border-radius: var(--radius-sm); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-light); }
.kpi span { color: var(--muted); font-size: .85rem; }
.home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem; align-items: start; }
.last-read { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lr-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(212, 175, 55, .12); border: 1px solid var(--border); color: var(--gold);
}
.lr-body { flex: 1; min-width: 220px; }
.lr-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.mini {
  display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, .07); border: 1px solid var(--border); text-decoration: none;
  font-weight: 600; transition: transform .18s, background .2s, border-color .2s;
}
.mini small { color: var(--muted); font-weight: 400; font-size: .76rem; }
.mini:hover { transform: translateY(-2px); background: rgba(212, 175, 55, .16); border-color: var(--border-strong); }

/* الفهرس */
.idx-head { padding: 1.4rem; }
.idx-search {
  display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .8rem; padding: .35rem .4rem .35rem 1rem;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.idx-search > .ico { color: var(--gold); }
.idx-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font-family: var(--font-ui); font-size: 1rem; padding: .5rem .2rem; outline: none;
}
.tabs { display: flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); max-width: 460px; }
.idx-tabs { margin-bottom: .8rem; }
.tab {
  flex: 1; padding: .5rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--font-ui); font-size: .9rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--gold-grad); color: var(--ink); box-shadow: 0 6px 20px rgba(212, 175, 55, .3); }
.chips { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.chip {
  padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font-family: var(--font-ui);
  font-size: .85rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--border); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: var(--ink); background: var(--gold-grad); border-color: transparent; }
.idx-count { margin-inline-start: auto; color: var(--gold-light); font-size: .85rem; }
/* بطاقات السور */
.surah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: .7rem; }
.surah-card {
  display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; text-decoration: none;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .2s, box-shadow .24s, background .2s;
  animation: fadeUp .45s ease both;
}
.surah-card:hover {
  transform: translateY(-3px); border-color: var(--border-strong);
  background: rgba(212, 175, 55, .10); box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
}
.sc-num {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
  background: var(--gold-grad); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px rgba(212, 175, 55, .25);
}
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-name { font-family: var(--font-display); font-size: 1.08rem; }
.sc-sub { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.chip-mini {
  font-size: .7rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px;
  border: 1px solid var(--border);
}
.chip-mini.makki { color: var(--gold-light); background: rgba(212, 175, 55, .12); }
.chip-mini.madani { color: #9fd7c8; background: rgba(45, 170, 150, .14); }
body.day .chip-mini.madani { color: #1c6b5b; }
.sc-ayahs { color: var(--muted); font-size: .76rem; }
.surah-card .chev { color: var(--gold); opacity: .55; transition: transform .2s, opacity .2s; }
.surah-card:hover .chev { opacity: 1; transform: translateX(-3px); }

/* نتائج البحث في الآيات */
.hits { display: grid; gap: .55rem; }
.hits-note { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
.hit {
  display: block; padding: .8rem .95rem; border-radius: var(--radius-sm); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); transition: transform .18s, background .2s, border-color .2s;
}
.hit:hover { transform: translateY(-2px); background: rgba(212, 175, 55, .10); border-color: var(--border-strong); }
.hit-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .25rem; }
.hit-surah { font-family: var(--font-display); color: var(--gold-light); }
.hit-ref { font-size: .78rem; color: var(--muted); }
.hit-text { display: block; font-family: var(--font-quran); font-size: 1.15rem; line-height: 2.1; }
/* القارئ */
.reader { padding-top: 1.2rem; }
.surah-hero { text-align: center; padding: 1.6rem 1.2rem 1.3rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.surah-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(212, 175, 55, .16), transparent 70%);
  pointer-events: none;
}
.surah-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(212, 175, 55, .10); color: var(--gold-light);
  font-family: var(--font-display); position: relative;
}
.surah-badge .ico { width: 26px; height: 26px; color: var(--gold); }
.surah-name { margin: .7rem 0 .2rem; font-size: clamp(1.6rem, 4vw, 2.3rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.surah-meta { color: var(--muted); font-size: .9rem; }
.src-note { color: var(--muted); font-size: .72rem; margin: .6rem 0 0; opacity: .8; }
.reader-tools { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; position: relative; }
.font-ctl {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}
.font-label { min-width: 2.4ch; text-align: center; color: var(--gold-light); font-weight: 700; }
.bismalah {
  text-align: center; font-family: var(--font-quran); color: var(--gold-light);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem); padding: .9rem 1rem 1.3rem; letter-spacing: .01em;
}
.ayahs { display: grid; gap: .7rem; }
.ayah {
  border-radius: var(--radius); padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.ayah:hover { border-color: var(--border); }
.ayah-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.ayah-num {
  font-family: var(--font-display); font-size: .85rem; color: var(--gold-light);
  padding: .05rem .7rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(212, 175, 55, .10);
}
.ayah-acts { display: flex; gap: .3rem; opacity: .6; transition: opacity .2s; }
.ayah:hover .ayah-acts { opacity: 1; }
.ayah-acts .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.ayah-text { font-family: var(--font-quran); font-size: min(var(--quran-size), 7.4vw); line-height: 2.15; margin: 0; text-align: justify; }
.ayah.playing { border-color: var(--gold); background: rgba(212, 175, 55, .12); box-shadow: 0 0 0 1px var(--gold), 0 12px 30px rgba(212, 175, 55, .18); }
.ayah.flash { animation: flash 1.1s ease 2; }
@keyframes flash { 0%, 100% { background: rgba(212, 175, 55, .04); } 50% { background: rgba(212, 175, 55, .22); } }
/* العرض المتّصل (مصحف) */
.ayahs.is-mushaf { display: block; }
.mushaf {
  font-family: var(--font-quran); font-size: min(var(--quran-size), 7.4vw); line-height: 2.5; text-align: justify;
  padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.ayah-inline { transition: background .3s, color .3s; border-radius: 6px; padding: 0 .1rem; }
.ayah-inline.playing { background: rgba(212, 175, 55, .22); box-shadow: 0 0 0 4px rgba(212, 175, 55, .12); }
.ayah-mark {
  display: inline-block; font-family: var(--font-display); font-size: .62em; color: var(--gold-light);
  margin: 0 .35rem; padding: .05em .5em; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(212, 175, 55, .12); line-height: 1.6;
}
.surah-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* المفضلة */
.bm-list { display: grid; gap: .6rem; }
.bm-item { padding: .9rem 1rem; margin: 0; }
.bm-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.bm-ref { font-family: var(--font-display); color: var(--gold-light); }
.bm-acts { display: flex; gap: .3rem; }
.bm-acts .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.bm-text { font-family: var(--font-quran); font-size: 1.4rem; line-height: 2.1; margin: .4rem 0 0; }

/* هياكل التحميل والتنبيهات */
.skeleton {
  border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(212, 175, 55, .06) 25%, rgba(212, 175, 55, .16) 50%, rgba(212, 175, 55, .06) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 1.1rem; margin-bottom: .7rem; }
.sk-line.short { width: 55%; }
.sk-badge { width: 90px; height: 2rem; margin: 0 auto .8rem; border-radius: 999px; }
.sk-title { width: 200px; height: 2.4rem; margin: 0 auto .6rem; }
.toasts { position: fixed; inset-block-end: 5.4rem; inset-inline-start: 1rem; z-index: 60; display: grid; gap: .45rem; }
.toast {
  display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; backdrop-filter: blur(12px);
  background: rgba(8, 13, 30, .92); border: 1px solid var(--border-strong);
  color: var(--gold-light); box-shadow: var(--shadow); animation: fadeUp .3s ease both;
}
.toast.error { color: #ffd9d9; border-color: rgba(248, 113, 113, .55); background: rgba(60, 12, 12, .92); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* المشغل الصوتي */
.player {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 40;
  background: rgba(6, 9, 20, .93); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-strong); box-shadow: 0 -16px 44px rgba(0, 0, 0, .55);
  padding-bottom: env(safe-area-inset-bottom);
  animation: fadeUp .3s ease both;
}
body.day .player { background: rgba(255, 252, 244, .95); }
.player-progress { height: 3px; background: rgba(212, 175, 55, .12); }
#p-progress-fill { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .25s linear; }
.player-inner { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; max-width: 1020px; margin: 0 auto; }
.player-label {
  flex: 1; min-width: 130px; font-family: var(--font-display); font-size: .98rem;
  color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbtn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.pbtn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.pbtn-main {
  width: 50px; height: 50px; border: 0; color: var(--ink); background: var(--gold-grad);
  box-shadow: 0 10px 26px rgba(212, 175, 55, .38);
}
.pbtn-main:hover { box-shadow: 0 14px 34px rgba(212, 175, 55, .5); }
.pselect {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: .45rem .7rem; font-family: var(--font-ui); font-size: .84rem; cursor: pointer;
}
body.has-player .foot { padding-bottom: 5.2rem; }
body.has-player .toasts { inset-block-end: 6.4rem; }

/* التذييل */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--border-soft); margin-top: 2rem; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 1.4rem 1.2rem; display: grid; gap: .3rem; text-align: center; }
.foot-brand { font-family: var(--font-display); color: var(--gold-light); }
.foot-brand .dot { opacity: .5; margin: 0 .3rem; }
.foot-note { color: var(--muted); font-size: .78rem; }
/* الاستجابة للشاشات */
@media (max-width: 980px) {
  .home-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .surah-grid { grid-template-columns: 1fr; }
  .view { padding: 1.1rem .8rem 2.4rem; }
  .mushaf { padding: 1rem; }
}
@media (max-width: 640px) {
  .brand-text { display: none; }
  .nav { padding: .5rem .6rem; gap: .4rem; }
  .nav-link { padding: .4rem .55rem; font-size: .84rem; }
  .nav-link .ico { display: none; }
  .hero { padding: 1.6rem 0 1rem; }
  .hero-search { flex-wrap: wrap; border-radius: var(--radius); }
  .hero-search .btn { width: 100%; }
  .player-inner { flex-wrap: wrap; row-gap: .45rem; }
  .player-label { order: -1; flex-basis: 100%; }
  .pselect { flex: 1; }
  .ayah-acts { opacity: 1; }
  .bismalah { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
