/* ===================================================================
   azkar-cards.css — كروت أقسام الأذكار: خلفية بوقت اليوم + حلقة تقدّم النهاردة
   (الصباح: شروق، المساء: غروب ومئذنة، النوم: ليل وقمر، الاستيقاظ: نهار صافي)
=================================================================== */
.islamic-category-card.ac-card{
  --ac:#c9a24b; --p:0;
  position:relative; isolation:isolate; overflow:hidden; gap:12px; padding:12px 14px 12px 8px; min-height:74px;
  border-radius:18px; border:1px solid color-mix(in srgb, var(--ac) 38%, var(--border, #334155));
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--ac) 13%, transparent), transparent 60%),
    var(--surface, #1e293b);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s ease, box-shadow .25s ease;
}
.islamic-category-card.ac-card:hover{ transform:translateY(-2px); border-color:var(--ac); box-shadow:0 8px 22px color-mix(in srgb, var(--ac) 26%, transparent); }
.islamic-category-card.ac-card:active{ transform:scale(.985); }

/* خلفية المشهد (للصباح/المساء/النوم/الاستيقاظ) */
.ac-card.scene{ min-height:88px; }
.ac-card.scene::before{
  content:''; position:absolute; inset:0; z-index:-2; background: var(--art) center bottom / cover no-repeat; opacity:.66;
  transition: opacity .3s ease, transform .8s ease;
}
.ac-card.scene::after{
  content:''; position:absolute; inset:0; z-index:-1; --sv:var(--surface, #1e293b);
  background: linear-gradient(to left, color-mix(in srgb, var(--sv) 86%, transparent) 0%, color-mix(in srgb, var(--sv) 72%, transparent) 30%, color-mix(in srgb, var(--sv) 8%, transparent) 58%, color-mix(in srgb, var(--sv) 8%, transparent) 78%, color-mix(in srgb, var(--sv) 55%, transparent) 100%);
}
[data-theme="light"] .ac-card.scene::before{ opacity:.8; }
[data-theme="light"] .ac-card.scene::after{ --sv:#fff; }
.ac-card.scene:hover::before{ transform:scale(1.05); }
.ac-card.sc-sabah{ --ac:#f0a35c; --art:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 100%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%235a6fd6%22/%3E%3Cstop offset=%22.55%22 stop-color=%22%23f0a0a8%22/%3E%3Cstop offset=%221%22 stop-color=%22%23ffd08a%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22g%22%3E%3Cstop offset=%220%22 stop-color=%22%23fff3c4%22 stop-opacity=%22.95%22/%3E%3Cstop offset=%221%22 stop-color=%22%23fff3c4%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect width=%22300%22 height=%22100%22 fill=%22url(%23s)%22/%3E%3Ccircle cx=%22150%22 cy=%2280%22 r=%2252%22 fill=%22url(%23g)%22/%3E%3Cg stroke=%22%23fff3c4%22 stroke-opacity=%22.55%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22207.3%22 y2=%2256.3%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22193.8%22 y2=%2236.2%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22173.7%22 y2=%2222.7%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22150.0%22 y2=%2218.0%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22126.3%22 y2=%2222.7%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%22106.2%22 y2=%2236.2%22/%3E%3Cline x1=%22150%22 y1=%2280%22 x2=%2292.7%22 y2=%2256.3%22/%3E%3C/g%3E%3Ccircle cx=%22150%22 cy=%2282%22 r=%2218%22 fill=%22%23fff0b0%22/%3E %3Cg fill=%22%23fff%22 fill-opacity=%22.45%22%3E%3Cellipse cx=%2260%22 cy=%2230%22 rx=%2226%22 ry=%226%22/%3E%3Cellipse cx=%2278%22 cy=%2225%22 rx=%2216%22 ry=%225%22/%3E%3Cellipse cx=%22250%22 cy=%2242%22 rx=%2222%22 ry=%225%22/%3E%3C/g%3E%3Cpath d=%22M0 86 Q60 70 120 84 T240 82 T300 80 V100 H0Z%22 fill=%22%233a4a8c%22 fill-opacity=%22.6%22/%3E%3Cpath d=%22M0 95 Q80 83 160 93 T300 90 V100 H0Z%22 fill=%22%232c3770%22 fill-opacity=%22.8%22/%3E%3C/svg%3E"); }
.ac-card.sc-masaa{ --ac:#e0685a; --art:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 100%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%2340307a%22/%3E%3Cstop offset=%22.5%22 stop-color=%22%23d9645a%22/%3E%3Cstop offset=%221%22 stop-color=%22%23ffb26b%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22g%22%3E%3Cstop offset=%220%22 stop-color=%22%23ffd199%22 stop-opacity=%22.9%22/%3E%3Cstop offset=%221%22 stop-color=%22%23ffd199%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect width=%22300%22 height=%22100%22 fill=%22url(%23s)%22/%3E%3Ccircle cx=%22150%22 cy=%2284%22 r=%2250%22 fill=%22url(%23g)%22/%3E%3Ccircle cx=%22150%22 cy=%2286%22 r=%2219%22 fill=%22%23ffc27a%22/%3E %3Cg fill=%22%232a1d4f%22 fill-opacity=%22.85%22%3E%3Crect x=%2222%22 y=%2250%22 width=%225%22 height=%2240%22/%3E%3Cpath d=%22M22 50 l2.5 -9 l2.5 9z%22/%3E%3Cpath d=%22M36 88 v-14 a16 16 0 0 1 32 0 v14z%22/%3E%3Crect x=%2266%22 y=%2258%22 width=%225%22 height=%2232%22/%3E%3Cpath d=%22M66 58 l2.5 -8 l2.5 8z%22/%3E%3Crect x=%220%22 y=%2284%22 width=%22100%22 height=%2216%22/%3E%3C/g%3E%3Cpath d=%22M0 86 Q60 70 120 84 T240 82 T300 80 V100 H0Z%22 fill=%22%236a3a78%22 fill-opacity=%22.6%22/%3E%3Cpath d=%22M0 95 Q80 83 160 93 T300 90 V100 H0Z%22 fill=%22%233a2560%22 fill-opacity=%22.8%22/%3E%3C/svg%3E"); }
.ac-card.sc-nawm{ --ac:#8a73e8; --art:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 100%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%230d1038%22/%3E%3Cstop offset=%221%22 stop-color=%22%232c2a72%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22g%22%3E%3Cstop offset=%220%22 stop-color=%22%23cfd6ff%22 stop-opacity=%22.5%22/%3E%3Cstop offset=%221%22 stop-color=%22%23cfd6ff%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect width=%22300%22 height=%22100%22 fill=%22url(%23s)%22/%3E%3Ccircle cx=%22150%22 cy=%2246%22 r=%2244%22 fill=%22url(%23g)%22/%3E%3Ccircle cx=%22150%22 cy=%2246%22 r=%2218%22 fill=%22%23f3efd0%22/%3E%3Ccircle cx=%22159%22 cy=%2241%22 r=%2216%22 fill=%22%231b1d5a%22/%3E %3Cg fill=%22%23fff%22%3E%3Ccircle cx=%2240%22 cy=%2220%22 r=%221.4%22/%3E%3Ccircle cx=%2290%22 cy=%2252%22 r=%221.1%22/%3E%3Ccircle cx=%22215%22 cy=%2222%22 r=%221.6%22/%3E%3Ccircle cx=%22246%22 cy=%2248%22 r=%221.2%22/%3E%3Ccircle cx=%22276%22 cy=%2218%22 r=%221.5%22/%3E%3Ccircle cx=%2264%22 cy=%2272%22 r=%221%22/%3E%3Ccircle cx=%22256%22 cy=%2270%22 r=%221.2%22/%3E%3Ccircle cx=%22110%22 cy=%2224%22 r=%221%22/%3E%3Ccircle cx=%2220%22 cy=%2250%22 r=%221%22/%3E%3C/g%3E %3Cpath d=%22M0 90 Q70 78 140 90 T300 86 V100 H0Z%22 fill=%22%2312134a%22 fill-opacity=%22.9%22/%3E%3C/svg%3E"); }
.ac-card.sc-istiqaz{ --ac:#e6c24a; --art:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 100%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%238fd0ff%22/%3E%3Cstop offset=%221%22 stop-color=%22%23fff2c4%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22g%22%3E%3Cstop offset=%220%22 stop-color=%22%23fff6c0%22 stop-opacity=%22.95%22/%3E%3Cstop offset=%221%22 stop-color=%22%23fff6c0%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect width=%22300%22 height=%22100%22 fill=%22url(%23s)%22/%3E%3Ccircle cx=%22150%22 cy=%2244%22 r=%2248%22 fill=%22url(%23g)%22/%3E%3Ccircle cx=%22150%22 cy=%2244%22 r=%2217%22 fill=%22%23ffe27a%22/%3E %3Cg fill=%22%23fff%22 fill-opacity=%22.85%22%3E%3Cellipse cx=%2260%22 cy=%2234%22 rx=%2230%22 ry=%227%22/%3E%3Cellipse cx=%2282%22 cy=%2228%22 rx=%2218%22 ry=%226%22/%3E%3Cellipse cx=%22248%22 cy=%2252%22 rx=%2226%22 ry=%226%22/%3E%3Cellipse cx=%22210%22 cy=%2224%22 rx=%2220%22 ry=%225%22/%3E%3C/g%3E%3Cpath d=%22M0 86 Q60 70 120 84 T240 82 T300 80 V100 H0Z%22 fill=%22%237fb7e0%22 fill-opacity=%22.6%22/%3E%3Cpath d=%22M0 95 Q80 83 160 93 T300 90 V100 H0Z%22 fill=%22%235d9ccc%22 fill-opacity=%22.8%22/%3E%3C/svg%3E"); }

/* الأيقونة داخل نجمة */
.ac-ico{
  position:relative; isolation:isolate; flex:none; width:46px; height:46px; display:grid; place-items:center;
  font-size:1.35rem; line-height:1;
}
.ac-ico::before, .ac-ico::after{
  content:''; position:absolute; inset:7px; z-index:-1; border-radius:6px;
  background: color-mix(in srgb, var(--ac) 24%, var(--surface, #1e293b));
  border:1.5px solid color-mix(in srgb, var(--ac) 80%, transparent);
}
.ac-ico::after{ transform:rotate(45deg); }
[data-theme="light"] .ac-ico::before, [data-theme="light"] .ac-ico::after{ background: color-mix(in srgb, var(--ac) 20%, #fff); }

.ac-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; cursor:pointer; }
.ac-name{ font-weight:800; font-size:1rem; line-height:1.45; color:var(--text, #fff); }
.ac-sub{ font-size:.72rem; color:var(--text-dim, #94a3b8); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ac-card.done .ac-sub{ color: color-mix(in srgb, var(--gold-bright, #e2b13c) 70%, var(--text, #fff)); font-weight:700; }
[data-theme="light"] .ac-card.done .ac-sub{ color: color-mix(in srgb, var(--gold-bright, #e2b13c) 55%, #000); }
.ac-now{
  font-size:.62rem; font-weight:800; padding:1px 8px; border-radius:99px; color:#171203; background: var(--ac);
  animation: acPulse 2.4s ease-in-out infinite;
}
@keyframes acPulse{ 0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--ac) 55%, transparent); } 50%{ box-shadow:0 0 0 5px transparent; } }

/* حلقة التقدّم */
.ac-ring{ position:relative; flex:none; width:46px; height:46px; cursor:pointer; }
.ac-ring svg{ width:100%; height:100%; transform:rotate(-90deg); display:block; }
.ac-ring circle{ fill:none; stroke-width:4.5; }
.ac-ring .bg{ stroke: color-mix(in srgb, var(--text, #fff) 16%, transparent); }
.ac-ring .fg{
  stroke: var(--ac); stroke-linecap:round; stroke-dasharray:113.1; stroke-dashoffset:113.1;
  transition: stroke-dashoffset .8s cubic-bezier(.22,.8,.3,1);
}
[data-theme="light"] .ac-ring .fg{ stroke: color-mix(in srgb, var(--ac) 82%, #000); }
.ac-ring b{ position:absolute; inset:0; display:grid; place-items:center; font-size:.68rem; font-weight:800; color:var(--text, #fff); }
.ac-card.done .ac-ring .fg{ stroke: var(--gold-bright, #e2b13c); }
[data-theme="light"] .ac-card.done .ac-ring .fg{ stroke: color-mix(in srgb, var(--gold-bright, #e2b13c) 70%, #b45309); }
.ac-card.done .ac-ring b{ color:#171203; font-size:.85rem; }
.ac-card.done .ac-ring::before{
  content:''; position:absolute; inset:7px; border-radius:50%; background: var(--gold-bright, #e2b13c);
  box-shadow:0 0 12px color-mix(in srgb, var(--gold-bright, #e2b13c) 55%, transparent);
}
.ac-card.done .ac-ring b{ z-index:1; }

.ac-card .alarm-btn{ padding:4px 4px; }
.ac-card .alarm-btn svg{ width:24px; height:24px; }
.ac-card .star-btn{ padding:0 2px; font-size:1.4rem; }
.ac-card .cz-edit{ padding:4px 2px; }

@media (max-width:380px){
  .islamic-category-card.ac-card{ gap:8px; padding:10px 10px 10px 4px; }
  .ac-ico{ width:40px; height:40px; font-size:1.2rem; }
  .ac-ico::before, .ac-ico::after{ inset:6px; }
  .ac-ring{ width:40px; height:40px; }
  .ac-name{ font-size:.92rem; }
}
@media (prefers-reduced-motion:reduce){ .ac-ring .fg, .ac-card.scene::before, .islamic-category-card.ac-card{ transition:none; } .ac-now{ animation:none; } }
[data-reduce-motion="1"] .ac-ring .fg, [data-reduce-motion="1"] .ac-card.scene::before, [data-reduce-motion="1"] .islamic-category-card.ac-card{ transition:none; }
[data-reduce-motion="1"] .ac-now{ animation:none; }
