:root {
  --navy: #0e1a33;
  --navy2: #16254a;
  --navy3: #1f3260;
  --gold: #e3b45c;
  --gold2: #f3d28e;
  --cream: #f6eddc;
  --text: #e9e3d4;
  --muted: #a9b3c9;
  --ar: "Amiri", "Traditional Arabic", serif;
  --kufi: "Reem Kufi", "Amiri", serif;
  --en: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  background-image: radial-gradient(ellipse at 50% -10%, #23386b 0%, var(--navy) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--ar);
  font-size: 19px;
  line-height: 1.7;
  overflow-x: hidden;
}
html:not([lang="ar"]) body { font-family: var(--en); font-size: 20px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px;
  padding: 8px 24px 0;
  background: rgba(14, 26, 51, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 180, 92, .18);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 50%; }
.brand-name { font-family: var(--kufi); color: var(--gold); font-size: 24px; line-height: 1; }
.brand-name small { font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-inline-start: 6px; }
/* language dropdown */
.langdd { position: relative; z-index: 30; margin-inline-start: auto; flex: none; }
.ld-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer; font: 15px var(--ar); color: var(--gold);
  background: transparent; border: 1px solid var(--gold); border-radius: 30px; padding: 4px 12px;
}
.ld-btn:hover, .langdd.open .ld-btn { background: rgba(227,180,92,.12); }
.ld-globe { font-size: 15px; }
.ld-arrow { font-size: 11px; transition: transform .2s; }
.langdd.open .ld-arrow { transform: rotate(180deg); }
.ld-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px; z-index: 20;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: #0f1c3a; border: 1px solid rgba(227,180,92,.4); box-shadow: 0 14px 34px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.langdd.open .ld-list { opacity: 1; visibility: visible; transform: none; }
.ld-list button {
  font: 17px var(--ar); text-align: start; color: var(--cream); background: transparent; border: 0;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
}
.ld-list button[data-l="en"], .ld-list button[data-l="fr"] { font-family: var(--en); font-size: 18px; }
.ld-list button:hover { background: rgba(227,180,92,.12); }
.ld-list button.on { color: var(--navy); background: var(--gold); }

/* hero */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: 70px 20px 90px; min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.glow {
  position: absolute; top: 8%; left: 50%; width: 420px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(227,180,92,.22), transparent 65%); pointer-events: none;
}
.logo { margin: 0 0 10px; line-height: 0; }
.logo img {
  width: 320px; height: auto; display: block;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
}
.tagline { font-size: 26px; color: var(--gold2); margin: 0 0 12px; }
.tagline span { color: var(--gold); margin: 0 8px; }
.tagline em { font-family: var(--en); }
.bio { max-width: 560px; color: var(--muted); margin: 0 auto 30px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn { padding: 11px 26px; border-radius: 40px; font-size: 18px; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--navy); font-weight: 700; }
.btn.line { border: 1px solid var(--gold); color: var(--gold); }
.btn.line:hover { background: rgba(227,180,92,.12); }

/* sections */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }
.head { text-align: center; margin-bottom: 40px; }
.orn { display: block; width: 140px; height: 12px; margin: 0 auto 10px;
  background: linear-gradient(var(--gold), var(--gold)) center/100% 1px no-repeat; position: relative; }
.orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.head h2 { font-family: var(--kufi); color: var(--gold); font-size: 40px; margin: 0; font-weight: 500; }
html:not([lang="ar"]) .head h2 { font-family: var(--en); font-weight: 600; }
.head p { color: var(--muted); margin: 6px auto 0; max-width: 620px; }

/* video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.vcard {
  background: var(--navy2); border: 1px solid rgba(227,180,92,.2); border-radius: 18px;
  overflow: hidden; cursor: pointer; text-align: start; padding: 0; color: inherit; font: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.thumb { position: relative; aspect-ratio: 9 / 16; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(14,26,51,.7); border: 2px solid var(--gold); display: grid; place-items: center;
}
.play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold); margin-left: 5px; }
.vtext { padding: 10px 12px 12px; }
.vtext .t { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cream); }
.vtext .s { margin: 4px 0 0; font-size: 14px; color: var(--gold); }
.play { width: 50px; height: 50px; }

/* about */
.lead { text-align: center; max-width: 720px; margin: 0 auto 40px; font-size: 22px; color: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.15); border-radius: 16px; padding: 22px; text-align: center; }
.card .ic { font-size: 30px; }
.card h3 { color: var(--gold2); margin: 8px 0 4px; font-size: 21px; }
.card p { color: var(--muted); margin: 0; font-size: 17px; }
.sheikhs { text-align: center; margin-top: 46px; }
.sheikhs h3 { color: var(--gold2); font-weight: 400; }
.sheikhs ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sheikhs li { border: 1px solid rgba(227,180,92,.35); border-radius: 30px; padding: 4px 16px; font-size: 17px; }

