:root{
  --hero-1:#12928f; --hero-2:#0e7b7a; --hero-3:#0a5f5e;
  --teal:#0e7b7a; --teal-d:#0a5f5e; --teal-x:#084746; --teal-l:#17a09c; --teal-pale:#e6f3f2;
  --gold:#c9a227; --gold-l:#e3c25a; --gold-pale:#faf3dd;
  --bg:#f4f9f8; --card:#ffffff; --ink:#0e2b2a; --muted:#6b8a89; --line:#e3eeec;
  --shadow:0 10px 26px rgba(11,80,79,.08); --shadow-s:0 4px 14px rgba(11,80,79,.07);
  --r:20px; --nav-h:66px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:'Cairo',system-ui,sans-serif;
  font-feature-settings:'locl' 0,'tnum' 1; background:var(--bg); color:var(--ink);
  font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%230e7b7a' stroke-width='1' opacity='0.06'><path d='M42 6 51 21 66 15 60 30 78 42 60 54 66 69 51 63 42 78 33 63 18 69 24 54 6 42 24 30 18 15 33 21z'/><circle cx='42' cy='42' r='14'/></g></svg>");
  background-attachment:fixed;
}
.view{min-height:100vh;padding-bottom:calc(var(--nav-h) + 22px)}
.nav-spacer{height:8px}
h1,h2,h3,h4{margin:0;font-weight:700;line-height:1.35}
a{color:inherit;text-decoration:none}
button{font-family:inherit;font-size:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,textarea,select{font-family:inherit;font-size:15px;color:var(--ink)}
.num{font-variant-numeric:tabular-nums;letter-spacing:.2px;font-feature-settings:'locl' 0,'tnum' 1;font-family:'DejaVu Sans',Roboto,'Helvetica Neue',Arial,sans-serif}

/* ---------- arch header ---------- */
.hero{position:relative;padding-top:0;margin-top:-2px}
.hero-arch{display:block;width:100%;height:auto;margin-bottom:-6px}
.hero-inner{position:absolute;inset:0 0 auto 0;padding:18px 18px 0;color:#fff;text-align:center}
.hero-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.icon-btn{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(4px)}
.icon-btn svg{width:19px;height:19px}
.hero-title{font-family:'Amiri',serif;font-weight:700;font-size:34px;letter-spacing:.5px;margin-top:2px;text-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero-sub{font-size:12.5px;color:rgba(255,255,255,.86);margin-top:-2px}
.hero-loc{display:inline-flex;align-items:center;gap:5px;font-size:12px;background:rgba(255,255,255,.16);padding:4px 10px;border-radius:999px;margin-top:8px}
.hero-loc svg{width:13px;height:13px}

/* ---------- next prayer ring ---------- */
.next-wrap{display:flex;justify-content:center;margin-top:-52px;position:relative;z-index:2}
.ring{width:186px;height:186px;border-radius:50%;padding:7px;background:conic-gradient(from 200deg,var(--gold-l),var(--gold),#a9861b,var(--gold-l));box-shadow:0 12px 30px rgba(11,80,79,.18)}
.ring-in{width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 50% 30%,#ffffff,#f2f9f8 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #efe6c6}
.ring-kicker{font-size:11.5px;color:var(--muted)}
.ring-name{font-size:20px;font-weight:800;color:var(--teal-d)}
.ring-time{font-family:'DejaVu Sans',Roboto,Arial,sans-serif;font-size:26px;font-weight:800;color:var(--teal);letter-spacing:.5px}
.ring-left{font-size:11.5px;color:var(--muted);margin-top:2px}
.ring-crescent{width:26px;height:26px;color:var(--gold);margin-bottom:2px}

/* ---------- generic ---------- */
.sec{padding:0 16px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px}
.sec-title{font-size:16.5px;font-weight:800;display:flex;align-items:center;gap:8px}
.sec-title .dot{width:5px;height:20px;border-radius:4px;background:linear-gradient(var(--teal-l),var(--teal))}
.sec-more{font-size:12.5px;color:var(--teal);font-weight:700}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow-s);border:1px solid rgba(227,238,236,.9)}
.pad{padding:16px}
.row{display:flex;gap:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* info cards */
.info-card{border-radius:16px;padding:12px 14px;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#12928f,#0b6d6c);color:#fff;box-shadow:var(--shadow-s);min-height:64px}
.info-card.light{background:#fff;color:var(--ink);border:1px solid var(--line)}
.info-card .ic{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.16);flex:0 0 auto}
.info-card.light .ic{background:var(--teal-pale);color:var(--teal)}
.info-card .ic svg{width:17px;height:17px}
.info-card .lbl{font-size:11px;opacity:.85}
.info-card .val{font-size:13.5px;font-weight:700;line-height:1.35}
.info-card.light .lbl{color:var(--muted)}

.pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:700;color:var(--teal-d);box-shadow:var(--shadow-s)}
.pill svg{width:15px;height:15px;color:var(--gold)}

/* prayer times */
.prayers{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.prayer{background:linear-gradient(160deg,#12928f,#0b6d6c);border-radius:14px;padding:10px 4px 9px;color:#fff;text-align:center;position:relative;overflow:hidden;box-shadow:var(--shadow-s)}
.prayer.next{background:linear-gradient(160deg,#12928f,#084746);outline:2px solid var(--gold-l);outline-offset:-2px;box-shadow:0 8px 18px rgba(201,162,39,.28)}
.prayer .pi{width:19px;height:19px;margin:2px auto 3px;opacity:.95}
.prayer .pn{font-size:12px;font-weight:700}
.prayer .pt{font-family:'DejaVu Sans',Roboto,Arial,sans-serif;font-size:12.5px;font-weight:800;letter-spacing:.3px;direction:ltr;font-variant-numeric:tabular-nums}
.prayer .badge{position:absolute;top:0;left:0;right:0;background:var(--gold-l);color:#3b2f00;font-size:8px;font-weight:800;padding:1px 0;text-align:center;border-radius:13px 13px 0 0;letter-spacing:0}

/* section cards */
.tile{position:relative;border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-s);min-height:96px;display:flex;align-items:flex-end;padding:14px;color:#fff;background:linear-gradient(135deg,#12928f,#0a5f5e)}
.tile:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,42,41,.72),rgba(4,42,41,.12))}
.tile>*{position:relative;z-index:1}
.tile h3{font-size:15.5px}
.tile p{margin:2px 0 0;font-size:11.5px;opacity:.9}
.tile .tic{position:absolute;top:12px;left:12px;width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center;z-index:1}
.tile .tic svg{width:18px;height:18px}
.tile.big{min-height:120px}

/* list rows */
.list{background:#fff;border-radius:var(--r);border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow-s)}
.lrow{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}
.lrow:last-child{border-bottom:0}
.lrow .li{width:38px;height:38px;border-radius:12px;background:var(--teal-pale);color:var(--teal-d);display:grid;place-items:center;flex:0 0 auto;font-weight:800;font-size:13px}
.lrow .li svg{width:18px;height:18px}
.lrow .lt{flex:1;min-width:0}
.lrow .lt b{display:block;font-size:14.5px;font-weight:700}
.lrow .lt span{display:block;font-size:11.5px;color:var(--muted)}
.lrow .lv{font-size:13px;font-weight:800;color:var(--teal);direction:ltr}
.chev{width:16px;height:16px;color:#b9ccca;flex:0 0 auto}

/* nav */
.nav{position:fixed;bottom:0;left:0;right:0;height:var(--nav-h);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);align-items:center;z-index:40;padding-bottom:env(safe-area-inset-bottom)}
.nav a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:#8aa5a3;font-weight:700}
.nav a svg{width:22px;height:22px}
.nav a.on{color:var(--teal)}
.nav a.on svg{color:var(--teal)}

/* page head */
.phead{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;position:sticky;top:0;background:rgba(244,249,248,.94);backdrop-filter:blur(10px);z-index:30}
.phead h2{font-size:18px;flex:1}
.back{width:36px;height:36px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;box-shadow:var(--shadow-s)}
.back svg{width:18px;height:18px;color:var(--teal-d)}

/* search */
.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 13px;box-shadow:var(--shadow-s);margin:0 16px 12px}
.search input{border:0;outline:0;background:none;flex:1;font-size:14px}
.search svg{width:17px;height:17px;color:var(--muted)}

/* quran */
.surah{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}
.surah:last-child{border-bottom:0}
.surah .sn{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;color:var(--teal-d);font-weight:800;font-size:13px}
.surah .sn svg{width:38px;height:38px;position:absolute}
.surah .sn span{position:relative}
.surah .st{flex:1;min-width:0}
.surah .st b{display:block;font-family:'Amiri',serif;font-size:18px;font-weight:700}
.surah .st span{font-size:11px;color:var(--muted)}
.surah .cnt{font-size:11.5px;color:var(--muted);direction:ltr}

.reader{background:#fff;border-radius:var(--r);margin:0 16px;padding:6px 0 14px;border:1px solid var(--line);box-shadow:var(--shadow-s)}
.bism{font-family:'Amiri Quran',serif;text-align:center;font-size:1.02em;color:var(--teal-d);padding:2px 6px 12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.mushaf{background:#fff;border-radius:var(--r);margin:0 16px;padding:16px 18px 24px;border:1px solid var(--line);box-shadow:var(--shadow-s)}
.mtxt{font-family:'Amiri Quran','Amiri',serif;line-height:2.5;text-align:right;margin:0;letter-spacing:0;word-spacing:.04em;color:#12302f}
.orn{display:inline-grid;place-items:center;width:1.5em;height:1.5em;margin:0 .16em;font-family:'Cairo',sans-serif;font-size:.44em;font-weight:800;color:#8a6d13;border:1px solid #e2cd8a;border-radius:50%;background:var(--gold-pale);vertical-align:middle;line-height:1;letter-spacing:0}
.ayah{font-family:'Amiri',serif;font-size:24px;line-height:2.15;padding:6px 18px;text-align:justify;text-align-last:center}
.ayah .an{display:inline-grid;place-items:center;width:26px;height:26px;margin:0 4px;font-family:'Cairo',sans-serif;font-size:10.5px;font-weight:800;color:var(--teal-d);border:1px solid #cfe3e1;border-radius:50%;background:var(--teal-pale);vertical-align:middle}
.ayah.hl{background:var(--gold-pale)}
.reader-bar{display:flex;align-items:center;justify-content:space-between;margin:0 16px 12px;gap:8px}
.small-btn{background:#fff;border:1px solid var(--line);border-radius:12px;padding:7px 12px;font-size:12.5px;font-weight:700;color:var(--teal-d);box-shadow:var(--shadow-s)}

/* athkar */
.athkar-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px}
.athkar-cat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:var(--shadow-s);min-height:88px;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.athkar-cat .ac-ic{width:32px;height:32px;border-radius:11px;background:var(--teal-pale);color:var(--teal);display:grid;place-items:center}
.athkar-cat .ac-ic svg{width:17px;height:17px}
.athkar-cat b{font-size:13.5px;font-weight:700;line-height:1.4}
.athkar-cat span{font-size:11px;color:var(--muted)}
.zikr{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:0 16px 12px;box-shadow:var(--shadow-s)}
.zikr p{margin:0 0 14px;font-family:'Amiri',serif;font-size:20px;line-height:2;text-align:justify}
.zikr-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed var(--line);padding-top:11px}
.counter{display:flex;align-items:center;gap:8px;background:var(--teal-pale);border-radius:999px;padding:6px 6px 6px 14px}
.counter b{font-size:15px;color:var(--teal-d);font-weight:800;direction:ltr}
.counter button{width:34px;height:34px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:18px;font-weight:800;box-shadow:0 4px 10px rgba(14,123,122,.3)}
.zikr.done{background:#f2fbf7;border-color:#cfeadd}
.zikr.done .counter button{background:#2f9e6a}

/* qibla */
.qibla-wrap{display:grid;place-items:center;padding:18px 0 8px}
.compass{width:270px;height:270px;border-radius:50%;position:relative;background:radial-gradient(circle at 50% 40%,#ffffff,#eef7f6);border:10px solid #fff;box-shadow:0 18px 40px rgba(11,80,79,.16),inset 0 0 0 1px #dfecea}
.compass .deg{position:absolute;font-size:10px;font-weight:800;color:#9db8b6}
.needle{position:absolute;inset:0;display:grid;place-items:center;transition:transform .25s ease-out}
.needle .bar{width:5px;height:200px;border-radius:4px;background:linear-gradient(180deg,var(--gold) 0 50%,#d7e5e3 50% 100%)}
.needle .kaaba{position:absolute;top:8px;width:34px;height:34px;border-radius:50%;background:var(--teal-d);display:grid;place-items:center;box-shadow:0 6px 14px rgba(10,95,94,.35)}
.needle .kaaba svg{width:18px;height:18px;color:#fff}
.qibla-info{text-align:center;padding:6px 24px 0}
.qibla-info b{font-size:26px;color:var(--teal);direction:ltr;display:block}
.qibla-info span{font-size:12.5px;color:var(--muted)}

/* dua */
.dua{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin:0 16px 10px;box-shadow:var(--shadow-s)}
.dua p{margin:0 0 8px;font-family:'Amiri',serif;font-size:18.5px;line-height:1.95}
.dua .meta{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted)}
.form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:0 16px 14px;box-shadow:var(--shadow-s)}
.form label{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin:0 0 6px}
.form input[type=color]{height:46px;padding:4px;border-radius:11px;background:#fff}
.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 13px;outline:0;background:#fbfdfd;margin-bottom:12px;font-size:14.5px}
.form textarea{min-height:96px;resize:vertical;line-height:1.7}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:14px;background:linear-gradient(135deg,#12928f,#0a5f5e);color:#fff;font-weight:800;font-size:15px;box-shadow:0 8px 18px rgba(14,123,122,.25)}
.btn.ghost{background:#fff;color:var(--teal-d);border:1px solid var(--line);box-shadow:var(--shadow-s)}
.btn.gold{background:linear-gradient(135deg,#e3c25a,#c9a227);color:#3b2f00}
.btn:disabled{opacity:.55}
.btn.sm{padding:9px 12px;font-size:13px;width:auto}

/* lessons */
.lesson{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;margin:0 16px 10px;box-shadow:var(--shadow-s);align-items:center}
.lesson .thumb{width:112px;height:68px;border-radius:11px;object-fit:cover;background:var(--teal-pale);flex:0 0 auto}
.lesson .lt b{font-size:14px;display:block;line-height:1.45}
.lesson .lt span{font-size:11.5px;color:var(--muted);display:block;margin-top:3px}
.player{position:relative;width:100%;padding-top:56.25%;background:#000;border-radius:16px;overflow:hidden;margin:0 0 12px}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* admin */
.admin-tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 16px 12px;scrollbar-width:none}
.admin-tabs::-webkit-scrollbar{display:none}
.atab{white-space:nowrap;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12.5px;font-weight:700;color:var(--muted)}
.atab.on{background:var(--teal);border-color:var(--teal);color:#fff}
.field{margin-bottom:12px}
.field label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:5px}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fbfdfd;outline:0}
.field input[type=color]{padding:4px;height:42px}
.field .hint{font-size:11px;color:#93adaa;margin-top:4px}
.adm-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:9px;box-shadow:var(--shadow-s)}
.adm-item .h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.adm-item .h b{font-size:13.5px}
.mini{display:flex;gap:6px}
.mini button{padding:6px 10px;border-radius:9px;background:var(--teal-pale);color:var(--teal-d);font-size:11.5px;font-weight:800}
.mini button.danger{background:#fdeaea;color:#b3413f}
.empty{text-align:center;color:var(--muted);font-size:13px;padding:26px 20px}
.toast{position:fixed;bottom:calc(var(--nav-h) + 16px);left:50%;transform:translateX(-50%);background:#0e2b2a;color:#fff;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:700;box-shadow:0 10px 24px rgba(0,0,0,.25);z-index:90;max-width:88vw;text-align:center}
.badge-soon{font-family:'DejaVu Sans',Roboto,Arial,sans-serif;font-size:10px;background:var(--gold-pale);color:#8a6d13;padding:2px 7px;border-radius:6px;font-weight:800}
.loading{display:grid;place-items:center;padding:40px}
.spin{width:26px;height:26px;border:3px solid var(--teal-pale);border-top-color:var(--teal);border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.fade{animation:fade .28s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- dark theme ---------- */
[data-theme="dark"]{
  --teal:#13918d; --teal-d:#0f7b78; --teal-x:#0a3b3a; --teal-l:#25b8b2; --teal-pale:#16302f;
  --gold:#d9b84e; --gold-l:#e6c866; --gold-pale:#2a2413;
  --bg:#081616; --card:#0f2322; --ink:#e9f4f3; --muted:#8aa9a7; --line:#1d3735;
  --shadow:0 10px 26px rgba(0,0,0,.5); --shadow-s:0 4px 14px rgba(0,0,0,.4);
  --hero-1:#0d4342; --hero-2:#0a3231; --hero-3:#072322;
}
[data-theme="dark"] body{
  background-color:#081616; color:var(--ink);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%2325b8b2' stroke-width='1' opacity='0.05'><path d='M42 6 51 21 66 15 60 30 78 42 60 54 66 69 51 63 42 78 33 63 18 69 24 54 6 42 24 30 18 15 33 21z'/><circle cx='42' cy='42' r='14'/></g></svg>");
}
[data-theme="dark"] .card,[data-theme="dark"] .list,[data-theme="dark"] .surah,[data-theme="dark"] .zikr,
[data-theme="dark"] .dua,[data-theme="dark"] .form,[data-theme="dark"] .athkar-cat,[data-theme="dark"] .lesson,
[data-theme="dark"] .adm-item,[data-theme="dark"] .back,[data-theme="dark"] .small-btn,[data-theme="dark"] .atab,
[data-theme="dark"] .info-card.light,[data-theme="dark"] .pill{background:var(--card);border-color:var(--line);color:var(--ink);box-shadow:var(--shadow-s)}
[data-theme="dark"] .atab.on{background:var(--teal);border-color:var(--teal);color:#04191a}
[data-theme="dark"] .phead{background:rgba(8,22,22,.92)}
[data-theme="dark"] .nav{background:rgba(10,26,26,.96);border-color:var(--line)}
[data-theme="dark"] .nav a{color:#6f8d8b}
[data-theme="dark"] .nav a.on{color:var(--teal-l)}
[data-theme="dark"] .info-card{background:linear-gradient(135deg,#0f4d4b,#0a3433)}
[data-theme="dark"] .prayer{background:linear-gradient(160deg,#0f4d4b,#0a3433)}
[data-theme="dark"] .prayer.next{background:linear-gradient(160deg,#12615e,#08302f)}
[data-theme="dark"] .tile{background:linear-gradient(135deg,#0f4d4b,#072827)}
[data-theme="dark"] .ring-in{background:radial-gradient(circle at 50% 30%,#122827,#0a1c1b 70%);border-color:#2a2413}
[data-theme="dark"] .ring-name{color:var(--gold-l)}
[data-theme="dark"] .ring-kicker,[data-theme="dark"] .ring-left{color:var(--muted)}
[data-theme="dark"] .mushaf{background:#0d201f;border-color:var(--line)}
[data-theme="dark"] .mtxt{color:#efe9d6}
[data-theme="dark"] .bism{color:var(--gold-l);border-color:var(--line)}
[data-theme="dark"] .orn{background:#241f10;border-color:#4a3f1e;color:var(--gold-l)}
[data-theme="dark"] .zikr p,[data-theme="dark"] .dua p{color:#e9e2cf}
[data-theme="dark"] .form input,[data-theme="dark"] .form textarea,[data-theme="dark"] .form select,
[data-theme="dark"] .field input,[data-theme="dark"] .field textarea,[data-theme="dark"] .field select,
[data-theme="dark"] .search{background:#0b1c1b;border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .search input{color:var(--ink)}
[data-theme="dark"] .compass{background:radial-gradient(circle at 50% 40%,#0f2322,#091817);border-color:#132a29;box-shadow:0 18px 40px rgba(0,0,0,.55),inset 0 0 0 1px #1d3735}
[data-theme="dark"] .compass .deg{color:#6f8d8b}
[data-theme="dark"] .needle .bar{background:linear-gradient(180deg,var(--gold) 0 50%,#223c3a 50% 100%)}
[data-theme="dark"] .counter{background:#16302f}
[data-theme="dark"] .zikr.done{background:#0f2a20;border-color:#1e4030}
[data-theme="dark"] .btn.ghost{background:var(--card);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .toast{background:#e9f4f3;color:#08181a}
[data-theme="dark"] .badge-soon{background:#2a2413;color:var(--gold-l)}
[data-theme="dark"] .lrow .li,[data-theme="dark"] .athkar-cat .ac-ic,[data-theme="dark"] .info-card.light .ic{background:#16302f;color:var(--teal-l)}
[data-theme="dark"] .surah .sn{color:var(--gold-l)}
[data-theme="dark"] .lrow .lt span,[data-theme="dark"] .surah .st span,[data-theme="dark"] .lesson .lt span{color:var(--muted)}
[data-theme="dark"] .empty{color:var(--muted)}
[data-theme="dark"] .mini button{background:#16302f;color:var(--teal-l)}
[data-theme="dark"] .mini button.danger{background:#3a1c1c;color:#e88b89}
[data-theme="dark"] .player{background:#000}

/* ---------- reciters + player ---------- */
.rec-av{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;
  background:var(--teal-l,#e6f4f3);color:var(--teal-d,#0b5f5e);border:1.5px solid var(--gold,#c9a227);flex:0 0 auto}
[data-theme="dark"] .rec-av{background:#12312f;color:#8fdcd6}
.surah-row{display:flex;align-items:center;gap:10px;padding:10px 12px}
.surah-row .sn{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:12.5px;font-weight:700;
  background:var(--teal-l,#e6f4f3);color:var(--teal-d,#0b5f5e);flex:0 0 auto}
[data-theme="dark"] .surah-row .sn{background:#12312f;color:#8fdcd6}
.mini-play{width:34px;height:34px;border-radius:50%;border:1px solid var(--line,#e3e9e8);background:transparent;color:var(--teal,#0e7b7a);
  display:grid;place-items:center;flex:0 0 auto}
.mini-play svg{width:16px;height:16px}
.mini-play.on{background:var(--teal,#0e7b7a);color:#fff;border-color:transparent}
.pbar{position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));z-index:40;
  background:var(--card,#fff);border-top:1px solid var(--line,#e3e9e8);padding:8px 14px 10px;
  box-shadow:0 -6px 20px rgba(0,0,0,.08)}
[data-theme="dark"] .pbar{background:#0f2322;border-color:#1d3a38;box-shadow:0 -6px 20px rgba(0,0,0,.4)}
.pbar-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pbar-t{display:flex;flex-direction:column;min-width:0}
.pbar-t b{font-size:13px;color:var(--ink,#123)}
.pbar-t span{font-size:11px;color:var(--muted,#7b8a89)}
.pb-x{border:0;background:transparent;color:var(--muted,#7b8a89);font-size:15px;padding:4px 6px}
.pb-seek{width:100%;margin:6px 0 2px;accent-color:var(--teal,#0e7b7a);height:18px}
.pbar-ctl{display:flex;align-items:center;gap:14px}
.pbar-ctl button{border:0;background:transparent;color:var(--teal-d,#0b5f5e);display:grid;place-items:center;padding:2px}
.pbar-ctl button svg{width:18px;height:18px}
.pb-play{width:40px;height:40px;border-radius:50%!important;background:var(--teal,#0e7b7a)!important;color:#fff!important}
.pb-play svg{width:18px;height:18px}
.pb-speed{font-size:12px;font-weight:700;border:1px solid var(--line,#e3e9e8)!important;border-radius:8px;padding:3px 7px!important}
.pb-time{margin-inline-start:auto;font-size:11.5px;color:var(--muted,#7b8a89)}
body.has-player .nav-spacer{height:150px}
.btn svg{width:17px;height:17px;vertical-align:-3px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.pb-time{direction:ltr;unicode-bidi:isolate}
.pb-speed{direction:ltr}
.card select,.card input[type=text],.card input[type=password],.card input:not([type]),.card textarea{
  width:100%;border:1px solid var(--line,#e3e9e8);border-radius:12px;padding:11px 13px;outline:0;
  background:#fbfdfd;color:var(--ink,#123);margin:6px 0 8px;font-size:14.5px}
[data-theme="dark"] .card select,[data-theme="dark"] .card input,[data-theme="dark"] .card textarea{
  background:#0f2322;color:#e9f2f1;border-color:#1d3a38}
[data-theme="dark"] select option{background:#0f2322;color:#e9f2f1}
