/* أبو حمزة — الأقسام الجديدة والرسوم المتحركة */
/* خط «عام الحرف اليدوية» من وزارة الثقافة السعودية: يُحمَّل من مجلد assets/fonts عند وضع ملفاته فيه */
@font-face { font-family: "The Year of Handicrafts"; font-weight: 400; font-display: swap;
  src: local("The Year of Handicrafts"), local("TheYearofHandicrafts-Regular"), url("../assets/fonts/TheYearofHandicrafts-Regular.woff2") format("woff2"), url("../assets/fonts/TheYearofHandicrafts-Regular.ttf") format("truetype"); }
@font-face { font-family: "The Year of Handicrafts"; font-weight: 700; font-display: swap;
  src: local("The Year of Handicrafts Bold"), local("TheYearofHandicrafts-Bold"), url("../assets/fonts/TheYearofHandicrafts-Bold.woff2") format("woff2"), url("../assets/fonts/TheYearofHandicrafts-Bold.ttf") format("truetype"); }
body { font-size: 16.5px; }
.hadith-text { font-size: 1.2rem; line-height: 2.05; }
.h-card .hadith-text::before { content: none; }
.lang-btn { font-weight: 700; font-size: .85rem; }
:root[dir="ltr"] .p-row:hover { transform: translateX(4px); }

