.azkar-wrap{ padding: 20px 16px 60px; max-width: 600px; }

.azkar-cards{ display:flex; flex-direction:column; gap:16px; }

.azkar-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); cursor:pointer; -webkit-tap-highlight-color: transparent;
  transition: all .3s ease; position:relative;
}
.azkar-card.done{ border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }

.azkar-card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.azkar-remaining{
  background: var(--gold); color:#171203; font-weight:900; font-size:.85rem;
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.azkar-card.done .azkar-remaining{ background: var(--green); color:#fff; }
.azkar-card.done .azkar-remaining::after{ content:'✓'; }

.azkar-text{ font-family: var(--font-display); font-size: 1.15rem; line-height:2; color: var(--text); text-align:right; }
.azkar-tap-hint{ margin-top:12px; text-align:center; font-size:.72rem; color: var(--text-dim); }
/* شريط البحث */
.search-box {
  margin: 15px 0;
}

/* -------- شريط الأدوات فوق قائمة الأقسام -------- */
.azkar-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
  margin-bottom:14px;
}
.azkar-streak{ font-size:.82rem; font-weight:700; color: var(--gold-bright); }

/* -------- علامة "اتقرت النهاردة" -------- */
.done-today-badge{ margin-right:6px; font-size:.85rem; }

/* -------- شريط أدوات إضافي داخل شاشة الذكر -------- */
.azkar-extra-toolbar{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:14px;
}
.azkar-extra-toolbar button{
  background: var(--surface-2); border:1px solid var(--border); color: var(--text);
  border-radius: 10px; padding:6px 12px; font-size:.8rem; font-weight:700; cursor:pointer;
  transition: all .2s ease;
}
.azkar-extra-toolbar button:hover{ border-color: var(--gold); color: var(--gold-bright); }
.azkar-extra-toolbar button.active{ background: var(--gold); color:#171203; border-color: var(--gold); }

.search-box input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2, #1e293b);
  border: 1px solid var(--border, #334155);
  color: var(--text, #fff);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
}

/* الرص العمودي للأذكار */
.categories-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* شكل كارت الذكر */
.islamic-category-card {
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* زر نجمة المفضلة */
.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.star-btn.fav-active {
  color: var(--gold, #e2b13c);
}
/* تأثير الماوس واللون الأصفر عند التمرير */
.islamic-category-card, .azkar-card {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none; /* منع تحديد النص عند الضغط المتكرر */
}

.islamic-category-card:hover {
  border-color: var(--gold, #e2b13c);
  box-shadow: 0 0 10px rgba(226, 177, 60, 0.2);
}
/* انكماش سريع واهتزاز بصري عند الضغط */
.azkar-card:active {
  transform: scale(0.98);
}

.shake-effect {
  animation: quickShake 0.15s ease-in-out;
}

@keyframes quickShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
/* تصميم صندوق المفكرة */
.dua-container {
  background: rgba(255, 255, 255, 0.05); /* لون شفاف شيك */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 0 auto 20px auto;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* تصميم مربع الكتابة */
#duaInput {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 16px;
}

/* تصميم زرار الحفظ */
.save-btn {
  background-color: #f1c40f; /* لون أصفر متناسق مع تصميمك */
  color: #000;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

/* تصميم الدعاء المحفوظ */
.saved-dua {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.saved-dua button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
}
/* ---------------- شريط استماع الذكر (صباح/مساء/نوم فقط) ---------------- */
.dhikr-audio-bar{
  display:flex; align-items:center; justify-content:flex-end; gap:10px;
  background: var(--surface-2); border:1px solid var(--border); border-radius: 30px;
  padding: 10px 16px; margin-bottom: 14px; color: var(--gold-bright, var(--gold));
  font-size:.9rem; font-weight:700;
}
.dhikr-play-btn{
  width:36px; height:36px; border-radius:50%; border:none; flex-shrink:0;
  background: var(--gold); color:#171203; font-size:1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .15s ease;
}
.dhikr-play-btn:hover{ transform: scale(1.08); }
.dhikr-play-btn:active{ transform: scale(.92); }


/* فاصل أقسام الحوامل */
.azkar-divider{ display:flex; align-items:center; gap:12px; margin:26px 0 14px; width:100%; }
.azkar-divider-line{ flex:1; height:2px; border-radius:2px; background: linear-gradient(90deg, transparent, var(--gold, #c99a2e), transparent); opacity:.75; }
.azkar-divider-badge{
  display:inline-flex; align-items:center; gap:10px; padding:9px 18px; border-radius:30px; white-space:nowrap;
  background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(46,125,91,.22));
  border:1px solid var(--gold, #c99a2e); color: var(--gold-bright, var(--gold, #c99a2e));
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.azkar-divider-badge b{ font-family: var(--font-display, 'Amiri', serif); font-size:1.05rem; }
.azkar-divider-badge i{ font-style:normal; font-size:.8rem; opacity:.85; }
.preg-card{ border-inline-start:3px solid var(--gold, #c99a2e); }

/* ===================== كارت "رسالتك اليوم" ===================== */
.daily-msg{
  --dm-ink:#6b4e10; --dm-flap:#f1ede4;
  position:relative; overflow:hidden; text-align:center;
  background: var(--surface); border:1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 74px 20px 22px; margin: 0 0 16px;
}
[data-theme="dark"] .daily-msg{ --dm-ink: var(--gold-bright); --dm-flap: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.dm-flap{
  position:absolute; top:0; left:0; right:0; height:56px; background: var(--dm-flap);
  clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events:none;
}
.dm-title-big{ margin:0 0 10px; font-family: var(--font-body); font-weight:900; font-size:1.5rem; color: var(--text); }
.dm-sub{ margin:0 auto 16px; max-width:320px; font-size:.95rem; line-height:1.9; color: var(--text-dim); }
.dm-open-btn{
  font-family: var(--font-body); font-weight:900; font-size:1rem; cursor:pointer; border:none;
  background: var(--dm-flap); color: var(--dm-ink); padding:12px 30px; border-radius: 30px;
  transition: transform .2s ease;
}
.dm-open-btn:active{ transform: scale(.96); }
.dm-label{ font-family: var(--font-body); font-weight:900; font-size:1rem; color: var(--dm-ink); margin-bottom:12px; }
.dm-text{
  font-family: var(--font-display); font-size:1.55rem; line-height:2.1; color: var(--text);
  margin:0 0 16px; white-space:pre-line;
}
.dm-actions{ display:flex; gap:22px; justify-content:flex-start; direction:ltr; }
.dm-icon-btn{ background:none; border:none; padding:6px; cursor:pointer; color: var(--dm-ink); border-radius:10px; }
.dm-icon-btn:active{ transform: scale(.9); }
.dm-opened:not([hidden]){ animation: dmFade .45s ease; }
@keyframes dmFade{ from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:none;} }

/* =============== نافذة مشاركة الذكر =============== */
.share-dlg-backdrop{ position:fixed; inset:0; z-index:100000; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:14px; }
.share-dlg{
  width:min(100%,440px); max-height:92vh; overflow-y:auto; direction:rtl;
  background:#f8f5ee; color:#2b2412; border-radius:28px; padding:22px 20px 18px;
  box-shadow:0 20px 50px rgba(0,0,0,.4); font-family:'Tajawal',sans-serif;
}
.share-dlg-title{ font-weight:900; font-size:1.15rem; color:#65511e; margin:2px 4px 14px; }
.share-tabs{ display:flex; background:#fff; border-radius:30px; padding:5px; gap:4px; margin-bottom:14px; }
.share-tabs button{ flex:1; padding:11px 0; border-radius:26px; font-weight:800; font-size:.95rem; color:#6b6b6b; background:transparent; border:none; cursor:pointer; font-family:inherit; }
.share-tabs button.active{ background:#65511e; color:#fff; }
.share-text-box{
  margin:0; background:#fff; border-radius:22px; padding:20px; max-height:42vh; overflow:auto;
  font-weight:400; white-space:pre-wrap; word-break:break-word; font-family:'Amiri','Tajawal',serif; font-size:1.15rem; line-height:2; text-align:right; color:#1d1608;
}
.share-image-box canvas{ display:block; width:100%; height:auto; max-height:48vh; object-fit:contain; border-radius:18px; box-shadow:0 2px 12px rgba(0,0,0,.18); }
.share-colors{ display:flex; flex-direction:row; justify-content:space-between; gap:6px; margin:16px 2px 12px; }
.share-color{ width:38px; height:38px; border-radius:50%; border:3px solid transparent; box-shadow:0 0 0 1px rgba(0,0,0,.18) inset; cursor:pointer; }
.share-color.active{ border-color:#65511e; box-shadow:0 0 0 2px #f8f5ee inset; }
.share-switch{ display:flex; align-items:center; justify-content:space-between; padding:10px 4px; font-weight:700; color:#4a3f20; cursor:pointer; }
.share-switch input{ position:absolute; opacity:0; pointer-events:none; }
.share-switch i{ position:relative; width:52px; height:30px; border-radius:20px; background:#fff; border:2px solid #d8d6d0; transition:all .2s; flex-shrink:0; }
.share-switch i::after{ content:''; position:absolute; top:4px; right:5px; width:18px; height:18px; border-radius:50%; background:#666; transition:all .2s; }
.share-switch input:checked + i{ background:#65511e; border-color:#65511e; }
.share-switch input:checked + i::after{ background:#fff; right:auto; left:5px; }
.share-actions{ display:flex; justify-content:space-between; align-items:center; margin-top:16px; flex-direction:row; }
.share-go{ background:#65511e; color:#fff; border-radius:30px; padding:15px 38px; font-weight:900; font-size:1rem; border:none; cursor:pointer; font-family:inherit; }
.share-cancel{ background:none; border:none; color:#666; font-weight:700; font-size:1rem; padding:10px 18px; cursor:pointer; font-family:inherit; }

/* خط الأذكار (بيتطبق على صفحة الأذكار بس) */
html[data-azkar-font] #categoriesList, html[data-azkar-font] #dhkarDetailView, html[data-azkar-font] .azkar-text,
html[data-azkar-font] #categoriesList *, html[data-azkar-font] #dhkarDetailView *{
  font-family: var(--azkar-font-stack) !important; font-weight: var(--azkar-font-weight, 400);
}
.azkar-font-panel{ position:fixed; inset:0; z-index:9000; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:16px; }
.azkar-font-box{ background: var(--surface, #1b1b1b); border:1px solid var(--border); border-radius:16px; width:100%; max-width:520px; max-height:80vh; overflow:auto; padding:14px; }
.azkar-font-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color: var(--text); }
.azkar-font-head button{ background:none; border:none; color: var(--text); font-size:1.1rem; cursor:pointer; }
.azkar-font-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.azkar-font-opt{ background: var(--surface-2); border:1px solid var(--border); color: var(--text); border-radius:12px; padding:10px 8px; cursor:pointer; display:flex; flex-direction:column; gap:4px; align-items:center; }
.azkar-font-opt.active{ border-color: var(--gold); box-shadow:0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.azkar-font-opt .s{ font-size:1.05rem; line-height:1.6; }
.azkar-font-opt .n{ font-size:.75rem; color: var(--text-dim); }

.study-card{ border-inline-start:3px solid var(--gold, #c99a2e); }

/* ---------- زر التذكير ⏰ ---------- */
.alarm-btn{ background:none; border:none; cursor:pointer; padding:4px 8px; color:#64748b; line-height:0; }
.alarm-btn svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.alarm-btn.on{ color:var(--gold-bright, #e2b13c); }
.alarm-btn.on svg{ fill:color-mix(in srgb, currentColor 25%, transparent); }
.rem-back{ position:fixed; inset:0; z-index:9500; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:16px; direction:rtl; }
.rem-back.hidden{ display:none; }
.rem-box{ width:100%; max-width:420px; max-height:92vh; overflow:auto; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:22px; padding:20px; box-shadow:var(--shadow); }
.rem-box h3{ font-family:var(--font-display); font-size:1.25rem; margin-bottom:14px; }
.rem-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; }
.rem-sw{ position:relative; width:52px; height:30px; flex:none; }
.rem-sw input{ position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.rem-sw i{ position:absolute; inset:0; border-radius:99px; background:#94a3b8; transition:.2s; }
.rem-sw i::after{ content:''; position:absolute; top:3px; right:3px; width:24px; height:24px; border-radius:50%; background:#fff; transition:.2s; }
.rem-sw input:checked + i{ background:var(--green-bright, #2e9d6b); }
.rem-sw input:checked + i::after{ right:25px; }
.rem-tabs{ display:flex; gap:8px; margin:8px 0 10px; }
.rem-tabs button, .rem-chips button, .rem-list button{ border:1px solid var(--border); background:var(--surface-2); color:var(--text); font:inherit; border-radius:12px; padding:9px 14px; cursor:pointer; }
.rem-tabs button{ flex:1; }
.rem-tabs button.on, .rem-chips button.on, .rem-list button.on{ background:var(--gold-bright, #e2b13c); color:#1a1a1a; font-weight:700; border-color:transparent; }
.rem-lbl{ color:var(--text-dim); font-size:.85rem; margin:10px 0 6px; }
.rem-list{ display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.rem-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.rem-chips button{ padding:8px 12px; font-size:.85rem; }
#remTime{ padding:8px 10px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); color:var(--text); font:inherit; }
.rem-next{ color:var(--text-dim); font-size:.9rem; margin-top:10px; min-height:1.3em; }
.rem-note{ color:var(--text-dim); font-size:.78rem; margin-top:10px; line-height:1.7; }
.rem-actions{ display:flex; justify-content:flex-start; gap:10px; margin-top:16px; }
.rem-actions button{ border:0; background:none; color:var(--gold-bright, #c9a24b); font:inherit; font-weight:700; padding:8px 14px; cursor:pointer; border-radius:10px; }
.rem-actions button.main{ background:var(--gold-bright, #e2b13c); color:#1a1a1a; }

/* ---------- أذكاري الخاصة ---------- */
.cz-new{ display:block; width:100%; margin:0 0 12px; }
.cz-edit{ background:none; border:none; cursor:pointer; font-size:1.1rem; padding:4px 6px; }
.cz-name, .cz-row textarea, .cz-row input{ width:100%; padding:10px; border-radius:12px; border:1px solid var(--border); background:var(--surface-2); color:var(--text); font:inherit; }
.cz-name{ margin-bottom:10px; }
.cz-row{ display:flex; flex-direction:column; gap:6px; padding:8px 0; border-bottom:1px dashed var(--border); }
.cz-side{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.8rem; color:var(--text-dim); }
.cz-side label{ display:flex; align-items:center; gap:6px; }
.cz-side input{ width:70px; padding:6px; }
.cz-rm{ border:0; background:none; color:var(--danger,#c0524a); cursor:pointer; font-size:1rem; }
.cz-add{ margin-top:10px; border:1px dashed var(--gold-bright); background:none; color:var(--gold-bright); padding:9px; border-radius:12px; width:100%; font:inherit; cursor:pointer; }
