/* =====================================================================
   نور القرآن — sections.css
   Shared section components used across pages:
   hero slider · category strip · big player · surah rows · juz grid
   reciter cards · book covers · quote · zikr cards · tools · khatma ring
   newsletter · popular list · page-hero extras · lesson rows
   ===================================================================== */

/* ---------- Home hero slider ---------- */
.hero { position: relative; min-height: min(100svh, 920px); color: #f4ead2; isolation: isolate; overflow: hidden; background: var(--nq-green-950); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .hs-bg { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.hero-slide .hs-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.hero-slide.is-active .hs-bg img { transform: scale(1.02); }
.hero-slide .hs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,26,20,.15) 0%, rgba(4,26,20,.55) 45%, rgba(4,26,20,.9) 100%), linear-gradient(180deg, rgba(4,26,20,.55) 0%, rgba(4,26,20,0) 30%, rgba(4,26,20,.2) 70%, rgba(4,26,20,.95) 100%); }
[dir="ltr"] .hero-slide .hs-bg::after { background: linear-gradient(270deg, rgba(4,26,20,.15) 0%, rgba(4,26,20,.55) 45%, rgba(4,26,20,.9) 100%), linear-gradient(180deg, rgba(4,26,20,.55) 0%, rgba(4,26,20,0) 30%, rgba(4,26,20,.2) 70%, rgba(4,26,20,.95) 100%); }
.hero-inner { position: relative; min-height: inherit; display: flex; align-items: center; padding-block: calc(var(--header-h) + 40px) 190px; }
.hero-copy { max-width: 640px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(230,207,156,.28); font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--nq-gold-300); backdrop-filter: blur(8px); margin-bottom: 22px; }
[dir="ltr"] .hero-kicker { padding: 7px 8px 7px 16px; }
.hero-kicker i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--nq-gold-400); color: var(--nq-green-950); }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.2; color: #fff6dc; margin-bottom: 16px; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
html[lang="en"] .hero-title { font-family: 'Amiri', serif; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.1; }
.hero-title .gold { background: linear-gradient(180deg, #fbe9bd 10%, #d6b878 60%, #a8823a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(244,234,210,.85); max-width: 560px; margin-bottom: 30px; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-text-anim > * { opacity: 0; transform: translateY(26px); }
.hero-slide.is-active .hero-text-anim > * { animation: heroIn 1s var(--ease-out) forwards; }
.hero-slide.is-active .hero-text-anim > *:nth-child(2) { animation-delay: .12s; }
.hero-slide.is-active .hero-text-anim > *:nth-child(3) { animation-delay: .24s; }
.hero-slide.is-active .hero-text-anim > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-content-layer { position: absolute; inset: 0; pointer-events: none; }
.hero-content-layer .container-nq { height: 100%; position: relative; }
.hero-slide .hero-inner { pointer-events: auto; }
.hero-search-wrap { position: absolute; inset-inline: 0; bottom: 92px; z-index: 3; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px; border-radius: 999px; background: rgba(255,253,248,.95); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); border: 1px solid rgba(230,207,156,.6); }
.hero-search i.bi-search { color: var(--nq-gold-600); font-size: 1.2rem; margin-inline-start: 14px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.05rem; color: #17241f; font-family: var(--font-body); padding: 8px 4px; }
.hero-search input::placeholder { color: #7d8a82; }
[data-theme="dark"] .hero-search { background: rgba(13,31,25,.92); border-color: rgba(214,184,120,.3); }
[data-theme="dark"] .hero-search input { color: var(--text); }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(4,26,20,.45); border: 1px solid rgba(230,207,156,.35); color: #f4ead2; font-family: var(--font-head); font-weight: 600; font-size: .88rem; backdrop-filter: blur(8px); transition: all .3s var(--ease); }
.hero-quick a i { color: var(--nq-gold-300); }
.hero-quick a:hover { background: var(--nq-gold-400); color: var(--nq-green-950); border-color: var(--nq-gold-400); }
.hero-quick a:hover i { color: var(--nq-green-950); }
.hero-controls { position: absolute; inset-inline: 0; bottom: 30px; z-index: 3; }
.hero-controls .container-nq { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(244,234,210,.3); cursor: pointer; position: relative; overflow: hidden; }
.hero-dots button span { position: absolute; inset: 0; width: 0; background: var(--nq-gold-300); }
.hero-dots button.is-active span { animation: dotFill var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero-dots button.is-active span { animation-play-state: paused; }
@keyframes dotFill { to { width: 100%; } }
.hero-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(230,207,156,.4); background: rgba(4,26,20,.35); color: #f4ead2; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: all .3s; }
.hero-arrows button:hover { background: var(--nq-gold-400); color: var(--nq-green-950); }
[dir="ltr"] .hero-arrows i { transform: scaleX(-1); display: inline-block; }
.hero-count { font-family: var(--font-head); font-weight: 700; color: rgba(244,234,210,.7); font-size: .9rem; direction: ltr; }
.hero-count b { color: var(--nq-gold-300); font-size: 1.15rem; }
.hero-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff6dc; animation: nq-twinkle 3s ease-in-out infinite; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(244,234,210,.45); display: none; }
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--nq-gold-300); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 992px) { .hero-scroll { display: block; } }
.hero-verse { position: absolute; inset-inline-end: clamp(16px, 4vw, 60px); top: calc(var(--header-h) + 40px); z-index: 2; max-width: 330px; padding: 18px 22px; border-radius: 20px; background: rgba(4,26,20,.4); border: 1px solid rgba(230,207,156,.25); backdrop-filter: blur(10px); display: none; animation: nq-float 7s ease-in-out infinite; }
.hero-verse .quran-text { color: #fbeec9; font-size: 1.3rem; margin: 0; line-height: 2; }
.hero-verse small { color: var(--nq-gold-300); font-family: var(--font-head); }
@media (min-width: 1200px) { .hero-verse { display: block; } }
@media (max-width: 767.98px) {
  .hero-inner { padding-bottom: 250px; align-items: flex-end; }
  .hero-slide .hs-bg::after { background: linear-gradient(180deg, rgba(4,26,20,.6) 0%, rgba(4,26,20,.35) 35%, rgba(4,26,20,.92) 75%, rgba(4,26,20,1) 100%); }
  .hero-search-wrap { bottom: 86px; }
  .hero-quick a { padding: 7px 12px; font-size: .82rem; }
  .hero-arrows { display: none; }
}

/* ---------- categories strip ---------- */
.cat-strip { position: relative; z-index: 4; margin-top: -60px; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1199.98px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-grid .card-overlay { aspect-ratio: 1/1.05; } .card-overlay .co-title { font-size: 1rem; } .card-overlay .co-arrow { display: none; } }
.cat-grid .card-overlay { aspect-ratio: 1/1.08; }
.cat-grid .co-icon { position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(4,26,20,.55); border: 1px solid rgba(230,207,156,.35); color: var(--nq-gold-300); backdrop-filter: blur(6px); font-size: 1.1rem; }

/* ---------- big Quran player ---------- */
.big-player { padding: clamp(22px, 3vw, 36px); }
.big-player .bp-art { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1b6a53, #082920 70%); border: 1px solid rgba(214,184,120,.25); }
.big-player .bp-art::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(230,207,156,.35); animation: nq-spin 40s linear infinite; }
.big-player .bp-art::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; border: 1px solid rgba(230,207,156,.2); }
.big-player.is-paused .bp-art::before { animation-play-state: paused; }
.big-player .bp-disc { position: relative; z-index: 1; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-600)); color: var(--nq-green-950); font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); box-shadow: 0 0 0 10px rgba(230,207,156,.08), 0 20px 50px -10px rgba(0,0,0,.6); }
.big-player.is-playing .bp-disc { animation: nq-breathe 3s ease-in-out infinite; }
.big-player .bp-eq { position: absolute; bottom: 16px; inset-inline-start: 50%; transform: translateX(-50%); color: var(--nq-gold-300); z-index: 2; }
[dir="rtl"] .big-player .bp-eq { transform: translateX(50%); }
.big-player.is-paused .bp-eq { opacity: .3; }
.bp-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 4px; color: #fbf0d4; }
.bp-sub { color: rgba(237,228,204,.75); margin-bottom: 18px; }
.range-nq { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--nq-gold-400) var(--p, 0%), rgba(230,207,156,.2) var(--p, 0%)); outline: none; cursor: pointer; }
[dir="rtl"] .range-nq { background: linear-gradient(-90deg, var(--nq-gold-400) var(--p, 0%), rgba(230,207,156,.2) var(--p, 0%)); }
.range-nq::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 4px rgba(214,184,120,.35); transition: transform .2s; }
.range-nq::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 4px rgba(214,184,120,.35); }
.range-nq:hover::-webkit-slider-thumb { transform: scale(1.2); }
.range-light { background: linear-gradient(90deg, var(--primary) var(--p, 0%), var(--surface-3) var(--p, 0%)); }
[dir="rtl"] .range-light { background: linear-gradient(-90deg, var(--primary) var(--p, 0%), var(--surface-3) var(--p, 0%)); }
.bp-times { display: flex; justify-content: space-between; font-size: .82rem; color: rgba(237,228,204,.65); margin-top: 8px; font-feature-settings: "tnum"; direction: ltr; }
.bp-ctrls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; }
.bp-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(230,207,156,.25); background: rgba(255,255,255,.05); color: #f2e9d2; display: grid; place-items: center; font-size: 1.15rem; cursor: pointer; transition: all .25s var(--ease); }
.bp-btn:hover, .bp-btn.is-active, .bp-btn.is-on { background: rgba(230,207,156,.15); color: var(--nq-gold-300); border-color: rgba(230,207,156,.5); }
.bp-btn.bp-main { width: 70px; height: 70px; font-size: 2rem; background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500)); color: var(--nq-green-950); border: 0; box-shadow: 0 14px 30px -10px rgba(214,184,120,.6); }
.bp-btn.bp-main:hover { transform: scale(1.06); color: var(--nq-green-950); }
.bp-btn .small-lbl { font-size: .7rem; font-weight: 800; font-family: var(--font-head); }
[dir="rtl"] .bp-dir { transform: scaleX(-1); }
.bp-select { background: rgba(255,255,255,.06); border: 1px solid rgba(230,207,156,.3); color: #f2e9d2; border-radius: 999px; padding: 10px 16px; font-family: var(--font-head); font-weight: 600; width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e6cf9c' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; }
[dir="ltr"] .bp-select { background-position: right 16px center; }
.bp-select option { color: #17241f; background: #fff; }
.bp-queue { max-height: 420px; overflow-y: auto; padding-inline-end: 4px; scrollbar-width: thin; scrollbar-color: rgba(230,207,156,.3) transparent; }
.bp-q-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; transition: background .2s; border: 0; background: none; width: 100%; text-align: start; color: #ede4cc; }
.bp-q-item:hover { background: rgba(255,255,255,.06); }
.bp-q-item.is-current { background: rgba(230,207,156,.12); }
.bp-q-item .q-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(230,207,156,.12); color: var(--nq-gold-300); font-weight: 700; font-size: .85rem; flex: none; }
.bp-q-item .q-t { font-family: var(--font-head); font-weight: 700; color: #fbf0d4; font-size: .95rem; }
.bp-q-item small { color: rgba(237,228,204,.6); }
.resume-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(230,207,156,.12); border: 1px solid rgba(230,207,156,.3); color: var(--nq-gold-300); font-size: .82rem; font-family: var(--font-head); font-weight: 700; }

/* ---------- surah rows & grid ---------- */
.surah-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .surah-list { grid-template-columns: 1fr; } }
.surah-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: all .3s var(--ease); }
.surah-row:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.surah-row.is-current { border-color: var(--accent); background: var(--accent-soft); }
.sr-num { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--heading); font-size: .92rem; }
.sr-num::before { content: ""; position: absolute; inset: 4px; border: 1.5px solid var(--accent); transform: rotate(45deg); border-radius: 8px; transition: transform .5s var(--ease); }
.sr-num::after { content: ""; position: absolute; inset: 4px; border: 1.5px solid var(--accent); border-radius: 8px; opacity: .55; }
.surah-row:hover .sr-num::before { transform: rotate(135deg); }
.sr-num span { position: relative; }
.sr-main { min-width: 0; flex: 1; }
.sr-name { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1.04rem; display: block; }
.sr-name::after { content: ""; position: absolute; inset: 0; }
.sr-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.sr-type.meccan { color: var(--accent-strong); }
.sr-type.medinan { color: var(--nq-green-600); }
[data-theme="dark"] .sr-type.medinan { color: #7fd1ae; }
.sr-ar { font-size: 1.45rem; color: var(--accent-strong); line-height: 1; white-space: nowrap; }
.sr-actions { display: flex; gap: 6px; position: relative; z-index: 2; opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); width: 0; overflow: hidden; }
.surah-row:hover .sr-actions, .surah-row:focus-within .sr-actions, .surah-row.is-current .sr-actions { opacity: 1; transform: none; width: auto; overflow: visible; }
.surah-row:hover .sr-ar, .surah-row:focus-within .sr-ar { display: none; }
.fav-btn.fav-sm { width: 34px; height: 34px; font-size: .9rem; }
@media (hover: none) { .sr-actions { opacity: 1; transform: none; width: auto; overflow: visible; } .sr-ar { display: none; } }
.icon-btn.is-playing { background: var(--accent); color: var(--nq-green-950); border-color: var(--accent); }
.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.juz-card { position: relative; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: all .3s var(--ease); display: block; color: var(--text); }
.juz-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.juz-card .jz-n { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.juz-card .jz-l { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: .95rem; }
.juz-card small { color: var(--muted); display: block; font-size: .8rem; }
.juz-card.is-done { background: var(--accent-soft); border-color: var(--accent); }
.juz-card.is-done::after { content: "\F26E"; font-family: 'bootstrap-icons'; position: absolute; top: 12px; inset-inline-end: 12px; color: var(--success); font-size: 1.2rem; }

/* ---------- reciter cards ---------- */
.reciter-card .rc-top { position: relative; height: 120px; overflow: visible !important; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--rc) 70%, #e6cf9c) 0%, var(--rc) 45%, #041a14 100%); overflow: hidden; }
.reciter-card .rc-top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f6e7c1' stroke-width='1.4'%3E%3Cpath d='M40 6l9.9 24.1L74 40l-24.1 9.9L40 74l-9.9-24.1L6 40l24.1-9.9z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 40px; }
.reciter-card .rc-avatar { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--nq-green-950); background: linear-gradient(135deg, #fbe9bd, #c3a05a); border: 4px solid var(--surface); box-shadow: var(--shadow); z-index: 1; transition: transform .5s var(--ease); }
.reciter-card:hover .rc-avatar { transform: translateX(-50%) scale(1.06) rotate(-4deg); }
.reciter-card .rc-fav { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(255,253,248,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.reciter-card { overflow: visible; }
.reciter-card .rc-top { border-radius: var(--radius) var(--radius) 0 0; }
.reciter-card .card-body-nq { padding-top: 50px; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.h-scroll > * { scroll-snap-align: start; }
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
@media (min-width: 1200px) { .h-scroll.cols-5 { grid-auto-columns: calc((100% - 72px) / 5); } .h-scroll.cols-4 { grid-auto-columns: calc((100% - 54px) / 4); } }
.scroll-nav { display: flex; gap: 8px; }
[dir="ltr"] .scroll-nav i { transform: scaleX(-1); display: inline-block; }

/* ---------- book covers ---------- */
.book-cover {
  --bc: #0e3b2e; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  aspect-ratio: 3/4.2; width: 100%; padding: 18% 12%; border-radius: 6px 14px 14px 6px; color: #f4dea6; isolation: isolate; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(255,255,255,.08) 4%, rgba(0,0,0,.15) 7%, transparent 10%), radial-gradient(130% 90% at 50% 20%, color-mix(in srgb, var(--bc) 78%, #fff) 0%, var(--bc) 55%, color-mix(in srgb, var(--bc) 60%, #000) 100%);
  box-shadow: inset -3px 0 6px rgba(0,0,0,.25), 6px 10px 22px -8px rgba(0,0,0,.45), 1px 1px 0 rgba(255,255,255,.1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
[dir="ltr"] .book-cover { border-radius: 14px 6px 6px 14px; }
.book-cover .bc-frame { position: absolute; inset: 7% 8% 7% 12%; border: 1.5px solid rgba(230,207,156,.6); border-radius: 6px; z-index: -1; }
.book-cover .bc-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(230,207,156,.35); border-radius: 4px; }
.book-cover .bc-orn { color: var(--nq-gold-300); font-size: 1.2rem; opacity: .9; }
.book-cover .bc-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.45rem); line-height: 1.45; background: linear-gradient(180deg, #fff0c8, #d6b878); -webkit-background-clip: text; background-clip: text; color: transparent; direction: rtl; }
.book-cover .bc-author { font-family: var(--font-head); font-size: .72rem; color: rgba(244,222,166,.8); direction: rtl; }
.book-cover.sm .bc-title { font-size: 1rem; }
.book-cover.lg .bc-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.book-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.book-card .book-link { display: block; perspective: 900px; padding: 0 6px; }
.book-card:hover .book-cover { transform: rotateY(-14deg) translateY(-6px); box-shadow: inset -3px 0 6px rgba(0,0,0,.25), 18px 18px 30px -10px rgba(0,0,0,.45); }
[dir="ltr"] .book-card:hover .book-cover { transform: rotateY(14deg) translateY(-6px); }
.book-title { font-size: 1.02rem; margin: 0 0 2px; line-height: 1.5; }
.book-title a { color: var(--heading); }
.book-author { color: var(--muted); font-size: .88rem; margin: 0; }
.shelf { position: relative; padding-bottom: 22px; }
.shelf::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #b48a4a, #7a5a2a); box-shadow: 0 12px 20px -8px rgba(0,0,0,.35); }
[data-theme="dark"] .shelf::after { background: linear-gradient(180deg, #5a4220, #33240f); }

/* ---------- quote of the day ---------- */
.quote-card { position: relative; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 64px); overflow: hidden; isolation: isolate; color: #f6ecd2; text-align: center; background: radial-gradient(120% 120% at 50% 0%, #1b6a53 0%, #0b3127 50%, #041a14 100%); border: 1px solid rgba(214,184,120,.25); }
.quote-card .qc-bg { position: absolute; inset: 0; z-index: -1; opacity: .25; }
.quote-card .qc-bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; }
.quote-card .qc-mark { font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--nq-gold-400); opacity: .9; }
.quote-card .qc-text { font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 2; color: #fff6dc; margin: 10px auto 18px; max-width: 900px; text-align: center; }
.quote-card .qc-text.hadith { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 2rem); }
.quote-card .qc-trans { color: rgba(246,236,210,.75); font-style: italic; max-width: 760px; margin: 0 auto 14px; font-size: 1rem; direction: ltr; }
.quote-card .qc-src { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(230,207,156,.12); color: var(--nq-gold-300); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.quote-card .qc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.quote-card .qc-corner { position: absolute; width: 120px; height: 120px; opacity: .35; }
.quote-card .qc-corner.tl { top: 14px; inset-inline-start: 14px; }
.quote-card .qc-corner.br { bottom: 14px; inset-inline-end: 14px; transform: rotate(180deg); }
.qc-fade { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.qc-fade.is-out { opacity: 0; transform: translateY(10px); }

/* ---------- zikr cards & counters ---------- */
.zikr-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
.zikr-card.is-done { border-color: var(--success); background: color-mix(in srgb, var(--surface) 88%, var(--success)); }
.zikr-card .zk-text { font-family: var(--font-display); font-size: 1.32rem; line-height: 2.1; color: var(--quran-ink); margin-bottom: 12px; direction: rtl; text-align: right; }
.zikr-card .zk-text.quran-text { font-family: var(--font-quran); font-size: 1.45rem; }
.zikr-card .zk-trans { color: var(--muted); font-size: .95rem; direction: ltr; text-align: left; margin-bottom: 12px; }
.zikr-card .zk-src { font-size: .85rem; color: var(--accent-strong); font-weight: 700; font-family: var(--font-head); }
.zikr-card .zk-virtue { font-size: .88rem; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.zk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong); flex-wrap: wrap; }
.zk-counter { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 800; transition: transform .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
[dir="rtl"] .zk-counter { padding: 6px 18px 6px 6px; }
.zk-counter:active { transform: scale(.95); }
.zk-counter .zk-ring { position: relative; width: 44px; height: 44px; }
.zk-counter .zk-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.zk-counter .zk-ring circle { fill: none; stroke-width: 3.5; }
.zk-counter .zk-ring .bg { stroke: rgba(255,255,255,.18); }
.zk-counter .zk-ring .fg { stroke: var(--nq-gold-300); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset .3s var(--ease); }
.zk-counter .zk-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; }
.zikr-card.is-done .zk-counter { background: var(--success); }

/* ---------- tools grid ---------- */
.tool-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); height: 100%; overflow: hidden; transition: all .4s var(--ease); isolation: isolate; }
.tool-card::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: -1; transition: transform .6s var(--ease); }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.tool-card:hover::before { transform: scale(1.8); }
.tool-card .tc-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--nq-green-700), var(--nq-green-900)); color: var(--nq-gold-300); box-shadow: 0 10px 20px -10px rgba(8,41,32,.6); transition: transform .5s var(--ease); }
.tool-card:hover .tc-ic { transform: rotate(-8deg) scale(1.06); }
.tool-card h3 { font-size: 1.1rem; margin: 0; }
.tool-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.tool-card .tc-go { color: var(--link); font-weight: 700; font-family: var(--font-head); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- khatma ring ---------- */
.ring { position: relative; width: 170px; height: 170px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--surface-3); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .ring-label b { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--heading); line-height: 1; }
.ring .ring-label small { color: var(--muted); font-size: .8rem; }
.panel-green .ring .bg { stroke: rgba(230,207,156,.15); }
.panel-green .ring .ring-label b { color: #fbf0d4; }
.plan-opt { display: block; position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt span { display: flex; flex-direction: column; align-items: center; padding: 16px 10px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--surface); transition: all .25s var(--ease); text-align: center; }
.plan-opt b { font-family: var(--font-head); font-size: 1.6rem; color: var(--heading); line-height: 1.1; }
.plan-opt small { color: var(--muted); font-size: .8rem; }
.plan-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(195,160,90,.2); }
.plan-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-green .plan-opt span { background: rgba(255,255,255,.05); border-color: rgba(230,207,156,.25); }
.panel-green .plan-opt b { color: #fbf0d4; }
.panel-green .plan-opt small { color: rgba(237,228,204,.65); }
.panel-green .plan-opt input:checked + span { background: rgba(230,207,156,.16); border-color: var(--nq-gold-400); }

/* ---------- newsletter ---------- */
.newsletter { position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; padding: clamp(32px, 5vw, 60px); background: linear-gradient(135deg, var(--nq-gold-100), #efe2c2); border: 1px solid var(--border-strong); }
[data-theme="dark"] .newsletter { background: linear-gradient(135deg, #1a2e24, #12251d); }
.newsletter .nl-art { position: absolute; inset-inline-end: -30px; bottom: -30px; width: 280px; opacity: .14; z-index: -1; }
.newsletter-form { display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); max-width: 520px; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 8px 16px; color: var(--text); font-size: 1rem; font-family: var(--font-body); }
.nl-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--text-2); font-size: .92rem; }
.nl-perks span { display: inline-flex; align-items: center; gap: 6px; }
.nl-perks i { color: var(--success); }

/* ---------- popular list ---------- */
.pop-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; transition: background .2s; position: relative; color: var(--text); }
.pop-item:hover { background: var(--surface-2); color: var(--text); }
.pop-rank { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--accent); width: 36px; text-align: center; flex: none; }
.pop-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-3); display: grid; place-items: center; color: var(--accent-strong); font-size: 1.4rem; }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-item h4 { font-size: .98rem; margin: 0 0 2px; }
.pop-item small { color: var(--muted); }

