/* القرآن الكريم وأدعية المسلم — تصميم غربي نظيف بطابع عربي */
:root{
  --bg:#ffffff; --alt:#f4f6f5; --surf:#ffffff; --ink:#0f1d1a; --soft:#5d6b67; --line:#e3e8e6;
  --brand:#1d5a4e; --brand-2:#164a40; --gold:#b48a3c; --glow:rgba(29,90,78,.08);
  --sans:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif;
  --naskh:"Amiri","Traditional Arabic",serif;
  --kufi:var(--sans);
  --w:46rem; --wide:78rem; --r:14px;
  --shadow:0 1px 2px rgba(16,30,26,.05),0 8px 24px -12px rgba(16,30,26,.12);
  color-scheme:light;
}
[data-time="night"]{--bg:#0d1614;--alt:#111e1b;--surf:#15231f;--ink:#eef2f0;--soft:#9fb0aa;--line:#22332e;--brand:#6fc0a8;--brand-2:#8fd3bf;--gold:#d9b46a;--glow:rgba(111,192,168,.1);--shadow:0 1px 2px rgba(0,0,0,.3);color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-padding-top:5rem}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:1.0625rem;line-height:1.75;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-underline-offset:.25em;text-decoration-thickness:1px}
a:hover{color:var(--brand)}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-weight:700;line-height:1.25;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2rem,5vw,3rem)} h2{font-size:clamp(1.35rem,3vw,1.75rem)}
button{font:inherit;color:inherit;cursor:pointer}
img{max-width:100%}
.sr,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip:focus{position:fixed;top:.5rem;inset-inline-start:.5rem;width:auto;height:auto;clip:auto;background:var(--surf);padding:.5rem 1rem;z-index:99}
main{max-width:var(--w);margin:0 auto;padding:0 1.25rem}
main.wide{max-width:none;padding:0}
.wrap{max-width:var(--wide);margin:0 auto;padding:0 1.25rem}
.muted{color:var(--soft);font-size:.9rem}

/* ===== الرأس ===== */
.star{width:1.5em;height:1.5em;fill:var(--gold);flex:none;transform:rotate(-20deg)}
.top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:1rem;height:4.25rem;padding:0 max(1.25rem,calc(50vw - var(--wide)/2));
  background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line);box-shadow:0 2px 12px -6px rgba(16,30,26,.12)}
.brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;font-weight:700;font-size:1.05rem;white-space:nowrap;min-width:0}
.brand span{overflow:hidden;text-overflow:ellipsis}
.tools{margin-inline-start:auto;display:flex;align-items:center;gap:.35rem}
.theme-btn,.lang{display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:50%;border:0;background:none;text-decoration:none;font-size:.85rem;font-weight:600;color:var(--soft)}
.theme-btn:hover,.lang:hover{background:var(--alt);color:var(--ink)}
.theme-btn svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.menu-btn{display:grid;gap:5px;place-content:center;width:2.6rem;height:2.6rem;border:0;background:none;order:3}
.menu-btn span{display:block;width:1.3rem;height:2px;background:currentColor;border-radius:2px;transition:transform .25s}
.menu-btn[aria-expanded=true] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.menu-btn[aria-expanded=true] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
.nav-desk{position:absolute;inset:100% 0 auto 0;display:none;flex-direction:column;padding:.5rem 1.25rem 1.2rem;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
.nav-desk.open{display:flex}
.nav-desk a{display:flex;align-items:center;gap:.75rem;min-height:3.1rem;text-decoration:none;font-size:1.05rem;font-weight:500;border-bottom:1px solid var(--line);box-shadow:0 2px 12px -6px rgba(16,30,26,.12)}
.nav-desk svg{width:1.2rem;height:1.2rem;fill:none;stroke:var(--brand);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.nav-desk a[aria-current]{color:var(--brand)}
@media (min-width:1100px){
  .menu-btn{display:none}
  .nav-desk{position:static;display:flex;flex-direction:row;gap:.25rem;padding:0;margin-inline-start:2rem;background:none;border:0;box-shadow:none}
  .nav-desk a{min-height:2.4rem;padding:0 .9rem;border:0;border-radius:999px;font-size:.95rem}
  .nav-desk svg{display:none}
  .nav-desk a:hover{background:var(--alt);color:var(--ink)}
  .nav-desk a[aria-current]{background:var(--glow);color:var(--brand)}
}

/* ===== أزرار ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;padding:.5rem 1.5rem;border-radius:999px;border:1px solid transparent;text-decoration:none;font-weight:600;font-size:1rem;line-height:1.2;transition:background-color .2s,color .2s,border-color .2s}
.btn svg{width:1rem;height:1rem;fill:currentColor}
.btn-gold{background:var(--gold);color:#1b140a}
.btn-gold:hover{background:#c99d4a;color:#1b140a}
.btn-line{background:transparent;border-color:var(--line);color:var(--ink)}
.btn-line:hover{border-color:var(--brand);color:var(--brand)}
.cta{display:inline-flex;align-items:center;min-height:3rem;padding:.5rem 1.5rem;border-radius:999px;background:var(--brand);color:#fff;text-decoration:none;font-weight:600}
.cta:hover{background:var(--brand-2);color:#fff}

/* ===== البطل ===== */
.hero{position:relative;min-height:min(86svh,46rem);display:flex;align-items:flex-end;overflow:hidden;background:#0b1513;color:#fff;isolation:isolate}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transform:scale(1.04);animation:kb 18s ease-out forwards}
@keyframes kb{to{transform:scale(1)}}
.hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(6,14,12,.15) 0%,rgba(6,14,12,.45) 45%,rgba(6,14,12,.92) 100%)}
.hero-in{width:100%;max-width:var(--wide);margin:0 auto;padding:6rem 1.25rem 3.2rem}
.hero-kicker{margin:0 0 .6rem;font-size:1rem;font-weight:500;color:#e9cf96}
.hero-title{font-size:clamp(2.3rem,7.5vw,4.6rem);font-weight:700;line-height:1.1;margin:0 0 .8rem;max-width:15ch;letter-spacing:-.02em}
.hero-sub{font-family:var(--naskh);font-size:clamp(1.2rem,3vw,1.5rem);margin:0 0 1.8rem;opacity:.9}
.hero-acts{display:flex;flex-wrap:wrap;gap:.75rem}
.hero-play{display:inline-flex;align-items:center;gap:.6rem;min-height:3rem;padding:.5rem 1.4rem .5rem 1rem;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.08);backdrop-filter:blur(6px);color:#fff;font-weight:600}
.hero-play svg{width:1.6rem;height:1.6rem;padding:.35rem;border-radius:50%;background:#fff;fill:#0b1513}
.hero-play:hover{background:rgba(255,255,255,.18)}
.hero-link{display:inline-block;margin-top:1.2rem;margin-inline-end:1.2rem;color:#e9cf96;font-weight:500}
.hero-link:hover{color:#fff}
.hero:not(:has(.hero-bg)){background:radial-gradient(120% 90% at 80% 0%,#21564b 0%,#0b1513 60%)}

/* ===== أقسام ===== */
.sec{padding:3.5rem 0 0}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.3rem}
.sec-h h2{margin:0}
.sec-h a{font-size:.95rem;font-weight:600;color:var(--brand);text-decoration:none}
.sec-h a:hover{text-decoration:underline}
.live{display:inline-flex;align-items:center;gap:.45rem;font-size:.85rem;color:var(--soft)}
.live::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:#22a06b;animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(34,160,107,.55)}70%{box-shadow:0 0 0 .5rem rgba(34,160,107,0)}100%{box-shadow:0 0 0 0 rgba(34,160,107,0)}}

/* مرئيات */
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:min(62%,15rem);gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.6rem;margin-inline:-1.25rem;padding-inline:1.25rem;scrollbar-width:thin}
.vcard{position:relative;display:block;aspect-ratio:9/14;border:0;padding:0;border-radius:var(--r);overflow:hidden;background:#0b1513;scroll-snap-align:start;text-align:start;box-shadow:var(--shadow)}
.vcard img{width:100%;height:100%;object-fit:contain;transition:transform .5s}
.vcard:hover img{transform:scale(1.04)}
.vcard::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.78))}
.vplay{position:absolute;top:50%;left:50%;z-index:1;display:grid;place-items:center;width:3.4rem;height:3.4rem;margin:-1.7rem 0 0 -1.7rem;border-radius:50%;background:rgba(255,255,255,.92)}
.vplay svg{width:1.3rem;height:1.3rem;fill:#0b1513;margin-left:3px}
.vcap{position:absolute;inset:auto .9rem .8rem;z-index:1;color:#fff;font-size:.9rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* صور: تظهر كاملة بمقاسها الطبيعي دون قص */
.mosaic{columns:2;column-gap:.6rem}
@media (min-width:760px){.mosaic{columns:3;column-gap:.9rem}}
@media (min-width:1100px){.mosaic{columns:4}}
.ph{display:block;width:100%;margin:0 0 .6rem;border:0;padding:0;border-radius:var(--r);overflow:hidden;background:var(--alt);break-inside:avoid}
@media (min-width:760px){.ph{margin-bottom:.9rem}}
.ph img{display:block;width:100%;height:auto;transition:transform .5s}
.ph:hover img{transform:scale(1.03)}

/* منشورات */
.posts,.wall-grid{columns:1;column-gap:1rem}
@media (min-width:700px){.posts,.wall-grid{columns:2}}
@media (min-width:1050px){.posts,.wall-grid{columns:3}}
.post{break-inside:avoid;margin-bottom:1rem;background:var(--surf);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.post-media{display:grid;gap:2px;background:var(--line)}
.post-media.multi{grid-template-columns:1fr 1fr}
.post-media img,.post-media video{display:block;width:100%;height:auto;max-height:85vh;object-fit:contain;background:#000}
.post audio{display:block;width:calc(100% - 2rem);margin:1rem auto 0}
.post-text{padding:1.2rem 1.25rem 0;font-family:var(--naskh);font-size:1.25rem;line-height:1.95;overflow-wrap:anywhere}
.post-text.clamp{display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}
.post-more{margin:.3rem 1.25rem 0;padding:0;border:0;background:none;color:var(--brand);font-weight:600;font-size:.9rem}
.post footer,.card footer{display:flex;align-items:center;gap:.8rem;padding:.8rem 1.25rem .9rem;font-size:.85rem;color:var(--soft)}
.post-share,.card-share,.card-play{margin-inline-start:auto;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;border:1px solid var(--line);background:none;color:inherit}
.post-share svg,.card-share svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card-play svg{width:1rem;height:1rem;fill:currentColor}
.post.is-new{animation:fadein .5s ease-out}
@keyframes fadein{from{opacity:0;transform:translateY(-8px)}}

/* آية اليوم */
.band{margin-top:4rem;background:var(--brand);color:#f3efe2}
[data-time="night"] .band{background:#13302a}
.band-in{max-width:52rem;margin:0 auto;padding:3.5rem 1.25rem;text-align:center}
.band h2{font-size:1rem;font-weight:500;color:#e9cf96;margin-bottom:1rem}
.band-q{font-family:var(--naskh);font-size:clamp(1.6rem,4.5vw,2.3rem);line-height:2;margin:0}
.band .ayn{color:#e9cf96}
.band-ref{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem;margin:1.2rem 0 0;font-size:.95rem}
.band .btn-line{border-color:rgba(255,255,255,.35);color:#fff;min-height:2.6rem}
.band .btn-line:hover{border-color:#fff;color:#fff}

/* مربعات الأذكار */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}
@media (min-width:760px){.tiles{grid-template-columns:repeat(4,1fr);gap:1rem}}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem;min-height:8.5rem;padding:1.15rem 1.2rem;border-radius:var(--r);border:1px solid var(--line);background:var(--surf);text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.tile:hover{border-color:var(--brand);box-shadow:var(--shadow);transform:translateY(-2px);color:inherit}
.tile-t{font-weight:600;line-height:1.45}
.tile-n{font-size:.85rem;color:var(--brand)}

/* بطاقات اليوم */
.cards{columns:1;column-gap:1rem}
@media (min-width:700px){.cards{columns:2}}
@media (min-width:1050px){.cards{columns:3}}
.card{break-inside:avoid;margin-bottom:1rem;border-radius:var(--r);overflow:hidden}
.card footer{color:inherit;opacity:.88}
.card footer a{text-decoration:none}
.card-share,.card-play{border-color:currentColor}
.card-q{margin:0;font-family:var(--naskh);font-size:1.5rem;line-height:2.05;text-align:center}
.card-d{margin:0;padding:1.6rem 1.35rem .4rem;font-family:var(--naskh);font-size:1.28rem;line-height:2}
.card-n{font-size:.78rem;padding:.1rem .6rem;border:1px solid currentColor;border-radius:999px}
.arch{margin:1.1rem 1.1rem 0;padding:2.2rem 1.2rem 1.5rem;border:1px solid;border-color:color-mix(in srgb,currentColor 30%,transparent);border-radius:50% 50% 10px 10px / 4rem 4rem 10px 10px}
.card.v0,.card.v3{background:#1d5a4e;color:#f3efe2}
.card.v1,.card.v4{background:#f3efe6;color:#2b2a25}
.card.v2,.card.v5{background:#1b2f4a;color:#eef1f6}
[data-time="night"] .card.v1,[data-time="night"] .card.v4{background:#1b2a26;color:#eee}
.more{display:flex;margin:1rem auto 0}

/* سور */
.qchips{display:flex;flex-wrap:wrap;gap:.6rem;padding-bottom:4rem}
.qchips a{padding:.6rem 1.25rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-weight:500}
.qchips a:hover{border-color:var(--brand)}

/* ===== عارض الوسائط ===== */
.lb{width:100vw;max-width:100vw;height:100svh;max-height:100svh;margin:0;padding:0;border:0;background:rgba(5,10,9,.94)}
.lb::backdrop{background:rgba(5,10,9,.94)}
.lb-body{display:grid;place-items:center;width:100%;height:100%;padding:3.5rem .5rem 1rem}
.lb-body img,.lb-body video{max-width:100%;max-height:100%;border-radius:10px}
.lb-x{position:fixed;top:.8rem;inset-inline-end:.8rem;z-index:2;width:2.8rem;height:2.8rem;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:1.1rem}

/* ===== صفحات داخلية ===== */
.page-h{padding:2.8rem 0 1.4rem}
.page-h p{color:var(--soft);margin:0}
.search{display:block;margin-top:1.2rem}
.search input{width:100%;min-height:3.1rem;padding:.5rem 1.2rem;border:1px solid var(--line);border-radius:999px;background:var(--surf);color:var(--ink);font:inherit}
.search input:focus{border-color:var(--brand);outline:0;box-shadow:0 0 0 4px var(--glow)}
.index{list-style:none;margin:0;padding:0;columns:1}
@media (min-width:640px){.index{columns:2;column-gap:2.2rem}}
.index li{break-inside:avoid;border-bottom:1px solid var(--line);box-shadow:0 2px 12px -6px rgba(16,30,26,.12)}
.index a{display:flex;justify-content:space-between;gap:1rem;align-items:center;min-height:3.2rem;padding:.35rem 0;text-decoration:none;font-weight:500;line-height:1.5}
.index .n{color:var(--brand);font-size:.85rem}
.grp{margin-bottom:2.2rem}
.grp h2{font-size:1.05rem;color:var(--soft);font-weight:600;margin-bottom:.3rem}

.surahs{list-style:none;margin:0 0 3rem;padding:0;display:grid;grid-template-columns:1fr;gap:0 2.2rem}
@media (min-width:640px){.surahs{grid-template-columns:1fr 1fr}}
.surahs a{display:grid;grid-template-columns:2.5rem 1fr auto;align-items:center;gap:.9rem;min-height:3.7rem;border-bottom:1px solid var(--line);text-decoration:none}
.surahs .num{display:grid;place-items:center;width:2.3rem;height:2.3rem;border-radius:50%;background:var(--alt);font-size:.85rem;font-weight:600;color:var(--brand)}
.surahs .t{font-family:var(--naskh);font-size:1.35rem}
.surahs .m{font-size:.8rem;color:var(--soft)}

.surah-h{text-align:center;padding:2.8rem 0 1rem}
.surah-h .star{width:2.2rem;height:2.2rem}
.surah-h h1{font-family:var(--naskh);font-weight:700;font-size:clamp(2.2rem,8vw,3.2rem);margin:.2rem 0 .1rem}
.surah-h p{color:var(--soft);font-size:.9rem;margin:0 0 1rem}
.play-all,.play-one{display:inline-flex;align-items:center;gap:.45rem;min-height:2.7rem;padding:.3rem 1.2rem;border:1px solid var(--line);border-radius:999px;background:var(--surf);font-weight:500;font-size:.92rem}
.play-all svg,.play-one svg{width:1rem;height:1rem;fill:var(--brand)}
.band .play-one{background:transparent}
.band .play-one svg{fill:#fff}
.bism{text-align:center;font-family:var(--naskh);font-size:1.75rem;margin:.5rem 0 1.2rem}
.mushaf{margin:0;font-family:var(--naskh);font-size:clamp(1.55rem,5.4vw,2rem);line-height:2.2}
.flow{text-align:justify;text-align-last:center;padding:1.4rem 0;border-block:1px solid var(--line)}
.flow .ayah{border-radius:4px;transition:background-color .3s}
.flow .ayah.on{background:var(--glow);box-shadow:0 0 0 .2rem var(--glow)}
.ayn{font-family:var(--naskh);color:var(--gold);white-space:nowrap}
.flow .ayn{border:0;background:none;padding:0 .1rem;font-size:1em;line-height:inherit}
.pager{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:2rem 0 3rem;font-size:.92rem;font-weight:500}
.pager a{max-width:40%}

.player{position:fixed;inset-inline:1rem;bottom:1rem;z-index:25;display:flex;align-items:center;gap:.8rem;max-width:30rem;margin:0 auto;padding:.5rem .6rem .5rem 1rem;border-radius:999px;background:#0f1d1a;color:#fff;font-size:.9rem;box-shadow:0 12px 30px -12px rgba(0,0,0,.5);animation:fadein .3s}
.player span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.player button{width:2.6rem;height:2.6rem;border-radius:50%;border:0;background:var(--gold);color:#1b140a;display:grid;place-items:center}
.player svg{width:1.1rem;height:1.1rem;fill:currentColor}

.dhikrs{list-style:none;margin:0;padding:0}
.dhikr{padding:1.5rem 0 1.1rem;border-bottom:1px solid var(--line);box-shadow:0 2px 12px -6px rgba(16,30,26,.12)}
.dt{margin:0 0 .9rem;font-family:var(--naskh);font-size:1.45rem;line-height:2.05}
.acts{display:flex;align-items:center;gap:.5rem}
.count{position:relative;display:grid;place-items:center;width:3.4rem;height:3.4rem;border:0;background:none;padding:0;margin-inline-end:auto;touch-action:manipulation}
.count svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.count circle{fill:none;stroke-width:2.5}
.count .trk{stroke:var(--line)}
.count .prg{stroke:var(--brand);stroke-dasharray:106.8;stroke-dashoffset:106.8;transition:stroke-dashoffset .25s ease-out;stroke-linecap:round}
.count b{font-weight:600;font-size:.82rem}
.count:active{transform:scale(.94)}
.dhikr.done .dt{color:var(--soft)}
.dhikr.done .count b{color:var(--brand)}
.copy,.share{min-height:2.6rem;padding:.2rem 1rem;border:1px solid var(--line);border-radius:999px;background:none;font-size:.85rem;color:var(--soft)}
.copy:hover,.share:hover{border-color:var(--brand);color:var(--brand)}
.refs{margin:2rem 0 0;padding:1rem 1.25rem;background:var(--alt);border-radius:var(--r);font-size:.98rem}
.refs summary{cursor:pointer;font-weight:600;min-height:2rem}
.refs ol{margin:.6rem 0 0;padding-inline-start:1.4rem;color:var(--soft)}

.ch-tabs{display:flex;gap:.5rem;overflow-x:auto;margin-top:1rem;padding-bottom:.3rem}
.ch-tabs a{flex:none;padding:.35rem 1rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-size:.88rem}
.ch-tabs a[aria-current]{background:var(--brand);border-color:var(--brand);color:#fff}
a.more{width:max-content;margin:1rem auto 3rem;padding:.6rem 1.6rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-weight:600}
.empty{color:var(--soft);padding:2rem 0}

.prose{padding:2.8rem 0 3.5rem;max-width:38rem}
.prose h2{margin-top:2rem}
.prose ul{padding-inline-start:1.2rem}
.prose li{margin-bottom:.5rem}
.prose.center{text-align:center;margin:0 auto}
.dua-note{color:var(--brand);font-weight:600;margin-top:2rem}
.soon{color:var(--soft)}

/* ===== التذييل ===== */
.foot{background:#0b1513;color:#c8d3cf;margin-top:0}
.foot-in{max-width:var(--wide);margin:0 auto;padding:3rem 1.25rem 1.6rem;font-size:.95rem}
.foot-name{display:flex;align-items:center;gap:.55rem;font-weight:700;font-size:1.1rem;color:#fff;margin:0 0 1.2rem}
.foot nav{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-bottom:1.6rem;padding-bottom:1.6rem;border-bottom:1px solid rgba(255,255,255,.1)}
.foot nav a{text-decoration:none;color:#fff;font-weight:500}
.foot nav a:hover{color:#e9cf96}
.foot a{color:#e9cf96}
.foot-ch,.foot-src{margin:.4rem 0;line-height:1.9;max-width:52rem}
.foot-credit{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;margin-top:1.8rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.1);font-size:.88rem;color:#9fb0aa}
.foot-credit a{color:#fff;font-weight:600;text-decoration:none}
.foot-credit a:hover{color:#e9cf96}

.toast{position:fixed;left:50%;bottom:1.4rem;transform:translateX(-50%);z-index:60;padding:.55rem 1.3rem;border-radius:999px;background:#0f1d1a;color:#fff;font-size:.88rem;box-shadow:0 10px 30px -10px rgba(0,0,0,.4);animation:fadein .25s}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ===== تحديث عصري ===== */
h2{font-size:clamp(1.6rem,3.6vw,2.25rem);letter-spacing:-.02em}
.sec{padding:4.5rem 0 0}
.sec-h{margin-bottom:1.6rem}
.post-text{font-family:var(--sans);font-size:1.08rem;line-height:1.95;font-weight:400}
.post{border:0;border-radius:20px;background:var(--alt);box-shadow:none}
.post footer{padding:.9rem 1.4rem 1.1rem}
.post-text{padding:1.4rem 1.4rem 0}
.post-more{margin:.4rem 1.4rem 0}
.card-d{font-family:var(--sans);font-size:1.12rem;line-height:1.95;font-weight:500}
.card{border-radius:20px}
.tile{border:0;background:var(--alt);border-radius:20px}
.tile:hover{background:var(--glow);box-shadow:none}
.ph,.vcard{border-radius:20px}
.qchips a{border:0;background:var(--alt)}
.qchips a:hover{background:var(--glow)}

/* شريط المنشورات النصية */
.qrail{grid-auto-columns:min(82%,20rem)}
.qrail .post{display:flex;flex-direction:column;margin:0;height:22rem;scroll-snap-align:start}
.qrail .post:nth-child(4n+1){background:#eef4f1}
.qrail .post:nth-child(4n+2){background:#f6f1e7}
.qrail .post:nth-child(4n+3){background:#eef1f7}
.qrail .post:nth-child(4n+4){background:#f4eff1}
[data-time="night"] .qrail .post{background:var(--surf)}
.qrail .post-text{flex:1;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 80%,transparent);mask-image:linear-gradient(180deg,#000 80%,transparent)}
.qrail .post-text.clamp{display:block;-webkit-line-clamp:unset}
.qrail .post footer{margin-top:auto}
.lb-text{max-width:40rem;max-height:100%;overflow:auto;padding:2rem 1.6rem;border-radius:20px;background:var(--bg);color:var(--ink);font-size:1.15rem;line-height:2}

/* هيدر شفاف فوق الواجهة في الصفحة الرئيسية */
.home .top{position:fixed;left:0;right:0;background:transparent;border-color:transparent;box-shadow:none;color:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;transition:background-color .3s,color .3s,box-shadow .3s}
.home .top .theme-btn,.home .top .lang{color:rgba(255,255,255,.85)}
.home .top.solid{background:color-mix(in srgb,var(--bg) 94%,transparent);color:var(--ink);border-color:var(--line);box-shadow:0 2px 12px -6px rgba(16,30,26,.12);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px)}
.home .top.solid .theme-btn,.home .top.solid .lang{color:var(--soft)}
@media (min-width:1100px){.home .top:not(.solid) .nav-desk a{color:#fff}.home .top:not(.solid) .nav-desk a[aria-current]{background:rgba(255,255,255,.14)}}
.home .nav-desk.open{color:var(--ink)}
.hero{min-height:min(92svh,52rem)}
.foot-credit{align-items:center}
.wn{display:inline-flex;align-items:center;gap:.7rem;color:#c8d3cf!important;font-weight:400!important}
.wn img{display:block;height:2.2rem;width:auto;padding:.3rem .7rem;border-radius:10px;background:#fff}
.wn:hover img{box-shadow:0 0 0 2px #e9cf96}

/* ===== رأس فخم للصفحات الداخلية ===== */
.page-h,.surah-h{position:relative;margin:0 calc(50% - 50vw) 2rem;padding:4rem max(1.25rem,calc(50vw - var(--w)/2)) 3rem;
  background:radial-gradient(90% 120% at 85% 0%,#235f52 0%,#0f2a24 55%,#0b1513 100%);color:#fff;text-align:start;overflow:hidden}
.page-h::after,.surah-h::after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,transparent,#b48a3c,transparent)}
.page-h h1,.surah-h h1{color:#fff}
.page-h p,.surah-h p{color:rgba(255,255,255,.75)}
.surah-h{text-align:center}
.surah-h .play-all{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff}
.surah-h .play-all svg{fill:#e9cf96}
.page-h .search input{background:rgba(255,255,255,.96);border-color:transparent;color:#0f1d1a}
.chapter .page-h{margin-bottom:1rem}
.prose{padding-top:3.5rem}
.prose h1{font-size:clamp(2rem,5vw,2.8rem);padding-bottom:.8rem;border-bottom:3px solid var(--gold);display:inline-block}
.foot-credit{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1rem}
.wn{flex-direction:column-reverse;gap:.45rem;font-size:.85rem}
.foot-credit{flex-direction:row;justify-content:space-between;align-items:center;text-align:start}
.wn{align-items:center}
.foot-credit{align-items:flex-start}
.foot-credit>span{line-height:2.2rem}

/* ===== سماء الواجهة حسب الوقت ===== */
.hero{background:#0b1513}
.sky{position:absolute;inset:0;z-index:-2;overflow:hidden;background:var(--sky);transition:background 1s}
.hero-shade{background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.18) 60%,rgba(0,0,0,.5) 100%)}
.stars{position:absolute;top:0;left:0;width:1px;height:1px;border-radius:50%;opacity:0;transition:opacity 1.5s}
.stars.s1{box-shadow:0px 829px 0 0px #fff,578px 189px 0 0px #fff,1459px 479px 0 0px #fff,659px 677px 0 0px #fff,1510px 489px 0 0px #fff,1369px 572px 0 0px #fff,1634px 218px 0 0px #fff,748px 637px 0 0px #fff,1396px 48px 0 0px #fff,1368px 421px 0 0px #fff,1845px 727px 0 0px #fff,246px 462px 0 0px #fff,1846px 620px 0 0px #fff,1288px 520px 0 0px #fff,1824px 818px 0 0px #fff,744px 302px 0 0px #fff,1674px 299px 0 0px #fff,305px 268px 0 0px #fff,857px 265px 0 0px #fff,1875px 502px 0 0px #fff,1459px 790px 0 0px #fff,117px 246px 0 0px #fff,1121px 458px 0 0px #fff,843px 174px 0 0px #fff,1818px 49px 0 0px #fff,731px 310px 0 0px #fff,1329px 832px 0 0px #fff,1030px 149px 0 0px #fff,811px 255px 0 0px #fff,729px 382px 0 0px #fff,665px 478px 0 0px #fff,1228px 210px 0 0px #fff,1813px 412px 0 0px #fff,1726px 572px 0 0px #fff,1269px 465px 0 0px #fff,1010px 620px 0 0px #fff,1879px 357px 0 0px #fff,1416px 226px 0 0px #fff,1174px 316px 0 0px #fff,661px 352px 0 0px #fff,1589px 790px 0 0px #fff,222px 737px 0 0px #fff,155px 366px 0 0px #fff,307px 70px 0 0px #fff,1992px 198px 0 0px #fff,1265px 130px 0 0px #fff,914px 534px 0 0px #fff,276px 830px 0 0px #fff,1769px 802px 0 0px #fff,1770px 817px 0 0px #fff,1522px 248px 0 0px #fff,21px 223px 0 0px #fff,152px 1px 0 0px #fff,1234px 208px 0 0px #fff,1482px 440px 0 0px #fff,1375px 214px 0 0px #fff,1764px 212px 0 0px #fff,748px 805px 0 0px #fff,237px 440px 0 0px #fff,6px 822px 0 0px #fff,1274px 830px 0 0px #fff,42px 810px 0 0px #fff,376px 872px 0 0px #fff,1131px 611px 0 0px #fff,533px 200px 0 0px #fff,418px 508px 0 0px #fff,105px 692px 0 0px #fff,1401px 643px 0 0px #fff,996px 29px 0 0px #fff,221px 827px 0 0px #fff,262px 619px 0 0px #fff,1786px 33px 0 0px #fff,1766px 775px 0 0px #fff,1985px 859px 0 0px #fff,1530px 378px 0 0px #fff,496px 655px 0 0px #fff,1764px 358px 0 0px #fff,469px 364px 0 0px #fff,1774px 503px 0 0px #fff,703px 559px 0 0px #fff,1470px 302px 0 0px #fff,1450px 380px 0 0px #fff,397px 281px 0 0px #fff,1971px 895px 0 0px #fff,1265px 785px 0 0px #fff,1837px 180px 0 0px #fff,1290px 122px 0 0px #fff,995px 502px 0 0px #fff,1543px 851px 0 0px #fff,964px 168px 0 0px #fff;width:2px;height:2px;animation:twinkle 4s ease-in-out infinite alternate}
.stars.s2{box-shadow:893px 149px 0 0.5px #fff,1325px 470px 0 0.5px #fff,1123px 456px 0 0.5px #fff,1514px 326px 0 0.5px #fff,1502px 23px 0 0.5px #fff,598px 488px 0 0.5px #fff,406px 651px 0 0.5px #fff,582px 212px 0 0.5px #fff,1319px 386px 0 0.5px #fff,151px 696px 0 0.5px #fff,1646px 824px 0 0.5px #fff,1820px 613px 0 0.5px #fff,1918px 23px 0 0.5px #fff,1524px 541px 0 0.5px #fff,1448px 808px 0 0.5px #fff,74px 122px 0 0.5px #fff,161px 97px 0 0.5px #fff,170px 9px 0 0.5px #fff,1210px 851px 0 0.5px #fff,384px 120px 0 0.5px #fff,404px 607px 0 0.5px #fff,487px 411px 0 0.5px #fff,1988px 380px 0 0.5px #fff,1348px 697px 0 0.5px #fff,794px 375px 0 0.5px #fff,122px 207px 0 0.5px #fff,1615px 877px 0 0.5px #fff,305px 833px 0 0.5px #fff,1017px 110px 0 0.5px #fff,420px 542px 0 0.5px #fff,341px 70px 0 0.5px #fff,545px 582px 0 0.5px #fff,1112px 433px 0 0.5px #fff,1988px 68px 0 0.5px #fff,827px 283px 0 0.5px #fff,8px 6px 0 0.5px #fff,827px 82px 0 0.5px #fff,468px 832px 0 0.5px #fff,1555px 688px 0 0.5px #fff,874px 769px 0 0.5px #fff,1925px 721px 0 0.5px #fff,1324px 515px 0 0.5px #fff,696px 366px 0 0.5px #fff,994px 445px 0 0.5px #fff,1135px 650px 0 0.5px #fff;width:2px;height:2px;animation:twinkle 6s 1.5s ease-in-out infinite alternate}
@keyframes twinkle{from{filter:brightness(.4)}to{filter:brightness(1.2)}}
.orb{position:absolute;opacity:0;transition:opacity 1.5s,transform 1.5s}
.sun{width:7rem;height:7rem;border-radius:50%;top:14%;left:12%;background:radial-gradient(circle,#fffbe6 0 35%,#ffe28a 55%,rgba(255,226,138,0) 72%);filter:blur(1px)}
.moon{width:5.5rem;height:5.5rem;top:13%;left:14%;fill:#fdf3d0;transform:rotate(-20deg);filter:drop-shadow(0 0 18px rgba(253,243,208,.55))}
.cloud{position:absolute;opacity:0;height:3.2rem;border-radius:999px;background:#fff;filter:blur(6px);transition:opacity 1.5s}
.cloud::before,.cloud::after{content:"";position:absolute;border-radius:50%;background:inherit}
.cloud::before{width:55%;height:180%;top:-90%;left:15%}
.cloud::after{width:40%;height:140%;top:-60%;left:50%}
.c1{width:14rem;top:22%;animation:drift 90s linear infinite}
.c2{width:10rem;top:38%;animation:drift 120s -40s linear infinite;transform:scale(.8)}
.c3{width:18rem;top:12%;animation:drift 150s -90s linear infinite}
@keyframes drift{from{left:-30%}to{left:110%}}
.horizon{position:absolute;inset:auto 0 0 0;height:35%;background:linear-gradient(0deg,var(--glowh,transparent),transparent)}

[data-sky="fajr"] .sky{--sky:linear-gradient(180deg,#1d2350 0%,#4b3f7a 40%,#c9799a 75%,#f3b48b 100%);--glowh:rgba(255,190,140,.35)}
[data-sky="fajr"] .stars.s2{opacity:.5}
[data-sky="fajr"] .moon{opacity:.7}

[data-sky="morning"] .sky{--sky:linear-gradient(180deg,#4f9fe0 0%,#86c1ee 55%,#cfe6f7 100%)}
[data-sky="morning"] .sun{opacity:1}
[data-sky="morning"] .cloud{opacity:.85}

[data-sky="noon"] .sky{--sky:linear-gradient(180deg,#1f78d1 0%,#4ea3ea 50%,#a9d4f5 100%)}
[data-sky="noon"] .sun{opacity:1;top:8%;left:46%}
[data-sky="noon"] .cloud{opacity:.7}

[data-sky="asr"] .sky{--sky:linear-gradient(180deg,#3d79b8 0%,#9db9c9 40%,#e9c27c 80%,#f0a95a 100%);--glowh:rgba(255,200,120,.35)}
[data-sky="asr"] .sun{opacity:1;top:34%;left:16%;background:radial-gradient(circle,#fff6d8 0 35%,#ffc768 55%,rgba(255,199,104,0) 72%)}
[data-sky="asr"] .cloud{opacity:.55}

[data-sky="maghrib"] .sky{--sky:linear-gradient(180deg,#2a2f63 0%,#7b3f6e 35%,#e0604a 70%,#f7a04b 100%);--glowh:rgba(255,140,70,.45)}
[data-sky="maghrib"] .sun{opacity:1;top:auto;bottom:-2.5rem;left:20%;width:9rem;height:9rem;background:radial-gradient(circle,#ffe3b0 0 35%,#ff8a4c 55%,rgba(255,138,76,0) 72%)}
[data-sky="maghrib"] .stars.s2{opacity:.35}
[data-sky="maghrib"] .cloud{opacity:.35;background:#ffd2b8}

[data-sky="night"] .sky{--sky:radial-gradient(120% 80% at 20% 0%,#1b2a55 0%,#0c1430 45%,#060a1a 100%)}
[data-sky="night"] .stars{opacity:1}
[data-sky="night"] .moon{opacity:1}

@media (prefers-reduced-motion:reduce){.cloud{animation:none}.c1{left:10%}.c2{left:55%}.c3{left:70%}}
.home .top:not(.solid){text-shadow:0 1px 8px rgba(0,0,0,.25)}
.hero-in{text-shadow:0 2px 18px rgba(0,0,0,.25)}
/* ألوان سماء أكثر حيوية */
[data-sky="fajr"] .sky{--sky:linear-gradient(180deg,#0f1a4a 0%,#5a3f8f 38%,#e07aa3 72%,#ffc08a 100%)}
[data-sky="morning"] .sky{--sky:linear-gradient(180deg,#2f86e8 0%,#5fb0f5 45%,#a9dbff 100%)}
[data-sky="noon"] .sky{--sky:linear-gradient(180deg,#0b66d6 0%,#2f95f0 50%,#86cbff 100%)}
[data-sky="asr"] .sky{--sky:linear-gradient(180deg,#2a78cc 0%,#76b3e0 35%,#f6c66d 78%,#ff9a3c 100%)}
[data-sky="maghrib"] .sky{--sky:linear-gradient(180deg,#1b2566 0%,#8a3b7c 35%,#f2584a 70%,#ffb347 100%)}
[data-sky="morning"] .hero-shade,[data-sky="noon"] .hero-shade,[data-sky="asr"] .hero-shade{background:linear-gradient(180deg,rgba(0,20,60,0) 35%,rgba(0,20,60,.28) 100%)}
[data-sky="morning"] .cloud,[data-sky="noon"] .cloud{filter:blur(4px)}
[data-sky="maghrib"] .hero-shade,[data-sky="fajr"] .hero-shade{background:linear-gradient(180deg,rgba(20,10,40,0) 40%,rgba(20,10,40,.3) 100%)}
[data-sky="maghrib"] .cloud{opacity:.5;background:#ffc3a0}

/* ===== صور سماء حقيقية للنهار (Unsplash) — الليل يبقى نجومًا مرسومة ===== */
[data-sky="fajr"] .sky{background:#3a6ea8 url(https://images.unsplash.com/photo-1779380033776-ca3c5e64c893?w=900&auto=format&fit=crop&q=70) center/cover no-repeat}
@media (min-width:900px){[data-sky="fajr"] .sky{background-image:url(https://images.unsplash.com/photo-1779380033776-ca3c5e64c893?w=1920&auto=format&fit=crop&q=70)}}
[data-sky="morning"] .sky{background:#3a6ea8 url(https://images.unsplash.com/photo-1783180340813-1fb4efc59a76?w=900&auto=format&fit=crop&q=70) center/cover no-repeat}
@media (min-width:900px){[data-sky="morning"] .sky{background-image:url(https://images.unsplash.com/photo-1783180340813-1fb4efc59a76?w=1920&auto=format&fit=crop&q=70)}}
[data-sky="noon"] .sky{background:#3a6ea8 url(https://images.unsplash.com/photo-1786155458439-48e8f5a7d72e?w=900&auto=format&fit=crop&q=70) center/cover no-repeat}
@media (min-width:900px){[data-sky="noon"] .sky{background-image:url(https://images.unsplash.com/photo-1786155458439-48e8f5a7d72e?w=1920&auto=format&fit=crop&q=70)}}
[data-sky="asr"] .sky{background:#3a6ea8 url(https://images.unsplash.com/photo-1778604292967-59caf72abcdc?w=900&auto=format&fit=crop&q=70) center/cover no-repeat}
@media (min-width:900px){[data-sky="asr"] .sky{background-image:url(https://images.unsplash.com/photo-1778604292967-59caf72abcdc?w=1920&auto=format&fit=crop&q=70)}}
[data-sky="maghrib"] .sky{background:#3a6ea8 url(https://images.unsplash.com/photo-1761002669678-88cf8717e409?w=900&auto=format&fit=crop&q=70) center/cover no-repeat}
@media (min-width:900px){[data-sky="maghrib"] .sky{background-image:url(https://images.unsplash.com/photo-1761002669678-88cf8717e409?w=1920&auto=format&fit=crop&q=70)}}
[data-sky]:not([data-sky="night"]) .cloud,[data-sky]:not([data-sky="night"]) .sun,[data-sky]:not([data-sky="night"]) .horizon,[data-sky]:not([data-sky="night"]) .stars,[data-sky]:not([data-sky="night"]) .moon{display:none}
[data-sky]:not([data-sky="night"]) .hero-shade{background:linear-gradient(180deg,rgba(0,0,0,.25) 0%,rgba(0,0,0,0) 25%,rgba(0,0,0,.15) 50%,rgba(0,10,25,.6) 100%)}
/* شعار ويبنا: أبيض أحادي اللون بلا خلفية */
.wn img{background:none;padding:0;border-radius:0;height:2rem;filter:brightness(0) invert(1);opacity:.8;transition:opacity .2s}
.wn:hover img{box-shadow:none;opacity:1}
.tg-link{display:inline-flex;align-items:center;gap:.4rem;vertical-align:middle}
.tg-ico{width:1.25rem;height:1.25rem;flex:none}

/* صفوف الصور الممتلئة */
.mosaic{columns:auto;display:flex;flex-wrap:wrap;gap:8px}
.mosaic .ph{flex:none;margin:0;width:auto}
.mosaic .ph img{width:100%;height:100%;object-fit:cover}

/* فوتر بأعمدة */
.foot-cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem;padding-bottom:2rem}
.foot-brand p:not(.foot-name){margin:0;color:#9fb0aa;line-height:1.9;max-width:26rem}
.foot-col h2{font-size:.95rem;font-weight:600;color:#fff;margin:0 0 1rem}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}
.foot-col li{display:flex;flex-direction:column;gap:.1rem;color:#c8d3cf;line-height:1.5}
.foot-col li>span{font-size:.8rem;color:#7f918b}
.foot-col a{color:#c8d3cf;text-decoration:none}
.foot-col a:hover{color:#e9cf96}
.foot .tg-link{display:inline-flex;flex-direction:row;align-items:center;gap:.5rem}
.foot-credit{margin-top:0}
@media (max-width:760px){.foot-cols{grid-template-columns:1fr 1fr;gap:2rem 1.5rem}.foot-brand{grid-column:1/-1}}