/* follow */
.follow { text-align: center; }
.socials { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.sbtn {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s;
}
.sbtn svg { width: 36px; height: 36px; }
.sbtn:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 0 3px rgba(227,180,92,.6); }
.sbtn.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sbtn.tt { background: #000; text-shadow: none; }
.sbtn.tt svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.sbtn.yt { background: #ff0000; }
.sbtn.fb { background: #1877f2; }
.handle { color: var(--gold2); font-family: var(--en); font-size: 22px; margin: 18px 0 0; letter-spacing: .04em; }
.social {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; border-radius: 50px;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--en); font-size: 21px;
}
.social svg { width: 28px; height: 28px; }
.social b { color: var(--cream); font-weight: 500; }
.social:hover { background: rgba(227,180,92,.12); }

footer { text-align: center; padding: 40px 20px 50px; border-top: 1px solid rgba(227,180,92,.15); color: var(--muted); }
footer img { border-radius: 50%; }
footer p { color: var(--gold2); margin: 6px 0; }

/* player — بحال الريلز: الفيديو كيعمر الشاشة، بلا حتى كتابة */
.player { position: fixed; inset: 0; z-index: 300; height: 100vh; height: 100dvh; background: #000; display: grid; place-items: center; padding: 0; overflow: hidden; }
.player[hidden] { display: none; }
.player-box { position: absolute; inset: 0; width: auto; height: auto; display: flex; align-items: center; justify-content: center; gap: 0; pointer-events: none; }
.pv-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pv-wrap video, .pv-wrap .yt-frame { pointer-events: auto; }
.player video, .player .yt-frame { width: auto; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 9 / 16; border-radius: 0; background: #000; border: 0; object-fit: contain; }
.pclose { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(227,180,92,.6); background: rgba(5,10,22,.72); color: var(--gold); font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.pclose:hover { border-color: var(--gold); background: rgba(10,19,41,.9); }
/* غلاف + دائرة تحميل ديال اليوتيوب */
.yt-poster { position: absolute; inset: 0; z-index: 2; background: #000; display: grid; place-items: center; overflow: hidden; }
.yt-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.yt-poster .yt-spin { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(227,180,92,.22); border-top-color: var(--gold); animation: ytspin .9s linear infinite; }
.yt-poster.off { opacity: 0; visibility: hidden; transition: opacity .35s ease; }
@keyframes ytspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .yt-poster .yt-spin { animation-duration: 2.4s; } }

/* stars */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars i { position: absolute; border-radius: 50%; background: var(--gold2); opacity: .15; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .75; } }
.top, main, footer { position: relative; z-index: 1; }
.top { position: sticky; z-index: 10; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.vcard.reveal.in:hover { transform: translateY(-4px); }

/* chips */
.chip {
  display: inline-block; font: inherit; font-size: 16px; cursor: pointer; white-space: nowrap;
  padding: 7px 18px; border-radius: 30px; border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--navy);
}
.chip.ghost { background: transparent; color: var(--gold); }
.chip:hover { filter: brightness(1.08); }

/* verse of the day */
.ayah-card {
  position: relative; max-width: 780px; margin: 0 auto; padding: 46px 36px 30px; text-align: center;
  background: linear-gradient(180deg, rgba(31,50,96,.55), rgba(14,26,51,.6));
  border: 1px solid rgba(227,180,92,.45); border-radius: 200px 200px 22px 22px;
  box-shadow: 0 0 60px rgba(227,180,92,.08) inset; transition: opacity .28s;
}
.ayah-card.fade { opacity: 0; }
.ayah-ar { font-family: "Amiri Quran", var(--ar); font-size: 32px; line-height: 2.1; color: var(--gold2); margin: 0; }
.ayah-ar.long { font-size: 25px; }
.divider { display: block; width: 90px; height: 1px; background: var(--gold); margin: 18px auto; opacity: .7; }
.ayah-en { font-family: var(--en); font-style: italic; font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 600px; }
.ayah-ref { color: var(--gold); margin-top: 14px; font-size: 17px; }
.ayah-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* tasbih */
.beads-wrap { text-align: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab { font: inherit; font-size: 16px; padding: 5px 14px; border-radius: 30px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid rgba(227,180,92,.3); }
.tab.on { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.bead {
  position: relative; width: 240px; height: 240px; border-radius: 50%; border: 0; cursor: pointer; margin: 0 auto;
  background: radial-gradient(circle at 50% 40%, #2a4078, var(--navy2) 70%);
  box-shadow: 0 0 40px rgba(227,180,92,.15), inset 0 0 30px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cream);
  font: inherit; -webkit-tap-highlight-color: transparent; user-select: none;
}
.bead:active { transform: scale(.97); }
.bead.pulse { animation: pulse .35s ease; }
@keyframes pulse { 50% { box-shadow: 0 0 70px rgba(227,180,92,.45), inset 0 0 30px rgba(0,0,0,.4); } }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(227,180,92,.15); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .25s; }
.bead-word { font-size: 24px; color: var(--gold2); position: relative; }
.bead-count { font-family: var(--en); font-size: 58px; line-height: 1.1; position: relative; }
.bead-hint { font-size: 14px; color: var(--muted); position: relative; }
.total { color: var(--muted); margin: 18px 0 10px; }
.total b { color: var(--gold2); font-family: var(--en); font-size: 22px; }

/* video badge + share */
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: var(--navy);
  font-size: 13px; padding: 1px 10px; border-radius: 20px; font-weight: 700; }
.share { margin-top: 16px; }
.share-icons { display: flex; gap: 10px; }
.share-icons.small { gap: 8px; margin-top: 10px; }
.sicon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--gold); background: transparent; color: var(--gold); transition: transform .15s, background .2s, color .2s;
}
.sicon svg { width: 24px; height: 24px; }
.sicon.wa { background: #25d366; border-color: #25d366; color: #fff; }
.sicon:hover { transform: scale(1.08); }
.sicon.cp:hover { background: var(--gold); color: var(--navy); }
.share-icons.small .sicon { width: 34px; height: 34px; }
.share-icons.small .sicon svg { width: 18px; height: 18px; }
.vcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.share-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); opacity: 0; z-index: 60;
  background: var(--gold); color: var(--navy); padding: 8px 22px; border-radius: 30px; font-weight: 700;
  transition: opacity .3s, transform .3s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- menu ---------- */
/* the menu is a strip under the logo, always visible; on small screens it slides sideways */
.menu {
  flex-basis: 100%; order: 3; display: flex; gap: 6px; justify-content: center;
  margin: 8px -24px 0; padding: 6px 24px 8px; border-top: 1px solid rgba(227,180,92,.12);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none; color: var(--muted); padding: 5px 13px; border-radius: 20px; white-space: nowrap; font-size: 16px;
  border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s;
}
.menu a:hover { color: var(--gold2); background: rgba(227,180,92,.08); }
.menu a.here { color: var(--navy); background: var(--gold); }
@media (max-width: 1100px) {
  .menu { justify-content: flex-start; margin: 8px -16px 0; padding: 6px 16px 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
  .menu a { background: rgba(31,50,96,.5); border-color: rgba(227,180,92,.15); color: var(--cream); font-size: 15px; }
  /* fade only the side where more pages are hiding */
  .menu { -webkit-mask-image: none; mask-image: none; }
  .menu.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
  .menu.more-l { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
  .menu.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
}
.mscroll { position: absolute; z-index: 2; width: 30px; height: 30px; margin-top: -15px; padding: 0 0 3px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--navy); color: var(--gold2); font: 700 22px/1 Georgia, serif; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.5); transition: opacity .3s; }
.mscroll[hidden] { display: none; }
.mscroll.l { left: 6px; }
.mscroll.r { right: 6px; }
.mscroll.pulse { animation: mpulse 1.2s ease-in-out 3; }
@keyframes mpulse { 50% { box-shadow: 0 0 0 7px rgba(227,180,92,.25), 0 2px 10px rgba(0,0,0,.5); transform: scale(1.1); } }
@media (max-width: 480px) {
  .brand-name { display: none; }
}

/* ---------- sub pages ---------- */
.page-hero { text-align: center; padding: 60px 20px 10px; position: relative; }
.page-hero h1 { font-family: var(--kufi); color: var(--gold); font-size: 52px; margin: 0; font-weight: 500; }
html:not([lang="ar"]) .page-hero h1 { font-family: var(--en); font-weight: 600; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 8px auto 0; }
.switch { display: inline-flex; gap: 6px; padding: 5px; border-radius: 40px; background: rgba(31,50,96,.6); border: 1px solid rgba(227,180,92,.3); margin-top: 26px; }
.switch button { font: inherit; font-size: 18px; border: 0; cursor: pointer; padding: 8px 22px; border-radius: 30px; background: transparent; color: var(--muted); }
.switch button.on { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--navy); }
.progress { max-width: 760px; margin: 24px auto 0; height: 8px; border-radius: 8px; background: rgba(227,180,92,.15); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width .4s; }
.progress-label { text-align: center; color: var(--muted); font-size: 15px; margin-top: 6px; }
.list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.dcard {
  position: relative; text-align: center; padding: 24px 22px 18px; border-radius: 20px; cursor: pointer; user-select: none;
  background: linear-gradient(180deg, rgba(31,50,96,.6), rgba(14,26,51,.6)); border: 1px solid rgba(227,180,92,.28);
  transition: border-color .2s, opacity .4s, transform .15s;
}
.dcard:hover { border-color: var(--gold); }
.dcard:active { transform: scale(.99); }
.dcard.done { opacity: .45; border-color: rgba(120,200,140,.6); }
.dcard .dt { font-size: 23px; line-height: 2; color: var(--cream); margin: 0; white-space: pre-line; }
.dcard .dt.q { font-family: "Amiri Quran", var(--ar); color: var(--gold2); font-size: 24px; line-height: 2.2; }
html:not([lang="ar"]) .dcard .dt { font-family: var(--en); font-size: 21px; line-height: 1.6; }
.dcard .ds { color: var(--gold); font-size: 15px; margin: 10px 0 0; }
.dcard .dc { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 16px; border-radius: 30px;
  background: rgba(227,180,92,.14); color: var(--gold2); font-family: var(--en); font-size: 18px; }
.dcard.done .dc { background: rgba(120,200,140,.2); color: #b9f0c6; }
.dcard .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.dua .dt { font-family: "Amiri Quran", var(--ar); color: var(--gold2); font-size: 26px; line-height: 2.2; }
.dua { cursor: default; }
.dua .de { font-family: var(--en); font-style: italic; color: var(--muted); font-size: 18px; margin: 10px auto 0; max-width: 600px; direction: ltr; }
.dua .acts { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.dua .dt { direction: rtl; }
.note { max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- quran ---------- */
.continue { margin-top: 22px; border: 0; cursor: pointer; font: inherit; font-size: 18px; }
.q-tools { max-width: 820px; margin: 0 auto 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.search-wrap { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-wrap::before { content: "🔍"; position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); font-size: 15px; opacity: .7; pointer-events: none; }
.search { width: 100%; font: inherit; font-size: 18px; padding: 11px 20px; padding-inline-start: 46px; border-radius: 40px; color: var(--cream);
  background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.28); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.search:focus { border-color: var(--gold); background: rgba(31,50,96,.7); box-shadow: 0 0 0 4px rgba(227,180,92,.12); }
.search::placeholder { color: var(--muted); }
.q-filter { display: inline-flex; padding: 4px; gap: 4px; border-radius: 40px; background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.2); }
.q-filter button { font: inherit; font-size: 16px; border: 0; cursor: pointer; padding: 6px 16px; border-radius: 30px; background: transparent; color: var(--muted); transition: background .25s, color .25s; }
.q-filter button.on { background: var(--gold); color: var(--navy); }

.surahs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.surah {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; cursor: pointer; text-align: start;
  font: inherit; color: var(--cream); overflow: hidden;
  background: linear-gradient(135deg, rgba(31,50,96,.5), rgba(14,26,51,.35)); border: 1px solid rgba(227,180,92,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s, background .3s;
  animation: sIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 25ms);
}
@keyframes sIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.surah::after { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--gold);
  transform: scaleY(0); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.surah:hover, .surah:focus-visible { transform: translateY(-3px); border-color: rgba(227,180,92,.5); outline: none;
  background: linear-gradient(135deg, rgba(42,64,120,.6), rgba(20,34,66,.5)); box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 30px rgba(227,180,92,.08); }
.surah:hover::after, .surah:focus-visible::after { transform: scaleY(1); }
.surah:active { transform: scale(.985); }
/* number inside an eight-pointed star */
.surah .num { flex: none; width: 46px; height: 46px; display: grid; place-items: center; position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.surah .num::before, .surah .num::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(227,180,92,.75); border-radius: 3px; }
.surah .num::after { transform: rotate(45deg); }
.surah:hover .num { transform: rotate(45deg); }
.surah:hover .num i { transform: rotate(-45deg); }
.surah .num i { font-style: normal; font-size: 14px; color: var(--gold2); position: relative; font-family: var(--en); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
html[lang="ar"] .surah .num i { font-family: var(--ar); font-size: 16px; }
.surah .sn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.surah .sn b { font-family: "Amiri Quran", var(--ar); font-weight: 400; font-size: 23px; color: var(--gold2); white-space: nowrap; }
.surah .sn small { font-family: var(--en); color: var(--muted); font-size: 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.surah .sm { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.surah .pill { font-size: 12.5px; color: var(--muted); padding: 1px 9px; border-radius: 20px; background: rgba(227,180,92,.08); border: 1px solid rgba(227,180,92,.14); white-space: nowrap; }
.loading { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* views: smooth switching */
.view-out { animation: viewOut .22s ease forwards; }
@keyframes viewOut { to { opacity: 0; transform: translateY(10px); } }
.view-in { animation: viewIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } }
.go-next-out { animation: nextOut .25s ease forwards; }
.go-prev-out { animation: prevOut .25s ease forwards; }
.go-next-in { animation: nextIn .5s cubic-bezier(.2,.8,.2,1) both; }
.go-prev-in { animation: prevIn .5s cubic-bezier(.2,.8,.2,1) both; }
/* in Arabic the next surah comes from the left, like turning a page */
@keyframes nextOut { to { opacity: 0; transform: translateX(var(--dir, 40px)); } }
@keyframes prevOut { to { opacity: 0; transform: translateX(calc(var(--dir, 40px) * -1)); } }
@keyframes nextIn { from { opacity: 0; transform: translateX(calc(var(--dir, 40px) * -1)); } }
@keyframes prevIn { from { opacity: 0; transform: translateX(var(--dir, 40px)); } }
html[dir="ltr"] { --dir: -40px; }

/* reader */
.reader-bar { position: sticky; top: var(--hh, 100px); z-index: 5; max-width: 900px; margin: 0 auto;
  background: rgba(14,26,51,.88); backdrop-filter: blur(8px); border-radius: 0 0 16px 16px; border: 1px solid rgba(227,180,92,.15); border-top: 0; }
.rb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; }
.rb-title { flex: 1; text-align: center; font-family: "Amiri Quran", var(--ar); color: var(--gold2); font-size: 19px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-bar.scrolled .rb-title { opacity: 1; transform: none; }
.rb-progress { height: 3px; background: rgba(227,180,92,.12); border-radius: 0 0 16px 16px; overflow: hidden; }
.rb-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
html[dir="rtl"] .rb-progress i { margin-inline-start: 0; }
.sizes { display: flex; gap: 6px; }
.reader { max-width: 900px; padding-top: 34px; }
.surah-head { text-align: center; margin-bottom: 22px; }
/* the surah title in a framed banner, like in a printed mushaf */
.cartouche { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: min(460px, 86%);
  padding: 12px 48px; border: 1.5px solid var(--gold); border-radius: 60px;
  background: radial-gradient(ellipse at center, rgba(227,180,92,.14), rgba(14,26,51,.2) 70%);
  box-shadow: inset 0 0 0 5px rgba(14,26,51,.9), inset 0 0 0 6px rgba(227,180,92,.45); }
.cartouche::before, .cartouche::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
.cartouche::before { left: -7px; }
.cartouche::after { right: -7px; }
.r-name { font-family: "Amiri Quran", var(--ar); color: var(--gold); font-size: 40px; margin: 0; font-weight: 400; line-height: 1.5; }
.r-info { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; }
.r-info span { font-size: 14px; color: var(--muted); padding: 2px 12px; border-radius: 20px; background: rgba(227,180,92,.08); border: 1px solid rgba(227,180,92,.16); }
.basmala { text-align: center; font-family: "Amiri Quran", var(--ar); color: var(--gold2); font-size: 30px; margin: 6px 0 22px; }
.mushaf { font-family: "Amiri Quran", var(--ar); line-height: 2.35; text-align: justify; color: var(--cream);
  padding: 34px 36px; border-radius: 24px; background: linear-gradient(180deg, rgba(14,26,51,.6), rgba(20,34,66,.5)); border: 1px solid rgba(227,180,92,.25);
  box-shadow: inset 0 0 60px rgba(0,0,0,.25); }
.mushaf .v { transition: color .25s; }
.mushaf .v:hover { color: #fff; }
.mushaf .vn { color: var(--gold); font-size: .8em; margin: 0 .15em; white-space: nowrap; }
.reader-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.nav-card { font: inherit; cursor: pointer; text-align: start; padding: 14px 18px; border-radius: 18px; color: var(--cream);
  background: linear-gradient(135deg, rgba(31,50,96,.55), rgba(14,26,51,.4)); border: 1px solid rgba(227,180,92,.2);
  display: flex; flex-direction: column; gap: 2px; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.nav-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.nav-card small { color: var(--muted); font-size: 14px; }
.nav-card b { font-family: "Amiri Quran", var(--ar); font-weight: 400; color: var(--gold2); font-size: 22px; }
.nav-card.next { text-align: end; align-items: flex-end; }
.nav-card[hidden] { visibility: hidden; display: flex; }
.mushaf .v { cursor: pointer; border-radius: 8px; }
.mushaf .v.sel { background: rgba(227,180,92,.16); color: #fff; box-shadow: 0 0 0 4px rgba(227,180,92,.16); }
.mushaf .v.flash { animation: vflash 2.6s ease; }
@keyframes vflash { 0%, 60% { background: rgba(227,180,92,.28); color: #fff; } 100% { background: transparent; } }
footer .credit { margin: 14px 0 0; font-size: 14px; color: var(--muted) !important; letter-spacing: .02em; }
.install { display: inline-block; border: 0; cursor: pointer; font: inherit; font-size: 17px; margin-bottom: 22px; }
.tap-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.vsheet {
  position: fixed; z-index: 40; left: 50%; bottom: 18px; width: min(520px, calc(100% - 24px));
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  background: #0f1c3a; border: 1px solid rgba(227,180,92,.45); border-radius: 22px; padding: 14px 16px 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.vsheet.open { transform: translate(-50%, 0); }
.vs-ref { text-align: center; margin: 0 0 10px; color: var(--gold2); font-size: 17px; padding: 0 30px; }
.vs-acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vs-acts button { font: inherit; cursor: pointer; color: var(--cream); background: rgba(31,50,96,.6); border: 1px solid rgba(227,180,92,.2);
  border-radius: 14px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .2s, transform .15s; }
.vs-acts button:hover { border-color: var(--gold); }
.vs-acts button:active { transform: scale(.96); }
.vs-acts span { font-size: 22px; }
.vs-acts small { font-size: 13px; color: var(--muted); }
.vs-close { position: absolute; top: 8px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.swipe-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (hover: hover) { .swipe-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .surah, .view-in, .go-next-in, .go-prev-in { animation: none; }
  .view-out, .go-next-out, .go-prev-out { animation-duration: .01s; }
}

/* ---------- my day ---------- */
.day-top { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 10px; }
.day-ring { position: relative; width: 150px; height: 150px; }
.day-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.day-ring .ring-bg, .day-ring .ring-fg { stroke-width: 8; }
.day-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--en); font-size: 34px; color: var(--gold2); }
.streak { margin: 0 0 10px; font-size: 18px; color: var(--cream); }
.streak span { font-family: var(--en); font-size: 34px; color: var(--gold); font-weight: 600; }
.streak small { color: var(--muted); font-size: 16px; }
.week { display: flex; gap: 8px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wd .dot { width: 22px; height: 46px; border-radius: 12px; background: rgba(227,180,92,.12); display: flex; align-items: flex-end; overflow: hidden; }
.wd .dot i { display: block; width: 100%; background: linear-gradient(0deg, var(--gold), var(--gold2)); border-radius: 12px; }
.wd small { font-size: 12px; color: var(--muted); }
.wd.is-today small { color: var(--gold); }
.group-title { max-width: 760px; margin: 34px auto 12px; color: var(--gold2); font-weight: 400; font-size: 22px; }
.prayers { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pray { position: relative; font: inherit; cursor: pointer; padding: 14px 4px 10px; border-radius: 16px; color: var(--cream);
  background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.2); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .2s, border-color .2s; }
.pray .pi { font-size: 24px; }
.pray .pn { font-size: 16px; }
.pray .pc { position: absolute; top: 6px; inset-inline-end: 8px; font-size: 13px; color: var(--navy); background: var(--gold); width: 18px; height: 18px;
  border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s; }
.pray.on { background: rgba(227,180,92,.18); border-color: var(--gold); }
.pray.on .pc { opacity: 1; transform: none; }
.tasks { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px;
  background: rgba(31,50,96,.4); border: 1px solid rgba(227,180,92,.15); transition: background .2s, border-color .2s; }
.task.on { background: rgba(227,180,92,.12); border-color: rgba(227,180,92,.5); }
.tick { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tick span { color: var(--navy); font-size: 17px; opacity: 0; }
.task.on .tick { background: var(--gold); }
.task.on .tick span { opacity: 1; }
.task .ti { font-size: 22px; flex: none; }
.task .tt { flex: 1; cursor: pointer; font-size: 18px; color: var(--cream); }
.task.on .tt { color: var(--gold2); }
.task .go { font-size: 14px; color: var(--gold); white-space: nowrap; border-bottom: 1px dotted var(--gold); }

/* ---------- today strip ---------- */
.today { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; position: relative; }
.chip-info { font-size: 15px; color: var(--cream); padding: 5px 14px; border-radius: 30px;
  background: rgba(31,50,96,.55); border: 1px solid rgba(227,180,92,.3); }
.chip-info[hidden] { display: none; }
.friday { margin-top: 14px; max-width: 560px; padding: 10px 18px; border-radius: 14px; font-size: 16px; color: var(--navy);
  background: linear-gradient(135deg, var(--gold2), var(--gold)); position: relative; }
.friday[hidden] { display: none; }

/* ---------- how is your heart ---------- */
.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; max-width: 820px; margin: 0 auto; }
.mood {
  font: inherit; cursor: pointer; color: var(--cream); padding: 16px 10px; border-radius: 18px;
  background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.2);
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s, border-color .2s, background .2s;
}
.mood:hover { transform: translateY(-3px); border-color: var(--gold); }
.mood.on { background: rgba(227,180,92,.16); border-color: var(--gold); box-shadow: 0 0 24px rgba(227,180,92,.2); }
.mood .mi { font-size: 30px; }
.mood .ml { font-size: 17px; }
.mood-answer { max-width: 760px; margin: 28px auto 0; text-align: center; padding: 30px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(31,50,96,.6), rgba(14,26,51,.6)); border: 1px solid rgba(227,180,92,.4); }
.mood-answer[hidden] { display: none; }
.mood-answer.show { animation: rise .6s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.mood-msg { font-size: 22px; color: var(--cream); margin: 0 0 18px; }
.mood-answer .ayah-ar { font-size: 27px; }
.mood-answer .ayah-ar.long { font-size: 23px; }
.mood-answer .ayah-en { font-size: 18px; margin-top: 10px; }
.mood-video {
  display: flex; align-items: center; gap: 14px; margin: 22px auto 0; padding: 8px; padding-inline-end: 18px;
  font: inherit; color: inherit; cursor: pointer; text-align: start; position: relative;
  background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.35); border-radius: 16px; max-width: 420px; width: 100%;
}
.mood-video[hidden] { display: none; }
.mood-videos { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.mood-videos .mood-video { margin: 0 auto; }
.mood-video .mv-text { min-width: 0; }
@media (max-width: 420px) {
  .mood-video { gap: 10px; padding-inline-end: 10px; }
  .mood-video img { width: 52px; height: 78px; }
  .mood-video .play { width: 34px; height: 34px; }
  .mv-text b { font-size: 15px; }
}
.mood-video:hover { border-color: var(--gold); }
.mood-video img { width: 64px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.mv-text { flex: 1; display: flex; flex-direction: column; }
.mv-text small { color: var(--gold); font-size: 14px; }
.mv-text b { font-weight: 400; font-size: 17px; color: var(--cream); line-height: 1.5; }
.mood-video .play { position: static; margin: 0; flex: none; width: 42px; height: 42px; }

/* ---------- opening animation ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse at 50% 40%, #1b2c58, #0a1328 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity .9s ease, visibility .9s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-arch { width: 170px; height: auto; overflow: visible; }
.intro .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-in-out .2s forwards; }
.intro .draw.base { stroke-dasharray: 170; stroke-dashoffset: 170; animation-delay: 1.2s; animation-duration: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-glow { opacity: 0; animation: glowin 1.4s ease 1.1s forwards; }
@keyframes glowin { to { opacity: 1; } }
.intro-word {
  font-family: var(--kufi); color: var(--gold); font-size: 64px; line-height: 1; margin-top: -150px; margin-bottom: 100px;
  opacity: 0; transform: scale(.85); animation: wordin 1s ease 1.4s forwards; text-shadow: 0 0 24px rgba(227,180,92,.5);
}
@keyframes wordin { to { opacity: 1; transform: none; } }
.intro-tag { color: var(--cream); font-size: 20px; opacity: 0; animation: wordin 1s ease 2.1s forwards; }
.intro-tag em { font-family: var(--en); }

/* ---------- moon + shooting stars ---------- */
.moon {
  position: absolute; top: 8%; inset-inline-end: 9%; width: 70px; height: 70px;
  filter: drop-shadow(0 0 18px rgba(243,210,142,.55)); animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
.shooting { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.shoot {
  position: absolute; width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(243,210,142,0), #fff6dc);
  transform: rotate(var(--a, 20deg)); opacity: 0; animation: shoot 1.3s ease-out forwards;
}
.shoot::after { content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(255,240,200,.8); }
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--dx, 380px) var(--dy, 140px); }
}

/* ---------- night to dawn ---------- */
.dawn { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(14,26,51,0) 0%, rgba(74,58,110,.55) 45%, rgba(214,120,92,.55) 78%, rgba(246,190,110,.8) 100%); }
.sun { position: absolute; left: 50%; bottom: 0; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%;
  background: radial-gradient(circle, #fff3cf 0%, #f9cf7f 35%, rgba(246,170,90,.35) 60%, rgba(246,170,90,0) 72%);
  transform: translateY(70%); }
footer { padding-top: 60px; text-shadow: 0 1px 10px rgba(14,26,51,.9), 0 0 2px rgba(14,26,51,.8); }
.dawn-line { font-size: 24px; color: var(--cream) !important; max-width: 560px; margin: 0 auto 26px !important; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* ---------- tasbih sparkles ---------- */
.spark { position: absolute; left: 50%; top: 50%; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%; pointer-events: none;
  background: var(--gold2); box-shadow: 0 0 8px var(--gold); animation: spark .8s ease-out forwards; }
@keyframes spark { from { transform: translate(-50%, -50%); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .moon { animation: none; }
  .stars i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
  .ayah-card { padding: 34px 18px 22px; border-radius: 120px 120px 18px 18px; }
  .ayah-ar { font-size: 25px; }
  .ayah-ar.long { font-size: 21px; }
  .ayah-en { font-size: 17px; }
  .bead { width: 210px; height: 210px; }
  .share-icons { justify-content: center; }
  body { font-size: 17px; }
  .top { padding: 8px 16px 0; gap: 0 10px; }
  .logo img { width: 240px; }
  .moon { width: 46px; height: 46px; top: 5%; }
  .intro-arch { width: 140px; }
  .intro-word { font-size: 52px; margin-top: -122px; margin-bottom: 82px; }
  .intro-tag { font-size: 17px; }
  .sun { width: 240px; height: 240px; margin-left: -120px; }
  .dawn-line { font-size: 20px; }
  .page-hero { padding-top: 40px; }
  .surahs { grid-template-columns: 1fr; gap: 9px; }
  .surah { padding: 11px 14px; gap: 10px; }
  .surah .sn b { font-size: 21px; }
  .q-filter button { font-size: 14px; padding: 5px 12px; }
  .cartouche { padding: 8px 26px; min-width: 80%; }
  .rb-title { font-size: 16px; }
  .nav-card { padding: 10px 12px; }
  .nav-card b { font-size: 18px; }
  .nav-card small { font-size: 12px; }
  .mushaf { padding: 18px 14px; text-align: right; }
  .r-name { font-size: 32px; }
  .basmala { font-size: 24px; }
  .reader-bar { padding: 8px 10px; }
  .prayers { gap: 5px; }
  .pray { padding: 10px 2px 8px; }
  .pray .pi { font-size: 20px; }
  .pray .pn { font-size: 13px; }
  .task .tt { font-size: 16px; }
  .day-ring { width: 120px; height: 120px; }
  .day-ring b { font-size: 28px; }
  .page-hero h1 { font-size: 34px; }
  .dcard { padding: 18px 14px 14px; }
  .dcard .dt { font-size: 19px; }
  .dcard .dt.q, .dua .dt { font-size: 20px; }
  html:not([lang="ar"]) .dcard .dt { font-size: 18px; }
  .dua .de { font-size: 16px; }
  .switch button { font-size: 16px; padding: 7px 16px; }
  .moods { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mood { padding: 12px 6px; }
  .mood .mi { font-size: 26px; }
  .mood .ml { font-size: 15px; }
  .mood-answer { padding: 22px 14px; }
  .mood-msg { font-size: 18px; }
  .mood-answer .ayah-ar { font-size: 22px; }
  .mood-answer .ayah-ar.long { font-size: 19px; }
  .mood-answer .ayah-en { font-size: 16px; }
  .chip-info { font-size: 13px; }
  .friday { font-size: 14px; }
  .socials { gap: 14px; }
  .sbtn { width: 58px; height: 58px; }
  .sbtn svg { width: 30px; height: 30px; }
  .tagline { font-size: 21px; }
  .tagline span { display: none; }
  .tagline em { display: block; }
  .section { padding: 50px 16px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .vcard { border-radius: 12px; }
  .vtext { padding: 6px 7px 8px; }
  .vtext .t { font-size: 13px; line-height: 1.45; }
  .vtext .s { font-size: 11px; }
  .play { width: 34px; height: 34px; }
  .play::after { border-width: 7px 0 7px 12px; margin-left: 3px; }
  .badge { font-size: 11px; padding: 0 7px; top: 6px; inset-inline-start: 6px; }
  .share-icons.small { gap: 5px; margin-top: 6px; }
  .share-icons.small .sicon { width: 26px; height: 26px; }
  .share-icons.small .sicon svg { width: 14px; height: 14px; }
  .social { justify-content: center; padding: 10px 18px; font-size: 18px; max-width: 100%; }
  .social b { font-size: 16px; }
}
@media (max-width: 360px) {
  .social b { display: none; }
}

/* ---------- prayer times + qibla (salat.html) ---------- */
.salat { max-width: 440px; }
.place { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.place .sel { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px;
  border: 1px solid rgba(227,180,92,.45); background: rgba(14,26,51,.7); max-width: 100%; }
.place select { font: inherit; font-size: 16px; color: var(--cream); background: transparent; border: 0; outline: 0; cursor: pointer; max-width: 210px; }
.place select option, .place select optgroup { background: var(--navy2); color: var(--cream); }
.pdate { text-align: center; color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.next-card { position: relative; overflow: hidden; margin: 16px auto 0; text-align: center; padding: 10px 14px 14px; border-radius: 22px;
  border: 1px solid rgba(227,180,92,.4); box-shadow: 0 18px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  background: linear-gradient(180deg, #0b1630, #13244a); transition: background 1.2s ease; isolation: isolate; }
.next-card[data-phase="dawn"]   { background: linear-gradient(180deg, #2a2f5e 0%, #6b4a6e 55%, #c98a5a 100%); }
.next-card[data-phase="day"]    { background: linear-gradient(180deg, #1d3d73 0%, #2f5d93 60%, #4f7fae 100%); }
.next-card[data-phase="golden"] { background: linear-gradient(180deg, #2b3566 0%, #8a5a4a 60%, #d99a55 100%); }
.next-card[data-phase="dusk"]   { background: linear-gradient(180deg, #121a3c 0%, #3b2a55 60%, #7a4a5a 100%); }
.sky-glow { position: absolute; inset: -30% -10% auto; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(243,210,142,.25), transparent); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.06); } }
.next-card .arc { display: block; width: 100%; max-width: 230px; margin: 0 auto -36px; overflow: visible; }
html[dir="rtl"] .next-card .arc { transform: scaleX(-1); }
.arc .horizon { stroke: rgba(246,237,220,.18); stroke-width: 1; }
.arc .arc-base { fill: none; stroke: rgba(246,237,220,.22); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.arc .arc-trail { fill: none; stroke: url(#trail); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; transition: stroke-dashoffset 1s linear; }
.arc .mark { fill: #13244a; stroke: rgba(246,237,220,.55); stroke-width: 2; transition: fill .6s; }
.arc .mark.passed { fill: var(--gold2); stroke: var(--gold2); }
#sun-dot { transition: transform 1s linear, opacity 1s; filter: drop-shadow(0 0 10px rgba(243,210,142,.8)); }
.nc-moon { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 18px; opacity: 0; transition: opacity 1.2s;
  filter: drop-shadow(0 0 10px rgba(243,210,142,.6)); }
.next-card[data-phase="night"] .nc-moon, .next-card[data-phase="dusk"] .nc-moon { opacity: 1; }
.nc-body { position: relative; display: flex; flex-direction: column; align-items: center; }
.next-card small { color: var(--gold2); font-size: 13px; letter-spacing: .5px; opacity: .9; }
.next-card b { font-family: var(--kufi); color: #fff4dc; font-size: 26px; font-weight: 500; line-height: 1.25; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
html[lang="en"] .next-card b, html[lang="fr"] .next-card b { font-family: var(--en); font-weight: 600; }
.next-card .next-at { color: var(--cream); font-size: 15px; opacity: .85; font-variant-numeric: lining-nums; }
.next-card .next-left { font-family: var(--en); font-weight: 600; font-size: 30px; color: #fff; letter-spacing: 2px;
  font-variant-numeric: lining-nums tabular-nums; margin-top: 2px; line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.nc-bar { width: min(180px, 60%); height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin-top: 8px; overflow: hidden; }
.nc-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width 1s linear; }
html[dir="rtl"] .nc-bar { transform: scaleX(-1); }

.salat .prayers { display: block; max-width: none; margin-top: 12px; padding: 4px; border-radius: 18px; background: rgba(14,26,51,.55);
  border: 1px solid rgba(227,180,92,.2); backdrop-filter: blur(6px); }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; position: relative;
  transition: background .5s, opacity .5s, transform .5s; animation: rowIn .6s cubic-bezier(.2,.8,.2,1) both; }
.prow + .prow::before { content: ""; position: absolute; top: 0; inset-inline: 18px; height: 1px; background: rgba(227,180,92,.12); }
.prow.next::before, .prow.next + .prow::before { display: none; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.prow .pi { font-size: 16px; width: 22px; height: 22px; display: grid; place-items: center; }
.prow .pn { font-size: 17px; color: var(--cream); }
.prow .pl { flex: 1; font-size: 12px; color: var(--navy); opacity: .75; text-align: start; padding-inline-start: 4px; }
.prow .pt { font-family: var(--en); font-weight: 600; font-size: 19px; color: var(--gold2); font-variant-numeric: lining-nums tabular-nums; direction: ltr; }
.prow.sunr .pn, .prow.sunr .pt { color: var(--muted); font-size: 15px; }
.prow.past { opacity: .45; }
.prow.now .pn::after { content: " •"; color: var(--gold); }
.prow.next { background: linear-gradient(100deg, var(--gold2), var(--gold)); transform: none;
  box-shadow: 0 4px 14px rgba(227,180,92,.25); opacity: 1; }
.prow.next .pn, .prow.next .pt { color: var(--navy); font-weight: 700; }
.qtitle { font-family: var(--kufi); color: var(--gold); text-align: center; font-weight: 500; font-size: 22px; margin: 34px 0 10px; }
.qibla { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dial { position: relative; width: min(190px, 60vw); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(227,180,92,.6); background: radial-gradient(circle, rgba(31,50,96,.9), rgba(14,26,51,.95) 70%);
  box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 40px rgba(227,180,92,.12); transition: transform .25s linear; }
.dial::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(227,180,92,.25); }
.dial .cd { position: absolute; font-family: var(--en); font-weight: 600; color: var(--muted); font-size: 13px; }
.dial .cd.n { top: 8px; left: 50%; transform: translateX(-50%); color: #f08a7a; }
.dial .cd.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.dial .cd.e { right: 10px; top: 50%; transform: translateY(-50%); }
.dial .cd.w { left: 10px; top: 50%; transform: translateY(-50%); }
.needle { position: absolute; inset: 0; transition: transform .4s ease; }
.needle i { position: absolute; left: 50%; top: 18%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 4px;
  background: linear-gradient(var(--gold2), var(--gold)); box-shadow: 0 0 12px rgba(227,180,92,.6); }
.needle i::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold); }
.needle span { position: absolute; left: 50%; top: 7%; transform: translate(-50%, -30%); font-size: 20px; }
.qibla.aligned .dial { border-color: #8fe0a4; box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 50px rgba(143,224,164,.35); }
.qinfo { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); }
.qinfo b { color: var(--gold2); font-family: var(--en); font-size: 17px; font-variant-numeric: lining-nums; }
.q-hint { color: var(--cream); text-align: center; margin: 0; max-width: 360px; font-size: 15px; }
.qibla #compass[hidden] { display: none; }
@media (max-width: 420px) {
  .prow { padding: 7px 10px; }
}

/* today / tomorrow switch, share, home next-prayer chip */
.dayswitch { display: flex; width: max-content; margin: 16px auto 0; padding: 3px; border-radius: 30px;
  background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.25); }
.dayswitch button { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 4px 18px; border-radius: 30px; transition: background .3s, color .3s; }
.dayswitch button.on { background: var(--gold); color: var(--navy); font-weight: 700; }
.salat .prayers.tmrw { border-style: dashed; }
.pshare { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pshare .chip { font-size: 14px; padding: 5px 14px; }
.nextpray { text-decoration: none; border-color: rgba(227,180,92,.6); }
.nextpray:hover { background: rgba(227,180,92,.18); }
.nextpray .np-left { font-family: var(--en); font-weight: 600; color: var(--gold2); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 1px; }
/* ---------- my mosque ---------- */
.mosque { margin-top: 14px; }
.mq-none { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mq-none .mq-find { font-size: 16px; padding: 9px 22px; }
.mq-none small { color: var(--muted); font-size: 13px; max-width: 320px; }
.mq-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(227,180,92,.16), rgba(14,26,51,.75)); border: 1px solid rgba(227,180,92,.45); }
.mq-card[hidden], .mq-none[hidden], .mq-trackbox[hidden], .mq-sheet[hidden] { display: none; }
.mq-ic { font-size: 26px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(227,180,92,.15); flex: none; }
.mq-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mq-txt small { color: var(--gold); font-size: 12px; }
.mq-txt b { color: var(--cream); font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-acts { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; justify-content: center; }
.mq-acts .chip { font-size: 13px; padding: 4px 12px; }
.mq-trackbox { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px;
  background: rgba(14,26,51,.8); border: 1px dashed rgba(227,180,92,.5); }
.mq-arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle, rgba(227,180,92,.25), rgba(14,26,51,.9)); border: 1px solid var(--gold); transition: transform .4s ease; }
.mq-arrow span { color: var(--gold2); font-size: 24px; line-height: 1; }
.mq-tinfo { flex: 1; display: flex; flex-direction: column; }
.mq-tinfo b { font-family: var(--en); font-size: 22px; color: var(--gold2); font-variant-numeric: lining-nums; }
html[lang="ar"] .mq-tinfo b { font-family: var(--ar); }
.mq-tinfo small { color: var(--muted); font-size: 12px; }
.mq-trackbox.arrived { border-color: #8fe0a4; }
.mq-trackbox.arrived .mq-tinfo b { color: #b9f0c6; }
.mq-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(5,10,22,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.mq-panel { width: min(480px, 100%); max-height: 78vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 18px;
  background: var(--navy2); border: 1px solid rgba(227,180,92,.35); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: sheetUp .35s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.mq-head { display: flex; align-items: center; justify-content: space-between; }
.mq-head b { color: var(--gold); font-size: 18px; }
.mq-x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.mq-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.mq-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: start;
  font: inherit; color: var(--cream); background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.18);
  animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; }
.mq-item:hover, .mq-item:focus-visible { border-color: var(--gold); background: rgba(227,180,92,.12); }
.mq-item .mi { font-size: 18px; }
.mq-item .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mq-item .mn { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-item .ms { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-item .ms:empty { display: none; }
.mq-rename { align-self: flex-start; background: none; border: 0; padding: 2px 0 0; color: var(--gold); font: inherit; font-size: 12px; cursor: pointer; opacity: .85; }
.mq-item .md { font-family: var(--en); color: var(--gold2); font-size: 15px; font-variant-numeric: lining-nums; white-space: nowrap; }
.mq-msg { color: var(--muted); text-align: center; margin: 20px 0; }
.mq-where { margin: 0; font-size: 13px; color: var(--cream); background: rgba(14,26,51,.6); padding: 6px 10px; border-radius: 10px; }
.mq-where[hidden] { display: none; }
.mq-where.rough { color: #ffd59a; border: 1px solid rgba(255,190,100,.4); }
.mq-maps { color: var(--gold); text-align: center; font-size: 14px; }
.mq-note { color: var(--muted); text-align: center; font-size: 11px; opacity: .8; }
body.noscroll { overflow: hidden; }
/* ---------- Quran: listen (recitation player) ---------- */
.surah-head .listen { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 18px; padding: 10px 26px;
  box-shadow: 0 6px 24px rgba(227,180,92,.35); animation: lpulse 2.6s ease-in-out 2; }
.surah-head .listen.on { background: var(--gold2); animation: none; }
@keyframes lpulse { 50% { box-shadow: 0 0 0 10px rgba(227,180,92,.12), 0 6px 24px rgba(227,180,92,.35); } }
.mushaf .v.playing { color: #fff; background: linear-gradient(transparent 8%, rgba(227,180,92,.22) 8%, rgba(227,180,92,.22) 92%, transparent 92%);
  box-shadow: 0 0 0 3px rgba(227,180,92,.12); border-radius: 8px; }
.mushaf .v.playing .vn { color: var(--gold2); }
.basmala.playing { color: #fff; text-shadow: 0 0 18px rgba(243,210,142,.7); }
.vs-acts #vs-play { border-color: rgba(227,180,92,.6); background: rgba(227,180,92,.15); }
.vs-acts #vs-play small { color: var(--gold2); }
.qplayer { position: fixed; z-index: 40; left: 0; right: 0; margin: 0 auto; bottom: 12px; width: min(460px, calc(100% - 20px)); box-sizing: border-box;
  padding: 10px 12px 8px; border-radius: 20px; background: rgba(22,37,74,.96); border: 1px solid rgba(227,180,92,.5);
  box-shadow: 0 10px 40px rgba(0,0,0,.55); backdrop-filter: blur(10px); animation: sheetUp .35s cubic-bezier(.2,.8,.2,1); }
.qplayer[hidden] { display: none; }
.qp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qp-now { color: var(--gold2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qp-qari { display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 55%; padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(227,180,92,.3); }
.qp-qari select { font: inherit; font-size: 13px; color: var(--cream); background: transparent; border: 0; outline: 0; max-width: 100%; cursor: pointer; }
.qp-qari select option { background: var(--navy2); color: var(--cream); }
.qp-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.qp-b { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(227,180,92,.35); background: rgba(14,26,51,.7);
  color: var(--cream); font-size: 17px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.qp-b.main { width: 50px; height: 50px; background: var(--gold); color: var(--navy); font-size: 20px; border: 0; box-shadow: 0 4px 16px rgba(227,180,92,.35); }
.qp-b.small { width: 34px; height: 34px; font-size: 14px; opacity: .85; }
.qp-b.on { background: rgba(227,180,92,.3); border-color: var(--gold); opacity: 1; }
.qp-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.qp-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s linear; }
body.qp-on footer { padding-bottom: 150px; }
body.qp-on .vsheet.open { bottom: 150px; }
body.qp-on .toast { bottom: 160px; }
@media (max-width: 420px) { .surah-head .listen { font-size: 16px; padding: 9px 20px; } }
/* verse search results */
.vhits { margin-top: 26px; }
.vhits h3 { color: var(--gold); font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.vhit { display: block; width: 100%; text-align: start; font: inherit; cursor: pointer; margin-bottom: 8px; padding: 10px 14px;
  border-radius: 14px; background: rgba(14,26,51,.65); border: 1px solid rgba(227,180,92,.2); color: var(--cream); }
.vhit:hover { border-color: var(--gold); }
.vhit small { display: block; color: var(--gold); font-size: 13px; }
.vhit span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: "Amiri Quran", var(--ar); font-size: 20px; line-height: 2; text-align: right; }
.sizes .chip.on, .qp-b.on { background: rgba(227,180,92,.3); border-color: var(--gold); }
#qp-sleep { font-family: var(--en); font-weight: 600; }
.qp-row { gap: 7px; }
/* paper mode */
body.paper .mushaf { background: linear-gradient(180deg, #fbf5e6, #f3e8cf); color: #1d2742; border-color: #d8bd84;
  box-shadow: inset 0 0 40px rgba(160,120,50,.18), 0 10px 30px rgba(0,0,0,.35); }
body.paper .mushaf .v:hover { color: #000; }
body.paper .mushaf .vn { color: #a0711d; }
body.paper .mushaf .v.sel { background: rgba(200,150,60,.22); color: #000; box-shadow: 0 0 0 4px rgba(200,150,60,.18); }
body.paper .mushaf .v.playing { color: #000; background: linear-gradient(transparent 8%, rgba(214,160,60,.32) 8%, rgba(214,160,60,.32) 92%, transparent 92%); }
body.paper .mushaf .v.playing .vn { color: #7a5210; }
/* khatma progress */
.khatma { max-width: 420px; margin: 16px auto 0; padding: 10px 14px; border-radius: 16px; background: rgba(14,26,51,.6); border: 1px solid rgba(227,180,92,.25); }
.khatma[hidden] { display: none; }
.khatma p { margin: 0 0 8px; color: var(--cream); font-size: 15px; }
.kh-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.kh-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), #8fe0a4); transition: width .8s ease; }
html[dir="rtl"] .kh-bar { transform: scaleX(-1); }
.kh-reset { margin-top: 8px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.kh-reset[hidden] { display: none; }
.surah.done { border-color: rgba(143,224,164,.45); }
.surah.done::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 8px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--navy); background: #8fe0a4; }
/* tafsir in the verse sheet */
.vsheet { max-height: 78vh; display: flex; flex-direction: column; }
.vs-tafsir { overflow-y: auto; max-height: 42vh; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.2); text-align: start; overscroll-behavior: contain; }
.vs-tafsir h4 { margin: 0 0 6px; color: var(--gold); font-size: 14px; font-weight: 600; }
.vs-tf { margin: 0; font-family: var(--ar); font-size: 18px; line-height: 1.9; color: var(--cream); text-align: right; }
.vs-tf.wait { color: var(--muted); font-size: 15px; text-align: center; }
.vs-trw { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(227,180,92,.15); }
.vs-tr { margin: 0; font-family: var(--en); font-size: 17px; line-height: 1.5; color: var(--cream); }
.vs-src { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); opacity: .85; }
.vs-src:empty { display: none; }
/* install button in the top bar */
.inst-btn { margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 700 15px var(--ar); color: var(--navy); background: linear-gradient(135deg, var(--gold2), var(--gold)); border: 0;
  padding: 7px 14px; border-radius: 30px; box-shadow: 0 4px 16px rgba(227,180,92,.35); animation: ipulse 2.8s ease-in-out 3; }
.inst-btn span { font-size: 16px; }
.inst-btn + .langdd { margin-inline-start: 0; }
.inst-btn:hover { filter: brightness(1.06); }
@keyframes ipulse { 50% { box-shadow: 0 0 0 8px rgba(227,180,92,.15), 0 4px 16px rgba(227,180,92,.35); } }
.top { gap: 0 10px; }
@media (max-width: 420px) { .inst-btn { font-size: 13px; padding: 6px 11px; } }
.inst-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(5,10,22,.65); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s ease; }
.inst-panel { position: relative; width: min(440px, 100%); padding: 20px 20px 26px; text-align: center; background: var(--navy2);
  border: 1px solid rgba(227,180,92,.4); border-bottom: 0; border-radius: 24px 24px 0 0; animation: sheetUp .35s cubic-bezier(.2,.8,.2,1); }
.inst-panel img { border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.inst-panel h3 { margin: 10px 0 2px; color: var(--gold); font-family: var(--kufi); font-weight: 500; font-size: 24px; }
.inst-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.inst-panel ol { text-align: start; margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--cream); font-size: 16px; }
.inst-panel ol b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: rgba(227,180,92,.2); color: var(--gold2); font-weight: 400; }
.inst-x { position: absolute; top: 10px; inset-inline-end: 12px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
/* ---------- tasbih: goals, tools, stats, full screen ---------- */
@media (max-width: 720px) {
  .tasbih .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 22px; padding: 4px 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
  .tasbih .tabs::-webkit-scrollbar { display: none; }
  .tasbih .tab { flex: none; white-space: nowrap; }
}
.bead-word.long { font-size: 18px; line-height: 1.3; padding: 0 18px; }
.goals { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 10px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.goals button { font: 600 14px var(--en); font-variant-numeric: lining-nums; min-width: 40px; padding: 4px 10px; border-radius: 20px; cursor: pointer;
  color: var(--cream); background: rgba(31,50,96,.5); border: 1px solid rgba(227,180,92,.2); }
.goals button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.t-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.t-tools .chip { font-size: 14px; padding: 5px 14px; }
.t-tools .chip:disabled { opacity: .4; cursor: default; }
.t-stats { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.t-stats span { display: flex; flex-direction: column; align-items: center; min-width: 88px; padding: 8px 12px; border-radius: 14px;
  background: rgba(14,26,51,.55); border: 1px solid rgba(227,180,92,.18); }
.t-stats small { color: var(--muted); font-size: 12px; }
.t-stats b { color: var(--gold2); font-family: var(--en); font-size: 22px; font-variant-numeric: lining-nums; }
.tfocus { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #1f3260, #0b1630 70%); cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; animation: fadeIn .3s ease; text-align: center; padding: 20px; }
.tfocus[hidden] { display: none; }
.tf-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.4); color: var(--cream); font-size: 18px; }
.tf-word { margin: 0; font-family: var(--kufi); color: var(--gold); font-size: clamp(28px, 8vw, 54px); line-height: 1.4; }
.tf-count { margin: 6px 0 0; font-family: var(--en); font-weight: 600; color: #fff; font-size: clamp(90px, 30vw, 180px); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 40px rgba(243,210,142,.35); }
.tf-count.bump { animation: tfbump .25s ease; }
@keyframes tfbump { 40% { transform: scale(1.08); } }
.tf-goal { margin: 4px 0 0; color: var(--muted); font-family: var(--en); font-size: 22px; }
.tf-hint { position: absolute; bottom: 28px; left: 0; right: 0; margin: 0; color: var(--muted); font-size: 14px; opacity: .7; }
.tfocus.done { animation: tfdone 1s ease; }
@keyframes tfdone { 30% { background: radial-gradient(circle at 50% 45%, #6b5a2a, #0b1630 75%); } }
/* ---------- yawmi improvements ---------- */
.wd { font: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer; border-radius: 12px; color: inherit; }
.wd.sel { background: rgba(227,180,92,.15); box-shadow: 0 0 0 1px rgba(227,180,92,.5); }
.week-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); opacity: .8; }
.best { margin: -4px 0 10px; color: var(--gold2); font-size: 14px; }
.best:empty { display: none; }
.viewing { max-width: 760px; margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 14px; background: rgba(227,180,92,.12); border: 1px dashed var(--gold); color: var(--cream); }
.viewing[hidden] { display: none; }
.viewing .chip { font-size: 14px; padding: 4px 12px; }
.pray .pt { display: block; font-family: var(--en); font-size: 13px; color: var(--muted); font-variant-numeric: lining-nums; margin-top: 2px; }
.pray .pt:empty { display: none; }
.pray.next { box-shadow: 0 0 0 2px var(--gold); }
.pray.next .pt { color: var(--gold2); }
.pray.due:not(.on) { border-color: rgba(255,190,100,.55); }
.pray.due:not(.on) .pt::after { content: " ⏰"; }
.task .del { flex: none; background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 6px; opacity: .7; }
.task .del:hover { color: #f08a7a; opacity: 1; }
.add-deed { display: block; max-width: 760px; width: 100%; margin: 10px auto 0; padding: 10px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--gold); background: transparent; border: 1px dashed rgba(227,180,92,.5); }
.add-deed:hover { background: rgba(227,180,92,.08); }
.month { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.month .md { aspect-ratio: 1; min-width: 0; border-radius: 8px; display: grid; place-items: center; font-family: var(--en); font-size: 12px;
  font-variant-numeric: lining-nums; color: rgba(246,237,220,.55); border: 1px solid transparent; }
.month .l0, .month-key .l0 { background: rgba(31,50,96,.45); }
.month .l1, .month-key .l1 { background: rgba(227,180,92,.18); }
.month .l2, .month-key .l2 { background: rgba(227,180,92,.38); }
.month .l3, .month-key .l3 { background: rgba(227,180,92,.62); color: var(--navy); }
.month .l4, .month-key .l4 { background: var(--gold); color: var(--navy); }
.month .md.is-today { border-color: var(--cream); }
.month .md.full::after { content: ""; }
.month-key { max-width: 760px; margin: 8px auto 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.month-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
@media (max-width: 420px) { .month { gap: 4px; } .month .md { font-size: 11px; border-radius: 6px; } }
/* ---------- adhkar improvements ---------- */
.az-streak { text-align: center; color: var(--gold2); font-size: 15px; margin: 4px 0 0; }
.az-streak:empty { display: none; }
.az-tools { max-width: 760px; margin: 14px auto 16px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.az-tools .chip { font-size: 14px; padding: 5px 14px; }
.az-tools .chip.on { background: rgba(227,180,92,.3); border-color: var(--gold); }
.az-size { display: inline-flex; gap: 6px; }
#list .dcard .dt { font-size: calc(23px + var(--az, 0) * 3px); }
#list .dcard .dt.q { font-size: calc(24px + var(--az, 0) * 3px); }
.az-acts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.az-a { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; display: grid; place-items: center; padding: 0;
  background: rgba(14,26,51,.6); border: 1px solid rgba(227,180,92,.25); color: var(--cream); }
.az-a:hover { border-color: var(--gold); }
.azf { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 30%, #1f3260, #0b1630 75%); animation: fadeIn .3s ease; }
.azf[hidden] { display: none; }
.azf-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 8px; }
.azf-x { width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer; background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.4); color: var(--cream); font-size: 17px; }
.azf-pos { flex: none; color: var(--muted); font-size: 14px; }
.azf-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.azf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width .4s ease; }
html[dir="rtl"] .azf-bar { transform: scaleX(-1); }
.azf-body { flex: 1; overflow-y: auto; padding: 10px 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.azf-text { margin: auto 0 0; font-size: clamp(22px, 5.6vw, 32px); line-height: 2; color: var(--cream); white-space: pre-line; }
.azf-text.q { font-family: "Amiri Quran", var(--ar); color: var(--gold2); }
html[lang="en"] .azf-text, html[lang="fr"] .azf-text { font-family: var(--en); line-height: 1.6; }
.azf-src { margin: 12px 0 auto; color: var(--gold); font-size: 14px; }
.azf-foot { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px 16px 28px; }
.azf-nav { width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; padding: 0 0 4px;
  background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.35); color: var(--cream); }
.azf-nav:disabled { opacity: .3; cursor: default; }
.azf-count small { direction: ltr; unicode-bidi: isolate; }
.azf-count { width: 112px; height: 112px; border-radius: 50%; cursor: pointer; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold)); color: var(--navy); box-shadow: 0 0 0 8px rgba(227,180,92,.15), 0 10px 30px rgba(0,0,0,.4);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.azf-count b { font-family: var(--en); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums; }
.azf-count small { font-family: var(--en); font-size: 15px; font-weight: 600; opacity: .8; }
.azf-count.done { background: radial-gradient(circle at 35% 30%, #c8f5d4, #8fe0a4); }
.azf-count.bump { animation: tfbump .25s ease; }
/* ---------- duas improvements ---------- */
.dua-today { max-width: 760px; margin: 0 auto 18px; padding: 18px 20px; border-radius: 22px; cursor: pointer; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(227,180,92,.25), rgba(14,26,51,.85) 65%); border: 1px solid rgba(227,180,92,.55);
  box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.dua-today small { color: var(--gold); font-size: 14px; letter-spacing: .5px; }
.dua-today .dt-ar { margin: 6px 0 0; font-family: "Amiri Quran", var(--ar); color: var(--gold2); font-size: 23px; line-height: 2.1; }
.dua-today .dt-tr { margin: 4px 0 0; font-family: var(--en); font-style: italic; color: var(--cream); font-size: 17px; }
.dua-today .dt-tr:empty { display: none; }
.dua-today .dt-ref { display: inline-block; margin-top: 6px; color: var(--gold); font-size: 14px; }
.dua-filter { display: flex; justify-content: center; gap: 6px; margin: 0 auto 16px; }
.dua-filter button { font: inherit; font-size: 15px; padding: 6px 16px; border-radius: 30px; cursor: pointer; color: var(--muted);
  background: rgba(31,50,96,.5); border: 1px solid rgba(227,180,92,.2); }
.dua-filter button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.dua { position: relative; }
.dua .d-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.d-play, .d-fav { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 16px;
  background: rgba(14,26,51,.6); border: 1px solid rgba(227,180,92,.35); color: var(--gold2); }
.d-play { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.d-fav { font-size: 20px; color: var(--muted); }
.d-fav.on { color: var(--gold2); border-color: var(--gold); }
.dua.playing { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(227,180,92,.35), 0 10px 30px rgba(0,0,0,.3); }
.dua.playing .dt { color: #fff; }
.dua.flash { animation: vflash 1.6s ease; }
.d-tf { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.2); text-align: start; }
.d-tf[hidden] { display: none; }
.d-tf h4 { margin: 0 0 4px; color: var(--gold); font-size: 14px; font-weight: 600; }
.d-tf .tf-t { margin: 0; font-family: var(--ar); font-size: 18px; line-height: 1.9; color: var(--cream); text-align: right; }
.d-tf small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.d-tf .tf-wait { margin: 0; color: var(--muted); text-align: center; }
.dua .acts .chip { font-size: 14px; }
/* ---------- reminders improvements ---------- */
.vfilter { max-width: 900px; margin: 0 auto 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; justify-content: center; flex-wrap: wrap; }
.vfilter::-webkit-scrollbar { display: none; }
.vfilter button { flex: none; font: inherit; font-size: 14px; padding: 5px 14px; border-radius: 30px; cursor: pointer; white-space: nowrap;
  color: var(--cream); background: rgba(31,50,96,.5); border: 1px solid rgba(227,180,92,.2); }
.vfilter button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (max-width: 720px) {
  .vfilter { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -16px 16px; padding: 2px 16px 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
}
.thumb .dur { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 1px 7px; border-radius: 8px; font: 600 12px var(--en);
  font-variant-numeric: lining-nums; color: #fff; background: rgba(0,0,0,.65); direction: ltr; }
.thumb .seen-tag { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 8px; border-radius: 10px; font-size: 12px;
  color: var(--navy); background: #8fe0a4; }
.vcard.seen .thumb img { filter: saturate(.75) brightness(.85); }
.thumb .vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.thumb .vprog i { display: block; height: 100%; background: var(--gold); }
html[dir="rtl"] .thumb .vprog { transform: scaleX(-1); }
.pv-wrap { position: relative; flex: none; }
/* إطار اليوتيوب: نفس مقاس الفيديو المحلي — بلا طبقة فوقو باش أزرار اليوتيوب تخدم */
.yt-frame { height: min(62vh, 520px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; border: 1px solid var(--gold); overflow: hidden; position: relative; }
.yt-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 26, 51, 0.85);
  border: 1px solid var(--gold);
  color: var(--cream);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
}
.yt-close:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}
.yt-close:active {
  transform: scale(0.95);
}

/* ---------- heart improvements ---------- */
.moods { flex-wrap: wrap; }
.mood-acts, .mood-share { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.mood-acts .chip, .mood-share .chip { font-size: 14px; padding: 6px 14px; }
.mood-acts .chip[hidden] { display: none; }
.mood-share .sicon { width: 38px; height: 38px; }
.mood-week { max-width: 520px; margin: 22px auto 0; text-align: center; }
.mood-week[hidden] { display: none; }
.mood-week > small { color: var(--muted); font-size: 13px; }
.mw-days { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.mw-d { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 38px; padding: 6px 2px; border-radius: 12px;
  background: rgba(14,26,51,.5); border: 1px solid rgba(227,180,92,.15); }
.mw-d b { font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--muted); }
.mw-d small { font-size: 11px; color: var(--muted); }
.mw-d.is-today { border-color: rgba(227,180,92,.6); }
.mw-d.is-today small { color: var(--gold); }
/* ---------- home: «يومك» panel, verse tafsir, back to top ---------- */
.myday { max-width: 900px; padding-top: 10px; padding-bottom: 30px; }
.md-hello { text-align: center; color: var(--gold2); font-size: 19px; margin: 0 0 14px; }
.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-t { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(31,50,96,.6), rgba(14,26,51,.5)); border: 1px solid rgba(227,180,92,.2); color: var(--cream);
  transition: transform .25s, border-color .25s; }
.md-t:hover { transform: translateY(-2px); border-color: var(--gold); }
.md-t.done { border-color: rgba(143,224,164,.5); }
.md-i { font-size: 24px; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(227,180,92,.12); }
.md-b { display: flex; flex-direction: column; min-width: 0; }
.md-b b { font-size: 15px; font-weight: 700; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-b small { font-size: 12px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.md-t.done small { color: #b9f0c6; }
.md-p { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.md-p i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #8fe0a4); }
html[dir="rtl"] .md-p { transform: scaleX(-1); }
.ayah-tf { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.2); text-align: start; }
.ayah-tf[hidden] { display: none; }
.ayah-tf h4 { margin: 0 0 4px; color: var(--gold); font-size: 14px; font-weight: 600; }
.ayah-tf p { margin: 0; font-family: var(--ar); font-size: 18px; line-height: 1.9; color: var(--cream); text-align: right; }
.ayah-tf p.wait { color: var(--muted); text-align: center; font-size: 15px; }
.ayah-tf small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.to-top { position: fixed; z-index: 35; bottom: 18px; left: 16px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 20px; font-weight: 700; color: var(--navy); background: var(--gold); border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: .92; transform: none; pointer-events: auto; }
body.qp-on .to-top { bottom: 160px; }
/* footer: easy to read on the dawn background */
footer small { color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(14,26,51,.9), 0 0 12px rgba(14,26,51,.85); }
footer .credit { color: #fff !important; font-weight: 600; font-size: 12.5px; letter-spacing: .09em; margin-top: 10px;
  text-shadow: 0 1px 2px rgba(14,26,51,.9), 0 0 12px rgba(14,26,51,.85); }
html[dir="rtl"] footer .credit { letter-spacing: 0; }
.vtext .s:empty { display: none; }

/* swipe between pages: slide out / slide in */
body.swipe-out-l main, body.swipe-out-l footer { transform: translateX(-24px); opacity: 0; transition: transform .18s ease-in, opacity .18s ease-in; }
body.swipe-out-r main, body.swipe-out-r footer { transform: translateX(24px); opacity: 0; transition: transform .18s ease-in, opacity .18s ease-in; }
body.swipe-in-r main { animation: swInR .4s cubic-bezier(.2,.8,.2,1); }
body.swipe-in-l main { animation: swInL .4s cubic-bezier(.2,.8,.2,1); }
@keyframes swInR { from { transform: translateX(70px); opacity: 0; } }
@keyframes swInL { from { transform: translateX(-70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.swipe-in-r main, body.swipe-in-l main { animation: none; } }
/* one part of the home page shown alone as its own page (index.html?p=...) */
html[data-only] main > section, html[data-only] #intro { display: none; }
html[data-only="videos"] #videos, html[data-only="heart"] #heart, html[data-only="tasbih"] #tasbih,
html[data-only="about"] #about, html[data-only="about"] #follow { display: block; }
html[data-only] main > section.reveal { opacity: 1; transform: none; }
html[data-only] main { min-height: 70vh; }
html[lang="es"] .next-card b { font-family: var(--en); font-weight: 600; }
html[lang="es"] .azf-text { font-family: var(--en); line-height: 1.6; }

/* ---------- 🎞️ stories page ---------- */
.st-feature { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(31,50,96,.7), rgba(14,26,51,.6)); border: 1px solid rgba(227,180,92,.4);
  box-shadow: 0 16px 50px rgba(0,0,0,.4); }
@media (max-width: 720px) { .st-feature { grid-template-columns: 1fr; padding: 14px; } }
/* film-strip edges around the cover */
.st-fcover, .st-cimg { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000;
  border-inline: 12px solid #0a0f1c; }
.st-fcover::before, .st-fcover::after, .st-cimg::before, .st-cimg::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2;
  background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(243,210,142,.55) 8px 14px, transparent 14px 22px); }
.st-fcover::before, .st-cimg::before { left: -12px; }
.st-fcover::after, .st-cimg::after { right: -12px; }
.st-fcover img, .st-cimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.st-fcover:hover img, .st-card:hover img { transform: scale(1.04); }
.st-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(227,180,92,.92);
  box-shadow: 0 0 0 10px rgba(227,180,92,.2); }
.st-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--navy); }
.st-dur { position: absolute; top: 10px; inset-inline-end: 10px; padding: 1px 8px; border-radius: 8px; font: 600 12px var(--en); color: #fff; background: rgba(0,0,0,.65); direction: ltr; font-variant-numeric: lining-nums; z-index: 2; }
.st-new { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gold); }
.st-seen { position: absolute; top: 10px; inset-inline-end: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy); background: #8fe0a4; }
.st-finfo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.st-flag { font-size: 13px; color: var(--cream); padding: 2px 10px; border-radius: 14px; background: rgba(14,26,51,.7); border: 1px solid rgba(227,180,92,.3); }
.st-theme { font-size: 14px; color: var(--gold); }
.st-finfo h2 { margin: 0; font-family: var(--en); font-weight: 600; font-size: 26px; line-height: 1.3; color: var(--cream); }
html[lang="ar"] .st-finfo h2 { font-family: var(--kufi); font-weight: 500; }
.st-lesson { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; border-inline-start: 3px solid var(--gold); padding-inline-start: 10px; }
.st-watch { font-size: 17px; padding: 10px 24px; margin-top: 4px; }
.st-share { display: flex; gap: 8px; flex-wrap: wrap; }
.st-share .chip { font-size: 14px; padding: 5px 14px; }
.st-all-title { max-width: 860px; margin: 0 auto 14px; color: var(--gold2); font-weight: 400; font-size: 22px; }
.st-all-title[hidden] { display: none; }
.st-grid { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.st-card { font: inherit; text-align: start; cursor: pointer; padding: 0; border: 0; background: none; color: inherit; display: block; }
.st-card .st-cimg { border-radius: 16px; border-inline-width: 7px; }
.st-card .st-cimg::before, .st-card .st-cimg::after { width: 7px; }
.st-card .st-cimg::before { left: -7px; }
.st-card .st-cimg::after { right: -7px; }
/* the play button only shows on hover/tap — the cover stays clean */
.st-card .st-play { width: 42px; height: 42px; opacity: 0; transition: opacity .2s ease; box-shadow: 0 0 0 8px rgba(227,180,92,.18); }
.st-card .st-play::after { margin: -8px 0 0 -4px; border-width: 8px 0 8px 13px; }
.st-card:hover .st-play, .st-card:focus-visible .st-play { opacity: 1; }
/* title over the cover, on a soft gradient */
.st-cgrad { position: absolute; inset-inline: 0; bottom: 0; height: 60%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5,10,22,.55) 45%, rgba(5,10,22,.9)); }
.st-cover { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 28px 10px 10px; display: block; }
.st-cover small { display: block; color: var(--gold); font-size: 11px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cover b { font-family: var(--en); font-weight: 600; font-size: 13.5px; color: #fff; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ar"] .st-cover b { font-family: var(--ar); font-weight: 700; }
.st-card.seen img { filter: saturate(.75) brightness(.85); }
.st-soon { max-width: 860px; margin: 30px auto 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.st-soon p { margin: 0; }
.st-reel { width: 34px; height: 34px; border-radius: 50%; border: 3px dashed rgba(227,180,92,.6); animation: reel 6s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }
.st-player { position: fixed; inset: 0; z-index: 60; background: rgba(5,10,22,.9); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fadeIn .25s ease; }
.st-player[hidden] { display: none; }
.st-pbox { position: relative; display: flex; gap: 22px; align-items: center; max-width: 900px; }
@media (max-width: 720px) { .st-pbox { flex-direction: column; gap: 12px; } }
.st-vwrap { position: relative; flex: none; }
.st-vwrap video { height: min(70vh, 560px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; border: 1px solid var(--gold); display: block; }
.st-close { position: absolute; top: -8px; inset-inline-end: -8px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--navy2); border: 1px solid var(--gold); color: var(--cream); font-size: 17px; }
.st-ptext { max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.st-ptitle { margin: 0; font-family: var(--en); font-weight: 600; font-size: 22px; color: var(--cream); }
.st-plesson { margin: 0 0 6px; color: var(--muted); }
.st-next { position: absolute; inset: 0; border-radius: 14px; background: rgba(5,10,22,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; }
.st-next[hidden] { display: none; }
.st-next small { color: var(--gold); }
.st-next b { color: var(--cream); font-weight: 400; }
.st-cancel { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }

/* ===== redesign step 1: new top bar (logo · menu · app + language) and the phone tab bar ===== */
.top { padding: 10px 24px 0; background: linear-gradient(180deg, rgba(14,26,51,.96), rgba(14,26,51,.88));
  box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.brand img { box-shadow: 0 0 0 1px rgba(227,180,92,.45), 0 0 18px rgba(227,180,92,.25); }
.menu a { font-size: 15px; padding: 6px 12px; border-radius: 12px; position: relative; }
.menu a:hover { color: var(--gold2); background: rgba(227,180,92,.08); }
.menu a.here { color: var(--gold2); background: rgba(227,180,92,.14); border-color: rgba(227,180,92,.55); font-weight: 700; }
.menu a.here::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); }
@media (max-width: 1100px) {
  .top { padding: 10px 16px 0; }
  .menu a { background: rgba(31,50,96,.45); border-color: rgba(227,180,92,.12); color: var(--cream); }
  .menu a.here { color: var(--gold2); background: rgba(227,180,92,.16); border-color: var(--gold); }
}
/* wide screens: everything on one line, like the mockup */
/* (Arabic fits from 1280px; the longer French/English/Spanish words need 1440px) */
@media (min-width: 1280px) {
  html[lang="ar"] .top { flex-wrap: nowrap; padding: 10px 24px; gap: 0 14px; }
  html[lang="ar"] .menu { flex: 1 1 auto; order: 1; min-width: 0; margin: 0; padding: 4px 0; border-top: 0; gap: 2px; justify-content: center; }
  html[lang="ar"] .menu a { font-size: 14.5px; padding: 6px 9px; }
  html[lang="ar"] .inst-btn { margin-inline-start: 0; order: 2; } html[lang="ar"] .langdd { order: 3; }
  html[lang="ar"] .mscroll { display: none !important; }
}
@media (min-width: 1440px) {
  .top { flex-wrap: nowrap; padding: 10px 24px; gap: 0 12px; }
  .menu { flex: 1 1 auto; order: 1; min-width: 0; margin: 0; padding: 4px 0; border-top: 0; gap: 2px; justify-content: center; }
  .menu a { font-size: 14.5px; padding: 6px 9px; }
  html:not([lang="ar"]) .menu a { font-size: 15px; padding: 6px 7px; }
  .inst-btn { margin-inline-start: 0; order: 2; } .langdd { order: 3; }
  .mscroll { display: none !important; }
}
@media (min-width: 1280px) and (max-width: 1499px) { html[lang="ar"] .top .brand-name { display: none; } }
@media (min-width: 1440px) and (max-width: 1699px) { html:not([lang="ar"]) .top .brand-name { display: none; } }

/* ===== redesign step 2: new home, like Karim's mockup (Awba colours) ===== */
/* line icons */
.lic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }
.menu a.has-ic { display: inline-flex; align-items: center; gap: 6px; }
.menu a.has-ic::before { content: ""; flex: none; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; opacity: .9; }
.menu a.here.has-ic::before { opacity: 1; }

/* hero: a wide banner, text on one side, the arch + night sky scene on the other */
.hero2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch;
  max-width: 1180px; margin: 22px auto 0; min-height: 400px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(16,29,61,.92), rgba(10,19,41,.92)); border: 1px solid rgba(227,180,92,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.h2-text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 44px 46px; }
.h2-kick { margin: 0 0 10px; color: var(--gold); font-size: 17px; }
.h2-kick span[aria-hidden] { opacity: .8; }
html[dir="rtl"] .h2-kick span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
.h2-title { margin: 0; font-family: var(--kufi); font-weight: 700; font-size: 54px; line-height: 1.25; color: var(--cream); }
html:not([lang="ar"]) .h2-title { font-family: var(--en); font-weight: 600; font-size: 52px; }
.h2-sub { margin: 6px 0 14px; color: var(--gold2); font-size: 25px; font-weight: 700; line-height: 1.5; }
.h2-bio { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 470px; }
.h2-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.h2-cta .btn { font-size: 17px; padding: 10px 24px; border-radius: 12px; }
.h2-cta .btn.line { background: rgba(14,26,51,.5); }
.hero2 .today { justify-content: flex-start; margin-top: 20px; }
.hero2 .friday { margin-top: 12px; }
.h2-art { position: relative; min-height: 100%; }
.h2-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h2-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,19,41,.95), transparent 22%); }
html[dir="rtl"] .h2-art::after { background: linear-gradient(270deg, rgba(10,19,41,.95), transparent 22%); }
.sc-glow { animation: lampglow 4s ease-in-out infinite; transform-origin: 546px 168px; }
.sc-lantern { animation: lampswing 6s ease-in-out infinite; }
@keyframes lampglow { 50% { opacity: .7; } }
@keyframes lampswing { 0%, 100% { transform: translate(546px, 112px) rotate(1.5deg); } 50% { transform: translate(546px, 112px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .sc-glow, .sc-lantern { animation: none; } }

/* phone: title, then the scene, then the rest */
@media (max-width: 860px) {
  .hero2 { display: flex; flex-direction: column; margin: 14px 14px 0; min-height: 0; border-radius: 20px; }
  .h2-text { display: contents; }
  .h2-kick, .h2-title, .h2-sub { padding: 0 18px; text-align: center; align-self: stretch; }
  .h2-kick { order: 1; margin: 22px 0 4px; font-size: 15px; }
  .h2-title { order: 2; font-size: 38px; }
  html:not([lang="ar"]) .h2-title { font-size: 38px; }
  .h2-sub { order: 3; font-size: 19px; margin: 2px 0 14px; }
  .h2-art { order: 4; height: 200px; margin: 0 14px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(227,180,92,.2); }
  .h2-art::after { display: none; }
  .h2-bio { order: 5; text-align: center; margin: 14px 18px 14px; font-size: 15.5px; align-self: center; }
  .h2-cta { order: 6; justify-content: center; padding: 0 14px; }
  .h2-cta .btn { flex: 1 1 0; text-align: center; font-size: 15px; padding: 10px 12px; min-width: 0; }
  .hero2 .today { order: 7; justify-content: center; margin: 14px 12px 4px; }
  .hero2 .learn-next { order: 7; justify-content: center; align-self: center; margin: 8px 14px 0; max-width: none; }
  .hero2 .friday { order: 8; margin: 8px 14px 18px; }
}

/* section tiles: one compact row */
.tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; max-width: 1180px; padding: 22px 20px 10px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 16px 6px 12px;
  border-radius: 16px; background: rgba(22,37,74,.55); border: 1px solid rgba(227,180,92,.16);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.tile:hover { border-color: var(--gold); background: rgba(227,180,92,.08); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.tile-i { color: var(--gold); font-size: 30px; line-height: 0; }
.tile-t { display: flex; flex-direction: column; min-width: 0; }
.tile-t b { color: var(--cream); font-size: 15px; font-weight: 700; line-height: 1.35; }
.tile-t small { display: none; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 18px 14px 6px; }
  .tile { padding: 12px 2px 9px; gap: 6px; border-radius: 14px; }
  .tile-i { font-size: 24px; }
  .tile-t b { font-size: 12.5px; white-space: nowrap; }
  html:not([lang="ar"]) .tile-t b { font-size: 12px; }
}

/* latest content + verse of the day */
.home-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; max-width: 1180px; align-items: stretch; padding: 26px 20px 40px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.row-head h2 { margin: 0; font-family: var(--kufi); font-weight: 500; color: var(--cream); font-size: 24px; display: flex; align-items: center; gap: 8px; }
.row-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
html:not([lang="ar"]) .row-head h2 { font-family: var(--en); font-weight: 600; }
.see-all { color: var(--gold); font-size: 15px; }
.see-all::after { content: " ←"; }
html[dir="ltr"] .see-all::after { content: " →"; }
.latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lcard { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(22,37,74,.7); border: 1px solid rgba(227,180,92,.16);
  transition: transform .2s, border-color .2s; }
.lcard:hover { border-color: var(--gold); }
.lc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1329; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.lc-img .dur { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 2px 9px; border-radius: 8px; font: 600 12.5px var(--en);
  background: rgba(5,10,22,.78); color: #fff; direction: ltr; }
.lc-t { margin: 10px 12px 2px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--cream);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-m { display: flex; align-items: center; gap: 6px; margin: 2px 12px 12px; font-size: 13px; color: var(--muted); min-width: 0; }
.lc-m .lic { color: var(--gold); font-size: 15px; flex: none; }
.lc-m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the verse card: narrow, framed */
.ayah-col { position: relative; display: flex; flex-direction: column; padding: 20px 16px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(31,50,96,.6), rgba(12,22,46,.8)); border: 1px solid rgba(227,180,92,.4);
  box-shadow: inset 0 0 0 5px rgba(14,26,51,.6), inset 0 0 0 6px rgba(227,180,92,.18); }
.ayah-col .row-head { flex-direction: column; justify-content: center; gap: 2px; margin-bottom: 4px; }
.ayah-col .row-head h2 { color: var(--gold); font-size: 22px; }
.ayah-col .row-head h2::before { display: none; }
.ayah-col .row-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.home-row .ayah-card { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: none; margin: 0; padding: 14px 4px 4px;
  background: none; border: 0; border-radius: 0; box-shadow: none; }
.home-row .ayah-ar { font-size: 25px; line-height: 2; }
.home-row .ayah-ar.long { font-size: 20px; }
.home-row .ayah-en { font-size: 16px; }
.home-row .divider { margin: 10px auto; }
.home-row .ayah-ref { font-size: 15px; margin-top: 8px; }
.home-row .ayah-actions { gap: 6px; margin-top: 14px; }
.home-row .ayah-actions .chip { font-size: 13.5px; padding: 5px 12px; }
@media (max-width: 1000px) { .home-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .home-row { padding: 20px 14px 30px; gap: 18px; }
  .latest { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .row-head h2 { font-size: 21px; }
}

/* phone tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar { position: fixed; z-index: 36; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(12,22,44,.96); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(227,180,92,.28); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
  .tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px 2px;
    border-radius: 12px; color: var(--muted); -webkit-tap-highlight-color: transparent; }
  .tabbar .ti { font-size: 23px; line-height: 0; height: 26px; display: grid; place-items: center; opacity: .8; }
  .tabbar .tl { font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  html:not([lang="ar"]) .tabbar .tl { font-size: 13px; }
  .tabbar a.here { color: var(--gold2); background: rgba(227,180,92,.13); }
  .tabbar a.here .ti { opacity: 1; color: var(--gold); }
  .tabbar a.here .tl { font-weight: 700; }
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .qplayer { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar.qp-on .to-top { bottom: calc(224px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .vsheet { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}/* hero picture = the old Awba look: logo, glow, moon, stars (the page's shooting stars show through) */
.hero2 { background: linear-gradient(135deg, rgba(16,29,61,.6), rgba(10,19,41,.55)); }
.h2-art { display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, rgba(35,56,107,.75), transparent 70%); }
.h2-art .glow { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.h2-art .moon { top: 9%; inset-inline-end: 10%; }
.h2-art .logo { position: relative; margin: 0; line-height: 0; }
.h2-art .logo img { width: 340px; }
.h2-stars { position: absolute; inset: 0; pointer-events: none; animation: twinkle2 5s ease-in-out infinite;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #f3d28e, transparent), radial-gradient(1px 1px at 28% 62%, #f3d28e, transparent),
    radial-gradient(2px 2px at 40% 12%, #f3d28e, transparent), radial-gradient(1px 1px at 58% 80%, #f3d28e, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #f3d28e, transparent), radial-gradient(1px 1px at 84% 66%, #f3d28e, transparent),
    radial-gradient(2px 2px at 90% 14%, #f3d28e, transparent), radial-gradient(1px 1px at 20% 86%, #f3d28e, transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, #f3d28e, transparent), radial-gradient(1px 1px at 8% 44%, #f3d28e, transparent),
    radial-gradient(1px 1px at 76% 90%, #f3d28e, transparent), radial-gradient(1.5px 1.5px at 34% 36%, #f3d28e, transparent); }
.h2-stars::after { content: ""; position: absolute; inset: 0; animation: twinkle2 7s ease-in-out 2s infinite;
  background-image: radial-gradient(1px 1px at 18% 30%, #fff3cf, transparent), radial-gradient(1.5px 1.5px at 46% 72%, #fff3cf, transparent),
    radial-gradient(1px 1px at 64% 18%, #fff3cf, transparent), radial-gradient(2px 2px at 80% 48%, #fff3cf, transparent),
    radial-gradient(1px 1px at 30% 8%, #fff3cf, transparent), radial-gradient(1.5px 1.5px at 94% 82%, #fff3cf, transparent); }
@keyframes twinkle2 { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 860px) {
  .h2-art { height: auto; padding: 18px 0 8px; border: 0; background: radial-gradient(ellipse at 50% 50%, rgba(35,56,107,.7), transparent 70%); }
  .h2-art .logo img { width: 220px; }
  .h2-art .moon { width: 46px; height: 46px; top: 8%; inset-inline-end: 8%; }
  .h2-art .glow { width: 300px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .h2-stars, .h2-stars::after { animation: none; } }

/* computer/tablet: the menu never slides and never cuts a word: every item always in the same place (wraps to a 2nd line if needed) */
@media (min-width: 1280px) {
  .menu { flex-wrap: wrap; overflow: visible; justify-content: center; row-gap: 4px;
    -webkit-mask-image: none !important; mask-image: none !important; }
  .mscroll { display: none !important; }
}

/* phone header like the mockup: ☰ · logo + name in the middle · app + language as small round buttons; the menu opens from the side */
.burger, .menu-x, .menu-veil { display: none; }
@media (max-width: 1279px) {
  .top { flex-wrap: nowrap; padding: 8px 12px; gap: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12,22,44,.97); }
  body.menu-open .top { z-index: 90; }
  .burger { display: grid; align-content: center; gap: 5px; flex: none; width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; cursor: pointer;
    background: transparent; border: 1px solid rgba(227,180,92,.3); order: 0; }
  .burger i { display: block; height: 2px; border-radius: 2px; background: var(--gold2); }
  .top .brand { order: 1; flex: 1; justify-content: center; min-width: 0; }
  .top .brand img { width: 36px; height: 36px; }
  .top .brand-name { display: inline; font-size: 22px; }
  .top .brand-name small { font-size: 9px; letter-spacing: .25em; }
  .inst-btn { order: 2; margin: 0; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; animation: none; box-shadow: none; }
  .inst-btn b { display: none; }
  .inst-btn span { font-size: 18px; }
  .langdd { order: 3; margin: 0; }
  .ld-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; border-color: rgba(227,180,92,.5); }
  .ld-cur, .ld-arrow { display: none; }
  .ld-globe { font-size: 18px; }
  .mscroll { display: none !important; }
  /* the side panel */
  .menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 2; width: min(300px, 84vw); margin: 0; padding: 64px 14px 24px;
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; overflow-x: hidden; overflow-y: auto;
    background: #0d1834; border-top: 0; border-inline-end: 1px solid rgba(227,180,92,.3); box-shadow: 0 0 40px rgba(0,0,0,.6);
    transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); visibility: hidden;
    -webkit-mask-image: none !important; mask-image: none !important; }
  html[dir="rtl"] .menu { transform: translateX(105%); }
  body.menu-open .menu { transform: none; visibility: visible; }
  .menu a, .menu a.has-ic { font-size: 18px; padding: 11px 14px; border-radius: 12px; gap: 12px; background: transparent; border-color: transparent; color: var(--cream); }
  .menu a.has-ic::before { width: 21px; height: 21px; background: var(--gold); }
  .menu a.here { color: var(--gold2); background: rgba(227,180,92,.14); border-color: rgba(227,180,92,.5); }
  .menu a.here::after { display: none; }
  .menu-x { display: grid; place-items: center; position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(227,180,92,.4); background: transparent; color: var(--gold2); font-size: 18px; cursor: pointer; }
  .menu-veil { position: fixed; inset: 0; z-index: 1; background: rgba(5,10,22,.6); }
  body.menu-open .menu-veil { display: block; }
}

/* top bar: the name only (no logo picture) */
.top .brand img { display: none; }
.top .brand-name { display: inline !important; }

/* ===== phone home exactly like the mockup (Awba identity) ===== */
@media (min-width: 721px) { .tiles { display: none !important; } }
@media (max-width: 1279px) {
  /* ☰ on the left, the name in the middle, app + language on the right (like the mockup) */
  html[dir="rtl"] .langdd { order: 0; } html[dir="rtl"] .inst-btn { order: 1; }
  html[dir="rtl"] .top .brand { order: 2; } html[dir="rtl"] .burger { order: 3; }
}
@media (max-width: 720px) {
  .hero2 { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .h2-kick, .h2-bio { display: none; }
  .h2-title { font-size: 31px; margin-top: 18px; line-height: 1.35; }
  html:not([lang="ar"]) .h2-title { font-size: 31px; }
  .h2-sub { font-size: 16.5px; margin: 4px 0 10px; }
  .h2-art { margin: 0; height: 215px; padding: 0; border-radius: 0; border: 0;
    background: radial-gradient(ellipse at 50% 55%, rgba(53,78,140,.55), rgba(14,26,51,0) 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .h2-art .logo img { width: 190px; }
  .h2-art .moon { top: 12%; inset-inline-end: 14%; width: 40px; height: 40px; }
  .h2-cta { margin-top: 14px; gap: 10px; padding: 0 16px; }
  .h2-cta .btn { border-radius: 12px; padding: 11px 8px; }
  .hero2 .today { margin: 12px 14px 4px; gap: 6px; }
  .hero2 .chip-info { font-size: 12px; padding: 3px 10px; }
  .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: none; padding: 18px 16px 6px; margin: 0; }
  .tile { aspect-ratio: 1 / 1; padding: 6px 2px; gap: 6px; border-radius: 16px; background: rgba(22,37,74,.7); border-color: rgba(227,180,92,.12); }
  .tile-i { font-size: 28px; }
  .tile-t b { font-size: 13px; font-weight: 700; }
  .home-row { padding-top: 22px; }
  .home-row .row-head h2 { font-size: 20px; }
  .lc-t { font-size: 16.5px; }
}

/* phone/tablet in Arabic: the language button sits on the right edge, so its list opens towards the inside of the screen */
@media (max-width: 1279px) { html[dir="rtl"] .ld-list { left: auto; right: 0; } }

/* phone/tablet: the top bar and the ☰ panel never change sides when the language changes:
   ☰ on the left · name in the middle · app + language on the right, and the panel always opens from the left */
@media (max-width: 1279px) {
  .top { direction: ltr; }
  .burger { order: 0 !important; }
  .top .brand { order: 1 !important; }
  .inst-btn { order: 2 !important; }
  .langdd { order: 3 !important; }
  .ld-list, html[dir="rtl"] .ld-list { left: auto; right: 0; }
  html[dir="rtl"] .ld-list { direction: rtl; }
  .menu, html[dir="rtl"] .menu { left: 0; right: auto; transform: translateX(-105%); border-inline-end: 0; border-right: 1px solid rgba(227,180,92,.3); }
  html[dir="rtl"] .menu { direction: rtl; }
  body.menu-open .menu, body.menu-open .menu { transform: none; }
  .menu-x { right: 12px; left: auto; }
}

/* ---------- طريقك الجديد · learn (new Muslims path) ---------- */
.ls-progress { text-align: center; margin: 0 0 16px; color: var(--gold); font-size: 17px; }
.ls-progress b { font-family: var(--en); font-size: 22px; }
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 680px; margin: 0 auto 16px; }
.learn-cat { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 14px 16px; background: var(--navy2); border: 1px solid rgba(227,180,92,.2); border-radius: 16px;
  cursor: pointer; text-align: start; font-family: inherit; transition: transform .15s, border-color .2s, box-shadow .2s; }
.learn-cat:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.learn-cat .lc-ic { font-size: 24px; line-height: 1.2; }
.learn-cat .lc-name { color: var(--gold2); font-weight: 700; font-size: 16px; line-height: 1.5; }
.learn-cat .lc-meta { color: var(--muted); font-size: 13px; }
.learn-cat .lc-go { color: var(--gold); font-size: 13px; border-bottom: 1px dotted var(--gold); }
.learn-cat.done { border-color: var(--gold); }
.learn-cat.done::after { content: "✓"; position: absolute; top: 10px; inset-inline-end: 12px; width: 22px; height: 22px;
 border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 14px; display: grid; place-items: center; }
.learn-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 680px; margin: 0 auto 12px; }
.learn-count { color: var(--gold); font-family: var(--en); font-size: 19px; white-space: nowrap; }
.ls-stage, .ls-lesson { max-width: 680px; margin: 0 auto; background: var(--navy2); border: 1px solid rgba(227,180,92,.2); border-radius: 18px; padding: 18px; }
.ls-stage-head { border-bottom: 1px solid rgba(227,180,92,.15); padding-bottom: 10px; margin-bottom: 6px; }
.ls-stage-head h3 { margin: 0 0 4px; color: var(--gold); font-family: var(--kufi); font-weight: 500; font-size: 22px; }
.ls-stage-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ls-list { display: flex; flex-direction: column; }
.ls-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 6px; background: transparent; border: 0;
 border-bottom: 1px solid rgba(227,180,92,.12); color: var(--text); font-family: inherit; font-size: 16px; text-align: start; cursor: pointer; transition: background .15s; }
.ls-item:last-child { border-bottom: 0; }
.ls-item:hover { background: rgba(227,180,92,.07); }
.ls-item .ls-ic { flex: none; font-size: 19px; }
.ls-item .ls-t { flex: 1; line-height: 1.5; }
.ls-item .ls-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(227,180,92,.4);
 display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.ls-item.done .ls-mark { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ls-lhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ls-lhead span { font-size: 24px; }
.ls-lhead h3 { margin: 0; color: var(--gold); font-family: var(--kufi); font-weight: 500; font-size: 23px; line-height: 1.4; }
.ls-p { color: var(--text); font-size: 16.5px; line-height: 1.9; margin: 10px 0; }
.ls-steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: ls; }
.ls-steps li { counter-increment: ls; position: relative; padding: 9px 0 9px 0; border-bottom: 1px solid rgba(227,180,92,.12); }
[dir="ltr"] .ls-steps li { padding-left: 40px; }
[dir="rtl"] .ls-steps li { padding-right: 40px; }
.ls-steps li::before { content: counter(ls); position: absolute; top: 12px; width: 24px; height: 24px; border-radius: 50%;
 background: rgba(227,180,92,.15); border: 1px solid var(--gold); color: var(--gold); font-family: var(--en); font-size: 14px;
 display: grid; place-items: center; }
[dir="ltr"] .ls-steps li::before { left: 0; }
[dir="rtl"] .ls-steps li::before { right: 0; }
.ls-steps li b { color: var(--gold2); font-weight: 700; display: block; line-height: 1.6; }
.ls-steps li small { color: var(--muted); font-size: 14px; line-height: 1.7; display: block; margin-top: 2px; }
.ls-suras { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.ls-sura { background: rgba(31,50,96,.45); border: 1px solid rgba(227,180,92,.18); border-radius: 14px; padding: 12px 14px; }
.ls-shead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ls-shead b { color: var(--gold); font-family: "Amiri Quran", var(--ar); font-weight: 400; font-size: 20px; }
.ls-shead span { color: var(--muted); font-size: 13px; font-family: var(--en); }
.ls-ayat { display: flex; flex-direction: column; }
.ls-ayah { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(227,180,92,.1); }
.ls-ayah:last-child { border-bottom: 0; }
.ls-ayah.playing { background: rgba(227,180,92,.08); border-radius: 10px; }
.ls-play { flex: none; width: 30px; height: 30px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--gold);
 background: transparent; color: var(--gold); font-size: 12px; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.ls-play:hover { background: var(--gold); color: var(--navy); }
.ls-ayah.playing .ls-play { background: var(--gold); color: var(--navy); }
.ls-atext { flex: 1; min-width: 0; }
.ls-ar { margin: 0; font-family: "Amiri Quran", var(--ar); font-size: 23px; line-height: 2.1; color: var(--gold2); }
.ls-tr { margin: 4px 0 0; color: var(--muted); font-family: var(--en); font-size: 15px; line-height: 1.6; }
.ls-mn { margin: 3px 0 0; color: var(--text); font-size: 15px; line-height: 1.7; }
.ls-note { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: rgba(227,180,92,.12); border: 1px solid rgba(227,180,92,.3); color: var(--gold2); font-size: 15.5px; line-height: 1.8; }
.lr-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media (max-width: 560px) {
 .learn-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
 .learn-cat { padding: 11px 12px; }
 .learn-cat .lc-name { font-size: 14.5px; }
 .ls-stage, .ls-lesson { padding: 14px 13px; }
 .ls-ar { font-size: 21px; }
}

/* ---------- learn: home strip + review quiz + FAQ ---------- */
.learn-next { display: flex; align-items: center; gap: 12px; max-width: 640px; width: fit-content; margin: 14px auto 0;
  padding: 10px 18px; border-radius: 16px; background: rgba(227,180,92,.1); border: 1px solid rgba(227,180,92,.35);
  transition: background .2s, border-color .2s, transform .15s; }
.learn-next:hover { background: rgba(227,180,92,.16); border-color: var(--gold); transform: translateY(-2px); }
.learn-next .ln-ic { font-size: 22px; }
.learn-next .ln-txt { display: flex; flex-direction: column; gap: 1px; text-align: start; }
.learn-next .ln-txt small { color: var(--gold); font-size: 13px; }
.learn-next .ln-txt b { color: var(--cream); font-size: 15px; font-weight: 600; line-height: 1.4; }
.learn-next .ln-go { color: var(--gold); font-size: 18px; }
.ls-quiz .ls-q { color: var(--gold2); font-size: 20px; font-weight: 700; line-height: 1.7; margin: 6px 0 14px; }
.ls-opts { display: flex; flex-direction: column; gap: 9px; }
.ls-opt { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(227,180,92,.35); background: rgba(31,50,96,.4);
  color: var(--text); font-family: inherit; font-size: 16px; text-align: start; cursor: pointer; line-height: 1.6;
  transition: background .15s, border-color .15s, color .15s; }
.ls-opt:hover:enabled { border-color: var(--gold); background: rgba(227,180,92,.1); }
.ls-opt:disabled { cursor: default; opacity: .75; }
.ls-opt.ok { border-color: var(--gold); background: rgba(227,180,92,.22); color: var(--gold2); opacity: 1; font-weight: 700; }
.ls-opt.ok::after { content: " \2713"; color: var(--gold); }
.ls-opt.no { border-color: rgba(214,92,92,.6); background: rgba(214,92,92,.12); color: #e6a3a3; opacity: 1; }
.ls-opt.no::after { content: " \2715"; color: #d65c5c; }
.ls-qfb { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(227,180,92,.12);
  border: 1px solid rgba(227,180,92,.3); color: var(--gold2); font-size: 15px; line-height: 1.8; }
.ls-faq { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.ls-faq-item { background: rgba(31,50,96,.4); border: 1px solid rgba(227,180,92,.18); border-radius: 14px; padding: 13px 15px; }
.ls-faq-item .ls-q { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: 17px; line-height: 1.6; }
.ls-faq-item .ls-p { margin: 0; font-size: 15.5px; }
.ls-faq-item .lq-src { margin: 8px 0 0; font-size: 13px; }
.ls-item.rev .ls-t { color: var(--gold); font-weight: 700; }
@media (max-width: 560px) { .learn-next { width: 100%; padding: 9px 14px; } }
