.d-app { --bg:#fdd9df; --card:#ffffff; --card2:#e4f4f8; --ink:#1f2d33; --mut:#5d6f77; --acc:#14899e; --gold:#b9801a; background:var(--bg); color:var(--ink); min-height:100vh; padding:0 0 86px; font-family:"Noto Kufi Arabic","Noto Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif; line-height:1.7; box-sizing:border-box; max-width:640px; margin:0 auto; }
.d-app * { box-sizing:border-box; }
.d-app button { font-family:inherit; color:inherit; cursor:pointer; }
.d-sub { color:var(--mut); font-size:13px; }
.d-view { display:block; }
.d-main { padding:12px 12px 8px; }
.d-center { display:flex; flex-direction:column; align-items:center; gap:12px; }
.d-date { color:var(--mut); font-size:14px; }
.d-next-label { margin-top:8px; font-size:16px; }
.d-next-time { font-size:44px; font-weight:800; color:var(--acc); font-variant-numeric:tabular-nums; letter-spacing:1px; line-height:1.2; }
.d-next-at { color:var(--gold); }
.d-h2 { font-size:19px; margin:18px 0 8px; color:var(--acc); }
.d-prayers { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.d-prayer { background:var(--card); border-radius:16px; padding:10px 14px; display:flex; justify-content:space-between; align-items:center; border:2px solid transparent; }
.d-prayer.is-next { border-color:var(--acc); background:var(--card2); }
.d-pname { font-weight:700; }
.d-ptime { font-variant-numeric:tabular-nums; color:var(--acc); }
.d-note { color:var(--mut); font-size:12.5px; margin:12px 0 0; }
.d-card { background:var(--card); border-radius:18px; padding:14px; margin-top:12px; width:100%; }
.d-qibla { display:flex; gap:14px; align-items:center; }
.d-compass { width:64px; height:64px; flex:none; }
.d-qibla-needle { width:52px; height:52px; border-radius:50%; background:var(--card2); display:flex; align-items:center; justify-content:center; color:var(--gold); font-size:22px; flex:none; }
.d-seg { display:grid; grid-template-columns:1fr 1fr; background:var(--card); border-radius:14px; padding:4px; gap:4px; margin-bottom:10px; }
.d-seg-grow { flex:1; margin:0; }
.d-seg button { background:none; border:0; border-radius:10px; padding:9px; font-size:15px; }
.d-seg button.on { background:var(--card2); color:var(--acc); font-weight:700; }
.d-row-between { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:6px 0; }
.w100 { width:100%; }
.d-link { background:none; border:0; color:var(--acc); text-decoration:underline; font-size:14px; padding:6px 4px; min-height:36px; }
.d-progress { height:8px; background:var(--card); border-radius:99px; overflow:hidden; margin:4px 0 12px; }
.d-progress div { height:100%; background:var(--acc); transition:width .3s; }
.d-zikr { background:var(--card); border-radius:18px; padding:14px; margin-bottom:10px; }
.d-zikr.is-done { opacity:.55; }
.d-zikr-text { font-size:21px; line-height:2.1; font-family:"Amiri","Noto Naskh Arabic","Scheherazade New","Geeza Pro",serif; white-space:pre-line; }
.d-zikr-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; }
.d-count { background:var(--acc); color:#fff !important; border:0; border-radius:14px; padding:10px 20px; font-size:17px; font-weight:800; min-width:110px; min-height:46px; }
.d-count:disabled { background:var(--card2); color:var(--acc) !important; }
.d-zikr-meta { border-top:1px solid #cfe3e8; margin-top:8px; padding-top:6px; font-size:14px; color:var(--mut); }
.d-zikr-meta p { margin:6px 0; }
.d-chips { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.d-chips button, .d-btn { background:var(--card); border:1px solid #cfe3e8; border-radius:99px; padding:8px 16px; font-size:14px; min-height:40px; }
.d-chips button.on, .d-btn.on { background:var(--acc); color:#fff !important; border-color:var(--acc); font-weight:700; }
.d-btn:disabled { opacity:.4; }
.d-tas-text { font-size:22px; font-family:"Amiri","Noto Naskh Arabic","Geeza Pro",serif; text-align:center; }
.d-tas-btn { width:230px; height:230px; border-radius:50%; border:0; background:conic-gradient(var(--acc) var(--pct,0%), var(--card2) 0); position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; margin:8px 0; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.d-tas-btn::before { content:""; position:absolute; inset:12px; border-radius:50%; background:var(--card); }
.d-tas-btn > * { position:relative; }
.d-tas-btn:active::before { background:var(--card2); }
.d-tas-n { font-size:72px; font-weight:800; line-height:1; color:var(--acc); font-variant-numeric:tabular-nums; }
.d-tas-t { color:var(--mut); font-size:14px; }
.d-danger { color:#fff !important; background:#c0394f; border:0; border-radius:10px; padding:6px 12px; }
.d-input { width:100%; background:#fff; border:1px solid #cfe3e8; border-radius:14px; padding:12px 14px; color:var(--ink); font-size:16px; font-family:inherit; margin:8px 0; }
.d-wide { width:100%; }
.d-lock { font-size:54px; margin-top:16px; }
.d-err { color:#c0394f; font-size:14px; margin:6px 0; }
.d-surahs { display:grid; gap:8px; margin-top:8px; }
.d-surah { display:grid; grid-template-columns:40px 1fr auto; gap:8px; align-items:center; text-align:right; background:var(--card); border:0; border-radius:14px; padding:10px 12px; min-height:52px; }
.d-sn { width:34px; height:34px; border-radius:50%; background:var(--card2); color:var(--acc); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.d-sname { font-size:18px; font-family:"Amiri","Noto Naskh Arabic","Geeza Pro",serif; }
.d-smeta { font-size:12px; color:var(--mut); }
.d-resume { width:100%; background:var(--card2); border:1px solid var(--acc); border-radius:14px; padding:12px; color:var(--acc) !important; font-weight:700; margin-bottom:6px; }
.d-surah-title { text-align:center; color:var(--gold); margin:4px 0 8px; font-size:24px; }
.d-tools, .d-audiobar { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.d-sel { display:block; font-size:13px; color:var(--mut); margin:8px 0; }
.d-sel select { display:block; width:100%; margin-top:4px; background:var(--card2); color:var(--ink); border:1px solid #cfe3e8; border-radius:12px; padding:10px; font-size:15px; font-family:inherit; }
.d-paper { background:#fffaf0; color:#1b1b1b; border-radius:18px; padding:16px 14px; line-height:2.4; text-align:right; font-family:"Amiri Quran","Amiri","Scheherazade New","Noto Naskh Arabic","Geeza Pro","Traditional Arabic",serif; margin:8px 0; }
.d-bism { text-align:center; margin-bottom:6px; }
.d-ayah { cursor:pointer; border-radius:8px; }
.d-ayah.is-playing { background:#bfe8f0; }
.d-end { color:#8a6d1d; font-size:.8em; white-space:nowrap; }
.d-pager { margin:8px 0; }
.d-legend { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:8px; font-size:13px; }
.d-legend i { display:inline-block; width:12px; height:12px; border-radius:50%; margin-inline-end:5px; vertical-align:middle; }
.d-reciters { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; max-height:220px; overflow:auto; }
.d-rec { background:var(--card); border:1px solid #cfe3e8; border-radius:99px; padding:7px 14px; font-size:14px; min-height:40px; }
.d-rec.on { background:var(--acc); color:#fff !important; font-weight:700; }
.d-audio { width:100%; margin-top:8px; }

.d-app, .d-app * { -webkit-tap-highlight-color: transparent; }
.d-head { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:calc(8px + env(safe-area-inset-top)) 10px 8px; background:linear-gradient(90deg,#2fb4c8,#f2778c); color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.18); }
.d-title { font-size:21px; font-weight:800; text-align:center; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-menu { width:44px; height:44px; border:0; border-radius:12px; background:rgba(255,255,255,.22); color:#fff !important; font-size:22px; display:flex; align-items:center; justify-content:center; flex:none; }
.d-ghost { background:none; }
.d-hero { background:linear-gradient(135deg,#2fb4c8,#f2778c); color:#fff; border-radius:20px; padding:16px; text-align:center; margin-bottom:12px; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.d-hero .d-date, .d-hero .d-next-at { color:#fff; opacity:.92; }
.d-hero .d-next-time { color:#fff; }
.d-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.d-gcard { background:#fff; border:0; border-radius:18px; padding:12px 4px 10px; display:flex; flex-direction:column; align-items:center; gap:8px; box-shadow:0 2px 6px rgba(0,0,0,.1); min-height:112px; justify-content:center; }
.d-gicon { width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:30px; }
.d-glabel { font-size:13px; font-weight:700; text-align:center; line-height:1.4; color:var(--ink); }
.d-maker { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:18px; color:var(--mut); font-size:14px; }
.d-maker img { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid #fff; }
.d-tabs { position:fixed; bottom:0; right:0; left:0; z-index:20; display:grid; grid-template-columns:repeat(5,1fr); background:#fff; border-top:1px solid #f0b9c3; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); max-width:640px; margin:0 auto; box-shadow:0 -2px 8px rgba(0,0,0,.08); }
.d-tabs button { background:none; border:0; display:flex; flex-direction:column; align-items:center; gap:0; font-size:12px; min-height:50px; justify-content:center; color:var(--mut) !important; }
.d-tabs button.on { color:var(--acc) !important; font-weight:800; }
.d-ti { font-size:20px; line-height:1.2; }
.d-scrim { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:40; }
.d-drawer { position:fixed; top:0; bottom:0; right:0; width:min(300px,82vw); background:#ffe3e8; z-index:50; transform:translateX(105%); transition:transform .22s; overflow-y:auto; padding-bottom:20px; box-shadow:-4px 0 16px rgba(0,0,0,.25); visibility:hidden; }
.d-drawer.open { transform:none; visibility:visible; }
.d-dhead { display:flex; align-items:center; gap:12px; padding:calc(16px + env(safe-area-inset-top)) 14px 14px; background:linear-gradient(90deg,#2fb4c8,#f2778c); color:#fff; }
.d-dhead img { width:64px; height:64px; border-radius:50%; object-fit:cover; border:3px solid #fff; }
.d-dname { font-size:22px; font-weight:800; }
.d-dsub { font-size:12.5px; opacity:.95; }
.d-ditem { display:flex; align-items:center; gap:14px; width:100%; background:none; border:0; padding:12px 18px; font-size:16px; text-align:right; min-height:48px; color:var(--ink) !important; }
.d-ditem span { width:28px; text-align:center; font-size:20px; }
.d-photo { width:140px; height:140px; border-radius:50%; object-fit:cover; border:4px solid #fff; box-shadow:0 3px 10px rgba(0,0,0,.2); margin-top:10px; }
.d-src { margin:8px 0 0; padding-inline-start:20px; font-size:13.5px; color:var(--mut); }
.d-select { display:block; width:100%; margin-top:6px; background:#fff; color:var(--ink); border:1px solid #cfe3e8; border-radius:12px; padding:10px; font-size:15px; font-family:inherit; }
.d-sel select { background:#fff; color:var(--ink); }
.d-player { display:none; }
.d-player.on { display:block; position:sticky; bottom:62px; z-index:15; background:#fff; border-radius:14px; padding:6px; box-shadow:0 2px 10px rgba(0,0,0,.2); margin-top:10px; }
.d-player .d-audio { margin:0; }
.d-prose { background:#fffaf0; border-radius:18px; padding:14px; line-height:2.1; font-family:"Amiri","Noto Naskh Arabic","Geeza Pro",serif; color:#1b1b1b; margin:8px 0; }
.d-prose p { margin:0 0 .8em; text-align:justify; }
.d-verse { color:#0f7a68; font-weight:700; }
.d-story { grid-template-columns:40px 1fr auto; }
.d-story .d-sname { font-size:16px; line-height:1.5; }
.d-names { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.d-name { background:#fff; border-radius:14px; padding:10px; display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.d-name-ar { font-size:24px; font-family:"Amiri","Noto Naskh Arabic","Geeza Pro",serif; color:var(--acc); }
.d-name-tr { font-size:13px; font-weight:700; }
.d-name-en { font-size:12px; color:var(--mut); }
.d-hadith { position:relative; }
.d-hadith .d-sn { margin-bottom:6px; }
.d-now { margin-top:10px; }
.d-select:focus, .d-input:focus { outline:2px solid var(--acc); }
body { margin:0; background:#fdd9df; }
html,body{margin:0;background:#fdd9df}

.d-msg{background:var(--card);border-radius:18px;padding:18px 16px;margin-top:14px;width:100%;box-sizing:border-box;text-align:center;line-height:2.2;font-size:16.5px;color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.d-msg p{margin:0 0 10px}.d-msg p:last-child{margin:0;color:var(--mut);font-size:15px}
.d-msg .d-msg-h{color:var(--acc);font-weight:700;font-size:18px}
.d-msg .d-msg-d{font-size:17px;border-top:1px dashed var(--card2);padding-top:10px}
