/* توكّل v29.13 — «أحب الكلام إلى الله» — كل الأصناف بالبادئة ah- لتفادي أي تعارض */
.ah-home,.ah-hero,.ah-m-card{--ah-g1:#0f7a55;--ah-g2:#064e3b;--ah-gold:#e7c76a;
 background:linear-gradient(150deg,var(--ah-g1),var(--ah-g2) 70%);position:relative;overflow:hidden;color:#fff}
.ah-home-pat,.ah-hero-pat{position:absolute;inset:0;pointer-events:none;opacity:1;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e7c76a' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M28 4l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z'/%3E%3C/g%3E%3C/svg%3E");
 -webkit-mask-image:linear-gradient(200deg,#000,transparent 75%);mask-image:linear-gradient(200deg,#000,transparent 75%)}

/* بطاقة صفحة الأذكار */
.ah-home{border-radius:22px;padding:18px 16px 14px;margin:0 0 14px;cursor:pointer;
 border:1.5px solid rgba(231,199,106,.75);box-shadow:0 10px 28px rgba(6,78,59,.35),inset 0 0 0 3px rgba(6,78,59,.55),inset 0 0 0 4px rgba(231,199,106,.25);
 transition:transform .18s ease,box-shadow .18s ease;-webkit-tap-highlight-color:transparent;animation:ahIn .5s ease both}
.ah-home:active{transform:scale(.985)}
.ah-home:focus-visible{outline:2px solid var(--ah-gold);outline-offset:3px}
.ah-home-top{display:flex;align-items:center;gap:12px;position:relative}
.ah-home-ic,.ah-hero-ic{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
 background:rgba(0,0,0,.22);border:1px solid rgba(231,199,106,.45)}
.ah-home-t h2{margin:0;font-size:21px;color:#fff6d6;line-height:1.35}
.ah-home-t p{margin:2px 0 0;font-size:13px;color:#d6efe2}
.ah-home-enc{position:relative;margin-top:12px;font-size:12.5px;color:#f1e3b0;opacity:.95}
.ah-home-bot{position:relative;display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.ah-home-go{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px;border-radius:14px;font-weight:800;
 background:linear-gradient(180deg,#f3dc8e,#d3ab45);color:#2a1d00;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.ah-home-bot small{color:#cfe8dc;font-size:11.5px}

/* الصفحة */
.ah-page{padding-bottom:24px;animation:ahIn .35s ease both}
.ah-page .row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ah-hero{border-radius:22px;padding:20px 16px;text-align:center;border:1.5px solid rgba(231,199,106,.6);margin-bottom:12px}
.ah-hero>*{position:relative}.ah-hero-ic{margin:0 auto 8px}
.ah-hero h1{margin:0;font-size:24px;color:#fff6d6}
.ah-hero p{margin:6px 0 0;font-size:13px;color:#d6efe2;line-height:1.8}
.ah-day{background:var(--card);border:1.5px solid var(--gold);border-radius:20px;padding:14px;margin-bottom:12px;box-shadow:var(--shadow)}
.ah-day-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.ah-day-k{font-weight:800;color:var(--gold)}.ah-day-d{font-size:11px;color:var(--muted)}
.ah-day-txt,.ah-text{font-family:var(--ayah-font,"Amiri","Noto Naskh Arabic",serif);font-size:25px;line-height:2.1;text-align:center;color:var(--text)}
.ah-long{font-size:20px;line-height:2.15}
.ah-day-v{font-size:12.5px;color:var(--muted);text-align:center;line-height:1.8;margin-top:4px}
.ah-day-src{font-size:11px;color:var(--gold);text-align:center;margin-top:4px}
.ah-day-act,.ah-actions,.ah-ctl,.ah-m-act{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:10px}
.ah-btn{border:1px solid rgba(231,199,106,.4);background:var(--soft);color:var(--text);border-radius:14px;min-height:44px;padding:0 16px;font-weight:800;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ah-btn.gold{background:linear-gradient(180deg,#f3dc8e,#d3ab45);color:#2a1d00;border-color:transparent}
.ah-btn.ghost{background:transparent}
.ah-btn.small{min-height:40px;padding:0 12px;font-size:12.5px}
.ah-btn.wide{width:100%;margin-top:10px}
.ah-btn:active{transform:scale(.97)}
.ah-resume{display:block;width:100%;text-align:right;background:var(--card);border:1px dashed var(--gold);border-radius:16px;padding:10px 14px;margin:0 0 12px;color:var(--text);font-family:inherit;cursor:pointer}
.ah-resume small{display:block;color:var(--muted);font-size:11px}.ah-resume b{font-size:14px}

.ah-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ah-tabs::-webkit-scrollbar{display:none}
.ah-tab{flex:none;min-height:42px;padding:0 15px;border-radius:99px;border:1px solid var(--line);background:var(--card);color:var(--muted);font-weight:800;font-family:inherit;white-space:nowrap}
.ah-tab.on{background:var(--primary);color:#fff;border-color:transparent}
.ah-body.ah-in{animation:ahIn .3s ease both}
.ah-sec-h h3{margin:4px 0 0;font-size:17px}.ah-sec-h small{color:var(--muted)}.ah-sec-h{margin:4px 2px 10px}
.ah-sub-h{font-weight:800;color:var(--gold);margin:16px 2px 8px;font-size:13px}
.ah-quote{background:var(--soft);border-radius:16px;padding:12px 14px;line-height:2;font-size:14px;color:var(--text);margin-bottom:12px}
.ah-quote small{display:block;color:var(--muted);margin-top:4px;font-size:11px}
.ah-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ah-bigcard{background:linear-gradient(160deg,var(--card),var(--soft));border:1.5px solid var(--gold);border-radius:20px;min-height:104px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;cursor:pointer;position:relative;box-shadow:var(--shadow)}
.ah-bigcard .ah-row-t{font-family:var(--ayah-font,"Amiri",serif);font-size:21px;line-height:1.7;display:block}
.ah-bigcard:active,.ah-row:active{transform:scale(.98)}
.ah-fav-dot{color:#e45c7a;font-size:14px;margin-inline-start:6px}
.ah-bigcard .ah-fav-dot{position:absolute;top:8px;inset-inline-start:10px}
.ah-list{display:flex;flex-direction:column;gap:8px}
.ah-row{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 14px;min-height:56px;cursor:pointer}
.ah-row-main{flex:1;min-width:0}
.ah-row-t{display:block;font-size:15px;line-height:1.7;font-family:var(--ayah-font,"Amiri",serif)}
.ah-chip{display:inline-block;font-size:10.5px;font-weight:800;color:var(--text);background:var(--soft);border-radius:99px;padding:3px 10px;margin-top:2px}
.ah-names{display:flex;flex-wrap:wrap;gap:8px}
.ah-name{min-height:42px;padding:0 14px;border-radius:14px;border:1px solid var(--gold);background:var(--card);color:var(--text);font-family:var(--ayah-font,"Amiri",serif);font-size:16px;cursor:pointer}
.ah-note{background:var(--soft);color:var(--muted);border-radius:14px;padding:10px 12px;font-size:12px;line-height:1.9;margin:8px 0}
.ah-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:8px}
.ah-steps div{background:var(--card);border:1px solid var(--line);border-radius:14px;text-align:center;padding:8px 4px}
.ah-steps b{display:block;color:var(--gold);font-size:16px}.ah-steps span{font-size:11px;color:var(--muted)}
.ah-empty{text-align:center;color:var(--muted);padding:26px 10px;line-height:2}
.ah-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.ah-stats div{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:10px;text-align:center}
.ah-stats b{display:block;font-size:20px;color:var(--primary)}.ah-stats span{font-size:11px;color:var(--muted)}
.ah-loglist{display:flex;flex-direction:column;gap:6px}
.ah-logrow{display:flex;justify-content:space-between;gap:8px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;font-size:13px}
.ah-logrow small{color:var(--muted);white-space:nowrap}
.ah-clear{margin-top:10px;width:100%}

/* صفحة الذكر */
.ah-item-h{padding:6px 2px 10px;text-align:center}.ah-item-h small{color:var(--gold);font-weight:800}
.ah-item-h h1{margin:4px 0;font-size:20px;line-height:1.8;font-family:var(--ayah-font,"Amiri",serif)}
.ah-text-card{background:var(--card);border:1.5px solid var(--gold);border-radius:22px;padding:14px;box-shadow:var(--shadow);position:relative}
.ah-tags{display:flex;gap:6px;justify-content:center;margin-bottom:4px}
.ah-tag{font-size:10.5px;font-weight:800;border-radius:99px;padding:3px 10px;background:var(--soft);color:var(--text)}
.ah-tag.edu{background:#3a2f0c;color:#f1d98a}
.ah-name-big{font-size:34px}
.ah-counter{margin:14px 0;text-align:center}
.ah-tap{--p:0;width:178px;height:178px;border-radius:50%;border:0;padding:8px;cursor:pointer;margin:0 auto;display:block;
 background:conic-gradient(var(--gold) calc(var(--p)*1%),rgba(127,127,127,.22) 0);transition:transform .12s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ah-tap:active{transform:scale(.96)}.ah-tap.paused{opacity:.45}
.ah-tap-in{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;
 background:linear-gradient(150deg,#0f7a55,#064e3b);color:#fff;box-shadow:inset 0 0 0 2px rgba(231,199,106,.4)}
.ah-tap-in b{font-size:44px;line-height:1.1}.ah-tap-in small{font-size:12px;opacity:.85}
.ah-tap-lbl{margin-top:8px;font-weight:800;color:var(--primary)}
.ah-prefs{display:flex;justify-content:center;gap:16px;margin-top:10px;flex-wrap:wrap}
.ah-sw{display:flex;align-items:center;gap:6px;font-size:12.5px;min-height:36px;color:var(--text)}
.ah-sw input{width:20px;height:20px;accent-color:var(--primary)}
.ah-cnote{font-size:12px;color:var(--muted);line-height:1.9;margin-top:8px;padding:0 6px}
.ah-next{margin:6px 0 10px}
.ah-accs{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ah-acc{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ah-acc summary{padding:13px 14px;font-weight:800;cursor:pointer;min-height:44px;list-style:none}
.ah-acc summary::-webkit-details-marker{display:none}
.ah-acc-b{padding:0 14px 14px}
.ah-p{margin:6px 0;line-height:2;font-size:14px}.ah-p.small{font-size:12px;color:var(--muted)}
.ah-p.edu{color:var(--gold)}.ah-p.ev{background:var(--soft);border-radius:12px;padding:8px 10px}
.ah-hadith{font-family:var(--ayah-font,"Amiri",serif);font-size:18px;line-height:2.1;background:var(--soft);border-radius:14px;padding:10px 12px;margin:6px 0}
.ah-kv{display:flex;gap:8px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:13px;line-height:1.9}
.ah-kv b{flex:none;width:92px;color:var(--gold)}.ah-kv span{flex:1}

/* لحظة دعاء */
.ah-m-card{border-radius:24px;padding:22px 16px;text-align:center;border:1.5px solid rgba(231,199,106,.55)}
.ah-m-card>*{position:relative}.ah-m-card .ah-hero-ic{margin:0 auto 8px}
.ah-m-card h1{margin:0 0 8px;color:#fff6d6}
.ah-m-ayah{font-family:var(--ayah-font,"Amiri",serif);font-size:20px;line-height:2.1;color:#f6e7ad;margin:6px 0}
.ah-m-ayah small{font-size:11px;opacity:.8}
.ah-m-t{font-size:15px;font-weight:800;line-height:2;margin:8px 0}
.ah-m-s{font-size:12px;line-height:1.9;color:#cfe8dc;margin:4px 0 0}
.ah-m-write{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:14px;margin-top:12px}
.ah-m-write label{font-weight:800;display:block;margin-bottom:8px}
.ah-m-write textarea{width:100%;box-sizing:border-box;min-height:110px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:12px;font:inherit;line-height:1.9;resize:vertical}
.ah-m-priv{font-size:11.5px;color:var(--muted);margin-top:6px}
.ah-mydua{border-bottom:1px dashed var(--line);padding:8px 0}
.ah-mydua p{margin:0 0 6px;line-height:1.9;white-space:pre-wrap;word-break:break-word}
.ah-mydua div{display:flex;justify-content:space-between;align-items:center}.ah-mydua small{color:var(--muted)}

@keyframes ahIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:360px){.ah-day-txt,.ah-text{font-size:22px}.ah-tap{width:156px;height:156px}.ah-bigcard .ah-row-t{font-size:18px}}
@media (min-width:700px){.ah-page{max-width:640px;margin-inline:auto}.ah-home{max-width:640px}}
@media (prefers-reduced-motion:reduce){.ah-home,.ah-page,.ah-body.ah-in{animation:none}.ah-home,.ah-tap,.ah-btn{transition:none}}
