*{box-sizing:border-box}html{--gold:#c9a05b;--gold-deep:#a47835;--gold-pale:#e8cc93;--on-gold:#261b0e;--green:#166a46;--green-deep:#104e35;--gold-text:#79561e;--on-primary:#fff;scroll-behavior:smooth;scroll-padding-top:90px;--bg:#faf9f6;--paper:#ffffff;--text:#30271a;--muted:#6e6251;--accent:#166a46;--soft:#f1efe9;--line:#e6e0d6;--hero:#f4f2ed;--shadow:0 20px 65px #65471920;color-scheme:light}html[data-theme=dark]{--bg:#191713;--paper:#24211b;--text:#f8eedb;--muted:#c4b79d;--accent:#8dd4ad;--gold-text:#e8cc93;--soft:#392f20;--line:#4b3e2b;--hero:#2a241a;--shadow:0 20px 65px #0005;color-scheme:dark}body{margin:0;background:var(--bg);color:var(--text);font-family:"Cairo",Tahoma,Arial,sans-serif;line-height:1.8}html[lang=en] body{font-family:"Cairo",Tahoma,Arial,sans-serif}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.wrap{width:min(1160px,calc(100% - 48px));margin:auto}.header{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:800;white-space:nowrap;line-height:1.25}.brand small{display:block;font:600 11px "Cairo",Tahoma,Arial,sans-serif;letter-spacing:2px;color:var(--muted)}.brand-icon{display:grid;place-items:center;background:var(--accent);width:46px;height:46px;border-radius:14px;flex-shrink:0}.brand-icon img{width:31px;height:31px}.nav nav{display:flex;gap:30px;font-size:14px;color:var(--muted);font-weight:bold}.nav nav a:hover,.text-link:hover{color:var(--accent)}.controls,.gallery-controls{display:flex;gap:8px}.controls button,.gallery-controls button{height:40px;min-width:42px;background:var(--paper);border:1px solid var(--line);color:var(--text);border-radius:12px;display:grid;place-items:center;font-weight:bold;padding:0 10px}svg{width:22px;height:22px;flex-shrink:0}.hero{padding:68px 0 60px;overflow:hidden;background:radial-gradient(ellipse at 20% 50%,var(--hero),transparent 70%)}.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:44px;min-height:520px}.eyebrow,.kicker{color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.2px}.eyebrow{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);padding:6px 13px;border-radius:99px;background:var(--paper)}.eyebrow i,.dot{width:7px;height:7px;border-radius:50%;background:var(--accent);display:inline-block}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,5.2vw,68px);line-height:1.45;letter-spacing:-1.6px;margin:21px 0 20px}html[lang=en] h1{line-height:1.1}h1 em{color:var(--accent);font-style:normal}.lead{font-size:clamp(16px,2vw,20px);max-width:560px;color:var(--muted);line-height:2}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 23px;border-radius:13px;border:1px solid transparent;font-weight:700;transition:transform .2s,opacity .2s}.button:hover:not([aria-disabled]){transform:translateY(-2px)}.primary{color:#fffdf8;background:var(--accent)}html[data-theme=dark] .primary{color:#261b0e}.secondary{background:var(--paper);border-color:var(--line)}[aria-disabled=true]{opacity:.55;cursor:not-allowed}.meta{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin-top:20px}.meta .dot{width:4px;height:4px;background:var(--muted)}.hero-art{position:relative;display:grid;place-items:center;min-height:530px;isolation:isolate}.orbit{position:absolute;width:450px;height:450px;max-width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:50%;z-index:-1;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.o2{width:365px;height:365px}.o3{width:280px;height:280px;background:var(--soft)}.phone{width:238px;max-width:100%;aspect-ratio:9/19.5;background:#2a251d;padding:7px;border-radius:32px;box-shadow:var(--shadow);border:1px solid #8c7857;position:relative;overflow:hidden}.phone-screen{height:100%;background:var(--paper);border-radius:25px;overflow:hidden;position:relative;display:grid;place-items:center}.phone-screen img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;width:calc(100% - 24px);height:calc(100% - 24px);border:1px dashed var(--line);border-radius:17px;background:linear-gradient(155deg,var(--paper),var(--soft));padding:10px;color:var(--muted)}.placeholder strong{font-size:16px;color:var(--text)}.placeholder small{font-size:11px}.placeholder code{font-size:10px;direction:ltr;color:var(--accent)}.shot-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:15px;background:var(--soft);color:var(--accent)}.shot-icon svg{width:27px;height:27px}.hero-art .phone{width:265px;transform:rotate(-5deg)}.float-label{position:absolute;z-index:2;display:flex;align-items:center;gap:9px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:13px 17px;font-weight:bold;font-size:13px;color:var(--accent)}.label-one{top:20%;inset-inline-start:0}.label-two{bottom:19%;inset-inline-end:0}.section{padding:78px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:34px}.section-head p{max-width:350px;color:var(--muted);font-size:15px}h2{font-size:clamp(27px,4vw,40px);line-height:1.5;letter-spacing:-.6px;margin-top:8px}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.feature{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:25px 22px;transition:transform .2s}.feature:hover{transform:translateY(-3px)}.feature-icon{display:grid;place-items:center;background:var(--soft);color:var(--accent);width:49px;height:49px;border-radius:14px;margin-bottom:19px}.feature h3{font-size:18px;margin-bottom:8px}.feature p{color:var(--muted);font-size:14px;line-height:1.9}.gallery-section{background:var(--hero)}.gallery{display:flex;gap:25px;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 5px 25px;scrollbar-color:var(--accent) transparent}.gallery figure{margin:0;flex:0 0 214px;scroll-snap-align:start}.gallery .phone{width:214px}.gallery figcaption{text-align:center;font-weight:bold;font-size:14px;margin:15px 0 0}.gallery-controls #prev svg{transform:rotate(180deg)}html[dir=rtl] .gallery-controls #next svg{transform:rotate(180deg)}html[dir=rtl] .gallery-controls #prev svg{transform:none}.download-panel{background:var(--soft);border:1px solid var(--line);border-radius:28px;padding:45px;display:flex;justify-content:space-between;align-items:center;gap:30px}.large{width:62px;height:62px;border-radius:18px;margin-bottom:18px}.large img{width:43px;height:43px}.download-panel p{color:var(--muted);margin-top:10px}.download-actions{display:flex;align-items:stretch;flex-direction:column;gap:9px;min-width:220px;text-align:center}.download-actions small,.version{color:var(--muted);font-size:12px}.support{padding-top:0}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.text-link{color:var(--accent);font-weight:bold;display:inline-block;margin-top:10px;text-decoration:underline}.footer{border-top:1px solid var(--line);padding:28px 0 35px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer p,.footer-links{font-size:13px;color:var(--muted)}.footer-links{display:flex;gap:17px;flex-wrap:wrap}.policy{max-width:760px}.policy h1{font-size:42px}.policy h2{font-size:24px;margin-top:30px}.policy p{color:var(--muted);margin-top:10px}.draft{border:1px solid var(--line);padding:14px;border-radius:12px;color:var(--accent);background:var(--soft)}@media(max-width:900px){.features{grid-template-columns:repeat(2,1fr)}.hero-grid{gap:20px}.float-label{padding:10px;font-size:11px}.hero-art .phone{width:230px}.hero-art{min-height:480px}}@media(max-width:650px){.wrap{width:calc(100% - 32px)}.nav{height:65px;gap:10px}.nav nav{display:none}.hero{padding:36px 0 24px}.hero-grid{grid-template-columns:1fr;gap:20px}.hero-art{min-height:420px}.hero-art .phone{width:190px}.orbit{width:330px;height:330px}.o2{width:270px;height:270px}.o3{width:210px;height:210px}.section{padding:48px 0}.section-head{align-items:start;flex-direction:column;gap:12px;margin-bottom:22px}.section-head:has(.gallery-controls){flex-direction:row;align-items:end}.features{gap:10px}.feature{padding:17px 14px;border-radius:15px}.feature h3{font-size:15px}.feature p{font-size:13px}.feature-icon{width:41px;height:41px;margin-bottom:13px}.gallery figure{flex-basis:180px}.gallery .phone{width:180px}.download-panel{padding:25px;flex-direction:column;align-items:stretch}.support{padding-top:0}.support-grid{grid-template-columns:1fr}.footer{align-items:start;flex-direction:column}.button{padding:10px 15px}.lead{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
input,select,button,code{font-family:inherit}.nav nav{gap:20px}.prayer-section{background:var(--hero)}.prayer-panel{border:1px solid var(--line);border-radius:25px;padding:30px;background:var(--paper);box-shadow:var(--shadow)}.prayer-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.hijri-today{font-size:clamp(21px,3vw,30px);line-height:1.5;color:var(--accent)}.prayer-muted{color:var(--muted);font-size:13px}.location-controls label{font-size:12px;color:var(--muted);font-weight:700}.location-row{display:flex;gap:8px;align-items:center}.location-row select{max-width:200px;min-height:46px;border:1px solid var(--line);background:var(--paper);color:var(--text);padding:7px 12px;border-radius:12px;font-size:14px}.location-row .button{min-height:46px;padding:7px 12px;font-size:13px;white-space:nowrap}.next-prayer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;border-radius:20px;background:var(--accent);color:white;margin-bottom:20px}html[data-theme=dark] .next-prayer{color:#261b0e}.next-prayer span{font-size:13px;font-weight:600}.next-prayer h3{font-size:32px;line-height:1.4}.next-prayer p{font-size:15px}.countdown-side{text-align:end;min-width:130px}.countdown-side :is(#prayer-countdown,#home-prayer-countdown){font-size:clamp(26px,5vw,45px);font-weight:800;line-height:1.45;font-variant-numeric:tabular-nums;letter-spacing:1px}.progress-track{height:5px;border-radius:10px;background:#ffffff40;overflow:hidden;margin-top:7px}.progress-track div{height:100%;width:0;background:currentColor;border-radius:10px}.prayer-times{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.prayer-tile{border:1px solid var(--line);background:var(--bg);border-radius:15px;padding:15px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}.prayer-tile svg{color:var(--accent);width:26px;height:26px}.prayer-tile strong{font-size:14px}.prayer-tile time{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.prayer-tile small{font-size:11px;color:var(--muted);min-height:20px}.prayer-tile.is-next{border:2px solid var(--accent);background:var(--soft);padding:14px 6px}.prayer-tile.is-next small{color:var(--accent);font-weight:700}.prayer-tile.is-past time{color:var(--muted)}.prayer-bottom{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:13px}.prayer-bottom p{color:var(--muted);font-size:13px}.prayer-bottom button{min-height:38px;padding:5px 12px;font-size:13px}.prayer-note{margin-top:8px}.location-row select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(max-width:650px){.prayer-panel{padding:16px}.prayer-top{align-items:stretch;flex-direction:column;gap:12px}.location-row select{flex:1;max-width:none;min-width:0}.next-prayer{padding:16px;gap:10px}.next-prayer h3{font-size:25px}.countdown-side{min-width:105px}.countdown-side :is(#prayer-countdown,#home-prayer-countdown){font-size:26px}.prayer-times{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.prayer-tile time{font-size:16px}.prayer-tile{padding:11px 4px}.prayer-tile.is-next{padding:10px 3px}}

/* Qoout green identity, with original ivory/charcoal backgrounds and gold details. */
.header{background:color-mix(in srgb,var(--bg) 93%,transparent);backdrop-filter:blur(14px)}
.hero{position:relative;isolation:isolate;background:radial-gradient(ellipse at 22% 48%,var(--hero),transparent 72%)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.45;background-image:url("assets/gold-pattern.svg");background-size:96px;mask-image:linear-gradient(90deg,#000,transparent 63%)}
html[dir=ltr] .hero::before{mask-image:linear-gradient(270deg,#000,transparent 63%)}
.brand-icon,.primary,.next-prayer{background:linear-gradient(125deg,var(--green),var(--green-deep));color:var(--on-primary);border-color:#c9a05b55}
html[data-theme=dark] .primary,html[data-theme=dark] .next-prayer{color:var(--on-primary)}
.brand-icon{background:var(--green);box-shadow:inset 0 0 0 1px #e8cc9360}
.primary{box-shadow:0 5px 14px #166a4626}.primary:hover:not([aria-disabled]){filter:brightness(1.035)}
.secondary:hover:not([aria-disabled]){border-color:var(--gold-deep)}
.eyebrow{border-color:var(--gold);background:var(--soft)}
.orbit{border-color:color-mix(in srgb,var(--gold) 50%,var(--line));border-style:solid}.o2{border-style:dashed}.o3{background:radial-gradient(circle,var(--gold-pale),var(--soft) 75%);opacity:.65}
.feature{border-radius:22px;box-shadow:0 5px 20px #8a611f09}.feature:hover{border-color:var(--gold)}
.feature-icon,.shot-icon{border:1px solid var(--line)}
.prayer-panel{border-top:1px solid var(--line);box-shadow:var(--shadow)}
.next-prayer{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(115deg,var(--green-deep),var(--green) 75%,#1f7350)}
.next-prayer::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.3;pointer-events:none;background:url("assets/gold-pattern.svg") center/84px;mask-image:linear-gradient(90deg,transparent,#000,transparent)}
.progress-track{background:#ffffff35}.progress-track div{background:var(--gold-pale)}.download-panel{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(135deg,var(--paper),var(--soft));border-color:var(--gold)}
.download-panel::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:url("assets/gold-pattern.svg") center/96px;opacity:.22;mask-image:linear-gradient(90deg,#000,transparent 60%)}
.download-actions{min-width:260px;gap:12px}.store-button{justify-content:flex-start;text-align:start;min-height:66px;gap:13px;padding:10px 18px}.store-button svg{width:28px;height:28px}.store-copy{display:flex;flex-direction:column;gap:0;line-height:1.5}.store-copy small{font-size:11px;font-weight:500;color:inherit;opacity:.82}.store-copy strong{font-size:17px}.store-button[aria-disabled=true]{opacity:1;cursor:default;background:var(--paper);color:var(--muted);border-style:dashed}.soon-label{margin-inline-start:auto;border-radius:99px;background:var(--soft);color:var(--accent);font-size:11px;padding:4px 9px;white-space:nowrap;border:1px solid var(--line)}
@media(max-width:650px){.download-actions{min-width:0}.hero::before{mask-image:linear-gradient(0deg,#000,transparent 55%)}}

/* Gold accents only; existing page, panel and section backgrounds remain unchanged. */
.eyebrow,.kicker{color:var(--gold-text)}
.eyebrow i{background:var(--gold-deep)}
.float-label{border-color:color-mix(in srgb,var(--gold) 55%,var(--line))}
.float-label svg{color:var(--gold-text)}
.next-prayer span{color:var(--gold-pale)}
.prayer-tile.is-next{border-color:var(--accent)}
.soon-label{color:var(--gold-text);border-color:var(--gold)}
.feature-icon,.shot-icon{border-color:color-mix(in srgb,var(--gold) 30%,var(--line))}

/* Guided adhkar and report form, using existing green/gold palette. */
.prayer-icon{display:grid;place-items:center;width:29px;height:29px;color:var(--accent)}.material-glyph{font-weight:normal;font-size:27px;line-height:1;font-feature-settings:'liga';-webkit-font-smoothing:antialiased;letter-spacing:normal;text-transform:none;white-space:nowrap;direction:ltr}.dhikr-section{background:var(--bg)}.dhikr-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.dhikr-category{display:flex;align-items:center;gap:14px;text-align:start;color:var(--text);font:inherit;cursor:pointer;padding:20px;min-height:100px}.dhikr-category .feature-icon{font-size:29px;display:grid;place-items:center;flex-shrink:0}.dhikr-category strong,.dhikr-category small{display:block}.dhikr-category small{color:var(--muted);font-size:12px}.dhikr-reader{max-width:820px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-top:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow);scroll-margin-top:100px;text-align:center}.dhikr-reader-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dhikr-reader-head h3{font-size:clamp(18px,3vw,25px)}.dhikr-reader-head span{color:var(--muted);font-weight:700}.dhikr-reader-head .button,.dhikr-controls .button{min-height:42px;font-size:13px;padding:8px 13px}.dhikr-progress{height:7px;background:var(--soft);border-radius:99px;overflow:hidden;margin-top:18px}.dhikr-progress div{height:100%;background:linear-gradient(90deg,var(--green),var(--gold));transition:width .2s;border-radius:99px}.dhikr-reader #dhikr-text{white-space:pre-wrap;font-size:clamp(20px,3vw,27px);line-height:2.1;font-weight:700;min-height:130px;display:grid;place-items:center;padding:24px 4px 15px;overflow-wrap:anywhere}.dhikr-reader #dhikr-note{font-size:13px;color:var(--muted);margin-bottom:22px}.dhikr-count{--count-progress:0%;width:155px;height:155px;border-radius:50%;border:0;background:conic-gradient(var(--gold) var(--count-progress),var(--green) var(--count-progress));color:white;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;position:relative;isolation:isolate;box-shadow:0 8px 20px #166a4625}.dhikr-count:before{content:'';position:absolute;inset:7px;background:var(--green-deep);border-radius:50%;z-index:-1}.dhikr-count span{font-size:26px;font-weight:800;line-height:1.2}.dhikr-count small{font-size:12px;color:var(--gold-pale)}.dhikr-count:active:not(:disabled){transform:scale(.97)}.dhikr-reader button:disabled{opacity:.5;cursor:default}.dhikr-controls{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:18px 0}.dhikr-check{font-size:55px;color:var(--accent)}#dhikr-complete{padding:32px 8px}#dhikr-groups-row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:14px}#dhikr-groups{max-width:100%;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text)}.report-form{display:grid;gap:8px;margin-top:15px}.report-form label{font-size:14px;font-weight:700}.report-form input,.report-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;padding:10px 12px;resize:vertical}.report-form input:focus,.report-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px}.report-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.report-form button:disabled{opacity:.6;cursor:wait}#report-status{font-size:13px;overflow-wrap:anywhere}#report-status[data-state=success]{color:var(--accent)}#report-status[data-state=error]{color:#c15b4a}.nav nav{gap:15px;flex-wrap:wrap}.support-grid{align-items:start}@media(max-width:650px){.dhikr-reader{padding:15px}.dhikr-reader-head h3{flex:1}.dhikr-category{min-height:80px}.dhikr-controls{justify-content:center}.dhikr-reader #dhikr-text{font-size:21px;min-height:100px}.dhikr-count{width:140px;height:140px}}

/* Daily dashboard and dedicated pages */
.nav nav a[aria-current=page]{color:var(--accent);border-bottom:2px solid var(--gold)}
.nav nav a{padding:5px 0;white-space:nowrap}
.material-outlined{font-family:'Material Icons Outlined';font-weight:normal;font-style:normal;line-height:1;font-feature-settings:'liga';-webkit-font-smoothing:antialiased;direction:ltr}
.daily-dashboard{padding:clamp(35px,5vw,70px) 0 45px;border-bottom:1px solid var(--line)}
.daily-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:34px}
.daily-weekday{font-weight:700;color:var(--gold-text);font-size:15px}.daily-heading h1{font-weight:500;letter-spacing:-1.5px;font-size:clamp(38px,5.6vw,70px);margin:6px 0;line-height:1.45}.daily-subtitle,.daily-date p{color:var(--muted);font-size:16px}.daily-date{text-align:start}.daily-date h2{font-size:clamp(20px,2.6vw,32px);font-weight:700;color:var(--gold-text)}
.daily-grid{display:grid;grid-template-columns:1.42fr 1fr;gap:24px;align-items:stretch}.daily-side{display:grid;grid-template-rows:1.6fr 1fr;gap:24px;min-width:0}.daily-widget{border-radius:30px;padding:clamp(20px,3vw,36px);min-width:0}.daily-prayer{border:1px solid var(--line);background:var(--paper);box-shadow:0 3px 12px #00000006;min-height:360px;display:flex;flex-direction:column;justify-content:space-between;gap:30px;transition:border-color .2s}.daily-prayer:hover{border-color:var(--gold)}.daily-prayer-top{display:flex;justify-content:space-between;align-items:start;gap:10px}.daily-tag{display:inline-block;color:var(--gold-text);background:var(--soft);padding:2px 13px;border-radius:50px;font-size:12px;font-weight:700}.daily-prayer h2{font-size:clamp(36px,5vw,58px);font-weight:700;line-height:1.6}.daily-location{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:14px}.daily-location .material-glyph{font-size:18px;color:var(--gold-text)}.daily-prayer-time{font-size:15px;color:var(--accent);font-weight:700}.daily-open{color:var(--gold-text);font-size:22px}.daily-muted{font-size:13px;color:var(--muted)}.daily-countdown{font-weight:500;font-variant-numeric:tabular-nums;font-size:clamp(38px,5vw,56px);line-height:1.35;text-align:start}.daily-progress-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:12px}.daily-progress{background:var(--soft);border-radius:10px;height:7px;overflow:hidden;margin-top:7px}.daily-progress div{height:100%;width:0;background:var(--accent);border-radius:10px}.daily-status{color:var(--muted);font-size:11px;margin-top:10px}.daily-dhikr{background:var(--green-deep);color:#fffdf8;display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-height:210px}.daily-dhikr-top{display:flex;align-items:center;justify-content:space-between}.daily-dhikr-top .material-glyph{width:48px;height:48px;display:grid;place-items:center;border:1px solid #e8cc9355;border-radius:50%;color:var(--gold-pale);font-size:27px}.daily-now,.daily-read{color:var(--gold-pale);font-size:14px}.daily-dhikr h2{font-size:clamp(23px,3vw,36px);font-weight:600;line-height:1.55;margin-bottom:8px}.daily-read{border-bottom:1px solid #e8cc9355}.daily-dhikr:hover{background:var(--green)}.daily-verse{background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:16px}.daily-verse #daily-verse{font-size:clamp(19px,2vw,25px);font-weight:600;line-height:1.9;overflow-wrap:anywhere}.daily-verse-ref{font-size:12px;color:var(--gold-text);margin-top:4px}.daily-surah{border:1px solid var(--line);background:var(--paper);color:var(--gold-text);border-radius:16px;width:54px;height:54px;display:grid;place-items:center;flex-shrink:0;font-size:20px;font-weight:700}.daily-date-note{margin-top:12px;color:var(--muted);font-size:11px}.daily-dashboard+.hero{padding-top:45px}.dhikr-category .material-glyph{font-size:29px}.dhikr-section,.prayer-section{min-height:calc(100vh - 180px)}
@media(max-width:760px){.daily-grid{grid-template-columns:1fr}.daily-side{grid-template-rows:auto auto;gap:14px}.daily-grid{gap:14px}.daily-prayer{min-height:300px}.daily-heading{gap:12px;margin-bottom:22px}.daily-widget{border-radius:24px}.daily-dhikr{min-height:180px}.daily-date h2{font-size:20px}.daily-date p{font-size:13px}}
@media(max-width:650px){.nav{height:auto;min-height:78px;display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding-block:10px}.nav nav{display:flex;grid-column:1/-1;grid-row:2;justify-content:center;gap:clamp(14px,5vw,30px);font-size:13px;flex-wrap:nowrap}.nav .controls{grid-column:2;grid-row:1}.daily-heading{align-items:start;flex-direction:column}.daily-date{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px}.daily-heading h1{font-size:42px}.daily-prayer{min-height:280px}html{scroll-padding-top:130px}.dhikr-reader{scroll-margin-top:130px}}
html[dir=rtl] .daily-countdown{text-align:right}html[dir=ltr] .daily-countdown{text-align:left}.daily-dhikr-top .material-glyph svg,.dhikr-category .material-glyph svg{width:26px;height:26px}.daily-location .material-glyph svg{width:17px;height:17px;vertical-align:middle}
/* Independent Quran reader; Cairo for interface and Amiri Quran for ayahs. */
.support-grid.support-single{grid-template-columns:minmax(0,1fr);max-width:820px;margin-inline:auto}.daily-verse:hover{border-color:var(--gold)}.quran-section .section-head h1{font-size:clamp(30px,5vw,46px);margin:0}.quran-layout{display:grid;grid-template-columns:minmax(220px,290px) minmax(0,1fr);gap:20px;align-items:start}.quran-index,.quran-reader{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.quran-index{position:sticky;top:98px}.quran-index-head,.quran-reader-tools,.quran-pagination,.quran-jump{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.quran-index h2,.quran-reader h2{margin:0;font-size:23px}.quran-index-count{color:var(--gold-text);font-weight:700}.quran-index input,.quran-jump select{width:100%;padding:9px 12px;margin-block:12px;background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--text);font:inherit;min-width:0}.quran-list{max-height:64vh;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:5px}.quran-surah{border:1px solid transparent;background:transparent;color:var(--text);text-align:start;width:100%;border-radius:10px;padding:8px;display:flex;align-items:center;gap:10px;line-height:1.5}.quran-surah:hover,.quran-surah[aria-current=true]{border-color:var(--line);background:var(--soft)}.quran-surah[aria-current=true]{color:var(--accent);border-inline-start:3px solid var(--gold)}.quran-surah-number{display:grid;place-items:center;width:34px;height:34px;background:var(--soft);color:var(--gold-text);border-radius:9px;flex-shrink:0;font-size:12px}.quran-surah small{display:block;color:var(--muted);font-size:11px}.quran-resume{width:100%;margin-block-end:12px;font-size:13px}.quran-reader{--quran-font-size:30px;border-top:1px solid var(--line)}.quran-reader-tools{border-bottom:1px solid var(--line);padding-bottom:16px}.quran-reader-tools h2{color:var(--accent)}.quran-size{display:flex;align-items:center;gap:8px}.quran-size .button,.quran-jump .button,.quran-pagination .button{min-height:40px;padding:5px 12px;font-size:13px}.quran-size button:disabled,.quran-pagination button:disabled,.quran-jump button:disabled{opacity:.45;cursor:default}.quran-jump{justify-content:flex-start;margin-top:8px;font-size:13px}.quran-jump select{width:auto;min-width:65px}.quran-status{color:var(--muted);margin:12px 0;font-size:14px}.quran-ayah{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:20px 0;border-bottom:1px solid var(--line);scroll-margin-top:105px}.quran-ayah.is-saved{background:var(--soft);border-radius:10px;padding-inline:12px}.quran-ayah-text{font-family:'Amiri Quran','Amiri','Noto Naskh Arabic',serif;font-size:var(--quran-font-size);line-height:2.5;text-align:right;overflow-wrap:anywhere;margin:0;color:var(--text)}.quran-ayah-no{display:inline-block;font-family:Cairo,Tahoma,sans-serif;font-size:14px;color:var(--gold-text);margin-inline:7px;white-space:nowrap;vertical-align:middle}.quran-save{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);background:var(--bg);color:var(--accent);border-radius:10px;margin-top:12px}.quran-save svg{width:19px;height:19px}.quran-save[aria-pressed=true] svg{fill:var(--gold);stroke:var(--gold-text)}.quran-pagination{padding:20px 0}.quran-credit a{color:var(--accent);text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.prayer-tile time{font-size:clamp(13px,2vw,19px)}
@media(max-width:800px){.quran-layout{grid-template-columns:1fr}.quran-index{position:static}.quran-list{max-height:260px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.quran-reader,.quran-index{padding:15px}.quran-ayah{scroll-margin-top:155px}}
@media(max-width:650px){.nav nav{gap:8px 14px;flex-wrap:wrap}.quran-section .wrap{width:calc(100% - 28px)}.quran-ayah-text{line-height:2.35}.quran-ayah{gap:6px}.quran-save{width:32px;height:32px}.prayer-tile time{font-size:clamp(12px,3.5vw,16px)}}
/* Keep horizontal content within the viewport; gallery is a wrapping grid, not a long strip. */
main,.wrap,.daily-grid,.hero-grid,.section-head,.gallery-section{min-width:0;max-width:100%}
.wrap{max-width:1160px}.hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.hero-grid>* ,.daily-grid>* ,.daily-side>*{min-width:0}.daily-grid{grid-template-columns:minmax(0,1.42fr) minmax(0,1fr)}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:22px;overflow:visible;scroll-snap-type:none;padding:10px 0 20px}.gallery figure{min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:center}.gallery .phone{width:min(100%,214px)}.gallery figcaption{overflow-wrap:anywhere}.download-top{padding:28px 0 12px}.download-top .download-panel{padding:24px 30px;gap:20px}.download-top .download-panel>div{min-width:0}.download-top .brand-icon.large{display:none}.download-top .download-panel h2{margin:0}.download-top .download-actions{flex-direction:row;flex-wrap:wrap;min-width:0}.download-top .store-button{min-width:0;flex:1 1 175px}.download-top .download-actions>small{flex:1 1 100%}.download-top+.daily-dashboard{padding-top:28px}
@media(max-width:800px){.hero-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.daily-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:650px){.download-top .download-panel{padding:18px;gap:12px}.download-top .download-actions{flex-direction:column}.download-top .store-button{flex:auto}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery .placeholder{padding:5px}.gallery .placeholder small,.gallery .placeholder code{font-size:10px;overflow-wrap:anywhere}.gallery .phone{border-radius:24px;padding:5px}.gallery .phone-screen{border-radius:19px}.nav nav{min-width:0}.daily-countdown{font-size:clamp(28px,10vw,48px)}}
/* Continuous Uthmani text. Use the app font if locally installed; web fallback is Amiri Quran. */
@font-face{font-family:'Qoout Uthmani';src:local('KFGQPC Uthman Taha Naskh'),local('Uthman Taha Naskh'),local('KFGQPC Uthman Taha Naskh Regular'),url('assets/fonts/UthmanTahaNaskh-Regular.otf') format('opentype'),url('https://raw.githubusercontent.com/mustafa0x/qpc-fonts/f93bf5f3/various-woff2/UthmanTN1%20Ver10.woff2') format('woff2');font-display:swap}
.quran-flow{font-family:'Qoout Uthmani','Amiri Quran','Amiri','Noto Naskh Arabic',serif;font-size:var(--quran-font-size);line-height:2.65;text-align:justify;text-align-last:right;padding:24px 12px;border:1px solid var(--line);border-radius:15px;background:var(--bg);overflow-wrap:break-word}
.quran-flow:empty{display:none}.quran-flow .quran-ayah{display:inline;padding:0;border:0;scroll-margin-top:155px;cursor:pointer;outline-offset:2px;border-radius:5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.quran-flow .quran-ayah-text{display:inline;font:inherit;line-height:inherit;overflow-wrap:normal;color:inherit}.quran-flow .quran-ayah.is-saved{background:var(--soft);padding:0}.quran-media,.quran-selection{padding:16px;margin-block:15px;background:var(--bg);border:1px solid var(--line);border-radius:14px}.quran-media h3{margin:0 0 10px;font-size:16px;color:var(--accent)}.quran-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}.quran-media label,.quran-selection label{display:flex;flex-direction:column;gap:5px;font-size:13px;min-width:0}.quran-media select,.quran-selection select{width:100%;min-width:0;color:var(--text);background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:8px;font:inherit}.quran-media-actions,.quran-selection-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.quran-selection-head{justify-content:space-between;margin-top:0}.quran-media .button,.quran-selection .button{min-height:40px;padding:6px 13px;font-size:13px}.quran-media audio{width:100%;max-width:100%;display:block;margin-block:10px}.quran-media button:disabled{opacity:.5;cursor:default}.quran-media a,.quran-selection a{color:var(--accent);text-decoration:underline}#text-result{font-size:18px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}#audio-status{overflow-wrap:anywhere}#audio-track-label{margin-top:10px}@media(max-width:550px){.quran-flow{padding:16px 9px;line-height:2.5}.quran-media-grid{grid-template-columns:minmax(0,1fr)}}
/* Honeypot must not create a 10,000px horizontal scroll area in RTL. */
.report-trap{position:absolute;inset:auto;inset-inline-start:0;width:1px;height:1px;max-width:1px;max-height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
/* Islamicons: keep brand marks and accessible text controls. */
.islamicon-image{display:inline-block;vertical-align:middle;flex-shrink:0;width:24px;height:24px;object-fit:contain;filter:invert(30%) sepia(35%) saturate(1050%) hue-rotate(103deg) brightness(91%)}
[data-theme=dark] .islamicon-image{filter:invert(85%) sepia(17%) saturate(550%) hue-rotate(83deg) brightness(105%)}
.primary .islamicon-image,.daily-dhikr .islamicon-image,.daily-dhikr-card .islamicon-image,.prayer-tile.is-next .islamicon-image{filter:brightness(0) invert(1)}
.feature-icon .islamicon-image,.shot-icon .islamicon-image{width:32px;height:32px}.controls .islamicon-image,.inline-icon .islamicon-image,.inline-icon svg{width:21px;height:21px}.inline-icon{display:inline-flex;align-items:center;justify-content:center}.daily-location .islamicon-image{width:17px;height:17px}.material-glyph{font-family:Cairo,sans-serif!important}.material-glyph .islamicon-image{width:1em;height:1em}.prayer-icon .islamicon-image{width:29px;height:29px}
/* Local user-provided Islamicons end-of-ayah: preserve the ornament and put the number in its center. */


/* Bottom audio player is absent until explicitly opened. */
.quran-listen-tools{display:flex;gap:10px;margin-top:14px}.quran-listen-tools .button{display:inline-flex;align-items:center;gap:8px}.audio-dock[hidden]{display:none!important}.audio-dock{position:fixed;inset-inline:0;bottom:0;z-index:90;margin:0;border-radius:20px 20px 0 0;background:var(--paper);border:1px solid var(--line);border-top:1px solid var(--line);box-shadow:0 -8px 35px #0002;padding:12px max(18px,calc((100vw - 1180px)/2)) max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.5fr) minmax(0,2fr) auto;align-items:center;gap:10px 18px;max-height:65dvh;overflow-y:auto}.audio-dock-head{display:flex;align-items:center;gap:9px;justify-content:space-between;grid-column:1/-1}.audio-now{display:flex;align-items:center;gap:10px;min-width:0}.audio-now strong,.audio-now small{display:block}.audio-now strong{color:var(--accent);font-size:17px}.audio-now small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.dock-close{border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--text);width:36px;height:36px;flex-shrink:0;font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer}.audio-dock .audio-options{grid-column:1/3;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.audio-dock #audio-track-label{grid-column:1/3;margin:0}.audio-dock #quran-audio{grid-column:3;grid-row:2;margin:0;min-width:0;max-width:100%}.audio-dock .audio-actions{grid-column:4;grid-row:2;margin:0}.audio-dock #audio-status{grid-column:1/4;margin:0;font-size:12px}.audio-dock>p:last-child{grid-column:4;margin:0;font-size:11px;white-space:nowrap}.audio-dock-open{padding-bottom:var(--audio-dock-height,220px)}.audio-dock-open .quran-flow .quran-ayah{scroll-margin-bottom:var(--audio-dock-height,220px)}
/* Native modal dialog provides focus trapping, Escape, and a true popup overlay. */
.tafsir-dialog{position:fixed;inset:0;margin:auto;width:min(680px,calc(100% - 28px));max-width:none;max-height:85dvh;overflow:auto;border:1px solid var(--line);border-top:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--text);padding:24px;box-shadow:0 20px 80px #0005}.tafsir-dialog:not([open]){display:none}.tafsir-dialog::backdrop{background:#101a16a8;backdrop-filter:blur(3px)}.tafsir-dialog .quran-selection-head{display:flex;gap:9px;align-items:center}.tafsir-dialog .quran-selection-head strong{flex:1;color:var(--accent)}.tafsir-ayah-text{font-family:'Qoout Uthmani','Amiri Quran','Amiri',serif;font-size:clamp(23px,4vw,30px);line-height:2;text-align:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px}.tafsir-dialog #text-result{padding:12px 0}.tafsir-dialog .quran-media-grid{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:750px){.audio-dock{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:10px 14px max(10px,env(safe-area-inset-bottom))}.audio-dock .audio-options{grid-column:1/-1;grid-row:auto}.audio-dock #audio-track-label{grid-column:1/-1}.audio-dock #quran-audio{grid-column:1;grid-row:auto;height:42px}.audio-dock .audio-actions{grid-column:2;grid-row:auto}.audio-dock #audio-status{grid-column:1/-1}.audio-dock>p:last-child{grid-column:1/-1}.tafsir-dialog{padding:16px}.tafsir-dialog .quran-media-grid{grid-template-columns:minmax(0,1fr)}.tafsir-dialog .quran-selection-head strong{flex-basis:40%}}


/* Inline verse ornament: independent of network, image loader and CSS masks. */
.quran-flow .quran-ayah-no{display:inline-block;position:relative;width:1.48em;height:1.48em;line-height:1;vertical-align:-.36em;margin-inline:.12em;color:var(--gold-text);white-space:nowrap;direction:ltr;flex-shrink:0;font-size:inherit;font-weight:400;padding:0;box-sizing:border-box}
.quran-flow .quran-ayah-no .quran-ayah-marker{display:block;width:100%;height:100%;overflow:visible;color:inherit}
.quran-flow .quran-marker-number{font-family:Cairo,Tahoma,Arial,sans-serif;font-weight:700;letter-spacing:0;direction:ltr;unicode-bidi:isolate}
.quran-flow .quran-ayah-no::before{content:none}

/* Full-width reader and modal side index. */
.quran-layout{display:block}.quran-reader{width:100%}.quran-index:not([open]){display:none}.quran-index[open]{position:fixed;inset:0 auto 0 0;inset-inline-start:0;inset-inline-end:auto;top:0;bottom:0;margin:0;width:min(390px,calc(100% - 20px));height:100dvh;max-width:none;max-height:none;border-radius:0;border:0;border-inline-end:1px solid var(--line);color:var(--text);background:var(--paper);padding:22px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 40px #0003;animation:drawer-in .2s ease-out}.quran-index[open]::backdrop{background:#101a1690;backdrop-filter:blur(2px)}.quran-index-head{flex-wrap:nowrap}.quran-index-head h2{flex:1}.quran-index .quran-list{flex:1;min-height:0;max-height:none;display:grid;grid-template-columns:1fr;align-content:start;overflow:auto}.quran-index .quran-resume{margin-bottom:10px;white-space:normal}.quran-index-open{overflow:hidden}.quran-listen-tools{flex-wrap:wrap}.quran-index input{flex-shrink:0}@keyframes drawer-in{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}html[dir=rtl] .quran-index[open]{inset-inline-start:0;inset-inline-end:auto;left:auto;right:0}
/* Custom compact audio transport. */
.audio-dock{display:block;padding:12px max(18px,calc((100vw - 1160px)/2)) max(12px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border-top:1px solid var(--line);max-height:65dvh;overflow:auto}.modern-player{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1.4fr) auto;gap:12px 24px;align-items:center}.player-identity{display:flex;align-items:center;gap:12px;min-width:0}.player-art{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(145deg,var(--green-deep),var(--green));color:#fff;border:1px solid var(--gold)}.player-art .inline-icon svg,.player-art .islamicon-image{width:30px;height:30px;filter:brightness(0) invert(1)}.player-info{min-width:0;line-height:1.55}.player-info strong,.player-info small,.player-status{display:block}.player-info strong{font-size:17px;color:var(--accent)}.player-info small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-status{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.player-main{display:grid;gap:5px;min-width:0}.player-controls,.player-actions{display:flex;align-items:center;justify-content:center;gap:10px}.player-controls{direction:ltr}.player-play,.player-icon{display:grid;place-items:center;border:0;cursor:pointer;color:var(--accent);background:transparent;padding:0;flex-shrink:0}.player-icon{width:36px;height:36px;border-radius:10px}.player-icon:hover{background:var(--soft)}.player-play{height:48px;width:48px;border-radius:50%;background:var(--green);color:white;box-shadow:0 4px 12px #166a4638}.player-play svg{width:26px;height:26px}.player-play .pause-shape,.player-play.is-playing .play-shape{display:none}.player-play.is-playing .pause-shape{display:inline}.player-icon .sound-muted,.player-icon[aria-pressed=true] .sound-waves{display:none}.player-icon[aria-pressed=true] .sound-muted{display:inline}.player-timeline{display:flex;align-items:center;gap:9px;min-width:0}.player-timeline time{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}.modern-player input[type=range]{appearance:none;-webkit-appearance:none;height:5px;border:0;border-radius:99px;background:linear-gradient(to right,var(--accent) 0 var(--range-progress,0%),var(--line) var(--range-progress,0%) 100%);cursor:pointer;margin:8px 0;min-width:0}.modern-player input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;background:var(--accent);border-radius:50%;border:1px solid var(--paper)}.modern-player input[type=range]::-moz-range-thumb{width:12px;height:12px;background:var(--accent);border-radius:50%;border:1px solid var(--paper)}#audio-seek{flex:1;width:100%}#audio-volume{width:65px}.player-actions{gap:6px}.player-settings-toggle{display:flex;width:auto;padding:0 9px;gap:5px;border:1px solid var(--line);font-size:12px}.player-settings-toggle[aria-expanded=true]{background:var(--soft)}.player-settings{grid-column:1/-1;display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr) minmax(0,1fr) auto;gap:10px;align-items:end;border-top:1px solid var(--line);padding-top:10px}.player-source{font-size:11px;white-space:nowrap;align-self:end;padding-bottom:8px}.audio-dock .player-settings #audio-track-label{grid-column:auto;margin:0}.player-retry{grid-column:1/-1;justify-self:start}.audio-dock #audio-status{display:block;margin:0;font-size:11px}.audio-dock #quran-audio{display:none!important}.modern-player button:disabled,.modern-player input:disabled{opacity:.45;cursor:default}.player-actions .dock-close{width:34px;height:34px}.audio-dock-open .quran-flow .quran-ayah{scroll-margin-bottom:calc(var(--audio-dock-height,120px) + 20px)}
@media(max-width:850px){.modern-player{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.player-main{grid-column:1/-1;grid-row:2}.player-identity{grid-column:1;grid-row:1}.player-actions{grid-column:2;grid-row:1}.player-art{height:44px;width:44px;border-radius:12px}.player-art .inline-icon svg,.player-art .islamicon-image{width:24px;height:24px}.player-settings{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.player-source{grid-column:1/-1}.player-play{width:42px;height:42px}.player-main{gap:2px}}@media(max-width:480px){.audio-dock{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.player-actions{gap:3px}.player-actions #audio-volume{display:none}.player-settings-toggle span{display:none}.player-settings-toggle{padding:0;width:34px;justify-content:center}.player-info strong{font-size:15px}.player-info small{font-size:11px}.player-identity{gap:7px}.player-art{width:38px;height:38px}.player-actions .player-icon{width:32px}.player-settings{grid-template-columns:1fr}.player-status{font-size:10px}.quran-index[open]{padding:15px}}@media(prefers-reduced-motion:reduce){.quran-index[open]{animation:none}}

/* Verse-synchronised reader */
.quran-flow .quran-basmala{display:block;text-align:center;text-align-last:center;margin:0 0 .65em;padding:.1em 0;font:inherit;line-height:1.9;scroll-margin-top:145px;}
.quran-flow .quran-ayah.is-playing-ayah{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:inset 0 -2px 0 var(--gold);}
.quran-top{position:fixed;z-index:35;inset-inline-end:18px;bottom:calc(var(--audio-dock-height,0px) + 18px);width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;background:var(--green);color:white;box-shadow:0 4px 18px #0002;cursor:pointer}.quran-top[hidden]{display:none}.player-verse{display:block;font-size:12px;color:var(--accent);font-weight:700}.player-verse[hidden]{display:none}.follow-option{display:flex!important;align-items:center;gap:8px;grid-column:1/-1;font-size:12px;color:var(--accent)}.follow-option input{width:16px;height:16px;accent-color:var(--green)}.quran-selection-head{flex-wrap:wrap}.quran-selection-head #ayah-listen{font-size:12px}.tafsir-dialog .tafsir-ayah-text{font-family:'Qoout Uthmani','Amiri Quran',serif}

@font-face{font-family:'Qoout Madinah Hafs';src:local('KFGQPC Uthmanic Script HAFS'),url('https://raw.githubusercontent.com/mustafa0x/qpc-fonts/f93bf5f3/various-woff2/UthmanicHafs1%20Ver09.woff2') format('woff2');font-display:swap}
.quran-flow,#tafsir-ayah-text{font-family:'Qoout Madinah Hafs','Qoout Uthmani','Amiri Quran','Amiri',serif}

/* Keep the original Quran Unicode text intact, including open tanwin and waqf marks. */
.quran-compatible-word{font-family:'Amiri Quran','Amiri','Noto Naskh Arabic',serif;font-size:inherit;line-height:inherit;font-weight:inherit;letter-spacing:normal;}
.quran-flow .quran-ayah.is-saved{background:color-mix(in srgb,var(--gold) 19%,transparent);padding:0;}
.quran-flow .quran-ayah.is-playing-ayah{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:inset 0 -2px 0 var(--gold);}
.quran-flow .quran-ayah:focus:not(:focus-visible){outline:none;}

/* Continuous site shell: only the selected view is displayed; the audio dock is never remounted. */
main[data-page-view][hidden]{display:none!important;}
@media(hover:hover) and (pointer:fine){.quran-flow .quran-ayah:not(.is-playing-ayah):not(.is-saved):hover{background:color-mix(in srgb,var(--accent) 12%,transparent);}}
.quran-listen-tools{align-items:center;gap:10px;}.quran-listen-tools .quran-jump{display:flex;align-items:center;flex-wrap:nowrap;gap:7px;margin:0;padding:0;font-size:13px;}.quran-listen-tools .quran-jump select{margin:0;min-width:57px;width:auto;padding:7px 9px;max-width:95px;}.quran-listen-tools .quran-jump label{white-space:nowrap;}.quran-listen-tools .quran-jump .button{min-height:42px;}
@media(max-width:600px){.quran-listen-tools{gap:6px;}.quran-listen-tools>.button{padding:7px 9px;min-height:40px;font-size:12px;}.quran-listen-tools .quran-jump{gap:4px;font-size:11px;}.quran-listen-tools .quran-jump select{min-width:45px;padding:5px;}.quran-listen-tools .quran-jump .button{padding:5px 8px;min-height:40px;font-size:11px;}}

/* Audio settings: auto-follow stays alongside the reciter, not in a full-width row. */
.audio-dock .player-settings{grid-template-columns:minmax(0,1fr) minmax(0,2fr) max-content auto;align-items:end;column-gap:12px}
.audio-dock .player-settings .follow-option{grid-column:auto;display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;align-self:end;min-height:43px;gap:8px;white-space:nowrap;font-size:12px;cursor:pointer}
.audio-dock .player-settings .follow-option input{flex:0 0 16px;width:16px;height:16px;margin:0;cursor:pointer}
.audio-dock .player-settings .follow-option span{min-width:0}
.audio-dock .player-settings .player-source{grid-column:4;grid-row:1;justify-self:end;margin:0;align-self:end;padding-bottom:10px}
.audio-dock .player-settings #audio-track-label{grid-column:1/-1;grid-row:2}
@media(max-width:850px){
 .audio-dock .player-settings{grid-template-columns:minmax(0,1fr) minmax(0,2fr) max-content;column-gap:8px}
 .audio-dock .player-settings .player-source{grid-column:1/-1;grid-row:auto;padding-bottom:0}
}
@media(max-width:600px){
 .audio-dock .player-settings{grid-template-columns:minmax(0,1fr) minmax(0,auto);gap:8px}
 .audio-dock .player-settings>label:first-child{grid-column:1/-1}
 .audio-dock .player-settings .follow-option{font-size:11px;white-space:normal;max-width:145px;min-height:40px;line-height:1.5}
 .audio-dock .player-settings #audio-track-label{grid-row:auto}
}

/* Primary app download lives in the hero; Play is a non-clickable preview until configured. */
.hero .hero-play{gap:7px;white-space:nowrap}.hero .hero-play svg{width:21px;height:21px}.hero .hero-play[aria-disabled=true]{opacity:1;color:var(--muted);cursor:default}.hero .hero-play .play-brand{direction:ltr;unicode-bidi:isolate}.hero #download-note{display:block;color:var(--muted);margin-top:8px;font-size:12px}
/* Linked features and dedicated radio/library pages */
.support-grid.support-single{max-width:none;width:100%}.feature-link{display:flex;flex-direction:column;position:relative;min-width:0}.feature-link:hover{border-color:var(--gold)}.feature-arrow{margin-top:auto;padding-top:12px;color:var(--accent);font-size:20px;text-align:end;line-height:1}.feature-link:dir(ltr) .feature-arrow{transform:scaleX(-1);text-align:start}.new-service .section-head h1{margin:0;font-size:clamp(30px,5vw,46px)}.new-service .section-head{align-items:end}.service-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(20px,4vw,38px);background:linear-gradient(120deg,#104e35,#166a46);color:#fff;border:1px solid var(--gold);border-radius:24px;margin-bottom:24px}.service-hero .kicker{color:#e8cc93}.service-hero .primary{background:#fffdf8;color:#104e35}.service-hero h2{font-size:clamp(22px,3vw,32px)}.service-toolbar,.service-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-block:14px}.service-toolbar input,.service-toolbar select{font:inherit;color:var(--text);background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0;max-width:100%}.service-toolbar input[type=search]{flex:1 1 240px}.service-toolbar select{flex:1 1 200px}.service-toolbar input[type=number]{width:85px}.service-toolbar .button,.service-tabs .button{min-height:42px;padding:8px 14px;font-size:13px;color:var(--text)}.service-tabs [aria-pressed=true]{background:var(--accent);color:var(--paper);border-color:var(--accent)}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.service-card{font:inherit;text-align:start;color:var(--text);cursor:pointer;min-width:0;display:flex;gap:12px;align-items:center;width:100%;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow-wrap:anywhere}.service-card:hover,.service-card[aria-pressed=true]{border-color:var(--gold);background:var(--soft)}.service-card strong{display:block;line-height:1.6}.service-card small{display:block;color:var(--muted);font-size:12px}.service-card .feature-icon{flex:0 0 42px;width:42px;height:42px;margin:0}.service-card .card-label{flex:1;min-width:0}.service-source{margin-top:20px;color:var(--muted);font-size:13px}.service-source a{color:var(--accent);text-decoration:underline}.service-reader{background:var(--paper);border:1px solid var(--line);padding:clamp(15px,3vw,28px);border-radius:22px;margin-top:18px}.service-reader-heading{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:12px}.service-reader-heading h2{font-size:clamp(23px,3vw,30px);color:var(--accent)}.book-text{white-space:pre-wrap;font-size:clamp(19px,2.4vw,25px);line-height:2.15;overflow-wrap:anywhere;padding:20px 0;min-height:150px}.book-nav{justify-content:space-between}.book-results{max-height:250px;overflow:auto;display:grid;gap:6px}.book-results button{background:var(--bg);border:1px solid var(--line);color:var(--text);border-radius:10px;padding:8px;text-align:start}.radio-dock{position:fixed;inset:auto 0 0;z-index:32;background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -8px 35px #0002;padding:12px max(16px,calc((100vw - 1160px)/2)) max(12px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.radio-dock-inner,.radio-dock-info,.radio-dock-controls,.radio-volume-label{display:flex;align-items:center;gap:12px;min-width:0}.radio-dock-inner{justify-content:space-between;flex-wrap:wrap}.radio-dock-info{flex:1 1 230px}.radio-dock-info strong,.radio-dock-info small{display:block;overflow-wrap:anywhere}.radio-dock-info small{color:var(--muted);font-size:12px}.radio-live-dot{width:12px;height:12px;border-radius:50%;background:var(--gold);flex-shrink:0}.radio-dock-controls .button{min-height:38px;padding:5px 14px;color:var(--text)}.radio-dock-controls .primary{color:var(--paper)}.radio-volume-label input{width:75px;accent-color:var(--accent)}body.radio-dock-open{padding-bottom:var(--radio-dock-height,100px)}.radio-dock-open .quran-top{bottom:calc(var(--radio-dock-height,100px) + 16px)}.tas-panel{max-width:580px;margin:auto;text-align:center}.tas-panel .service-toolbar{justify-content:space-between}.tas-count{display:grid;place-content:center;gap:4px;border:4px solid var(--gold);border-radius:50%;width:190px;height:190px;background:var(--accent);color:var(--paper);margin:20px auto}.tas-count strong{font-size:42px}.tas-panel #tas-reset{margin-top:14px}.nav nav{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.nav{height:auto;min-height:78px;padding-block:10px}@media(max-width:900px){.nav{display:grid;grid-template-columns:1fr auto;gap:6px 12px}.nav nav{grid-column:1/-1;grid-row:2;gap:5px 15px}.nav .controls{grid-column:2;grid-row:1}html{scroll-padding-top:145px}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.service-grid{grid-template-columns:minmax(0,1fr)}.service-hero{align-items:start;flex-direction:column}.nav nav{font-size:12px;gap:2px 10px}.new-service .section-head{display:block}.new-service .section-head p{margin-top:10px}.radio-dock-controls{gap:8px}.radio-dock-info{flex-basis:100%}.service-toolbar .button{padding-inline:10px}}

/* Shared visual language: the same local gold motif used in the home hero.
   Keep long-form Quran, dhikr and book text on plain, readable surfaces. */
:where(.service-hero,.service-card,.feature,.dhikr-category,.daily-widget,.prayer-tile,.new-service .section-head){position:relative;isolation:isolate;overflow:hidden;}
:where(.service-hero,.service-card,.feature,.dhikr-category,.daily-widget,.prayer-tile,.new-service .section-head)::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("assets/gold-pattern.svg") center/84px;opacity:.21;mask-image:linear-gradient(to left,#000 0%,transparent 66%);}
html[dir=rtl] :where(.service-hero,.service-card,.feature,.dhikr-category,.daily-widget,.prayer-tile,.new-service .section-head)::before{mask-image:linear-gradient(to right,#000 0%,transparent 66%);}
.service-hero::before,.daily-dhikr::before{opacity:.43;background-size:96px;}
html[data-theme=dark] :where(.service-card,.feature,.dhikr-category,.daily-widget,.prayer-tile,.new-service .section-head)::before{opacity:.19;}
html[data-theme=dark] .daily-dhikr::before{opacity:.38;}
.new-service .section-head{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:clamp(18px,3vw,30px);gap:18px;margin-bottom:24px;}
.new-service .section-head h1{color:var(--accent);}
.service-card,.dhikr-category{transition:border-color .18s,background-color .18s,transform .18s;}
@media(hover:hover) and (pointer:fine){.service-card:hover,.dhikr-category:hover{transform:translateY(-2px);}}
.service-card .feature-icon,.dhikr-category .feature-icon{background:var(--soft);color:var(--accent);}
.service-card[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
/* Button contrast follows the actual surface, not the selected theme. */
html[data-theme] .service-hero .primary,.service-hero .primary{background:#fffdf8;color:#104e35;border-color:#e8cc93;box-shadow:none;}
.service-hero .primary svg{color:inherit;}
html[data-theme] .service-hero .primary .islamicon-image,.service-hero .primary .islamicon-image{filter:invert(30%) sepia(35%) saturate(1050%) hue-rotate(103deg) brightness(78%);}
html[data-theme] .radio-dock-controls .primary,.radio-dock-controls .primary{color:var(--on-primary);}
html[data-theme] .prayer-tile.is-next .islamicon-image,.prayer-tile.is-next .islamicon-image{filter:invert(30%) sepia(35%) saturate(1050%) hue-rotate(103deg) brightness(91%);}
html[data-theme=dark] .prayer-tile.is-next .islamicon-image{filter:invert(85%) sepia(17%) saturate(550%) hue-rotate(83deg) brightness(105%);}
/* Radio player shares Quran player controls and accessible state. */
#radio-toggle .pause-shape,#radio-cairo .pause-shape,#radio-toggle[aria-pressed=true] .play-shape,#radio-cairo[aria-pressed=true] .play-shape{display:none;}
#radio-toggle[aria-pressed=true] .pause-shape,#radio-cairo[aria-pressed=true] .pause-shape{display:inline;}
#radio-toggle{width:44px;height:44px;flex-shrink:0;color:white;}
.radio-dock-controls{gap:10px;flex-wrap:wrap;}
.radio-volume-label{gap:5px;direction:ltr;}
.radio-volume-label input{width:clamp(64px,8vw,110px);cursor:pointer;margin:0;}
#radio-mute{color:var(--accent);}
#radio-mute svg{width:23px;height:23px;}
#radio-stop{border-radius:11px;}
.nav nav a[aria-current=page]{color:var(--accent);text-decoration:none;}
@media(max-width:550px){.radio-dock-controls{width:100%;justify-content:space-between;gap:8px;}.new-service .section-head{padding:18px;}.new-service .section-head h1{font-size:clamp(25px,7vw,36px);}.service-hero .button{max-width:100%;}.service-card{padding:14px;}}

/* Library: bounded, responsive list actions. */
.library-actions{justify-content:center;flex-wrap:wrap;margin-top:18px}.library-actions[hidden],.library-actions button[hidden]{display:none!important}.library-actions:has(>button[hidden]+button[hidden]){display:none}.library-actions button{white-space:normal;max-width:100%}

/* Home-only Android visual identity and compact book contents. */
#page-index .hijri-number{color:var(--accent)}
#page-index .daily-prayer.prayer-soon{--prayer-alert:#b34e4e}html[data-theme=dark] #page-index .daily-prayer.prayer-soon{--prayer-alert:#ef9691}
#page-index .prayer-soon #home-prayer-countdown,#page-index .prayer-soon #home-next-prayer-time{color:var(--prayer-alert)}
#page-index .prayer-soon #home-prayer-progress{background:var(--prayer-alert)}
#page-index .qoout-home-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:inherit;flex-shrink:0;line-height:1}
#page-index .qoout-home-icon svg{display:block;width:100%;height:100%}
#page-index .qoout-material{font-size:inherit;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}
#page-index :is(.feature-icon,.shot-icon) .qoout-home-icon{width:29px;height:29px;font-size:29px}
#page-index .daily-dhikr-top .qoout-home-icon{width:26px;height:26px;font-size:26px}
#page-index .daily-location .qoout-home-icon{width:18px;height:18px;font-size:18px}
#page-index .float-label .qoout-home-icon{width:21px;height:21px;font-size:21px;color:var(--gold-text)}
#page-index .github-download{gap:12px;text-align:start;min-height:58px}#page-index .github-download svg{width:28px;height:28px;flex:none;color:inherit}#page-index .github-copy{display:flex;flex-direction:column;line-height:1.35}#page-index .github-source{font-size:11px;font-weight:500;opacity:.9}
#library-reader .service-toolbar #book-toc{flex:0 0 auto;max-width:100%;white-space:nowrap}
#book-toc-dialog{width:min(560px,calc(100% - 28px));max-height:min(78dvh,620px);padding:20px;overflow:hidden}#book-toc-dialog[open]{display:flex;flex-direction:column;gap:12px}
.book-toc-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.book-toc-head h2{font-size:20px;color:var(--accent);margin:0}.book-toc-head button{padding:6px 14px;min-height:36px}
#book-toc-search{width:100%;min-width:0;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}
.book-toc-list{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:5px;max-height:50dvh;scrollbar-color:var(--accent) var(--soft)}
.toc-entry{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;width:100%;text-align:start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font-size:14px;line-height:1.65;flex-shrink:0}.toc-entry span{min-width:0;overflow-wrap:anywhere}.toc-entry small{flex-shrink:0;color:var(--gold-text);font-variant-numeric:tabular-nums}.toc-entry:hover,.toc-entry[aria-current]{border-color:var(--accent);background:var(--soft)}
@media(max-width:480px){#book-toc-dialog{padding:14px}.book-toc-head h2{font-size:17px}.toc-entry{font-size:13px;padding:9px}}

/* Mobile navigation drawer: compact header, native modal and one active marker. */
#mobile-nav-drawer{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;margin:0;width:min(330px,88vw);max-width:none;height:100vh;height:100dvh;max-height:none;padding:18px 16px max(20px,env(safe-area-inset-bottom));border:0;border-inline-end:1px solid var(--line);background:var(--paper);color:var(--text);box-shadow:0 12px 55px #0004;overflow:auto;overscroll-behavior:contain;}
#mobile-nav-drawer::backdrop{background:#101a1680;}
.mobile-nav-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 17px;border-bottom:1px solid var(--line);color:var(--accent);font-size:20px;font-weight:800;}
.mobile-nav-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);}
#mobile-nav-drawer nav{display:flex;flex-direction:column;gap:7px;margin-top:18px;}
#mobile-nav-drawer nav a{display:flex;align-items:center;min-height:48px;padding:10px 14px;border-radius:10px;border-inline-start:3px solid transparent;color:var(--text);font-weight:700;font-size:15px;}
#mobile-nav-drawer nav a[aria-current=page]{background:var(--soft);color:var(--accent);border-inline-start-color:var(--gold);text-decoration:none;}
#mobile-nav-drawer nav a:hover{background:var(--soft);color:var(--accent);}
body.mobile-nav-open{overflow:hidden;}
@media(max-width:900px){.nav:has(#mobile-menu:not([hidden])){display:flex;align-items:center;justify-content:space-between;min-height:70px;height:auto;gap:8px;padding-block:10px;}.nav:has(#mobile-menu:not([hidden])) .controls{gap:6px;flex-shrink:0;}.nav:has(#mobile-menu:not([hidden])) .controls button{min-width:36px;padding-inline:7px;}.nav:has(#mobile-menu:not([hidden])) .brand{gap:7px;}html:has(#mobile-menu:not([hidden])){scroll-padding-top:85px;}.dhikr-reader{scroll-margin-top:85px;}}
@media(max-width:360px){.nav:has(#mobile-menu:not([hidden])){width:calc(100% - 24px);}.nav:has(#mobile-menu:not([hidden])) .brand-icon{width:38px;height:38px;}.nav:has(#mobile-menu:not([hidden])) .brand{font-size:20px;}.nav:has(#mobile-menu:not([hidden])) .controls{gap:4px;}}

/* Motion refresh: restrained, GPU-friendly movement, same palette and no extra requests. */
:root{--motion-ease:cubic-bezier(.22,.72,.22,1);--motion-fast:180ms;--motion-normal:320ms;}
#mobile-nav-drawer{--drawer-offset:-105%;inset:0 auto 0 0;width:min(350px,89vw);height:100dvh;padding:0;border:none;border-radius:0 25px 25px 0;box-shadow:8px 0 50px #0003;overflow:hidden;background:var(--paper);}
#mobile-nav-drawer[data-side=right]{--drawer-offset:105%;inset:0 0 0 auto;border-radius:25px 0 0 25px;box-shadow:-8px 0 50px #0003;}
#mobile-nav-drawer[open]{display:flex;flex-direction:column;animation:qoout-drawer-in 360ms var(--motion-ease) both;}
#mobile-nav-drawer[open]::backdrop{background:#101a168a;backdrop-filter:blur(3px);animation:qoout-backdrop-in 320ms ease both;}
#mobile-nav-drawer[open].is-closing{animation:qoout-drawer-out 220ms ease-in both;}
#mobile-nav-drawer[open].is-closing::backdrop{animation:qoout-backdrop-out 220ms ease-in both;}
@keyframes qoout-drawer-in{from{transform:translateX(var(--drawer-offset))}to{transform:translateX(0)}}
@keyframes qoout-drawer-out{from{transform:translateX(0)}to{transform:translateX(var(--drawer-offset))}}
@keyframes qoout-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes qoout-backdrop-out{from{opacity:1}to{opacity:0}}
.mobile-nav-heading{position:relative;isolation:isolate;overflow:hidden;flex-shrink:0;min-height:122px;padding: max(21px,env(safe-area-inset-top)) 20px 22px;color:#fff;border:0;background:linear-gradient(120deg,#104e35,#166a46);}
.mobile-nav-heading::before{content:"";position:absolute;inset:0;z-index:-1;background:url('assets/gold-pattern.svg') center/78px;opacity:.32;pointer-events:none;}
.mobile-nav-brand{display:flex;align-items:center;gap:12px;line-height:1.25;min-width:0;}
.mobile-nav-logo{width:53px;height:53px;display:grid;place-items:center;border:1px solid #e8cc9380;background:#ffffff14;border-radius:16px;flex-shrink:0;}
.mobile-nav-logo img{width:37px;height:37px;}
#mobile-nav-title{font-size:25px;font-weight:800;display:block;}
.mobile-nav-brand small{display:block;color:#e8cc93;font-size:12px;letter-spacing:1.6px;margin-top:5px;}
.mobile-nav-close{background:#ffffff16;border-color:#ffffff35;color:#fff;flex-shrink:0;transition:background var(--motion-fast),transform var(--motion-fast);}
.mobile-nav-close:hover{background:#ffffff2e;}
.mobile-nav-close:active{transform:scale(.93);}
.mobile-nav-caption{font-size:11px;color:var(--muted);font-weight:800;padding:18px 23px 3px;flex-shrink:0;}
#mobile-nav-drawer nav{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:5px;margin:0;padding:7px 13px 15px;scrollbar-width:thin;}
#mobile-nav-drawer nav a{position:relative;flex-shrink:0;min-height:56px;gap:13px;border:1px solid transparent;border-radius:14px;padding:9px 13px;color:var(--text);text-decoration:none;transition:background var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast);}
#mobile-nav-drawer nav a::before{content:"";width:23px;height:23px;flex:0 0 23px;background:currentColor;mask:var(--drawer-icon) center/contain no-repeat;}
#mobile-nav-drawer nav a::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);margin-inline-start:auto;opacity:0;transition:opacity var(--motion-fast);}
#mobile-nav-drawer nav a[aria-current=page]{border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));background:color-mix(in srgb,var(--accent) 10%,var(--paper));color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 4%,transparent);}
#mobile-nav-drawer nav a[aria-current=page]::after{opacity:1;}
#mobile-nav-drawer nav a:active{transform:scale(.98);}
#mobile-nav-drawer[open]:not(.is-closing) nav a{animation:qoout-menu-item 300ms var(--motion-ease) both;animation-delay:calc(45ms + var(--drawer-order,0)*23ms);}
@keyframes qoout-menu-item{from{opacity:.2;translate:0 9px}to{opacity:1;translate:0 0}}
.mobile-nav-footer{display:flex;align-items:center;gap:9px;flex-shrink:0;border-top:1px solid var(--line);padding:15px 20px max(17px,env(safe-area-inset-bottom));font-size:12px;color:var(--muted);}
.mobile-nav-footer-mark{width:8px;height:8px;border-radius:50%;background:var(--gold);}
#mobile-menu{transition:background var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast);}
#mobile-menu[aria-expanded=true]{color:var(--accent);border-color:var(--accent);background:var(--soft);}
#mobile-menu:active{transform:scale(.92);}
/* Small motions only on visual elements, never on a page container or playing audio node. */
.button,.controls button,.feature-link,.service-card,.dhikr-category,.quran-list button,.prayer-tile,.player-icon,.player-play,.radio-dock-controls button{transition:transform var(--motion-fast) var(--motion-ease),background-color var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-fast);}
@media(hover:hover) and (pointer:fine){.feature-link:hover,.service-card:hover,.dhikr-category:hover{transform:translateY(-4px);box-shadow:0 10px 25px #00000012;}.controls button:hover,.player-icon:hover{background:var(--soft);color:var(--accent);}}
.button:not([aria-disabled=true]):active,.controls button:active,.player-play:active,.radio-dock-controls button:active{transform:scale(.97);}
@keyframes qoout-dock-in{from{opacity:.45;translate:0 16px}to{opacity:1;translate:0 0}}
.audio-dock:not([hidden]),#radio-dock:not([hidden]){animation:qoout-dock-in 260ms var(--motion-ease) both;}
@media(prefers-reduced-motion:reduce){#mobile-nav-drawer[open],#mobile-nav-drawer[open]::backdrop,#mobile-nav-drawer[open] nav a,.audio-dock:not([hidden]),#radio-dock:not([hidden]){animation:none!important;}*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;}}

/* Stable library catalog: no re-entry motion or layout shifts as titles/authors arrive. */
#library-list .service-card{height:120px;min-height:120px;max-height:120px;animation:none!important;transition:background-color .18s,border-color .18s,box-shadow .18s;transform:none!important;}
#library-list .card-label{min-width:0;overflow:hidden;}
#library-list .card-label strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.6;max-height:3.2em;}
#library-list .card-label small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6;}
#library-status{min-height:3.6em;line-height:1.8;overflow-wrap:anywhere;}
@media(max-width:480px){#library-status{min-height:5.4em;}}

/* Shared inner-page layout: based on the original dhikr screen, with the home motif. */
main[data-page-view]:not([data-page-view="index"]) > .unified-page {
  min-height:calc(100vh - 160px);
  background-color:var(--bg);
  background-image:linear-gradient(90deg, color-mix(in srgb,var(--bg) 42%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
  background-size:100% 100%,96px 96px;
  background-repeat:no-repeat,repeat;
}
html[dir=ltr] main[data-page-view]:not([data-page-view="index"]) > .unified-page {
  background-image:linear-gradient(270deg,color-mix(in srgb,var(--bg) 42%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
}
html[data-theme=dark] main[data-page-view]:not([data-page-view="index"]) > .unified-page {
  background-image:linear-gradient(90deg,color-mix(in srgb,var(--bg) 72%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
}
html[data-theme=dark][dir=ltr] main[data-page-view]:not([data-page-view="index"]) > .unified-page {
  background-image:linear-gradient(270deg,color-mix(in srgb,var(--bg) 72%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
}
.unified-page > .wrap {width:min(1160px,calc(100% - 48px));}
.unified-page .unified-heading {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;background:transparent;border:0;border-radius:0;padding:0;margin:0 0 34px;overflow:visible;}
.unified-page .unified-heading::before {content:none;}
.unified-page .unified-heading h2 {font-size:clamp(27px,4vw,40px);line-height:1.5;letter-spacing:-.6px;margin:8px 0 0;color:var(--text);}
.unified-page .unified-heading p {max-width:350px;color:var(--muted);font-size:15px;line-height:1.8;margin:0;}
.unified-page .policy {max-width:760px;margin-inline:auto;}
/* Cairo radio is a slim inline feature, not a second hero. */
#radio-featured.radio-compact {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;min-height:0;padding:15px 20px;margin:0 0 20px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:18px;box-shadow:none;}
#radio-featured.radio-compact::before {opacity:.19;background-size:96px;}
#radio-featured > div {min-width:0;}
#radio-featured h2 {font-size:clamp(17px,2.2vw,23px);line-height:1.5;letter-spacing:0;margin:3px 0 0;color:var(--text);}
#radio-featured .radio-live-label {display:inline-flex;gap:7px;align-items:center;color:var(--accent);font-size:12px;}
#radio-featured .radio-live-label::before {content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0;}
html[data-theme] #radio-featured #radio-cairo {background:var(--paper);color:var(--accent);border:1px solid var(--line);box-shadow:none;min-height:42px;padding:8px 15px;white-space:nowrap;flex-shrink:0;}
html[data-theme] #radio-featured #radio-cairo:hover {border-color:var(--accent);background:var(--soft);}
#radio-featured #radio-cairo svg {color:inherit;fill:currentColor;}
@media(max-width:700px){.unified-page > .wrap{width:calc(100% - 32px)}.unified-page .unified-heading{margin-bottom:22px;}}
@media(max-width:480px){#radio-featured.radio-compact{padding:12px;gap:8px;}#radio-featured #radio-cairo{padding:7px 9px;font-size:12px;min-height:38px;gap:5px;}#radio-featured #radio-cairo svg{width:17px;height:17px;}}

/* Prayer page: match the daily dashboard's dates and countdown. */
#page-prayers .hijri-today{color:var(--gold-text)}
#page-prayers .hijri-number{color:var(--accent)}
html[data-theme] #page-prayers .next-prayer{background:var(--paper);color:var(--text);border:1px solid var(--line);--prayer-alert:#b34e4e;}
html[data-theme=dark] #page-prayers .next-prayer{--prayer-alert:#ef9691}
#page-prayers .next-prayer::after{opacity:.12}
#page-prayers .next-prayer span{color:var(--muted)}
#page-prayers #next-prayer-time,#page-prayers .prayer-tile time{color:var(--accent)}
#page-prayers .prayer-tile.is-past time{color:var(--muted)}
#page-prayers #prayer-countdown{color:var(--accent);font-weight:500;transition:color .2s ease}
#page-prayers .progress-track{background:var(--soft);height:7px}
#page-prayers #prayer-progress{background:var(--accent);transition:background-color .2s ease}
#page-prayers .prayer-soon #prayer-countdown,#page-prayers .prayer-soon #next-prayer-time{color:var(--prayer-alert)}
#page-prayers .prayer-soon #prayer-progress{background:var(--prayer-alert)}
@media(prefers-reduced-motion:reduce){#page-prayers #prayer-countdown,#page-prayers #prayer-progress{transition:none}}

/* Subtle neutral emphasis for the two featured widgets; preserve their original layout. */
html{--featured-surface:#f1efea;scrollbar-gutter:stable}
html[data-theme=dark]{--featured-surface:#201e19}
#page-index .float-label .qoout-home-icon,#page-index .float-label svg{color:var(--accent)}
html[data-theme] #radio-featured.radio-compact,html[data-theme] #page-prayers .next-prayer{background:var(--featured-surface)}

/* Quran reader controls: compact, quiet, directional and theme-aware. */
#page-quran .quran-listen-tools {gap:10px;align-items:center;}
#page-quran #audio-open {
  min-height:44px;padding:8px 16px;border-radius:12px;
  background:color-mix(in srgb,var(--accent) 9%,var(--paper));
  border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
  color:var(--accent);box-shadow:none;font-size:13px;white-space:nowrap;
  gap:9px;
}
#page-quran #audio-open .inline-icon {
  display:grid;place-items:center;width:27px;height:27px;
  border-radius:8px;background:color-mix(in srgb,var(--accent) 11%,transparent);
}
#page-quran #audio-open .inline-icon svg,#page-quran #audio-open .inline-icon img {width:18px;height:18px;}
#page-quran #audio-open:hover,#page-quran #audio-open[aria-expanded=true] {
  border-color:var(--accent);background:color-mix(in srgb,var(--accent) 17%,var(--paper));
}
#page-quran .quran-pagination {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:18px;padding:16px 0 4px;border-top:1px solid var(--line);
}
#page-quran .quran-pagination .surah-nav-button {
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  min-height:46px;padding:8px 16px;min-width:0;max-width:100%;
  border:1px solid var(--line);border-radius:12px;background:var(--paper);
  color:var(--accent);font-size:13px;box-shadow:none;
}
#page-quran .quran-pagination .surah-nav-next {
  background:color-mix(in srgb,var(--accent) 9%,var(--paper));
  border-color:color-mix(in srgb,var(--accent) 25%,var(--line));
}
#page-quran .quran-pagination .surah-nav-arrow {width:19px;height:19px;transition:transform .2s ease;}
html[dir=rtl] #page-quran .surah-nav-next .surah-nav-arrow,
html[dir=ltr] #page-quran .surah-nav-prev .surah-nav-arrow {transform:rotate(180deg);}
#page-quran .quran-pagination .surah-nav-button:hover:not(:disabled) {background:color-mix(in srgb,var(--accent) 15%,var(--paper));border-color:var(--accent);transform:translateY(-1px);}
#page-quran .quran-pagination .surah-nav-button:disabled {opacity:.38;transform:none;cursor:default;}
@media(max-width:560px){
  #page-quran .quran-listen-tools {gap:7px;}
  #page-quran #audio-open {padding:7px 10px;font-size:12px;min-height:42px;gap:6px;}
  #page-quran #audio-open .inline-icon {width:24px;height:24px;}
  #page-quran .quran-pagination {gap:8px;}
  #page-quran .quran-pagination .surah-nav-button {flex:1 1 0;padding:8px;gap:5px;font-size:12px;white-space:normal;}
}
@media(prefers-reduced-motion:reduce){#page-quran .quran-pagination .surah-nav-arrow{transition:none;}}

/* Launch fallback: a branded panel, not a fabricated app screenshot. */
.hero-art .placeholder .launch-brand{width:clamp(76px,10vw,126px);height:auto;border-radius:26%;margin-block:12px;display:block;object-fit:contain}
.hero-art .placeholder .launch-caption{max-width:90%;text-align:center;line-height:1.8}
#screens[hidden],#gallery figure[hidden]{display:none!important}

/* Final pre-release polish */
#page-prayers .prayer-top .kicker{color:var(--accent)}
.daily-location .location-pin,#prayer-gps .location-pin{width:18px;height:18px;flex:none;color:currentColor}
#audio-close.audio-close-text{width:auto;min-width:58px;height:36px;line-height:1.2;font-size:13px;font-weight:700;padding:0 12px;border-radius:10px;color:var(--accent);white-space:nowrap}
#audio-close.audio-close-text:hover{background:var(--soft);border-color:var(--accent)}
.privacy-credits a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.privacy-credits li{margin-block:6px}
@media(max-width:480px){#audio-close.audio-close-text{min-width:46px;padding-inline:7px;font-size:12px;height:34px}}

/* Light neutral palette and compact mobile drawer — UI-only refresh. */
html:not([data-theme=dark]) .hero::before{opacity:.25;}
html:not([data-theme=dark]) main[data-page-view]:not([data-page-view="index"]) > .unified-page{
 background-image:linear-gradient(90deg,color-mix(in srgb,var(--bg) 70%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
}
html:not([data-theme=dark])[dir=ltr] main[data-page-view]:not([data-page-view="index"]) > .unified-page{
 background-image:linear-gradient(270deg,color-mix(in srgb,var(--bg) 70%,transparent),var(--bg) 64%),url("assets/gold-pattern.svg");
}
#mobile-nav-drawer{width:min(320px,88vw);border-radius:0 20px 20px 0;background:var(--paper);box-shadow:6px 0 32px #0002;}
#mobile-nav-drawer[data-side=right]{border-radius:20px 0 0 20px;box-shadow:-6px 0 32px #0002;}
#mobile-nav-drawer[open]{animation-duration:180ms;animation-timing-function:cubic-bezier(.2,.75,.25,1);}
#mobile-nav-drawer[open]::backdrop{background:#11181566;backdrop-filter:none;animation-duration:150ms;}
#mobile-nav-drawer[open].is-closing,#mobile-nav-drawer[open].is-closing::backdrop{animation-duration:140ms;}
.mobile-nav-heading{min-height:0;padding:max(16px,env(safe-area-inset-top)) 18px 14px;background:transparent;color:var(--accent);border-bottom:1px solid var(--line);}
.mobile-nav-heading::before{content:none;}
.mobile-nav-brand{gap:10px;}
.mobile-nav-logo{width:40px;height:40px;border:0;border-radius:10px;background:#166a46;overflow:hidden;}
.mobile-nav-logo img{visibility:visible;display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;}
.mobile-nav-logo::after{content:none;}
#mobile-nav-title{font-size:21px;}
.mobile-nav-brand small{font-size:10px;color:var(--muted);letter-spacing:.7px;margin-top:3px;}
.mobile-nav-close{width:36px;height:36px;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:10px;}
.mobile-nav-close:hover{background:var(--soft);color:var(--accent);}
.mobile-nav-caption{font-size:12px;padding:15px 20px 5px;}
#mobile-nav-drawer nav{padding:6px 12px 14px;gap:4px;}
#mobile-nav-drawer nav a{min-height:50px;gap:12px;border:1px solid transparent;border-radius:11px;padding:8px 13px;font-size:14px;}
#mobile-nav-drawer nav a::before{width:21px;height:21px;flex-basis:21px;color:var(--muted);}
#mobile-nav-drawer nav a[aria-current=page]{background:color-mix(in srgb,var(--accent) 10%,var(--paper));border-color:transparent;box-shadow:none;color:var(--accent);}
#mobile-nav-drawer nav a[aria-current=page]::before{color:var(--accent);}
#mobile-nav-drawer nav a[aria-current=page]::after{background:var(--accent);width:6px;height:6px;}
#mobile-nav-drawer[open]:not(.is-closing) nav a{animation:none;}
.mobile-nav-footer{padding:12px 20px max(14px,env(safe-area-inset-bottom));}
.mobile-nav-footer-mark{background:var(--accent);}
@media(prefers-reduced-motion:reduce){#mobile-nav-drawer[open],#mobile-nav-drawer[open]::backdrop{animation:none!important;}}