/* ألوان التجويد ولفظ الجلالة */
:root {
  --tj-silent: #9aa0a6; --tj-madd2: #537fff; --tj-madd246: #4050ff; --tj-madd6: #000ebc; --tj-madd45: #2144c1;
  --tj-qalq: #dd0008; --tj-ikhfa: #9400a8; --tj-ikhfa-sh: #d500b7; --tj-ghunna: #ff7e1e; --tj-iqlab: #1fa6e0;
  --tj-idg-g: #169777; --tj-idg-n: #169200; --tj-idg-sh: #58b800; --tj-idg-m: #8d8d8d; --allah: #c0392b;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --tj-silent: #8b93a1; --tj-madd2: #7ea0ff; --tj-madd246: #8c96ff; --tj-madd6: #a7aeff; --tj-madd45: #6d8cf0;
  --tj-qalq: #ff6b6f; --tj-ikhfa: #d07ae0; --tj-ikhfa-sh: #ff7ae6; --tj-ghunna: #ffa25c; --tj-iqlab: #5cd0ff;
  --tj-idg-g: #3ecfa6; --tj-idg-n: #6bd35f; --tj-idg-sh: #a3e05a; --tj-idg-m: #a9b0bb; --allah: #ff6b5e; } }
:root[data-theme="dark"] {
  --tj-silent: #8b93a1; --tj-madd2: #7ea0ff; --tj-madd246: #8c96ff; --tj-madd6: #a7aeff; --tj-madd45: #6d8cf0;
  --tj-qalq: #ff6b6f; --tj-ikhfa: #d07ae0; --tj-ikhfa-sh: #ff7ae6; --tj-ghunna: #ffa25c; --tj-iqlab: #5cd0ff;
  --tj-idg-g: #3ecfa6; --tj-idg-n: #6bd35f; --tj-idg-sh: #a3e05a; --tj-idg-m: #a9b0bb; --allah: #ff6b5e; }
.tj-h, .tj-s, .tj-l { color: var(--tj-silent); }
.tj-n { color: var(--tj-madd2); } .tj-p { color: var(--tj-madd246); } .tj-m { color: var(--tj-madd6); } .tj-o { color: var(--tj-madd45); }
.tj-q { color: var(--tj-qalq); } .tj-f { color: var(--tj-ikhfa); } .tj-c { color: var(--tj-ikhfa-sh); } .tj-g { color: var(--tj-ghunna); }
.tj-i { color: var(--tj-iqlab); } .tj-a { color: var(--tj-idg-g); } .tj-u { color: var(--tj-idg-n); } .tj-w { color: var(--tj-idg-sh); }
.tj-d, .tj-b { color: var(--tj-idg-m); }
.no-tajweed [class^="tj-"]:not(.tj-toggle):not(.tj-legend):not(.tj-legend-btn) { color: inherit; }
.allah, .allah [class^="tj-"] { color: var(--allah) !important; }.sc-w.allah.on { color: var(--surface) !important; background: var(--allah); }
.hz-text[data-mode="hide"] .hw.allah { color: transparent !important; }
.hero .allah { color: inherit !important; }
.tj-toggle.on { border-color: var(--ok); color: var(--ok); }
.tj-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0; font-family: var(--f-ui); font-size: .95rem; }
.tjl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.tjl-sw { min-width: 46px; text-align: center; font-family: var(--f-quran); font-size: 1.5rem; line-height: 1.4; }

/* الرسومات المتجهة */
svg[class^="art-"], svg[class*=" art-"] { stroke: none; fill: none; display: block; max-width: 100%; }
.hero-skyline, .ph-skyline { position: absolute; inset: auto 0 0 0; z-index: -1; pointer-events: none; display: flex; justify-content: center; }
.hero-skyline svg { width: auto; height: 120px; opacity: .95; }
.ph-skyline { z-index: 0; }
.ph-skyline svg { width: min(760px, 110%); opacity: .35; }
.prayer-hero .wrap { z-index: 1; }
.hero-in { padding-bottom: 136px !important; }
.hero .hero-cr { position: absolute; top: 18px; inset-inline-end: max(20px, 7vw); width: 96px; height: 96px; z-index: -1; animation: float 7s ease-in-out infinite; }
:root[data-theme="light"] .hero .hero-cr path { d: path("M58 14a46 46 0 1 0 .1 0z"); fill: #ffd76a; }
:root[data-theme="light"] .hero-skyline svg { opacity: .55; }
@media (max-width: 620px) { .hero .hero-cr { width: 60px; height: 60px; } }

.season-hero { grid-template-columns: minmax(200px, 300px) 1fr; }
.sh-art { position: relative; height: 200px; }
.sh-art { overflow: visible; }
.art-ramadan .a-cr { position: absolute; width: 30%; top: 0; inset-inline-start: 0; }
.art-ramadan .art-lantern { position: absolute; top: -6px; transform-origin: 50% 0; animation: swing 4s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.art-ramadan .a-l1 { inset-inline-start: 30%; width: 24%; }
.art-ramadan .a-l2 { inset-inline-start: 56%; top: 20px; width: 20%; animation-delay: -1.3s; }
.art-ramadan .a-l3 { inset-inline-start: 79%; width: 17%; animation-delay: -2.6s; }
.lt-glow { animation: glowPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lt-flame { animation: flicker 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes glowPulse { 50% { opacity: .6; transform: scale(.92); } }
@keyframes flicker { to { transform: scaleY(.9) scaleX(1.05); } }
.art-last10 .a-cr { position: absolute; width: 80px; top: 0; inset-inline-end: 10px; }
.art-last10 .art-mosque { position: absolute; inset: auto 0 0 0; width: 100%; }
.art-arafah svg, .art-eid svg { width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.fw { animation: burst 2.6s ease-out infinite; }
.fw:nth-of-type(2) { animation-delay: -.9s; } .fw:nth-of-type(3) { animation-delay: -1.7s; }
@keyframes burst { 0% { transform: scale(.2); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@media (max-width: 640px) { .season-hero { grid-template-columns: 1fr; } .sh-art { height: 170px; } }

.garden { height: auto; aspect-ratio: 800 / 360; max-height: 420px; background: none; }
.art-garden { width: 100%; height: 100%; }
.g-item.new { animation: sprout .9s cubic-bezier(.2,1.4,.4,1); }
.g-cloud { animation: cloud 40s linear infinite; } .g-cloud.c2 { animation-duration: 60s; }
@keyframes cloud { 50% { transform: translateX(60px); } }
.g-river { animation: none; }
:root[data-theme="dark"] .art-garden { filter: brightness(.82) saturate(.95); }
.hp-art { width: min(260px, 100%); border-radius: 18px; }
.sr-rays { animation: spin 30s linear infinite; transform-origin: 120px 96px; }

/* إمساكية رمضان */
.imsak { display: grid; gap: 12px; }
.im-head { position: relative; overflow: hidden; display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; color: #fbf6e9;
  background: radial-gradient(circle at 15% 30%, #3b2a6b, #1a1240 60%, #0e0a26); box-shadow: var(--shadow); }
.im-head::after { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23ffe7a6'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E"); }
.im-art .art-lantern { width: 96px; animation: swing 4s ease-in-out infinite; transform-origin: 50% 0; }
.im-kicker { color: #ffe7a6; font-weight: 700; letter-spacing: .04em; }
.im-title h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.im-title p { margin: 4px 0 0; opacity: .85; }
.im-today { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; gap: 6px 18px; align-items: end; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,231,166,.35); text-align: center; }
.im-today > span, .im-today em { grid-column: 1 / -1; font-style: normal; }
.im-today > span { color: #ffe7a6; font-weight: 700; }
.im-today small { display: block; opacity: .8; font-size: .8rem; }
.im-today b { font-size: 1.9rem; line-height: 1.1; }
.im-today .ift b { color: #ffe7a6; }
.im-today em { font-size: .95rem; letter-spacing: .03em; color: #fff; direction: rtl; }
.im-today.wait { grid-template-columns: 1fr; }
.im-today.wait b { font-size: 2.6rem; color: #ffe7a6; }
.im-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); }
.im-legend span { display: inline-flex; align-items: center; gap: 6px; }
.im-legend .sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.sw.today { background: var(--gold); } .sw.fri { background: color-mix(in srgb, #3fbf8f 30%, var(--surface)); border: 1px solid #3fbf8f; } .sw.odd { background: color-mix(in srgb, #7a5ad0 22%, var(--surface)); border: 1px solid #7a5ad0; }
.im-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.im-table { width: 100%; border-collapse: collapse; min-width: 760px; font-variant-numeric: tabular-nums; }
.im-table thead th { position: sticky; top: 0; z-index: 1; padding: 12px 8px; background: linear-gradient(#2a1d5a, #1a1240); color: #ffe7a6; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.im-table thead th small { color: #fbf6e9; opacity: .8; font-weight: 400; }
.im-table th.ift { background: linear-gradient(#8a6420, #5e420f); color: #fff; }
.im-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.im-table td b { font-size: 1.12rem; }
.im-table td small { margin-inline-start: 3px; font-size: .72rem; color: var(--muted); }
.im-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.im-table tbody tr:hover { background: var(--gold-soft); }
.im-table td.ift { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.im-table td.ift b { color: var(--gold); font-size: 1.25rem; }
.im-table td.imsak-c b { color: #7a5ad0; }
:root[data-theme="dark"] .im-table td.imsak-c b { color: #b9a4ff; }
.im-day b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); font-size: 1.05rem; }
.im-star { display: block; font-size: .7rem; color: #7a5ad0; font-weight: 700; margin-top: 2px; }
:root[data-theme="dark"] .im-star { color: #b9a4ff; }
.im-date { text-align: start !important; }
.im-date b { display: block; font-size: 1rem !important; }
.im-date small { margin: 0 !important; }
.im-table tr.fri { background: color-mix(in srgb, #3fbf8f 12%, var(--surface)) !important; }
.im-table tr.odd { background: color-mix(in srgb, #7a5ad0 10%, var(--surface)) !important; }
.im-table tr.today { background: var(--gold-soft) !important; box-shadow: inset 4px 0 0 var(--gold), inset -4px 0 0 var(--gold); }
.im-table tr.today .im-day b { background: var(--gold); color: var(--surface); }
@media (max-width: 760px) {
  .im-head { grid-template-columns: 70px 1fr; }
  .im-art .art-lantern { width: 64px; }
  .im-today { grid-column: 1 / -1; }
}

/* الواجهة الإنجليزية */
.d-en { display: block; margin-top: 6px; font-family: var(--f-ui); font-weight: 600; font-size: 1rem; line-height: 1.7; color: var(--muted); direction: ltr; text-align: left; }
.dhikr .d-en { font-weight: 400; font-family: Georgia, "Times New Roman", serif; color: var(--ink); opacity: .85; }
:root[dir="ltr"] .hadith-text.en, :root[dir="ltr"] .h-card .hadith-text, :root[dir="ltr"] .book-hadith .hadith-text { font-family: Georgia, "Times New Roman", serif; direction: ltr; text-align: left; font-size: 1.05rem; line-height: 1.8; }
:root[dir="ltr"] .tafsir, :root[dir="ltr"] .tf-row .tafsir, :root[dir="ltr"] #aodTafsir, :root[dir="ltr"] #sheetTafsir { font-family: Georgia, "Times New Roman", serif; direction: ltr; text-align: left; }
.tf-row .tafsir { white-space: pre-line; }
.s-name.en { font-family: var(--f-display); font-size: 1.05rem; }
.sh-en, .sc-en { margin: 0; opacity: .85; font-weight: 700; }
.s-card-en { font-style: normal; font-size: .78rem; opacity: .9; }
.nc-en { display: block; font-size: .85rem; color: var(--gold); }
:root[dir="ltr"] .mushaf, :root[dir="ltr"] .mushaf-page, :root[dir="ltr"] .quran-text, :root[dir="ltr"] .sc-text, :root[dir="ltr"] .hz-ay, :root[dir="ltr"] .basmala { direction: rtl; }
:root[dir="ltr"] .surah-item { direction: ltr; }
:root[dir="ltr"] .hero-title { direction: rtl; }

/* تبويبات الشريط العلوي أكبر وأوضح */
.topbar-in { min-height: 72px; gap: 14px; }
.brand { font-size: 1.5rem; white-space: nowrap; }
.ph-count, .np-count { unicode-bidi: isolate; }
.brand-logo { width: 46px; height: 46px; }
.nav > a, .more-btn { font-size: .95rem !important; padding: 8px 12px !important; white-space: nowrap; border-radius: 12px !important; font-weight: 700; }
.nav > a.on, .more-btn.on { background: var(--gold-soft) !important; }
.icon-btn { min-width: 44px; height: 44px; }
.mega a { font-size: 1rem; padding: 9px 10px; }
.reader-bar, .adhan-banner { top: calc(env(safe-area-inset-top, 0px) + 73px); }

/* خطوط اختيارية تُحمّل من ملفات محلية عند توفرها */
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 100 900; font-display: swap; size-adjust: 100%; src: url("../assets/fonts/ThmanyahSerifDisplay-Black.otf") format("opentype"); }
@font-face { font-family: "Sultan Medium"; font-display: swap; src: local("Sultan Medium"), local("Sultan-Medium"), url("../assets/fonts/Sultan-Medium.woff2") format("woff2"), url("../assets/fonts/Sultan-Medium.ttf") format("truetype"); }
@font-face { font-family: "Ghayaty"; font-display: swap; src: local("Ghayaty"), local("ghayaty2020"), url("../assets/fonts/ghayaty2020.woff2") format("woff2"), url("../assets/fonts/ghayaty2020.ttf") format("truetype"); }

/* بطاقات الأقسام المصوّرة */
.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 14px !important; }
.tile.has-art { padding: 0; gap: 0; overflow: hidden; border-radius: 18px; background: var(--surface); display: grid; grid-template-rows: auto 1fr; }
.tile.has-art::after { display: none; }
.tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tile-img svg, .tile .tile-art { width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; background: none !important; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
svg.tile-art { stroke: none; fill: none; }
.tile.has-art:hover .tile-art { transform: scale(1.07); }
.tile-txt { display: grid; gap: 2px; padding: 12px 14px 14px; }
.tile-txt b { font-size: 1.1rem; }
.tile-txt span { color: var(--muted); font-size: .86rem; }
.hub-ico.art { width: 112px; height: 84px; border-radius: 18px; overflow: hidden; padding: 0; background: none; border: 2px solid rgba(255,231,166,.45); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.hub-ico.art svg { width: 100%; height: 100%; color: inherit; }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr) !important; } .tile-txt b { font-size: 1rem; } .hub-ico.art { width: 84px; height: 63px; } }

/* عنوان الصفحات مع الصورة */
.page-h.with-art { display: flex; align-items: center; gap: 18px; }
.ph-art { flex: none; width: 112px; height: 84px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ph-art svg { width: 100%; height: 100%; display: block; }
.page-h.center.with-art { justify-content: center; }
@media (max-width: 480px) { .ph-art { width: 80px; height: 60px; border-radius: 14px; } .page-h h2 { font-size: 1.6rem !important; } }

/* البحث في الأقسام */
.sec-search { display: flex; align-items: center; gap: 10px; margin: 6px 0 22px; padding: 4px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.sec-search:focus-within { border-color: var(--gold); }
.sec-search .ic { width: 22px; height: 22px; color: var(--gold); }
.sec-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font-size: 1.05rem; outline: none; color: var(--ink); }

/* شريط التنقل السفلي للهاتف وزر الصعود */
.bottom-nav { display: none; }
.to-top { position: fixed; z-index: 30; inset-inline-end: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.4rem; font-weight: 800; color: var(--surface); background: var(--gold); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .bottom-nav { position: fixed; z-index: 32; inset: auto 0 0; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; cursor: pointer; border-radius: 12px; }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav a.on { color: var(--gold); background: var(--gold-soft); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .player { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}

/* مسار الشمس والقمر */
.prayer-hero { display: block !important; }
.prayer-hero > .wrap { width: 100%; }
.ph-main { grid-template-columns: minmax(260px, 340px) 1fr !important; gap: 24px !important; align-items: stretch !important; margin-top: 18px !important; }
.ph-next { align-content: center; gap: 6px !important; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,231,166,.28); text-align: center; justify-items: center; }
.ph-next .ph-name { font-size: 3.2rem; line-height: 1.2; }
.ph-next .ph-count { font-size: 3rem; font-weight: 800; color: #ffe7a6; letter-spacing: .04em; }
.ph-next .ph-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 1rem; }
.ph-chip { display: inline-flex; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ph-chip b { color: #ffe7a6; }
@media (max-width: 860px) { .ph-main { grid-template-columns: 1fr !important; } }
.sun-arc { width: 100%; max-width: none !important; justify-self: stretch; height: auto; border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,.35); overflow: hidden; }
.sun-arc .ground { fill: #0d1830; }
.prayer-hero:not(.night) .sun-arc .ground { fill: #2f6b3a; }
.sun-arc .arc-track { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2.5; stroke-dasharray: 6 8; }
.sun-arc .arc-done { fill: none; stroke: #ffd76a; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,215,106,.7)); }
.sun-arc .arc-done.anim { transition: stroke-dashoffset 2.2s cubic-bezier(.3,.7,.2,1); }
.sun-arc .mark { fill: #13233f; stroke: #ffd76a; stroke-width: 3; }
.sun-arc .mark-n, .sun-arc .mark-time { text-anchor: middle; paint-order: stroke; stroke: rgba(5,10,25,.7); stroke-width: 4px; stroke-linejoin: round; font-family: var(--f-ui); }
.sun-arc .mark-n { fill: #fff; font-size: 19px; font-weight: 800; }
.sun-arc .mark-time { fill: #ffe7a6; font-size: 17px; font-weight: 700; }
.sun-arc .mark.passed { fill: #ffd76a; }
.arc-cloud ellipse { fill: rgba(255,255,255,.85); }
.arc-cloud { animation: cloud 50s linear infinite; } .arc-cloud.c2 { animation-duration: 70s; }
.sun-arc .ground-line { stroke: rgba(255,255,255,.35); stroke-width: 2; }
.arc-body { transform-box: view-box; }
.arc-body.anim { transition: transform 2.2s cubic-bezier(.3,.7,.2,1); }
.sun-glow { fill: rgba(255,215,106,.32); animation: halo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sun-rays path { stroke: #ffd76a; stroke-width: 3.5; stroke-linecap: round; }
.sun-rays { animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.sun-core2 { fill: #ffd76a; filter: drop-shadow(0 0 10px #ffd76a); }
.moon-glow { fill: rgba(220,226,255,.22); animation: halo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.moon-body { fill: #f6ecc8; filter: drop-shadow(0 0 10px rgba(246,236,200,.8)); }
.now-tag rect { fill: rgba(5,10,25,.72); stroke: #ffd76a; stroke-width: 1.5; }
.now-tag text { fill: #fff; font: 800 17px var(--f-ui); text-anchor: middle; stroke: none; }
.arc-star { fill: #fff; animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ph-count, .np-count { direction: ltr !important; unicode-bidi: bidi-override !important; display: inline-block; }
@media (max-width: 760px) { .ph-main { grid-template-columns: 1fr !important; } }

/* النوافذ المنبثقة */
.pop-back { position: fixed; inset: 0; z-index: 60; background: rgba(5,10,20,.6); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.pop { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 24px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: popIn .4s cubic-bezier(.2,1.3,.4,1); }
@keyframes popIn { from { transform: translate(-50%, -44%) scale(.92); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.pop-art { aspect-ratio: 16 / 9; overflow: hidden; }
.pop-art svg { width: 100%; height: 100%; display: block; }
.pop-body { padding: 18px 22px 22px; display: grid; gap: 8px; text-align: center; }
.pop-body h3 { margin: 0; font-size: 1.6rem; }
.pop-body .card-actions { justify-content: center; }
.pop-times { display: flex; justify-content: center; gap: 18px; margin: 4px 0; font-size: 1.1rem; }
.pop-times b { color: var(--gold); font-size: 1.3rem; }

/* الأذكار المتتابعة */
.guide { position: fixed; inset: 0; z-index: 62; display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(circle at 50% 0%, #22406f, #0b1430 70%); color: #fbf6e9; animation: fadeIn .3s; }
body.guide-on { overflow: hidden; }
.gd-top { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; max-width: 760px; width: 100%; margin-inline: auto; }
.gd-top .icon-btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.gd-meta { display: flex; justify-content: space-between; font-size: 1.05rem; }
.gd-top .bar { grid-column: 1 / -1; background: rgba(255,255,255,.15); }
.gd-card { align-self: center; justify-self: center; width: 100%; max-width: 760px; max-height: 100%; overflow: auto; display: grid; gap: 10px; text-align: center; padding: 22px; border-radius: 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,231,166,.25); animation: rise .45s cubic-bezier(.2,.8,.2,1); }
.gd-note { margin: 0; color: #ffe7a6; font-size: .95rem; }
.gd-text { margin: 0; font-family: var(--f-quran); font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 2.1; white-space: pre-line; }
.gd-card .d-en { color: rgba(251,246,233,.85); text-align: center; }
.gd-src { margin: 0; font-size: .85rem; opacity: .7; }
.gd-bottom { display: flex; justify-content: center; align-items: center; gap: 22px; }
.gd-bottom .btn.ghost { color: #fbf6e9; border-color: rgba(255,255,255,.3); }
.gd-count { position: relative; width: 130px; height: 130px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; color: #13233f;
  background: radial-gradient(circle at 40% 35%, #fff7d6, #f0c766 70%); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 0 8px rgba(255,231,166,.15); transition: transform .1s; }
.gd-count:active { transform: scale(.95); }
.gd-count svg { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); }
.gd-ring { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 5; }
.gd-prog { fill: none; stroke: #3fbf8f; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset .3s; }
.gd-count b { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.gd-count small { font-size: .75rem; font-weight: 700; }
.gd-count.done { background: radial-gradient(circle at 40% 35%, #d4ffe9, #3fbf8f 70%); }
.gd-done { align-self: center; justify-self: center; display: grid; gap: 10px; justify-items: center; text-align: center; grid-row: 1 / -1; }
.gd-done-art { width: 220px; border-radius: 22px; overflow: hidden; }
.gd-done-art svg { width: 100%; display: block; }
.gd-done h3 { margin: 0; font-size: 2rem; color: #ffe7a6; }
.guide-launch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

/* الخطب المسموعة */
.kh-audio-list { display: grid; gap: 10px; margin-bottom: 14px; }
.kh-a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.kh-a h3 { margin: 0 0 2px; font-size: 1.08rem; }
.kh-a-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, #22406f, #0f1d36); color: #ffe7a6; }
.kh-a-ico svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .kh-a { grid-template-columns: 44px 1fr; } .kh-a .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; } }

/* تعريف السورة */
.sc-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.si-card { --h: 40; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 18px; background: linear-gradient(150deg, hsl(var(--h) var(--tl-sat) var(--tl-bg)), var(--surface) 70%); border: 1px solid hsl(var(--h) 40% var(--tl-line)); }
.si-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: hsl(var(--h) 50% 45%); box-shadow: var(--shadow); }
.si-ico svg { width: 24px; height: 24px; }
.si-card h4 { margin: 0 0 4px; font-size: 1.05rem; color: hsl(var(--h) 50% 40%); }
:root[data-theme="dark"] .si-card h4 { color: hsl(var(--h) 60% 70%); }
.si-card p { margin: 0; font-family: var(--f-text); font-size: 1.1rem; line-height: 1.95; }
.tts-w { border-radius: 4px; padding: 0 1px; transition: background .15s, color .15s; }
.si-card .tts-w.past, .sc-intro .tts-w.past { color: inherit; opacity: .75; }
.si-card .tts-w.on { background: var(--gold); color: var(--surface); opacity: 1; }
.si-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* القبلة */
:root { --qc-face1: #fdfbf4; --qc-face2: #e8e1cc; --qc-ink: #1b2433; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --qc-face1: #1d2a45; --qc-face2: #0c1426; --qc-ink: #ebe6d8; } }
:root[data-theme="dark"] { --qc-face1: #1d2a45; --qc-face2: #0c1426; --qc-ink: #ebe6d8; }
.qibla-page { justify-items: stretch !important; }
.qibla-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 24px; align-items: start; }
.qc-wrap { display: grid; justify-items: center; gap: 12px; }
.big-compass { width: min(400px, 88vw); aspect-ratio: 1; height: auto; border-radius: 50%; transition: box-shadow .4s; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.big-compass .qc { width: 100%; height: 100%; display: block; }
.qc-inner { fill: none; stroke: color-mix(in srgb, var(--qc-ink) 25%, transparent); stroke-width: 1; }
.tk { stroke: color-mix(in srgb, var(--qc-ink) 45%, transparent); stroke-width: 1.2; }
.tk-b { stroke: var(--qc-ink); stroke-width: 2.4; }
.tk-n { fill: color-mix(in srgb, var(--qc-ink) 70%, transparent); font: 700 11px var(--f-ui); text-anchor: middle; stroke: none; }
.tk-c { fill: var(--qc-ink); font: 800 22px var(--f-display); text-anchor: middle; stroke: none; }
.tk-c.c-n { fill: #c0392b; }
.c-npt { fill: #c0392b; stroke: none; }
.qc-tail { fill: color-mix(in srgb, var(--qc-ink) 55%, transparent); stroke: none; }
.qc-lubber { fill: #c0392b; stroke: none; }
#bcDial, #qiblaNeedle { transform-box: view-box; transform-origin: 160px 160px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.big-compass.aligned { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 35%, transparent), 0 0 60px color-mix(in srgb, var(--ok) 55%, transparent); }
.big-compass.aligned .qc-ring { stroke: var(--ok); stroke-width: 6; }
.qc-status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); font-size: .95rem; }
.qc-status .qs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.qc-status.on .qs-dot { background: var(--gold); animation: blink 1.2s infinite; }
.qc-status.ok { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok); }
.qc-status.ok .qs-dot { background: var(--ok); }
.qc-status span:last-child { color: var(--muted); font-size: .85rem; }
.qibla-info { display: grid; gap: 12px; }
.qi-card .qibla-deg { font-size: 3rem; font-weight: 800; color: var(--gold); margin: 0; line-height: 1.2; }
.qi-steps { margin: 6px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.sq-row { display: block; margin: 8px 0; line-height: 1.9; }
.sq-ico { display: inline-block; vertical-align: middle; margin-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff4c4, #ffb53d); box-shadow: 0 0 14px #ffcf6b; position: relative; }
.sq-ico.sun-b::after { content: "↩"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; color: #7a4a10; }
.rc-external { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rc-external p { margin: 2px 0 0; }
@media (max-width: 860px) { .qibla-grid { grid-template-columns: 1fr; } }

/* الشعار */
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.hero-logo { width: 132px; height: 132px; max-width: 100%; border-radius: 30px; object-fit: cover; box-shadow: 0 0 0 1px rgba(217,181,98,.5), 0 18px 44px rgba(0,0,0,.45), 0 0 60px rgba(217,181,98,.25); animation: logoIn .9s cubic-bezier(.2,.9,.3,1.2) both, float 7s ease-in-out 1s infinite; }
@keyframes logoIn { from { transform: scale(.7) translateY(10px); opacity: .3; } }
.foot-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; display: block; margin-bottom: 8px; }
@media (max-width: 620px) { .hero-logo { width: 104px; height: 104px; border-radius: 24px; } }

/* السماء النهارية والليلية في الواجهة */
:root[data-theme="light"] .hero { background: linear-gradient(180deg, #4f8fd1 0%, #8ec0ea 45%, #f6dca5 100%); color: #13233f; }
:root[data-theme="light"] .hero .hero-greet { color: #13233f; }
:root[data-theme="light"] .hero .shimmer { background-image: linear-gradient(100deg, #13233f 30%, #8a6420 45%, #13233f 60%); }
:root[data-theme="light"] .hero .hero-ref { color: #13233f; }
:root[data-theme="light"] #stars { opacity: 0; }
:root[data-theme="light"] .crescent { fill: #ffd76a; filter: drop-shadow(0 0 30px #ffe9a8); }
:root[data-theme="light"] .crescent path { d: path("M50 18a32 32 0 1 0 .1 0z"); }
:root[data-theme="light"] .h-date, :root[data-theme="light"] .h-prayer { background: rgba(255,255,255,.55); color: #13233f; border-color: rgba(19,35,63,.18); }
:root[data-theme="light"] .hd-label { color: #8a6420; }
:root[data-theme="light"] .h-prayer .np-count { color: #8a6420; }
:root[data-theme="light"] .hero-rosette { opacity: .18; filter: hue-rotate(180deg) brightness(.6); }
.hero { transition: background .8s; }
.cloud { position: absolute; z-index: -1; width: 160px; height: 46px; border-radius: 30px; background: rgba(255,255,255,.75); filter: blur(1px); animation: drift 60s linear infinite; opacity: 0; }
:root[data-theme="light"] .cloud { opacity: 1; }

/* قوس الشمس والقمر */
.sun-g { transition: transform 1.8s cubic-bezier(.3,.7,.2,1); }
.sun-halo { fill: rgba(255,215,106,.25); stroke: none; animation: halo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sun-core { fill: #ffd76a; stroke: none; filter: drop-shadow(0 0 12px #ffd76a); }
.moon-shape { fill: #eef1ff; stroke: none; opacity: 0; filter: drop-shadow(0 0 8px #c9d2ff); }
.sun-g.night .sun-core { opacity: 0; } .sun-g.night .moon-shape { opacity: 1; } .sun-g.night .sun-halo { fill: rgba(201,210,255,.18); }
@keyframes halo { 50% { transform: scale(1.35); opacity: .5; } }
.prayer-hero { transition: background 1s; }
.prayer-hero.night { background: linear-gradient(160deg, #050a18, #0f1d36 60%, #1a2148); }
.prayer-hero:not(.night) { background: linear-gradient(160deg, #2c6fb7, #3f86c9 55%, #e7b866); }
.iq-fixed { display: grid; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.iq-fixed small { color: var(--muted); }
#citySel, #methodSel { flex: 1 1 200px; }

/* بانر الأقسام */
.hub-view { --h: 42; }
.hub-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 55% 30%), hsl(calc(var(--h) + 30) 50% 18%)); color: #fbf6e9; }
.hub-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='none' stroke='%23fff'%3E%3Crect x='20' y='20' width='30' height='30'/%3E%3Crect x='20' y='20' width='30' height='30' transform='rotate(45 35 35)'/%3E%3C/g%3E%3C/svg%3E"); animation: pan 40s linear infinite; }
@keyframes pan { to { background-position: 70px 70px; } }
.hub-hero-in { position: relative; display: flex; gap: 18px; align-items: center; padding-block: 26px 22px; }
.hub-hero .page-h { padding: 0; }
.hub-hero .page-h h2::after { background: linear-gradient(90deg, #ffe7a6, transparent); }
.hub-hero .muted { color: rgba(251,246,233,.8); }
.hub-ico { flex: none; width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); animation: bob 4s ease-in-out infinite; }
.hub-ico svg { width: 38px; height: 38px; color: #ffe7a6; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hub-body { padding-block: 22px 50px; display: grid; gap: 14px; align-content: start; }

/* مجموعات الرئيسية */
.h-group { margin-bottom: 18px; }
.mega { grid-template-columns: repeat(4, 1fr) !important; max-height: 78vh; overflow: auto; min-width: min(900px, 94vw) !important; }
.mega-col { margin-bottom: 8px; }

/* القصص */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.story-card { --h: 42; position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; text-align: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, hsl(var(--h) var(--tl-sat) var(--tl-bg)), var(--surface) 60%); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.story-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.sc-num { position: absolute; inset-inline-end: 12px; top: 6px; font-size: 2.6rem; font-weight: 800; color: hsl(var(--h) 50% 50%); opacity: .2; }
.story-card b { font-size: 1.2rem; }
.story-card small { color: hsl(var(--h) 45% 45%); font-size: .8rem; }
.story-card p { margin: 0; font-family: var(--f-text); color: var(--muted); font-size: 1rem; line-height: 1.9; }
.sc-more { color: var(--gold); font-size: .85rem; font-weight: 600; }
.modal-ref { color: var(--gold); font-family: var(--f-ui) !important; font-size: .95rem !important; }
.lesson { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); font-family: var(--f-ui); font-size: 1rem; }
.sheet.wide { max-width: 1000px; height: 88vh; display: flex; flex-direction: column; }
.sheet.wide .modal-body { flex: 1; display: flex; flex-direction: column; }
.pdf-frame { width: 100%; flex: 1; min-height: 60vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.sira-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.sira-line::before { content: ""; position: absolute; inset-inline-start: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.sira-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.si-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--surface); font-weight: 700; position: relative; }
.sira-item h3 { margin: 0 0 4px; font-size: 1.2rem; }
.sira-item p { margin: 0; font-family: var(--f-text); font-size: 1.08rem; line-height: 2; }
.greats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.great { --h: 40; display: grid; grid-template-columns: auto 46px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .2s; }
.great:hover { transform: translateY(-3px); border-color: hsl(var(--h) 50% 55%); }
.gr-n { color: var(--muted); font-size: .8rem; min-width: 22px; }
.gr-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: hsl(var(--h) var(--tl-sat) var(--tl-ink)); background: hsl(var(--h) var(--tl-sat) var(--tl-bg)); }
.great b { display: block; }
.great p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.fa-card { --h: 160; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid hsl(var(--h) 50% 50%); }
.fa-ico svg { width: 30px; height: 30px; color: hsl(var(--h) 50% 50%); }
.fa-card h3 { margin: 0; font-size: 1.1rem; }
.fa-card p { margin: 0; font-family: var(--f-text); font-size: 1.12rem; line-height: 1.95; }
.fa-card footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; margin-top: auto; }
.lataif { display: grid; gap: 12px; }
.lt-card { position: relative; }
.lt-n { position: absolute; inset-inline-end: 16px; top: 10px; font-size: 2rem; font-weight: 800; color: var(--gold); opacity: .3; }
.lt-card h3 { margin: 0; font-size: 1.2rem; color: var(--gold); }
.lt-card .quran-text { font-size: 1.5rem; }
.tad-today { text-align: center; background: linear-gradient(160deg, var(--gold-soft), var(--surface)); }
.tad-q { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; margin-top: 8px; }
.tad-q svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.day-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-item { --h: 42; display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.dl-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: hsl(var(--h) var(--tl-sat) var(--tl-bg)); color: hsl(var(--h) var(--tl-sat) var(--tl-ink)); }
.dl-ico svg { width: 28px; height: 28px; }
.dl-item h3 { margin: 0 0 6px; color: hsl(var(--h) 50% 45%); }
.dl-item ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-family: var(--f-text); font-size: 1.05rem; }

/* السعادة والأثر */
.happy-hero { position: relative; overflow: hidden; text-align: center; display: grid; gap: 10px; justify-items: center; background: linear-gradient(160deg, #fff4d6, var(--surface)); }
:root[data-theme="dark"] .happy-hero { background: linear-gradient(160deg, #3a3018, var(--surface)); }
.sun-smile { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffe9a8, #f2b53c); box-shadow: 0 0 0 10px rgba(242,181,60,.18), 0 0 60px rgba(242,181,60,.5); animation: halo 4s ease-in-out infinite; }
.happy-hero.pop { animation: rise .5s; }
.athar-top { text-align: center; }
.athar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.athar-card { display: grid; gap: 6px; align-content: start; text-align: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .2s, border-color .2s; }
.athar-card:hover { transform: translateY(-3px); }
.athar-card p { margin: 0; font-family: var(--f-text); color: var(--muted); }
.athar-card small { color: var(--gold); }
.ath-tree svg { width: 34px; height: 34px; color: #4c9a5d; transition: transform .4s; }
.athar-card.done { border-color: #4c9a5d; background: color-mix(in srgb, #4c9a5d 10%, var(--surface)); }
.athar-card.done .ath-tree svg { transform: scale(1.3); }
.ath-st { font-size: .82rem; font-weight: 600; color: #4c9a5d; }

/* المواسم */
.season-hero { --h: 265; position: relative; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; padding: 22px; border-radius: 22px; color: #fbf6e9; background: radial-gradient(circle at 20% 20%, hsl(var(--h) 50% 35%), hsl(var(--h) 55% 14%)); }
.season-hero .eyebrow { color: #ffe7a6; }
.sh-count { margin: 0; font-size: 1.3rem; }
.sh-count b { font-size: 3.4rem; font-weight: 800; color: #ffe7a6; line-height: 1.1; }
.sh-date { margin: 0; opacity: .85; }
.season-hero .muted { color: rgba(251,246,233,.7); }
.sh-art { position: relative; height: 160px; }
.lant { position: absolute; top: 0; width: 34px; height: 56px; border-radius: 10px 10px 14px 14px; background: linear-gradient(#ffd36b, #e08a2e); box-shadow: 0 0 24px #ffbf4d; transform-origin: 50% -40px; animation: swing 3s ease-in-out infinite; }
.lant::before { content: ""; position: absolute; left: 50%; top: -40px; width: 1px; height: 40px; background: #ffe7a6; }
.lant::after { content: ""; position: absolute; inset: 10px 8px; border-radius: 6px; background: rgba(255,255,255,.55); }
.l1 { left: 10px; top: 46px; } .l2 { left: 70px; top: 70px; animation-delay: -1s; height: 66px; } .l3 { left: 130px; top: 40px; animation-delay: -2s; }
@keyframes swing { 50% { transform: rotate(8deg); } }
.balloon { position: absolute; bottom: 0; width: 44px; height: 54px; border-radius: 50%; animation: floatUp 5s ease-in-out infinite; }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 40px; background: rgba(255,255,255,.6); }
.b1 { left: 10px; background: #ff7a8a; } .b2 { left: 66px; background: #ffd36b; animation-delay: -1.6s; } .b3 { left: 120px; background: #7ad3ff; animation-delay: -3.2s; }
@keyframes floatUp { 50% { transform: translateY(-36px) rotate(5deg); } }
.mount { position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(#c98a4b, #7a4e27); clip-path: polygon(0 100%, 30% 30%, 45% 55%, 62% 10%, 100% 100%); }
.mount::after { content: ""; position: absolute; left: 55%; top: -50px; width: 50px; height: 50px; border-radius: 50%; background: #ffd76a; box-shadow: 0 0 40px #ffd76a; }
.moon-big { position: absolute; left: 30px; top: 20px; width: 110px; height: 110px; border-radius: 50%; box-shadow: inset -26px 8px 0 0 #f3dc96; filter: drop-shadow(0 0 20px rgba(243,220,150,.6)); animation: float 6s ease-in-out infinite; }
@media (max-width: 640px) { .season-hero { grid-template-columns: 1fr; } .sh-art { height: 110px; } }
.rules { margin: 0; padding: 16px 34px; display: grid; gap: 8px; font-family: var(--f-text); font-size: 1.08rem; }
.cl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cl-item, .taat-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: start; transition: background .2s, border-color .2s, transform .15s; }
.cl-item:active, .taat-item:active { transform: scale(.97); }
.cl-box svg { width: 24px; height: 24px; color: var(--line); transition: color .2s; }
.cl-item.on, .taat-item.on { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.cl-item.on .cl-box svg, .taat-item.on .cl-box svg { color: var(--ok); animation: pop .3s; }
.rm-wrap { overflow-x: auto; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rm-day { display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.rm-c { font-size: .75rem; padding: 3px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.rm-c.on { background: #7a5ad0; border-color: #7a5ad0; color: #fff; }
.nights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.night { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 6px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(#0f1d36, #1a2148); color: #e9ecff; cursor: pointer; overflow: hidden; }
.night .star { width: 14px; height: 14px; background: #ffe7a6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); opacity: .3; transition: opacity .3s, transform .3s; }
.night.odd .star { opacity: .7; animation: twinkle 2s infinite; }
@keyframes twinkle { 50% { transform: scale(1.3); } }
.night.on { box-shadow: 0 0 0 3px #ffe7a6 inset; }
.night.on .star { opacity: 1; transform: scale(1.6); }
.night small { font-size: .7rem; color: #ffe7a6; min-height: 1em; }
@media (max-width: 560px) { .nights { grid-template-columns: repeat(3, 1fr); } }

/* حدث في مثل هذا اليوم */
.otd-hero { text-align: center; background: linear-gradient(160deg, hsl(345 var(--tl-sat) var(--tl-bg)), var(--surface)); }
.otd-big { display: block; font-size: 2rem; font-weight: 800; margin: 4px 0 8px; }
.otd-ev { font-family: var(--f-text); font-size: 1.2rem; }
.otd-list { display: grid; gap: 10px; }
.otd { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.otd-date { display: grid; justify-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .8rem; text-align: center; }
.otd-date b { font-size: 1.8rem; color: var(--gold); line-height: 1.1; }
.otd p { margin: 0; font-family: var(--f-text); font-size: 1.08rem; }

/* طاعاتك */
.taat-top, .ch-stats, .ist-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ring-card { display: grid; justify-items: center; align-content: center; gap: 4px; position: relative; min-height: 170px; }
.ring { width: 130px; height: 130px; transform: rotate(-90deg); }
.r-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.r-fg { fill: none; stroke: var(--ok); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.ring + b { position: absolute; top: 58px; font-size: 1.6rem; }
.ring-card span { color: var(--muted); }
.big-num { font-size: 4rem !important; font-weight: 800; color: var(--gold) !important; line-height: 1; }
.taat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.hc { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--ok) calc(var(--p) * 100%), var(--surface-2)); }

/* التحدي */
.ch-card { position: relative; overflow: hidden; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 34px 20px; border-radius: 24px; color: #fbf6e9; background: linear-gradient(140deg, #8a6420, #d9a640 50%, #e8c56e); }
.ch-card .eyebrow { color: #fff7e0; }
.ch-card h3 { margin: 0; font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; text-wrap: balance; position: relative; }
.ch-burst { position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,255,255,.12) 0 10deg, transparent 10deg 20deg); animation: spin 40s linear infinite; }
.ch-card .btn { position: relative; background: #fff; color: #8a6420; border-color: #fff; }
.btn.big { padding: 12px 26px; font-size: 1.1rem; font-weight: 700; }
.ch-card.done { background: linear-gradient(140deg, #1f7a55, #3fbf8f); }
.ch-card.done .btn { color: #1f7a55; }
.ch-stats .card { display: grid; justify-items: center; }
.ch-stats b { font-size: 2.4rem; color: var(--gold); }
.ch-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-days span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.ch-days span.on { background: var(--ok); color: #fff; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; background: hsl(var(--h) 80% 60%); animation: fall 2.4s ease-in var(--d) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* استباق */
.ist-score { display: grid; justify-items: center; }
.ist-score b { font-size: 3.4rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.ist-level { display: grid; gap: 6px; }
.ist-level b { font-size: 1.3rem; }
.ist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ist-btn { --h: 40; position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid hsl(var(--h) 40% var(--tl-line)); background: hsl(var(--h) var(--tl-sat) var(--tl-bg)); color: hsl(var(--h) var(--tl-sat) var(--tl-ink)); cursor: pointer; text-align: start; transition: transform .15s; }
.ist-btn:active { transform: scale(.95); }
.ist-btn span { font-weight: 800; }
.float-pts { position: absolute; inset-inline-end: 12px; top: 6px; font-weight: 800; color: var(--gold); animation: up .6s ease-out forwards; }
@keyframes up { to { transform: translateY(-30px); opacity: 0; } }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 160px; align-items: end; }
.week-bars div { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.week-bars span { align-self: end; border-radius: 8px 8px 2px 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 40%, transparent)); min-height: 4px; animation: grow-y .8s ease-out; }
@keyframes grow-y { from { transform: scaleY(0); } }
.week-bars span { transform-origin: bottom; }
.week-bars small { color: var(--muted); font-size: .72rem; }

/* ابنِ جنتك */
.garden { position: relative; height: 340px; border-radius: 22px; overflow: hidden; background: linear-gradient(#bfe6ff 0%, #e7f6ff 40%, #8fd18a 41%, #5fae5c 100%); }
:root[data-theme="dark"] .garden { background: linear-gradient(#1c3a6b 0%, #2c5592 40%, #2f6b3a 41%, #1e4a27 100%); }
.g-sky { position: absolute; left: 8%; top: 14px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(#fff6c8, #ffd76a); box-shadow: 0 0 50px #ffe9a8; }
.g-river { position: absolute; left: -5%; right: -5%; top: 58%; height: 26px; background: linear-gradient(90deg, #7fd0f5, #b8ebff, #7fd0f5); border-radius: 50%; transform: rotate(-3deg); opacity: .85; animation: shimmerRiver 6s linear infinite; background-size: 200% 100%; }
@keyframes shimmerRiver { to { background-position: -200% 0; } }
.g-empty { position: absolute; inset: auto 0 20px; text-align: center; color: #1d4a22; font-weight: 700; }
.jn { position: absolute; width: calc(46px * var(--s)); height: calc(60px * var(--s)); transform: translate(-50%, -100%); }
.jn.new { animation: sprout .8s cubic-bezier(.2,1.4,.4,1); }
@keyframes sprout { from { transform: translate(-50%, -100%) scale(0); } }
.jn.palm::before { content: ""; position: absolute; left: 46%; bottom: 0; width: 8%; height: 70%; background: #8a5a2b; border-radius: 3px; }
.jn.palm::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: #2f8a3a; clip-path: polygon(50% 60%, 0 40%, 20% 20%, 50% 45%, 40% 0, 60% 0, 50% 45%, 80% 20%, 100% 40%); }
.jn.plant::before { content: ""; position: absolute; left: 20%; bottom: 0; width: 60%; height: 55%; border-radius: 50% 50% 10% 10%; background: radial-gradient(circle at 50% 30%, #ff9fb5 0 18%, #49a84f 19%); }
.jn.treasure::before { content: ""; position: absolute; left: 10%; bottom: 0; width: 80%; height: 45%; border-radius: 6px 6px 3px 3px; background: linear-gradient(#e0a93a 0 35%, #8a5a2b 36%); box-shadow: 0 0 18px #ffd76a; }
.jn.house::before, .jn.palace::before { content: ""; position: absolute; left: 10%; bottom: 0; width: 80%; height: 55%; background: #f4ecd8; border-radius: 4px; box-shadow: inset 0 -12px 0 #d9c9a0; }
.jn.house::after, .jn.palace::after { content: ""; position: absolute; left: 25%; bottom: 52%; width: 50%; height: 35%; border-radius: 50% 50% 0 0; background: #d9b562; }
.jn.palace { width: calc(64px * var(--s)); }
.jn.palace::after { background: linear-gradient(#3fbf8f, #1f7a55); }
.jn.fruit::before { content: ""; position: absolute; left: 15%; bottom: 0; width: 70%; height: 75%; border-radius: 50% 50% 8px 8px; background: radial-gradient(circle at 30% 40%, #ff7a5a 0 8%, transparent 9%), radial-gradient(circle at 65% 30%, #ffb03a 0 8%, transparent 9%), radial-gradient(circle at 55% 60%, #ff7a5a 0 8%, transparent 9%), #3e9a46; }
.jn-stats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-weight: 700; }
.jn-stats span { display: flex; align-items: center; gap: 6px; }
.jn-mini { position: relative; display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); }
.jn-mini.palm { background: #2f8a3a; } .jn-mini.plant { background: #ff9fb5; } .jn-mini.treasure { background: #e0a93a; } .jn-mini.house { background: #d9b562; } .jn-mini.palace { background: #1f7a55; } .jn-mini.fruit { background: #ff7a5a; }
.jn-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.jn-btn { display: grid; gap: 4px; text-align: start; cursor: pointer; }
.jn-btn b { font-family: var(--f-text); font-size: 1.1rem; }
.jn-gain { color: #2f8a3a; font-weight: 700; }
.jn-btn small { color: var(--muted); }
.jn-btn:active { transform: scale(.97); }

/* المشاركة */
.share-top { text-align: center; }
.sh-card { --h: 200; border-inline-start: 4px solid hsl(var(--h) 50% 50%); }

/* الكتب التسعة والدرر */
.books-shelf { display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px 16px; }
.book-spine { --h: 30; flex: none; width: 108px; height: 160px; display: grid; align-content: space-between; padding: 12px 8px; border: 0; border-radius: 6px 14px 14px 6px; cursor: pointer; text-align: center; color: #fbf6e9; background: linear-gradient(90deg, hsl(var(--h) 45% 22%), hsl(var(--h) 50% 34%) 20%, hsl(var(--h) 50% 30%)); box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.2); transition: transform .25s; }
.book-spine b { font-size: .95rem; line-height: 1.4; }
.book-spine small { font-size: .72rem; opacity: .8; border-top: 1px solid rgba(255,255,255,.3); padding-top: 6px; }
.book-spine:hover { transform: translateY(-6px); }
.book-spine.on { transform: translateY(-10px); box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 0 0 3px var(--gold), 0 12px 24px rgba(0,0,0,.3); }
#bkCh { flex: 1 1 280px; }
.bk-list { display: grid; gap: 10px; }
.bk-h { position: relative; padding-inline-start: 60px; }
.bk-n { position: absolute; inset-inline-start: 14px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: .8rem; font-weight: 700; }
.dorar-box { display: grid; gap: 8px; text-align: center; justify-items: center; background: linear-gradient(160deg, hsl(222 var(--tl-sat) var(--tl-bg)), var(--surface)); }
.dorar-box h3 { margin: 0; }
.dorar-box .toolbar { width: 100%; }
.dr-ico svg { width: 50px; height: 50px; color: hsl(222 50% 50%); }
.dr-link { display: grid; gap: 4px; text-decoration: none; }
.dr-link span { color: var(--gold); font-size: .9rem; }
.fake-warn { display: grid; grid-template-columns: 50px 1fr; gap: 14px; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.fake-warn > svg { width: 44px; height: 44px; color: var(--danger); }
.fake-warn p { margin: 6px 0 0; }
.fake-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.fake-item .hadith-text { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.fk-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fk-badge { padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); font-size: .82rem; font-weight: 700; }

/* بطاقات السور */
.surah-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.s-card { --h: 40; position: relative; overflow: hidden; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 20px 10px 16px; border-radius: 18px; text-decoration: none; color: #fbf6e9; background: linear-gradient(150deg, hsl(var(--h) 50% 34%), hsl(calc(var(--h) + 40) 55% 18%)); transition: transform .25s, box-shadow .25s; }
.s-card::before { content: ""; position: absolute; width: 140px; height: 140px; top: -60px; inset-inline-end: -50px; border: 2px solid rgba(255,255,255,.15); transform: rotate(45deg); transition: transform .6s; }
.s-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.s-card:hover::before { transform: rotate(135deg); }
.s-card-n { font-size: .8rem; opacity: .8; }
.s-card b { font-family: var(--f-quran); font-weight: 400; font-size: 1.9rem; line-height: 1.6; }
.s-card span { font-size: .8rem; opacity: .85; }
.s-card-ic { position: absolute; inset-inline-start: 10px; top: 10px; width: 18px; height: 18px; opacity: .6; }
.sc-player { display: grid; gap: 14px; }
.sc-player .btn.ghost.sm { justify-self: start; }
.sc-head { --h: 40; position: relative; overflow: hidden; text-align: center; padding: 26px 18px; border-radius: 24px; color: #fbf6e9; background: radial-gradient(circle at 50% 0%, hsl(var(--h) 50% 38%), hsl(calc(var(--h) + 40) 55% 14%)); display: grid; gap: 10px; justify-items: center; }
.sc-orn { position: absolute; inset: 0; opacity: .1; background: no-repeat center / 420px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23fff'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Crect x='40' y='40' width='120' height='120'/%3E%3Crect x='40' y='40' width='120' height='120' transform='rotate(45 100 100)'/%3E%3C/g%3E%3C/svg%3E"); animation: spin 120s linear infinite; }
.sc-n { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #ffe7a6; color: #ffe7a6; font-weight: 700; }
.sc-head h3 { position: relative; margin: 0; font-family: var(--f-quran); font-weight: 400; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.5; }
.sc-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-chips span { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .85rem; }
.sc-intro { position: relative; max-width: 720px; margin: 4px 0; font-size: 1.15rem; line-height: 2; }
.sc-intro span { transition: color .2s, background .2s; border-radius: 4px; padding: 0 2px; }
.sc-intro span.past { color: #ffe7a6; }
.sc-intro span.on { background: #ffe7a6; color: #13233f; }
.sc-head select { padding: 8px 12px; border-radius: 10px; border: 0; background: rgba(255,255,255,.9); color: #13233f; }
.sc-head .btn { background: #ffe7a6; color: #13233f; border-color: #ffe7a6; }
.sc-head .btn.ghost { background: transparent; color: #fbf6e9; border-color: rgba(255,255,255,.4); }
.sc-words { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.sc-text { font-family: var(--f-quran); font-size: var(--qsize); line-height: 2.5; text-align: justify; text-align-last: center; margin: 0; }
.sc-w { cursor: pointer; border-radius: 6px; padding: 0 2px; transition: background .15s, color .15s; }
.sc-w:hover { background: var(--surface-2); }
.sc-w.past { color: var(--gold); }
.sc-w.on { background: var(--gold); color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.sc-end { color: var(--gold); font-size: .8em; }

/* التحفيظ */
.hz-ctl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.hz-ctl select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.hz-ctl .seg, .hz-ctl .card-actions { grid-column: 1 / -1; }
.hz-text { display: grid; gap: 10px; }
.hz-ay { margin: 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-family: var(--f-quran); font-size: var(--qsize); line-height: 2.3; transition: background .3s, border-color .3s; }
.hz-ay.on { border-color: var(--gold); background: var(--gold-soft); }
.hz-text[data-mode="hide"] .hw { color: transparent; background: var(--surface-2); border-radius: 6px; cursor: pointer; }
.hz-text[data-mode="hide"] .hw:hover, .hz-text[data-mode="hide"] .hw:active { color: inherit; background: transparent; }
.hz-text[data-mode="first"] .hw { font-size: 0; }
.hz-text[data-mode="first"] .hw::before { content: attr(data-f) "…"; font-size: var(--qsize); color: var(--muted); }
.hz-prog { display: grid; gap: 6px; }
.hz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-chips span { padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: .85rem; }

/* حول العالم */
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.w-card { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 16px; border-radius: 18px; color: #fbf6e9; isolation: isolate; }
.w-card.day { background: linear-gradient(160deg, #3f86c9, #8ec0ea 70%, #f6dca5); color: #13233f; }
.w-card.night { background: linear-gradient(160deg, #0a1426, #1d3a63); }
.w-sky { position: absolute; z-index: -1; width: 54px; height: 54px; border-radius: 50%; inset-inline-end: 14px; top: 12px; }
.w-card.day .w-sky { background: #ffd76a; box-shadow: 0 0 30px #ffe9a8; }
.w-card.night .w-sky { box-shadow: inset -12px 4px 0 0 #f3dc96; }
.w-card header { display: grid; }
.w-card header b { font-size: 1.3rem; }
.w-time { font-size: 1.6rem; font-weight: 800; }
.w-next { margin: 0; font-size: .9rem; }
.w-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: .78rem; }
.w-times span { display: grid; padding: 4px 2px; border-radius: 8px; background: rgba(255,255,255,.14); }
.w-times span.on { background: rgba(255,231,166,.9); color: #13233f; font-weight: 700; }
.w-times small { opacity: .8; font-size: .68rem; }

/* المساجد والمطاعم */
.near-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.near-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.radar { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, transparent 24%, color-mix(in srgb, var(--ok) 25%, transparent) 25%, transparent 26%, transparent 49%, color-mix(in srgb, var(--ok) 25%, transparent) 50%, transparent 51%, transparent 74%, color-mix(in srgb, var(--ok) 25%, transparent) 75%, transparent 76%), #0b2a20; border: 2px solid var(--ok); }
.rd-sweep { position: absolute; inset: 0; background: conic-gradient(from 0deg, color-mix(in srgb, var(--ok) 55%, transparent), transparent 25%); animation: spin 3s linear infinite; }
.rd-me { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.rd-pt { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffe7a6; box-shadow: 0 0 10px #ffe7a6; animation: sprout .5s var(--d) both; }
.near-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.near-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; }
.ni-ico svg { width: 30px; height: 30px; color: var(--ok); }
.near-item small { display: block; color: var(--muted); }
@media (max-width: 760px) { .near-layout { grid-template-columns: 1fr; } .radar { width: min(280px, 100%); margin-inline: auto; } }
@media (max-width: 560px) { .taat-top, .ch-stats, .ist-top { grid-template-columns: 1fr; } .otd { grid-template-columns: 70px 1fr; } }

@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }

/* ===== Phase 1 ===== */
.p1-tools{display:inline-flex;flex-wrap:wrap;gap:6px;margin-inline-start:auto}
.h-foot .p1-tools{margin-top:6px}
.p1-fav.on,.p1-later.on{color:var(--gold,#c8962c);border-color:currentColor}
.p1-ctl{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.p1-ctl .field{flex:1 1 180px}
.cmp-nav{display:flex;gap:8px}
.p1-tafs,.p1-types{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.p1-tabs{margin-bottom:12px}
.cmp-ayah{margin:12px 0;text-align:center}
.cmp-grid{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:14px}
.cmp-col h3{font-size:1.05rem;margin:0 0 8px;color:var(--accent,#3f7cc0)}
.cmp-text{max-height:60vh;overflow:auto;line-height:2;font-size:1.02rem}
.cmp-text p{margin:0 0 .6em}
.ltr{direction:ltr;text-align:left}
.p1-list{display:grid;gap:12px}
.p1-item .tag{float:inline-end}
.p1-acts{display:inline-flex;gap:6px;flex-wrap:wrap}
.p1-empty{text-align:center;padding:28px}
.p1-tad{margin-bottom:18px;border-inline-start:4px solid var(--accent,#3f7cc0)}
.k-map-card{margin-top:18px}
.km-h{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.km-legend{display:inline-flex;gap:10px;align-items:center;font-size:.85rem;color:var(--muted,#667)}
.km-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--line,#dde3ea);margin-inline-end:4px;vertical-align:middle}
.km-legend i.done,.km-cells a.done{background:#2fae7f}
.km-legend i.seen,.km-cells a.seen{background:#e0b04a}
.k-map{display:grid;gap:4px;margin-top:10px}
.km-row{display:flex;align-items:center;gap:8px}
.km-j{width:22px;flex:none;font-size:.75rem;color:var(--muted,#667);text-align:center}
.km-cells{display:flex;flex-wrap:wrap;gap:3px;flex:1}
.km-cells a{width:13px;height:13px;border-radius:3px;background:var(--line,#dde3ea);display:block;transition:transform .15s}
.km-cells a:hover{transform:scale(1.5);outline:2px solid var(--accent,#3f7cc0)}
.easy-btn{font-weight:800;font-family:Georgia,serif;font-size:1rem}
.easy-btn[aria-pressed="true"]{background:var(--accent,#3f7cc0);color:#fff}
html.easy{font-size:118%}
html.easy .quran-text,html.easy .mushaf{font-size:1.25em}
html.easy .hadith-text,html.easy .tafsir,html.easy .hub-body p,html.easy .card p{cursor:pointer}
.speaking{background:color-mix(in srgb,var(--accent,#3f7cc0) 16%,transparent);border-radius:8px;outline:2px dashed var(--accent,#3f7cc0);outline-offset:4px}
@media (max-width:760px){.cmp-grid{grid-template-columns:1fr}.km-cells a{width:11px;height:11px}.km-cells{gap:2px}}

/* Hero verse: solid colour so every diacritic shows; clearer reference */
.hero .hero-title.shimmer, :root[data-theme="light"] .hero .hero-title.shimmer { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fdf6e3; animation: none; text-shadow: 0 2px 10px rgba(0,0,0,.35); padding: .15em .2em; line-height: 2.1; }
:root[data-theme="light"] .hero .hero-title.shimmer { color: #13233f; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.hero .hero-ref { font-size: 1.05rem; font-weight: 700; opacity: 1; letter-spacing: 0; }

/* Larger, clearer text everywhere (Quran sizes untouched) */
.small, small, .muted.small, .d-src, .s-meta, .card-ref, .eyebrow, .tag, .note, .dhikr .note, .km-legend, .hero-ref, .h-foot > span, .modal-ref, label.field { font-size: max(.92rem, 15px) !important; }
.btn.sm, .chip, .seg button { font-size: 1rem; }
.tile-txt b { font-size: 1.12rem; } .tile-txt span { font-size: .95rem; }
.hadith-text, .book-hadith .hadith-text, .dhikr .hadith-text { font-size: 1.4rem; line-height: 2.1; }
.tafsir, .cmp-text, .hub-body p, .card p { font-size: max(1.15rem, 1em); line-height: 2; }
@media (min-width: 900px) { #nav { flex-wrap: nowrap; align-items: center; } }
#moreBtn { white-space: nowrap; }
.date-chip { font-size: .72rem !important; white-space: nowrap; }
@media (max-width: 1250px) { .date-chip { display: none; } }
input, select, textarea { font-size: 1rem; }
html { font-size: 112.5%; }
html.easy { font-size: 130%; }
@media (max-width: 480px) { html { font-size: 106.25%; } html.easy { font-size: 122%; } }

/* ===== Phase 2 ===== */
.dash-sec{margin-bottom:22px}
.dash-today{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center}
.dt-ring{position:relative;display:grid;place-items:center;text-align:center}
.dt-ring .ring{width:130px;height:130px}
.dt-ring b{position:absolute;top:40px;font-size:1.5rem}
.dt-ring span{font-size:.9rem;color:var(--muted)}
.dt-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.dt-item{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:inherit;font:inherit;cursor:pointer;text-align:start;min-height:44px}
.dt-item .cl-box{width:22px;height:22px;border-radius:6px;border:2px solid var(--line);display:grid;place-items:center;color:transparent;flex:none}
.dt-item.on{border-color:#2fae7f;background:color-mix(in srgb,#2fae7f 12%,transparent)}
.dt-item.on .cl-box{background:#2fae7f;border-color:#2fae7f;color:#fff}
.dash-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.dash-mini{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.dash-mini .big-num{font-size:2rem}
.dash-goals{display:grid;gap:10px}
.goal{display:grid;grid-template-columns:1fr 2fr auto auto;gap:12px;align-items:center;padding:12px 16px}
.goal a{color:inherit;text-decoration:none}
.goal-x{border:0;background:transparent;color:var(--muted);font-size:1.3rem;cursor:pointer;width:32px;height:32px}
.goal-add{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.muh{display:grid;gap:10px}
.muh-q{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;padding-bottom:10px;border-bottom:1px dashed var(--line)}
.muh-week{margin-top:6px}
.rep-h{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.rep-h b{font-size:1.2rem}
.rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:10px}
.rep-grid div{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px;background:var(--surface-2)}
.rep-grid b{font-size:1.7rem;color:var(--gold)}
.rep-grid span{font-size:.92rem;color:var(--muted)}
.dash-set{display:flex;flex-wrap:wrap;gap:10px}
.now-card{grid-column:1/-1;border-inline-start:5px solid var(--gold);display:flex;flex-direction:column;gap:6px}
.now-card h3{margin:0;font-size:1.5rem}
.now-text{margin:0;font-size:1.2rem;line-height:2}
.now-text.quran-text{font-size:1.5rem}
.resume-list{display:flex;flex-direction:column;gap:6px}
.resume-list a{color:inherit;text-decoration:none;padding:8px 10px;border-radius:10px;background:var(--surface-2)}
.resume-list a:hover{color:var(--gold)}
.aud-launch{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}
.aud-panel{position:fixed;inset-inline:12px;bottom:84px;z-index:60;max-width:640px;margin-inline:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 18px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.aud-h{display:flex;justify-content:space-between;color:var(--gold)}
.aud-panel .hadith-text{max-height:30vh;overflow:auto;margin:8px 0;font-size:1.2rem}
.aud-c{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.aud-count{font-size:1.3rem;font-weight:800;margin-inline-end:auto;color:var(--gold)}
@media (min-width:900px){.aud-panel{bottom:24px}}
@media (max-width:620px){.dash-today{grid-template-columns:1fr}.goal{grid-template-columns:1fr auto auto}.goal .bar{grid-column:1/-1;grid-row:2}}
.aud-panel{box-sizing:border-box;overflow:hidden}.aud-panel .hadith-text{overflow-x:hidden;overflow-wrap:anywhere;font-size:1.1rem;padding-inline-end:6px}

/* ===== Phase 3 ===== */
.p3-tabs{margin:10px 0}
.p3-pane{max-height:46vh;overflow:auto}
.p3-taf{line-height:2;margin:10px 0}
.p3-taf p{margin:0 0 .6em}
.wbw{display:flex;flex-wrap:wrap;gap:8px;direction:rtl}
.wbw-w{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 10px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:inherit;cursor:pointer;min-width:64px}
.wbw-w b{font-family:var(--f-quran);font-size:1.5rem;font-weight:400}
.wbw-w small{direction:ltr;font-size:.85rem;color:var(--muted)}
.wbw-w i{direction:ltr;font-size:.75rem;color:var(--gold)}
.wbw-w:hover{border-color:var(--gold)}
.hp-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.hp-h,.hp-rev header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.hp-rev{margin-bottom:10px}
.hp-rate{border-top:1px dashed var(--line);padding-top:8px}
.p3-how{margin:8px 0 0;padding-inline-start:20px;line-height:2}
.hm-blank.hide span{color:transparent;background:var(--surface-2);border-radius:6px;user-select:none}
.vf-fake{border-color:var(--danger,#d9534f)}
.vf-r .fk-badge{display:inline-block;margin-bottom:8px}
#vfText{width:100%;box-sizing:border-box;font:inherit;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:inherit;resize:vertical}
.lib-grid,.sch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:12px 0}
.lib-item,.sch{display:flex;flex-direction:column;gap:6px;text-align:start;color:inherit;font:inherit;cursor:pointer;border:1px solid var(--line)}
.lib-item:hover,.sch:hover{border-color:var(--gold)}
.sch{flex-direction:row;align-items:flex-start;gap:12px}
.sch p{margin:4px 0 0}
.lib-atts{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.lib-aud{display:flex;flex-direction:column;gap:4px}
.lib-aud audio{width:100%}
.sch-bio{max-height:40vh;overflow:auto}

/* ===== UX pass ===== */
.h-group.collapsed .tiles > .tile:nth-child(n+7) { display: none; }
@media (min-width: 900px) { .h-group.collapsed .tiles > .tile:nth-child(n+7) { display: none; } }
.hg-more { display: block; margin: 12px auto 0; }
.find-box { display: flex; gap: 10px; margin-bottom: 16px; }
.find-box input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.find-g { margin-bottom: 20px; }
.find-g .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.find-r { display: block; margin-bottom: 10px; text-decoration: none; color: inherit; }
.find-r p { margin: 0 0 6px; }
.find-r .quran-text { font-size: 1.35rem; }
.find-btn { display: grid; place-items: center; }
/* Compact hero on phones so the Now card shows on the first screen */
@media (max-width: 620px) {
  .hero-in { padding-block: 1.1rem 0 !important; padding-bottom: 64px !important; gap: .3rem !important; }
  .hero-logo { width: 64px !important; height: 64px !important; border-radius: 16px !important; }
  .hero-title.shimmer { font-size: 1.45rem !important; line-height: 1.9 !important; }
  .hero .hero-ref { font-size: .9rem; }
  .hero-cards { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: .4rem !important; }
  .h-date, .h-prayer { padding: 10px 12px !important; border-radius: 14px !important; }
  .h-date b, .h-prayer b { font-size: 1.02rem !important; }
  .h-prayer .np-count { font-size: 1rem; }
  .hd-sub, .hd-label { font-size: .78rem !important; }
  .hero-skyline svg { height: 60px !important; }
  .hero .hero-cr { width: 40px !important; height: 40px !important; top: 10px !important; }
}
/* Prayer page: current time + Hijri and Gregorian at the same size */
.ph-dates { gap: 4px; }
.ph-dates b { font-size: 1.3rem !important; opacity: 1 !important; }
.ph-dates .ph-greg { color: #e9eefb; font-family: var(--f-display); font-weight: 500; }
:root[data-theme="light"] .ph-dates .ph-greg { color: inherit; }
.ph-dates .ph-clock { font-size: 2rem !important; color: #fff; direction: ltr; text-align: end; letter-spacing: .03em; }
:root[data-theme="light"] .ph-dates .ph-clock { color: inherit; }
:root[dir="rtl"] .ph-dates .ph-clock { direction: rtl; unicode-bidi: plaintext; }
@media (max-width: 480px) {
  .topbar-in { gap: 5px !important; padding-inline: 10px !important; }
  .topbar-in .icon-btn { width: 38px !important; height: 38px !important; min-width: 38px !important; padding: 0 !important; }
  .topbar-in .icon-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 420px) { #brandName { display: none !important; } }
.bottom-nav { max-width: 100vw; box-sizing: border-box; overflow: hidden; }
.bottom-nav > a, .bottom-nav > button { flex: 1 1 0 !important; min-width: 0 !important; padding-inline: 2px !important; }
.bottom-nav span { font-size: .7rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 480px) {
  .hub-body .btn, .find-g .btn, .dash-set .btn { white-space: normal !important; max-width: 100%; text-align: center; }
  .hub-body .seg { flex-wrap: wrap; }
  .hub-body, .hub-body > *, .dash-sec, .find-g { min-width: 0; max-width: 100%; }
  .rep-grid { grid-template-columns: 1fr 1fr !important; }
}
/* Extras: calendar card, notifications */
.ics-card { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.notif-wrap { margin-top: 10px; display: flex; justify-content: center; }

/* All popups centered on the page, with a close button */
.sheet-back { background: rgba(5,10,20,.6) !important; backdrop-filter: blur(4px); z-index: 70 !important; }
.sheet { inset: auto !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); margin: 0 !important;
  width: min(760px, calc(100vw - 24px)); max-height: min(86vh, 860px) !important; border-radius: 20px !important; z-index: 71 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.45) !important; animation: popCenter .22s ease-out !important; box-sizing: border-box; }
.sheet.wide { width: min(1000px, calc(100vw - 24px)); }
@keyframes popCenter { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.sheet-h { position: sticky; top: -18px; z-index: 2; background: var(--surface); padding-block: 8px; margin-top: -8px; }
.sheet-h .icon-btn { width: 42px; height: 42px; font-size: 1.1rem; }
.sheet-foot { display: flex; justify-content: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet-foot .btn { min-width: 160px; }
.aud-panel { top: 50%; bottom: auto !important; transform: translateY(-50%); z-index: 72; }

/* Reading tracker: the current word and ayah are clearly marked */
.fl-ctl { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fl-ctl select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.fl-mode .fl-ay { border-radius: 10px; transition: background .25s; }
.fl-mode .fl-ay.now { background: color-mix(in srgb, var(--gold) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.fl-mode .fl-w { border-radius: 8px; padding: 0 2px; transition: background .15s, color .15s; }
.fl-mode .fl-w.past { opacity: .55; }
.fl-mode .fl-w.on { opacity: 1; background: var(--gold); color: #1a1205 !important; box-shadow: 0 2px 10px rgba(217,181,98,.45); }
.ay.playing, .ay-row.playing { background: color-mix(in srgb, var(--gold) 22%, transparent) !important; border-radius: 10px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.sc-w.on { background: var(--gold); color: #1a1205 !important; border-radius: 8px; }
.hz-ay.on { background: color-mix(in srgb, var(--gold) 18%, transparent); border-radius: 12px; }

/* Tidy card tools: reference on its own line, then one row of icon + short word */
.h-foot.has-tools, .row-actions.has-tools, .card-actions.has-tools { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.h-foot.has-tools > span:first-child { font-size: .9rem; color: var(--muted); }
.p1-tools { display: flex !important; flex-wrap: wrap; gap: 4px; margin: 0 !important; padding-top: 8px; border-top: 1px dashed var(--line); }
.tb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 54px; min-height: 48px; padding: 6px 8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; text-decoration: none; }
.tb:hover { background: var(--surface-2); color: var(--ink, inherit); }
.tb .tb-i { width: 20px; height: 20px; }
.tb[data-on] { color: var(--gold); }
.tb span { line-height: 1.2; white-space: nowrap; }
/* Hadith grades */
.hd-grades { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hd-g { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #2fae7f 14%, transparent); font-size: .85rem; }
.hd-g.weak { background: color-mix(in srgb, #d9534f 16%, transparent); }
.hd-g small { color: var(--muted); }
.hd-src { display: inline-block; margin-inline-start: 6px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--gold); font-size: .85em; }
.q-in { font-family: var(--f-quran) !important; font-size: 1.1em; }

/* Home search */
.home-search { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, var(--line)); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
:root[dir="rtl"] .home-search { padding: 8px 16px 8px 8px; }
.home-search svg { color: var(--gold); flex: none; }
.home-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.1rem; padding: 10px 4px; outline: none; }
/* Learning browser */
.lr-cats, .lr-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lr-item.seen { opacity: .8; }
.lr-seen { color: #2fae7f; font-size: .85rem; }
.sch-prog { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tj-intro { margin-bottom: 12px; }
.ih-video { width: 100%; border-radius: 12px; margin: 10px 0; background: #000; }
.ih-pdf .pdf-frame, .pdf-frame { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
.map-frame { width: 100%; height: 60vh; border: 0; border-radius: 12px; }
/* Favorite reciter */
.fav-rec { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fav-rec > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fv-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); font-weight: 800; flex: none; }
.fv-av.big { width: 54px; height: 54px; font-size: 1.4rem; }
.fv-q { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; margin-bottom: 6px; }
.fv-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.fv-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.fv-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.fv-item small { color: var(--muted); font-size: .8rem; }
.fv-item.on, .fv-item:hover { border-color: var(--gold); }
/* Account */
.acc-card { max-width: 520px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.acc-card input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; }
@media (max-width: 480px) { .acc-btn { display: none !important; } }
@media (max-width: 1180px) and (min-width: 900px) {
  #nav a[data-r="radio"] { display: none !important; }
  .topbar-in { gap: 6px !important; }
  .nav > a, .more-btn { padding: 8px 9px !important; font-size: .9rem !important; }
}
.home-search { min-width: 0; max-width: 100%; box-sizing: border-box; } .home-search input { width: 100%; } .home-search .btn { flex: none; }
/* New badges and tidy button rows */
.tile { position: relative; }
.new-badge { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1a1205; font-size: .72rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.new-dot { margin-inline-start: auto; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); font-size: .68rem; font-weight: 800; }
#morePanel a { display: flex; align-items: center; gap: 8px; }
.card-actions.tb-row { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-start; border-top: 1px dashed var(--line); padding-top: 8px; }
.install-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; } .install-card img { border-radius: 14px; flex: none; } .install-card > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
