/* Added: oval section cards, thank-you notice, settings cards for fullscreen and focus. Uses the site's existing colour variables. */
.ocards{display:grid;gap:12px;margin-top:14px}
.ocard{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;min-height:64px;padding:14px 24px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--deep);font:inherit;font-size:19px;font-weight:700;text-align:center;text-decoration:none;transition:.15s}
a.ocard:hover{border-color:var(--teal);box-shadow:0 4px 14px rgba(20,92,80,.12)}
.ocard:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.ocard.locked{flex-direction:column;gap:2px;color:var(--mut);background:var(--learn-soft,#eef3f1);cursor:not-allowed;border-style:dashed}
.ocard.locked small{font-size:14px;font-weight:400}
.azhar-pick{display:grid;gap:12px;margin-top:16px}
.xnotice{position:fixed;top:12px;left:0;right:0;z-index:70;width:calc(100% - 24px);max-width:600px;margin-inline:auto;box-sizing:border-box;padding:22px 52px 18px 24px;background:var(--card);color:var(--ink);border:1.5px solid var(--gold);border-radius:16px;box-shadow:0 12px 30px rgba(20,92,80,.22);text-align:center;font-size:18px;line-height:1.9;font-weight:700;animation:xin .4s ease}
.xnotice .xx{position:absolute;top:2px;inset-inline-end:4px;min-width:44px;min-height:44px;border:none;background:none;color:var(--mut);font-size:16px;cursor:pointer}
@keyframes xin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.xnotice{animation:none}}
.xs-card ul{margin:8px 0 10px;padding-inline-start:20px;line-height:1.9;color:var(--ink)}
.xs-card .xs-btn{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--teal);border-radius:10px;background:var(--teal);color:#fff;font:inherit;font-size:15px;cursor:pointer;margin:6px 0}
.xs-card .xs-btn:disabled{opacity:.55;cursor:not-allowed}
.xs-card label.xs-row{display:flex;align-items:center;gap:10px;margin:10px 0;min-height:44px}
.xs-card .xs-limit{background:var(--warnbg);color:var(--warn);border-radius:10px;padding:10px 12px;line-height:1.8;font-size:14px}
html.azh-focus .pbanner,html.azh-focus #dhikrslot{display:none!important}
.ocard.locked .lnote{margin-top:6px;font-size:15px;font-weight:700;color:var(--deep);line-height:1.7}
/* Quiz header boxes: live timer and answered count. Sticky so they stay visible while scrolling. */
.qboxes{position:sticky;top:var(--xhead,56px);z-index:4;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:-4px 0 14px}
.qbox{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:8px 10px;background:var(--card);border:1.5px solid var(--teal);border-radius:14px;box-shadow:0 2px 8px rgba(20,92,80,.12);text-align:center}
.qbox .ql{font-size:13px;color:var(--mut);font-weight:700}
.qbox .qv{font-size:24px;color:var(--deep);font-variant-numeric:tabular-nums;direction:ltr}
/* sticky quiz boxes: html,body{overflow-x:hidden} makes body a scroll container so sticky never sticks; clip does not */
@supports (overflow-x:clip){html,body{overflow-x:clip}}
/* cards: same size, no status pills (subject/chapter grids) */
.grid .card{min-height:84px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.grid .card .pill.wait{display:none}
.xinfo{display:flex;gap:10px;margin:10px 0 4px}
.xinfo span{flex:1;text-align:center;background:var(--card);border:1.5px solid var(--teal);border-radius:12px;padding:8px 6px;font-weight:700;color:var(--deep);font-size:14px}
.xsubtop{text-align:center;margin:8px 0 14px}
.xtools{display:flex;gap:8px;align-items:center;margin:0 0 10px}
.xrel{border:1.5px solid var(--teal);background:var(--card);color:var(--deep);border-radius:10px;padding:4px 10px;font:inherit;font-weight:700;cursor:pointer}
.xhide-solved .qq.xsolved{display:none}
.xprev{display:block;width:100%;margin:14px 0;padding:12px;border-radius:999px;border:1.5px dashed var(--line);background:transparent;color:var(--mut);font:inherit;font-weight:700;opacity:.7;cursor:not-allowed}
/* welcome popup: verse / hadith card (heading + card). Text items keep the existing .wmsg style. */
.wbody{margin:0 0 20px;text-align:right}
.wbody .wmsg{margin:0}
.whead{font-size:16px;font-weight:800;color:var(--deep);margin:0 2px 8px}
.wcite{max-height:42vh;overflow-y:auto;padding:12px 14px;font-family:'Amiri','Noto Naskh Arabic',serif;font-size:19px;line-height:2.1;color:var(--deep);font-weight:600;background:#f6f1e2;border-radius:12px;border-inline-start:4px solid #c9a24b;overflow-wrap:anywhere}
.wcite.wverse{font-size:20px}
.wcard{max-height:92vh;overflow-y:auto}
html[data-theme=dark] .wcite{background:var(--learn-warm,#2a2a22);color:var(--learn-warm-ink,#f1ead7)}

.wcard .wx{z-index:2;width:36px;height:36px;font-size:18px;line-height:1}
.qsrc{display:none!important}/* per-question source lines hidden everywhere in the student UI; the data is unchanged */
.xnotice .nt-dismiss{display:none!important}
/* العام: same pill as the main button, thin readable subtext inside; oval progress */
.ocard.locked{background:var(--card);border-style:solid;color:var(--deep);cursor:default;gap:3px;padding:14px 24px}
.ocard.locked span{font-size:19px;font-weight:700}
.ocard.locked small{font-size:12.5px;font-weight:400;color:var(--ink,#2b3a37);opacity:.85;line-height:1.5;letter-spacing:0}
.ocard.locked small.lnote{font-weight:400}
.pcard{border-radius:999px;padding:20px 32px}
.pcard .pbar{height:14px;border-radius:999px}
/* dhikr capsules: identical box and font for both */
.dnote{box-sizing:border-box;height:56px;min-height:56px;padding:0 18px;font-family:inherit;font-size:17px;line-height:1.4;font-weight:700;justify-content:center;text-align:center;overflow:hidden;white-space:nowrap;font-synthesis:none}
@media (max-width:480px){.dnote{height:56px;min-height:56px;font-size:15px;line-height:1.4;padding:0 14px}}
.dnote[data-i="0"]{font-size:17px}
@media (max-width:480px){.dnote[data-i="0"]{font-size:17px}}
/* dhikr capsule hugs its text */
#dhikrslot{display:flex;justify-content:center;align-items:center}
#dhikrslot .dnote,.dnote{width:auto!important;max-width:100%;display:inline-flex;height:48px;min-height:48px;padding:0 24px;border-radius:999px}
@media (max-width:480px){.dnote{height:48px;min-height:48px;padding:0 22px}}
/* thanks notice: same oval capsule as the dhikr, hugs its text, no close button */
.xnotice{width:auto;max-width:calc(100% - 24px);height:48px;min-height:48px;padding:0 24px;border-radius:999px;background:#fdf6e3;border:1px solid var(--gold);box-shadow:none;display:flex;align-items:center;justify-content:center;font-family:'Amiri',Tajawal,system-ui,serif;font-size:15px;line-height:1.4;font-weight:700;color:var(--deep);white-space:nowrap;left:50%;right:auto;transform:translateX(-50%);margin-inline:0}
@media (max-width:480px){.xnotice{font-size:13px;padding:0 18px;white-space:normal;height:auto;min-height:48px;padding-top:6px;padding-bottom:6px}}
.xnotice{width:max-content;max-width:calc(100vw - 24px)}
@media (max-width:480px){.xnotice{font-size:14px;padding:6px 20px;line-height:1.6}}

/* thanks capsule v3 (Omar 18:44): drops from the top as before, oval, hugs its text, small X kept */
.xnotice{position:fixed!important;top:12px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin:0!important;display:flex!important;align-items:center;justify-content:center;width:max-content!important;max-width:calc(100vw - 24px)!important;height:48px!important;min-height:48px!important;padding:0 22px 0 42px!important;box-sizing:border-box;border-radius:999px!important;background:#fdf6e3;border:1px solid var(--gold);box-shadow:0 6px 18px rgba(20,92,80,.18)!important;font-family:inherit!important;font-size:15px!important;line-height:1.4!important;font-weight:700;white-space:nowrap!important;animation:none!important;z-index:70}
.xnotice .xx{position:absolute!important;top:50%!important;inset-inline-end:8px!important;transform:translateY(-50%);min-width:28px!important;min-height:28px!important;width:28px;height:28px;padding:0;font-size:14px;line-height:1;border-radius:50%;display:flex;align-items:center;justify-content:center}
@media (max-width:360px){.xnotice{font-size:13px!important}}
.ocard.locked{min-height:64px;padding:8px 22px;gap:1px;border-radius:32px}
.ocard.locked span{font-size:19px;line-height:1.3}
.ocard.locked small,.ocard.locked small.lnote{font-size:11px;line-height:1.35;margin-top:0;font-weight:400;color:var(--ink,#2b3a37);opacity:.85}
.gen-note{margin-top:16px;padding:22px 20px;border:1px solid var(--line);border-radius:18px;background:var(--card);text-align:center;color:var(--deep)}
.gen-note p{margin:0 0 10px;font-size:17px;font-weight:700;line-height:1.8}
.gen-note p:last-child{margin:0;font-size:15px;font-weight:400}
.gen-note a{color:var(--teal);text-decoration:none}
.mth .mnu{direction:rtl;unicode-bidi:isolate}
.rt{direction:rtl}.rt>.rr{transform:scaleX(-1);margin-left:0;margin-right:-.04em}.rt>.rc{direction:ltr;unicode-bidi:isolate}.mth .rt>.rc{direction:rtl;unicode-bidi:normal}

.rt.rl{direction:ltr}.rt.rl>.rr{transform:none;margin-right:0;margin-left:-.04em}.rt.rl>.rc,.mth .rt.rl>.rc{direction:ltr;unicode-bidi:isolate}

/* Radical v5: tall bold sign (extends below baseline), bar same thickness, one connected stroke */
.rt>.rr{display:none!important}
.rt.rl{display:inline-block!important;direction:ltr;vertical-align:baseline;white-space:nowrap;padding:0 0 0 .68em!important}
.rt.rl>.rc,.mth .rt.rl>.rc{display:inline-block!important;position:relative;border-top:2.1px solid #1c2b28;padding:.2em .12em 0 .04em;margin:0;line-height:1.3;direction:ltr;unicode-bidi:isolate;vertical-align:baseline}
.rt.rl>.rc::before{content:"";position:absolute;left:-.68em;top:-2.1px;bottom:-.12em;width:.7em;background:linear-gradient(#1c2b28,#1c2b28) no-repeat 100% 0/14% 2.1px,url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMCAxMDAnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnPjxwYXRoIGQ9J00xLjIgNjAgTDMgNTcuNSBMNC44IDk2IEw5IC02JyBmaWxsPSdub25lJyBzdHJva2U9JyMxYzJiMjgnIHN0cm9rZS13aWR0aD0nMi4xJyBzdHJva2UtbGluZWpvaW49J3JvdW5kJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0eWxlPSd2ZWN0b3ItZWZmZWN0Om5vbi1zY2FsaW5nLXN0cm9rZScvPjwvc3ZnPg==") no-repeat 0 0/100% 100%}
.rt:not(.rl){display:inline-block!important;direction:rtl;vertical-align:baseline;white-space:nowrap;padding:0 .68em 0 0!important}
.rt:not(.rl)>.rc,.mth .rt:not(.rl)>.rc{display:inline-block!important;position:relative;border-top:2.1px solid #1c2b28;padding:.2em .04em 0 .12em;margin:0;line-height:1.3;direction:rtl;unicode-bidi:isolate;vertical-align:baseline}
.rt:not(.rl)>.rc::before{content:"";position:absolute;right:-.68em;top:-2.1px;bottom:-.12em;width:.7em;background:linear-gradient(#1c2b28,#1c2b28) no-repeat 0 0/14% 2.1px,url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMCAxMDAnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnPjxwYXRoIGQ9J004LjggNjAgTDcgNTcuNSBMNS4yIDk2IEwxIC02JyBmaWxsPSdub25lJyBzdHJva2U9JyMxYzJiMjgnIHN0cm9rZS13aWR0aD0nMi4xJyBzdHJva2UtbGluZWpvaW49J3JvdW5kJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0eWxlPSd2ZWN0b3ItZWZmZWN0Om5vbi1zY2FsaW5nLXN0cm9rZScvPjwvc3ZnPg==") no-repeat 0 0/100% 100%}
/* exponents raised a bit higher */
sup,sup.ux,.mth sup{font-size:.72em;line-height:0;vertical-align:.52em;position:static;font-family:inherit}
.rt.rl,.rt:not(.rl){padding-bottom:.3em!important}
/* v5b: gaps */
.rt.rl,.rt:not(.rl){margin:.5em .4em .35em!important;padding-top:.15em!important}
.rt.rl>.rc{padding-right:.35em!important}
.rt:not(.rl)>.rc{padding-left:.35em!important}
sup,sup.ux,.mth sup{vertical-align:.42em!important}
.rt sup{vertical-align:.35em!important}
.eqL{display:inline-block;direction:ltr;unicode-bidi:isolate;white-space:nowrap}

.rt.rl{margin-left:0!important}
.eqL .rt.rl{margin-left:-.05em!important}
.rc .fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.25;margin:0 .08em;text-align:center}
.rc .fr>.fn{border-bottom:2.1px solid #1c2b28;padding:0 .15em .06em}
.rc .fr>.fd{padding:.06em .15em 0}
.fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.25;margin:0 .08em;text-align:center;direction:ltr}
.fr>.fn{border-bottom:1.6px solid #1c2b28;padding:0 .15em .06em}
.fr>.fd{padding:.06em .15em 0}
.rc .fr>.fn{border-bottom-width:2.1px}
.mn-mfoot{padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line,#e3dccb);background:var(--cream,#faf7ef);flex:none}
.mn-logout{width:100%;padding:13px;font:inherit;font-size:16px;font-weight:700;border-radius:12px;border:1.5px solid #b3402f;background:#fff;color:#b3402f;cursor:pointer}
.mn-logout[hidden]{display:none}
.mn-logout:disabled{opacity:.6}