/* ---------- tajweed path ---------- */
.level-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); height: 100%; overflow: hidden; }
.level-card .lv-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.lv-beginner { background: rgba(45,138,95,.12); color: #2d8a5f; }
.lv-intermediate { background: rgba(195,160,90,.16); color: var(--nq-gold-700); }
.lv-advanced { background: rgba(180,72,60,.1); color: #b4483c; }
[data-theme="dark"] .lv-beginner { color: #7fd1ae; } [data-theme="dark"] .lv-intermediate { color: var(--nq-gold-300); } [data-theme="dark"] .lv-advanced { color: #e79a90; }
.unit-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border-strong); color: var(--text); position: relative; }
.unit-row:last-child { border-bottom: 0; }
.unit-row .u-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.unit-row.is-done .u-ic { background: var(--success); color: #fff; }
.unit-row .u-t { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: .95rem; }
.unit-row a::after { content: ""; position: absolute; inset: 0; }

/* ---------- mushaf promo mock ---------- */
.mushaf-mock { position: relative; aspect-ratio: 1.45; border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #3d2a14, #2a1c0c); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; perspective: 1200px; }
.mushaf-mock .mm-page { position: relative; border-radius: 6px; padding: 12% 10%; background: #fbf5e4; box-shadow: inset 0 0 30px rgba(168,130,58,.18); overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.mushaf-mock .mm-page::before { content: ""; position: absolute; inset: 6%; border: 2px solid #c3a05a; border-radius: 4px; box-shadow: inset 0 0 0 3px #fbf5e4, inset 0 0 0 4px rgba(195,160,90,.6); }
.mushaf-mock .mm-line { height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(16,42,33,.55), rgba(16,42,33,.35)); }
.mushaf-mock .mm-head { align-self: center; width: 60%; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #c3a05a, #e6cf9c, #c3a05a); margin-bottom: 6px; }
.mushaf-mock .mm-page:first-child { transform-origin: right; animation: pageTurn 6s var(--ease) infinite; }
@keyframes pageTurn { 0%, 70%, 100% { transform: rotateY(0); } 80% { transform: rotateY(-8deg); } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- misc home blocks ---------- */
.split-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.split-head .sh-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 1.25rem; }
.panel-green .split-head .sh-ic { background: rgba(230,207,156,.12); color: var(--nq-gold-300); }
.split-head h2, .split-head h3 { margin: 0; font-size: 1.35rem; }
.feature-lesson { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.feature-lesson img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.feature-lesson:hover img { transform: scale(1.05); }
.feature-lesson::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,26,20,.1) 20%, rgba(4,26,20,.95) 100%); }
.feature-lesson .fl-body { padding: clamp(22px, 3vw, 36px); width: 100%; }
.feature-lesson h3 { color: #fff6dc; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.feature-lesson .fl-play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,248,.92); color: var(--nq-green-800); font-size: 2rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); box-shadow: 0 0 0 12px rgba(255,253,248,.18); transition: all .4s var(--ease); }
.feature-lesson:hover .fl-play { transform: translate(-50%, -60%) scale(1.1); background: var(--nq-gold-300); }
.nasheed-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; transition: background .2s; }
.nasheed-row:hover { background: rgba(255,255,255,.06); }
.nasheed-row .nr-img { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; flex: none; position: relative; }
.nasheed-row .nr-img img { width: 100%; height: 100%; object-fit: cover; }
.nasheed-row h4 { font-size: .98rem; margin: 0; color: #fbf0d4; }
.nasheed-row small { color: rgba(237,228,204,.6); }
.nasheed-row .nr-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(230,207,156,.35); background: none; color: var(--nq-gold-300); display: grid; place-items: center; flex: none; cursor: pointer; transition: all .25s; }
.nasheed-row .nr-play:hover { background: var(--nq-gold-400); color: var(--nq-green-950); }
.stat-block { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); height: 100%; }
.stat-block .stat-num { color: var(--accent-strong); }
.stat-block p { margin: 6px 0 0; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.season-banner { position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; min-height: 280px; display: flex; align-items: center; color: #f6ecd2; }
.season-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.season-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(4,26,20,.15), rgba(4,26,20,.9) 60%); }
[dir="ltr"] .season-banner::before { background: linear-gradient(90deg, rgba(4,26,20,.15), rgba(4,26,20,.9) 60%); }
.season-banner h2 { color: #fff6dc; }
.ayah-feature { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ayah-feature .af-ayah { font-family: var(--font-quran); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 2.3; color: var(--quran-ink); text-align: center; direction: rtl; }
.ayah-feature .af-tafsir { font-size: 1.05rem; line-height: 2; color: var(--text-2); }
.ayah-num { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; font-size: .62em; font-family: var(--font-head); font-weight: 700; color: var(--accent-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23c3a05a' stroke-width='1.6'%3E%3Crect x='8' y='8' width='24' height='24' rx='3'/%3E%3Crect x='8' y='8' width='24' height='24' rx='3' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; vertical-align: middle; margin: 0 .15em; line-height: 1; }
.tafsir-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.wird-box { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.wird-box .wb-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--nq-gold-300); font-size: 1.5rem; flex: none; }
.mini-tasbeeh { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mini-tasbeeh .mt-btn { width: 160px; height: 160px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-family: var(--font-head); color: var(--nq-green-950); background: radial-gradient(circle at 35% 30%, #fff3d6, #d6b878 55%, #a8823a); box-shadow: 0 20px 40px -14px rgba(168,130,58,.7), inset 0 -8px 18px rgba(0,0,0,.15); transition: transform .12s; -webkit-tap-highlight-color: transparent; user-select: none; }
.mini-tasbeeh .mt-btn:active { transform: scale(.94); }
.mini-tasbeeh .mt-btn b { font-size: 2.6rem; line-height: 1; display: block; }
.mini-tasbeeh .mt-btn small { font-size: .82rem; font-weight: 700; }

/* ---------- page hero extras ---------- */
.ph-head { display: flex; align-items: center; gap: 16px; }
.ph-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none; background: rgba(230,207,156,.12); border: 1px solid rgba(230,207,156,.3); color: var(--nq-gold-300); font-size: 1.6rem; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: rgba(242,233,210,.85); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.ph-stats span { display: inline-flex; align-items: center; gap: 8px; }
.ph-stats i { color: var(--nq-gold-300); }
.ph-search { max-width: 560px; margin-top: 24px; }
.ph-search .input-nq { background: rgba(255,253,248,.95); border-color: transparent; color: #17241f; height: 54px; }
[data-theme="dark"] .ph-search .input-nq { background: rgba(13,31,25,.9); color: var(--text); border-color: rgba(214,184,120,.25); }

/* ---------- filters toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.toolbar .search-field { flex: 1 1 260px; max-width: 420px; }
.toolbar .input-nq { height: 46px; }
.toolbar select.input-nq { width: auto; min-width: 160px; border-radius: 999px; }
.results-count { color: var(--muted); font-size: .9rem; font-family: var(--font-head); }
.sticky-toolbar { position: sticky; top: calc(var(--header-h-compact) + 8px); z-index: 20; }
@media (max-width: 1199.98px) { .sticky-toolbar { top: calc(72px + 8px); } }
