/* ==========================================================================
   زاد المسلم • التصميم الشامل المستوحى والمطابق للنموذج المرجعي
   ========================================================================== */
@import url('fonts.css');

:root,
[data-theme="light"],
body.light-theme {
    color-scheme: light;
    /* النواة الدلالية الموحدة للمظهر النهاري (Semantic Theme Tokens - Light) */
    --bg-primary: #F7F9F6;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F0F5F1;
    --text-primary: #193B34;
    --text-secondary: #536A60;
    --text-muted: #64786D;
    --primary: #073F35;
    --primary-hover: #0E6654;
    --primary-contrast: #FFFFFF;
    --accent: #A87927;
    --accent-bg: #FFF5E3;
    --border-color: #DFE9E1;
    --shadow-color: rgba(7, 63, 53, 0.08);
    --nav-bg: #FFFFFF;
    --input-bg: #FFFFFF;
    --gold-rgb: #A87927;
    /* توافق المتغيرات الكلاسيكية والمرجعية */
    --dark: #073F35;
    --green: #0E6654;
    --mint: #E8F4EF;
    --gold: #A87927;
    --ink: #193B34;
    --muted: #64786D;
    --bg: #F7F9F6;
    --bg-main: #F7F9F6;
    --bg-surface: #FFFFFF;
    --bg-card-hover: #F0F5F1;
    --card-bg: #FFFFFF;
    --card: #FFFFFF;
    --card-2: #F0F5F1;
    --bg-dark: #F7F9F6;
    --text-color: #193B34;
    --border-glow: rgba(14, 102, 84, 0.25);
    /* تدرجات الذهب والأخضر */
    --gold-100: #FFF5E3;
    --gold-200: #A87927;
    --gold-300: #D8A547;
    --gold-400: #BF8C2E;
    --gold-500: #A87927;
    --gold-600: #8E651E;
    --gold-700: #735014;
    --emerald-400: #10B981;
    --emerald-500: #0E6654;
    --emerald-900: #073F35;
    --text-gold: #A87927;
    /* تأثيرات الظلال */
    --shadow-sm: 0 2px 8px rgba(7, 63, 53, 0.04);
    --shadow-md: 0 6px 28px rgba(7, 63, 53, 0.08);
    --shadow-gold: 0 0 20px rgba(168, 121, 39, 0.15);
    --shadow-emerald: 0 0 25px rgba(14, 102, 84, 0.15);
    /* الخطوط */
    --font-body: 'Cairo', Tahoma, sans-serif;
    --font-heading: 'Cairo', Tahoma, sans-serif;
    --font-quran: 'Amiri', serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 13px;
    --radius-lg: 22px;
    --radius-xl: 25px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    color-scheme: dark;

    /* النواة الدلالية الموحدة للمظهر الليلي (Semantic Theme Tokens - Dark) */
    --bg-primary: #081C17;
    --bg-secondary: #102820;
    --bg-card: #163329;
    --bg-elevated: #1D4033;

    --text-primary: #F3F8F4;
    --text-secondary: #C0D4C8;
    --text-muted: #A7BFB0;

    --primary: #73D3AB;
    --primary-hover: #9BE5C3;
    --primary-contrast: #081C17;

    --accent: #E6BD70;
    --accent-bg: #3B3220;

    --border-color: #315346;
    --shadow-color: rgba(0, 0, 0, 0.25);

    --nav-bg: #102820;
    --input-bg: #1D4033;

    /* توافق المتغيرات الكلاسيكية والمرجعية للوضع الليلي */
    --dark: #73D3AB;
    --green: #73D3AB;
    --mint: #1D4033;
    --gold: #E6BD70;
    --ink: #F3F8F4;
    --muted: #A7BFB0;
    --bg: #081C17;
    --bg-main: #081C17;
    --bg-surface: #102820;
    --bg-card-hover: #1D4033;
    --card-bg: #163329;
    --bg-dark: #081C17;
    --text-color: #F3F8F4;
    --border-glow: rgba(115, 211, 171, 0.25);

    /* تدرجات الذهب والأخضر للوضع الليلي */
    --gold-100: #FFF5E3;
    --gold-200: #FCE8A8;
    --gold-300: #E6BD70;
    --gold-400: #E6BD70;
    --gold-500: #D8A547;
    --gold-600: #C49234;
    --gold-700: #A87927;
    --emerald-400: #73D3AB;
    --emerald-500: #34D399;
    --emerald-900: #081C17;
    --text-gold: #E6BD70;

    /* تأثيرات الظلال */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 0 20px rgba(230, 189, 112, 0.15);
    --shadow-emerald: 0 0 25px rgba(115, 211, 171, 0.15);
}

/* منع وميض الانتقالات اللونية أثناء التحميل الأولي (Prevent CSS Transition Flash) */
.preload-theme-no-transitions,
.preload-theme-no-transitions *,
.preload-theme-no-transitions *::before,
.preload-theme-no-transitions *::after {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
  animation-duration: 0s !important;
}

/* ==========================================================================
   التنسيقات المرجعية المتطابقة تماماً (Reference Design Exact Styles)
   المأخوذة حرفياً من zadmuslim-preview.html
   ========================================================================== */
.section-head,
.services-search-wrapper,
.category-block{
    padding:0 25px;
}
.top {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

/* نمط الإخفاء الذكي للهيدر عند التمرير لأسفل والإظهار عند العودة لأعلى */
.top.header-hidden,
.app-native-header.header-hidden {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  background: var(--primary);
  color: var(--accent);
  border-radius: 16px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
    .logo-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
.links {
  display: flex;
  gap: 29px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.links a {
  position: relative;
  padding: 6px 2px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover,
.links a.active {
  color: var(--primary);
}

.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn {
  border: 0;
  border-radius: 13px;
  padding: 11px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.solid {
  background: var(--primary);
  color: var(--primary-contrast);
}

.solid:hover {
  background: var(--primary-hover);
  color: var(--primary-contrast);
}

.outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  margin-top: 28px;
  border-radius: 28px;
  background: radial-gradient(circle at 8% 20%, #216f5a 0%, transparent 36%), linear-gradient(115deg, #064034, #0d5a49);
  color: white;
  min-height: 295px;
  padding: 45px 55px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: start;
}

.hero:before {
  content: '۞';
  position: absolute;
  left: 9%;
  top: -125px;
  font-size: 420px;
  color: #ffffff09;
  pointer-events: none;
}

.eyebrow {
    color: #bd8819 !important;
    font-size: 12px;
    font-weight: bold;
}

#today {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.6;
  margin: 12px 0 6px;
  font-weight: 900;
  color: #ffffff !important;
}

.hero p {
  font-size: 14px;
  line-height: 2;
  color: #d4e9df !important;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.gold {
  background: #d9b773;
  color: #163d31 !important;
}

.gold:hover {
  background: #e5c68c;
  color: #163d31 !important;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.moon {
  font-size: 110px;
  opacity: .95;
  margin-left: 70px;
  color: #f8ecc2 !important;
  filter: drop-shadow(0 0 35px rgba(246, 220, 141, 0.45));
  user-select: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 18px;
}
#services {
    display: unset !important;
    margin: 36px 0 18px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}

.subtle {
  font-size: 13px;
  color: var(--green);
  font-weight: 800;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.panel h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.panel .small, .small {
  font-size: 12px;
  color: var(--text-muted);
}

.prayer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 17px;
  margin-top: 20px;
}

.prayer strong {
  font-size: 18px;
  color: var(--text-primary);
  display: block;
}

.prayer .icon {
  font-size: 36px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.bar {
  height: 10px;
  border-radius: 99px;
  background: var(--border-color);
  overflow: hidden;
  margin: 10px 0;
}

.fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  transition: .3s;
}

.tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 17px;
}

.task {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 13px;
  border-radius: 13px;
  text-align: start;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.task.done {
  background: var(--bg-elevated);
  border-color: var(--emerald-400);
  color: var(--emerald-500);
}

.task span {
  margin-inline-end: 7px;
  font-weight: 800;
}

.dhikr {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.dhikr .quote {
  font-size: 20px;
  line-height: 2.1;
  font-weight: 800;
  margin: 19px auto;
  max-width: 430px;
  color: var(--text-primary);
}

.count {
  font-size: 12px;
  color: var(--text-muted);
}

.counter {
  font-size: 42px;
  font-weight: 900;
  color: var(--emerald-500);
  margin: 0;
  font-family: inherit;
}

.counter-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 19px;
  padding: 24px 18px;
  min-height: 175px;
  transition: .2s;
  text-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text-primary);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-md);
}

.fi {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--bg-elevated);
  color: var(--emerald-500);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.feature p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   بطاقات اختصارات الصفحة الرئيسية المدمجة (Home Quick Services Cards)
   ========================================================================== */
.features.quick-access-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--shortcut-columns, 4), minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
}

.home-quick-card.feature {
    background: #ffffff;
    border: 1px solid #ebd9b8;
    border-radius: 18px;
    padding: 14px 6px 12px 6px;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

[data-theme="dark"] .home-quick-card.feature {
    background: var(--bg-card, #1a2f26);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-quick-card.feature:hover,
.home-quick-card.feature:active {
    transform: translateY(-2px);
    border-color: var(--gold-400, #d4af37);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
}

.home-quick-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #eef6f2;
    color: #0d4a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .home-quick-icon-box {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.home-quick-card.feature:hover .home-quick-icon-box {
    transform: scale(1.06);
}

.home-quick-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #152e25;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    line-height: 1.2;
}

[data-theme="dark"] .home-quick-title {
    color:#f4f8f5;
}

/* زر باقي الخدمات */
.home-services-more-wrap {
    text-align: center;
    margin: 14px 0 28px;
    width: 100%;
}

.home-more-services-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px 20px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #ebd9b8 !important;
    color: #0d4a3e !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] .home-more-services-btn {
    background: var(--bg-card, #1a2f26) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: var(--gold-400, #e6cf8d) !important;
}

.home-more-services-btn:hover,
.home-more-services-btn:active {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--gold-400, #d4af37) !important;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .features.quick-access-grid {
        gap: 6px !important;
    }
    .home-quick-card.feature {
        padding: 10px 4px 10px 4px !important;
        border-radius: 14px !important;
    }
    .home-quick-icon-box {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }
    .home-quick-title {
        font-size: 0.8rem !important;
    }
    .home-more-services-btn {
        padding: 11px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   بطاقة الصدقة الجارية وإهداء الثواب المميزة (Luxury Sadaqa Jariya Panel)
   ========================================================================== */
.bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin: 30px 0 55px;
  align-items: stretch;
}

@media (max-width: 850px) {
  .bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.panel.sadaqa {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.45rem;
  background: linear-gradient(145deg, rgba(32, 24, 12, 0.94) 0%, rgba(16, 32, 25, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(212, 175, 55, 0.05);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel.sadaqa:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.12);
}

.panel.sadaqa::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400, #f1c40f), transparent);
  pointer-events: none;
}

.sadaqa-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sadaqa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fce8a8;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  padding: 4px 12px;
}

.sadaqa-subtle-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a4c2b7;
}

.sadaqa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.sadaqa-icon-aura {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(245, 158, 11, 0.15));
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-400, #f1c40f);
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22);
}

.sadaqa-header-text h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.sadaqa-header-text p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #a4c2b7;
  line-height: 1.45;
}

/* Hadith Callout Block */
.sadaqa-hadith-card {
  margin: 8px 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-inline-start: 3.5px solid var(--gold-400, #f1c40f);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
#seven-day-challenge{
    padding:25px 0 ;
}
.sadaqa-hadith-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #e2ece5;
}

.sadaqa-hadith-ref {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-400, #d4af37);
  margin-top: 5px;
  text-align: end;
}

/* Feature Pills */
.sadaqa-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sadaqa-pill,
.challenge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

.sadaqa-pill i,
.challenge-pill i {
  color: var(--gold-400, #d4af37);
  font-size: 0.82rem;
}

.sadaqa-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}

/* Action Area */
.sadaqa-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sadaqa-cta-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #082218;
  background: linear-gradient(135deg, #f6d878 0%, #d4af37 60%, #b8932b 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.sadaqa-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
  filter: brightness(1.06);
}

.sadaqa-secondary-link,
.challenge-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 700;
  color: #a4c2b7;
  text-decoration: none;
  padding: 5px 8px;
  transition: color 0.2s ease;
}

.sadaqa-secondary-link:hover {
  color: var(--gold-400, #d4af37);
}

.challenge-secondary-link:hover {
  color: #34d399;
}

/* ==========================================================================
   بطاقة تحدي 7 أيام المتناسقة (Challenge Panel)
   ========================================================================== */
.panel.challenge {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.45rem;
  background: linear-gradient(145deg, rgba(14, 38, 30, 0.92) 0%, rgba(8, 24, 18, 0.96) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 25px rgba(16, 185, 129, 0.04);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel.challenge:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3), 0 0 18px rgba(16, 185, 129, 0.12);
}

.panel.challenge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  pointer-events: none;
}

.challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.challenge-icon-aura {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.challenge-header-text h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.challenge-header-text p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #a4c2b7;
  line-height: 1.45;
}

.challenge-quote-card {
  margin: 8px 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border-inline-start: 3.5px solid #10b981;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-quote-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2ece5;
}

.challenge-quote-ref {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-top: 5px;
  text-align: end;
}

.challenge-cta-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2ece5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.challenge-cta-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   التوافق التام مع الوضع الفاتح (Light Theme Overrides for Sadaqa & Challenge)
   ========================================================================== */
html[data-theme="light"] .panel.sadaqa,
[data-theme="light"] .panel.sadaqa,
body.light-theme .panel.sadaqa {
  background: linear-gradient(145deg, #FFFFFF 0%, #FDF9F0 100%) !important;
  border: 1px solid #E6D2B5 !important;
  box-shadow: 0 10px 30px rgba(168, 121, 39, 0.08) !important;
}

html[data-theme="light"] .sadaqa-badge,
[data-theme="light"] .sadaqa-badge,
body.light-theme .sadaqa-badge {
  background: #FFF5E3 !important;
  border-color: #E6BD70 !important;
  color: #A87927 !important;
}

html[data-theme="light"] .sadaqa-subtle-tag,
[data-theme="light"] .sadaqa-subtle-tag,
body.light-theme .sadaqa-subtle-tag {
  color: #557064 !important;
}

html[data-theme="light"] .sadaqa-icon-aura,
[data-theme="light"] .sadaqa-icon-aura,
body.light-theme .sadaqa-icon-aura {
  background: #FFF5E3 !important;
  border-color: #E6BD70 !important;
  color: #A87927 !important;
  box-shadow: 0 4px 12px rgba(168, 121, 39, 0.15) !important;
}

html[data-theme="light"] .sadaqa-header-text h2,
[data-theme="light"] .sadaqa-header-text h2,
body.light-theme .sadaqa-header-text h2 {
  color: #1A382D !important;
}

html[data-theme="light"] .sadaqa-header-text p,
[data-theme="light"] .sadaqa-header-text p,
body.light-theme .sadaqa-header-text p {
  color: #557064 !important;
}

html[data-theme="light"] .sadaqa-hadith-card,
[data-theme="light"] .sadaqa-hadith-card,
body.light-theme .sadaqa-hadith-card {
  background: #F8F5EE !important;
  border-inline-start-color: #C99738 !important;
  border-color: #EADDC7 !important;
}

html[data-theme="light"] .sadaqa-hadith-text,
[data-theme="light"] .sadaqa-hadith-text,
body.light-theme .sadaqa-hadith-text {
  color: #385045 !important;
}

html[data-theme="light"] .sadaqa-hadith-ref,
[data-theme="light"] .sadaqa-hadith-ref,
body.light-theme .sadaqa-hadith-ref {
  color: #A87927 !important;
}

html[data-theme="light"] .sadaqa-pill,
[data-theme="light"] .sadaqa-pill,
body.light-theme .sadaqa-pill {
  background: #F4EFE6 !important;
  border-color: #E2D5BF !important;
  color: #2A4438 !important;
}

html[data-theme="light"] .sadaqa-pill i,
[data-theme="light"] .sadaqa-pill i,
body.light-theme .sadaqa-pill i {
  color: #A87927 !important;
}

html[data-theme="light"] .sadaqa-secondary-link,
[data-theme="light"] .sadaqa-secondary-link,
body.light-theme .sadaqa-secondary-link {
  color: #557064 !important;
}

html[data-theme="light"] .sadaqa-secondary-link:hover,
[data-theme="light"] .sadaqa-secondary-link:hover,
body.light-theme .sadaqa-secondary-link:hover {
  color: #A87927 !important;
}

/* Light Theme for Challenge */
html[data-theme="light"] .panel.challenge,
[data-theme="light"] .panel.challenge,
body.light-theme .panel.challenge {
  background: #FFFFFF !important;
  border: 1px solid #DFE9E1 !important;
  box-shadow: 0 8px 25px rgba(7, 63, 53, 0.06) !important;
}

html[data-theme="light"] .challenge-badge,
[data-theme="light"] .challenge-badge,
body.light-theme .challenge-badge {
  background: #E8F5E9 !important;
  border-color: #A5D6A7 !important;
  color: #1B5E20 !important;
}

html[data-theme="light"] .challenge-icon-aura,
[data-theme="light"] .challenge-icon-aura,
body.light-theme .challenge-icon-aura {
  background: #E8F5E9 !important;
  border-color: #A5D6A7 !important;
  color: #1B5E20 !important;
}

html[data-theme="light"] .challenge-header-text h2,
[data-theme="light"] .challenge-header-text h2,
body.light-theme .challenge-header-text h2 {
  color: #1A382D !important;
}

html[data-theme="light"] .challenge-header-text p,
[data-theme="light"] .challenge-header-text p,
body.light-theme .challenge-header-text p {
  color: #557064 !important;
}

html[data-theme="light"] .challenge-quote-card,
[data-theme="light"] .challenge-quote-card,
body.light-theme .challenge-quote-card {
  background: #F4F8F5 !important;
  border-inline-start-color: #28785f !important;
  border-color: #DFE9E1 !important;
}

html[data-theme="light"] .challenge-quote-text,
[data-theme="light"] .challenge-quote-text,
body.light-theme .challenge-quote-text {
  color: #385045 !important;
}

html[data-theme="light"] .challenge-quote-ref,
[data-theme="light"] .challenge-quote-ref,
body.light-theme .challenge-quote-ref {
  color: #1B5E20 !important;
}

html[data-theme="light"] .challenge-pill,
[data-theme="light"] .challenge-pill,
body.light-theme .challenge-pill {
  background: #EFF5F1 !important;
  border-color: #DFE9E1 !important;
  color: #2A4438 !important;
}

html[data-theme="light"] .challenge-pill i,
[data-theme="light"] .challenge-pill i,
body.light-theme .challenge-pill i {
  color: #28785f !important;
}

html[data-theme="light"] .challenge-cta-btn,
[data-theme="light"] .challenge-cta-btn,
body.light-theme .challenge-cta-btn {
  background: #F7F9F6 !important;
  border-color: #28785f !important;
  color: #1A382D !important;
}

html[data-theme="light"] .challenge-cta-btn:hover,
[data-theme="light"] .challenge-cta-btn:hover,
body.light-theme .challenge-cta-btn:hover {
  background: #E8F5E9 !important;
  color: #1B5E20 !important;
}

.tag {
  display: inline-block;
  font-size: 11px;
  color: #8e6d35;
  background: #f6e8cd;
  padding: 5px 11px;
  border-radius: 30px;
  font-weight: 800;
}

.footer {
  text-align: center;
  border-top: 1px solid #e3ebe4;
  padding: 28px;
  color: #7c8c81;
  font-size: 12px;
  line-height: 2;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: #071e18a8;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-bg.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  width: min(100%, 480px);
  border-radius: 23px;
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  text-align: start;
  box-shadow: 0 20px 40px var(--shadow-color);
  animation: modalFadeIn 0.25s ease-out;
  color: var(--text-primary);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  inset-inline-end: 22px;
  top: 16px;
  background: none;
  border: 0;
  font-size: 25px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text-primary);
}

.modal p {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 14px;
}

.modal input {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  margin: 12px 0;
  font-family: inherit;
  font-size: 14px;
}

.modal input:focus {
  outline: none;
  border-color: var(--emerald-500);
}

.notice {
  background: var(--bg-elevated);
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 15px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-primary);
}

.mobilebar {
  display: none;
}

/* ==========================================================================
   دعم المظهر الداكن والليلي المرجعي المتكامل (Full Dark Theme Support)
   الوضع الداكن: خلفيات خضراء داكنة فخمة، بطاقات هادئة، تباين نصوص مريح وذهب زمردي
   ========================================================================== */
html[data-theme="dark"] body,
[data-theme="dark"] body {
  --bg: #081C17;
  --bg-primary: #081C17;
  --bg-secondary: #102820;
  --bg-card: #163329;
  --bg-elevated: #1D4033;
  --ink: #F3F8F4;
  --text-primary: #F3F8F4;
  --text-secondary: #C0D4C8;
  --text-muted: #A7BFB0;
  --border-color: #315346;
  background-color: #081C17 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .top,
[data-theme="dark"] .top .top {
  background: #102820 !important;
  border-bottom: 1px solid #315346 !important;
}

html[data-theme="dark"] .logo,
[data-theme="dark"] .logo .logo {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .logo-icon,
[data-theme="dark"] .logo-icon .logo-icon {
  background: #1D4033 !important;
  color: #E6BD70 !important;
}

html[data-theme="dark"] .links,
[data-theme="dark"] .links .links {
  color: #C0D4C8 !important;
}

html[data-theme="dark"] .links a,
[data-theme="dark"] .links a .links a {
  color: #C0D4C8 !important;
}

html[data-theme="dark"] .links a:hover,
html[data-theme="dark"] .links a.active,
[data-theme="dark"] .links a:hover,
[data-theme="dark"] .links a.active .links a:hover .links a.active {
  color: #73D3AB !important;
}

html[data-theme="dark"] .links a.active::after,
[data-theme="dark"] .links a.active::after .links a.active::after {
  background: #73D3AB !important;
}

html[data-theme="dark"] .outline,
[data-theme="dark"] .outline .outline {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .outline:hover,
[data-theme="dark"] .outline:hover .outline:hover {
  border-color: #73D3AB !important; 
  color: #73D3AB !important;
}

html[data-theme="dark"] .solid,
[data-theme="dark"] .solid .solid {
  background: #73D3AB !important;
  color: #081C17 !important;
}

html[data-theme="dark"] .solid:hover,
[data-theme="dark"] .solid:hover .solid:hover {
  background: #9BE5C3 !important;
}

html[data-theme="dark"] .section-head h2,
[data-theme="dark"] .section-head h2 .section-head h2 {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .subtle,
[data-theme="dark"] .subtle .subtle {
  color: #73D3AB !important;
}

html[data-theme="dark"] .panel,
[data-theme="dark"] .panel .panel {
  background: #163329 !important;
  border: 1px solid #315346 !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35) !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .panel h3,
[data-theme="dark"] .panel h3 .panel h3 {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .prayer strong,
[data-theme="dark"] .prayer strong .prayer strong {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .bar,
[data-theme="dark"] .bar .bar {
  background: #102820 !important;
}

html[data-theme="dark"] .task,
[data-theme="dark"] .task .task {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .task.done,
[data-theme="dark"] .task.done .task.done {
  background: #1D4033 !important;
  border-color: #73D3AB !important;
  color: #73D3AB !important;
}

html[data-theme="dark"] .dhikr,
[data-theme="dark"] .dhikr .dhikr {
  background: #163329 !important;
  border-color: #315346 !important;
}

html[data-theme="dark"] .dhikr .quote,
[data-theme="dark"] .dhikr .quote .dhikr .quote {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .counter,
[data-theme="dark"] .counter .counter {
  color: #73D3AB !important;
}

html[data-theme="dark"] .feature,
html[data-theme="dark"] .service-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .service-card .feature .service-card {
  background: #163329 !important;
  border: 1px solid #315346 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .feature:hover,
html[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .feature:hover,
[data-theme="dark"] .service-card:hover .feature:hover .service-card:hover {
  border-color: #73D3AB !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .fi,
html[data-theme="dark"] .service-icon-box,
[data-theme="dark"] .fi,
[data-theme="dark"] .service-icon-box .fi .service-icon-box {
  background: #1D4033 !important;
  color: #73D3AB !important;
}

html[data-theme="dark"] .feature h3,
html[data-theme="dark"] .service-info h3,
[data-theme="dark"] .feature h3,
[data-theme="dark"] .service-info h3 .feature h3 .service-info h3 {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .feature p,
html[data-theme="dark"] .service-info p,
[data-theme="dark"] .feature p,
[data-theme="dark"] .service-info p .feature p .service-info p {
  color: #A7BFB0 !important;
}

html[data-theme="dark"] .category-title,
[data-theme="dark"] .category-title .category-title {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .services-search-input,
[data-theme="dark"] .services-search-input .services-search-input {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

/* Sadaqa & Challenge luxury themes handled above */

html[data-theme="dark"] .footer,
[data-theme="dark"] .footer .footer {
  border-top-color: #315346 !important;
  background: #081C17 !important;
  color: #A7BFB0 !important;
}

html[data-theme="dark"] .modal,
[data-theme="dark"] .modal .modal {
  background: #163329 !important;
  border: 1px solid #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .modal h2,
[data-theme="dark"] .modal h2 .modal h2 {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .modal input,
[data-theme="dark"] .modal input .modal input {
  background: #1D4033 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .notice,
[data-theme="dark"] .notice .notice {
  background: #1D4033 !important;
  color: #F3F8F4 !important;
  border: 1px solid #315346 !important;
}

html[data-theme="dark"] .mobilebar,
[data-theme="dark"] .mobilebar {
  background: #102820 !important;
  border-top-color: #315346 !important;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .mobilebar a,
[data-theme="dark"] .mobilebar a {
  color: #A7BFB0 !important;
}

html[data-theme="dark"] .mobilebar a:hover,
html[data-theme="dark"] .mobilebar a.active,
[data-theme="dark"] .mobilebar a:hover,
[data-theme="dark"] .mobilebar a.active {
  color: #73D3AB !important;
}

/* ==========================================================================
   دعم الوضع الليلي لكافة مكونات وبطاقات المنصة والتطبيق (Universal Dark Mode Fixes)
   يضمن عدم بقاء أي بطاقة بيضاء أو نصوص باهتة في الوضع الليلي
   ========================================================================== */
html[data-theme="dark"] .app-view-pane,
[data-theme="dark"] .app-view-pane,
html[data-theme="dark"] .app-native-header,
[data-theme="dark"] .app-native-header,
html[data-theme="dark"] .app-bottom-nav,
[data-theme="dark"] .app-bottom-nav {
  background: var(--nav-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="dark"] .app-icon-btn,
[data-theme="dark"] .app-icon-btn,
html[data-theme="dark"] .app-quick-tool-btn,
[data-theme="dark"] .app-quick-tool-btn {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="dark"] .app-nav-tab,
[data-theme="dark"] .app-nav-tab {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .app-nav-tab.active,
[data-theme="dark"] .app-nav-tab.active {
  color: var(--primary) !important;
}

/* بطاقات الخدمات والعبادات في الوضع الليلي */
html[data-theme="dark"] .featured-prayer-card,
[data-theme="dark"] .featured-prayer-card,
html[data-theme="dark"] .prayer-card,
[data-theme="dark"] .prayer-card,
html[data-theme="dark"] .tasbeeh-device,
[data-theme="dark"] .tasbeeh-device,
html[data-theme="dark"] .azkar-card,
[data-theme="dark"] .azkar-card,
html[data-theme="dark"] .hadith-card,
[data-theme="dark"] .hadith-card,
html[data-theme="dark"] .asmaa-card,
[data-theme="dark"] .asmaa-card,
html[data-theme="dark"] .story-card,
[data-theme="dark"] .story-card,
html[data-theme="dark"] .quiz-container-card,
[data-theme="dark"] .quiz-container-card,
html[data-theme="dark"] .cat-dua-card,
[data-theme="dark"] .cat-dua-card,
html[data-theme="dark"] .garden-interactive-card,
[data-theme="dark"] .garden-interactive-card,
html[data-theme="dark"] .daily-wird-card,
[data-theme="dark"] .daily-wird-card,
html[data-theme="dark"] .wird-group-card,
[data-theme="dark"] .wird-group-card,
html[data-theme="dark"] .season-card,
[data-theme="dark"] .season-card,
html[data-theme="dark"] .stat-card,
[data-theme="dark"] .stat-card,
html[data-theme="dark"] .cemetery-card,
[data-theme="dark"] .cemetery-card,
html[data-theme="dark"] .faq-item,
[data-theme="dark"] .faq-item,
html[data-theme="dark"] .khatma-card,
[data-theme="dark"] .khatma-card,
html[data-theme="dark"] .media-card,
[data-theme="dark"] .media-card {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .azkar-text,
[data-theme="dark"] .azkar-text,
html[data-theme="dark"] .cat-dua-body,
[data-theme="dark"] .cat-dua-body,
html[data-theme="dark"] .hadith-matn,
[data-theme="dark"] .hadith-matn,
html[data-theme="dark"] .hadith-text,
[data-theme="dark"] .hadith-text,
html[data-theme="dark"] .prayer-body,
[data-theme="dark"] .prayer-body,
html[data-theme="dark"] .story-full-text,
[data-theme="dark"] .story-full-text,
html[data-theme="dark"] .quran-text,
[data-theme="dark"] .quran-text {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .quiz-option-btn,
[data-theme="dark"] .quiz-option-btn {
  background: #1D4033 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .quiz-option-btn:hover:not(:disabled),
[data-theme="dark"] .quiz-option-btn:hover:not(:disabled) {
  border-color: #73D3AB !important;
  background: #255141 !important;
}

html[data-theme="dark"] .form-input,
[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .form-select,
[data-theme="dark"] .form-select,
html[data-theme="dark"] .duas-search-input,
[data-theme="dark"] .duas-search-input,
html[data-theme="dark"] .services-search-input,
[data-theme="dark"] .services-search-input {
  background: #1D4033 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .duas-tab-btn,
[data-theme="dark"] .duas-tab-btn,
html[data-theme="dark"] .azkar-tab-btn,
[data-theme="dark"] .azkar-tab-btn,
html[data-theme="dark"] .media-filter-btn,
[data-theme="dark"] .media-filter-btn,
html[data-theme="dark"] .quran-tab-btn,
[data-theme="dark"] .quran-tab-btn {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #C0D4C8 !important;
}

html[data-theme="dark"] .duas-tab-btn.active,
[data-theme="dark"] .duas-tab-btn.active,
html[data-theme="dark"] .azkar-tab-btn.active,
[data-theme="dark"] .azkar-tab-btn.active,
html[data-theme="dark"] .media-filter-btn.active,
[data-theme="dark"] .media-filter-btn.active,
html[data-theme="dark"] .quran-tab-btn.active,
[data-theme="dark"] .quran-tab-btn.active {
  background: #1D4033 !important;
  border-color: #73D3AB !important;
  color: #73D3AB !important;
}

/* بطاقات ونوافذ المقارنة المنبثقة */
html[data-theme="dark"] .modal-card,
[data-theme="dark"] .modal-card,
html[data-theme="dark"] .modal-box,
[data-theme="dark"] .modal-box,
html[data-theme="dark"] .quran-mushaf-card,
[data-theme="dark"] .quran-mushaf-card,
html[data-theme="dark"] .prayer-times-card,
[data-theme="dark"] .prayer-times-card,
html[data-theme="dark"] .khatma-summary-card,
[data-theme="dark"] .khatma-summary-card,
html[data-theme="dark"] .khatma-grid-item,
[data-theme="dark"] .khatma-grid-item,
html[data-theme="dark"] .mushaf-reading-tracker-bar,
[data-theme="dark"] .mushaf-reading-tracker-bar {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .modal-title,
[data-theme="dark"] .modal-title,
html[data-theme="dark"] .section-title,
[data-theme="dark"] .section-title {
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .section-desc,
[data-theme="dark"] .section-desc {
  color: #A7BFB0 !important;
}

html[data-theme="dark"] .select-surah-dropdown,
[data-theme="dark"] .select-surah-dropdown,
html[data-theme="dark"] .select-reciter-dropdown,
[data-theme="dark"] .select-reciter-dropdown {
  background: #1D4033 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}
html[data-theme="dark"] .prayer-city-select, [data-theme="dark"] .prayer-city-select {
    background-color:transparent  !important;
}
html[data-theme="light"] .daily-featured-media-card,
[data-theme="light"] .daily-featured-media-card {
    background: unset !important;
}
    html[data-theme="light"] .daily-featured-media-card .btn-audio-daily-clip,
    [data-theme="light"] .daily-featured-media-card .btn-audio-daily-clip {
        border-color: var(--gold-500) !important;
        color: var(--gold-500) !important;
    }
    html[data-theme="light"] .daily-featured-media-card .btn-bookmark-daily-clip,
    [data-theme="light"] .daily-featured-media-card .btn-bookmark-daily-clip {
        border-color: var(--gold-500) !important;
    }
html[data-theme="light"] .media-badge-tag,
[data-theme="light"] .media-badge-tag {
    color: #000;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
}
/* ضمان تناسق الوضع الفاتح التام للمصحف وبطاقات الختمة والمواقيت */
html[data-theme="light"] .quran-mushaf-card,
[data-theme="light"] .quran-mushaf-card,
body.light-theme .quran-mushaf-card,
html[data-theme="light"] .prayer-times-card,
[data-theme="light"] .prayer-times-card,
body.light-theme .prayer-times-card,
html[data-theme="light"] .khatma-summary-card,
[data-theme="light"] .khatma-summary-card,
body.light-theme .khatma-summary-card,
html[data-theme="light"] .mushaf-reading-tracker-bar,
[data-theme="light"] .mushaf-reading-tracker-bar,
body.light-theme .mushaf-reading-tracker-bar {
    background: #FFFFFF !important;
    border-color: #DFE9E1 !important;
    color: #193B34 !important;
    box-shadow: 0 4px 20px rgba(7, 63, 53, 0.06) !important;
}

html[data-theme="light"] .select-surah-dropdown,
[data-theme="light"] .select-surah-dropdown,
body.light-theme .select-surah-dropdown,
html[data-theme="light"] .select-reciter-dropdown,
[data-theme="light"] .select-reciter-dropdown,
body.light-theme .select-reciter-dropdown {
  background: #FFFFFF !important;
  border-color: #DFE9E1 !important;
  color: #193B34 !important;
}
html[data-theme="light"] .prayer-city-select, [data-theme="light"] .prayer-city-select, body.light-theme .prayer-city-select {
    border-color: transparent !important;
}
    /* التجاوب وفقاً للنموذج المرجعي */
    @media(max-width: 850px) {
        .links {
            display: none;
        }

        .dashboard, .bottom {
            grid-template-columns: 1fr;
        }

        .features {
            grid-template-columns: repeat(2, 1fr);
        }

        .hero {
            padding: 20px;
        }

        .moon {
            font-size: 70px;
            margin-left: 0;
        }

        .hero h1 {
            font-size: 29px;
        }
    }

@media(max-width: 520px) {
  .shell {
    padding: 0 12px;
  }
  .nav {
    height: 52px;
  }
  .logo {
    font-size: 16.5px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .nav .btn {
    font-size: 11px;
    padding: 6px 9px;
  }
  .hero {
    min-height: auto;
    margin-top: 10px;
    padding: 20px 14px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 12px;
  }
  .moon {
    display: none;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .features {
    gap: 10px;
  }
  .feature {
    padding: 17px 13px;
    min-height: 155px;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .panel {
    padding: 19px;
  }
  .tasks {
    grid-template-columns: 1fr 1fr;
  }
  @view-transition {
    navigation: auto;
  }
  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 2000;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 -4px 18px var(--shadow-color);
    view-transition-name: zad-mobilebar;
  }
  .mobilebar a {
    position: relative;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .mobilebar a::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobilebar a.active::before {
    opacity: 0.9;
    transform: translateX(-50%) scaleX(1);
  }
  .mobilebar a:hover,
  .mobilebar a.active {
    color: var(--green);
  }
  .mobilebar i {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobilebar a.active i {
    transform: translateY(-1px) scale(1.06);
  }
  .mobilebar a:active i {
    transform: scale(0.92);
  }
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  }
}

/* التصفير والإعدادات الأساسية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

button, a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Footer tabs should land on their destination in one step. */
html:has(#home:target),
html:has(#daily:target),
html:has(#islamic-media:target) {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  direction: inherit;
  text-align: start;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

/* الحاوية العامة */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* الهيدر وشريط التنقل مع دعم الحواف الآمنة للآيفون والجزيرة التفاعلية (Dynamic Island & Notch) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 13, 24, 0.94);
  border-bottom: 1px solid var(--border-color);
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
  padding-left: calc(15px + env(safe-area-inset-left, 0px));
  padding-right: calc(15px + env(safe-area-inset-right, 0px));
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:0 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(14, 102, 84, 0.35) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.brand:hover .brand-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--gold-400);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.brand-icon {
  font-size: 1.35rem;
  color: var(--gold-400);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .brand-title,
html[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0e6654 0%, #8c6d1f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.nav-links a i {
  font-size: 0.85rem;
  opacity: 0.85;
}

.nav-links a:hover {
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 102, 84, 0.5) 0%, rgba(212, 175, 55, 0.25) 100%);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.light-theme .nav-links a.active,
html[data-theme="light"] .nav-links a.active {
  color: #0e6654 !important;
  background: rgba(14, 102, 84, 0.12) !important;
  border-color: rgba(14, 102, 84, 0.3) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color: #0b1522;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   قسم البداية القديم (Legacy Hero Section)
   ========================================================================== */
.legacy-hero {
    padding: 26px 3.5rem;
    position: relative;
    text-align: center;
}

.hero-badges-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badges-group .hero-badge {
  margin-bottom: 0;
}

.hero-hijri-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gold-300);
  margin-bottom: 1.5rem;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }
  100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.35); }
}

.hero-title {
  font-family: var(--font-quran);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--gold-300);
  position: relative;
  display: inline-block;
  padding-top:10px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.2rem;
  line-height: 1.9;
}

/* بطاقة الدعاء المركزي الفخم */
.featured-prayer-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md), var(--shadow-gold);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.featured-prayer-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.prayer-ornament-top,
.prayer-ornament-bottom {
  text-align: center;
  color: var(--gold-500);
  font-size: 1.5rem;
  opacity: 0.7;
}

.prayer-main-text {
  font-family: var(--font-quran);
  font-size: 1.7rem;
  line-height: 2.1;
  color: var(--gold-500);
  margin: 1.2rem 0;
  font-weight: 600;
}

.prayer-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   قسم سلايدر الأدعية (Swiper Section)
   ========================================================================== */
.prayers-section {
  position: relative;
}

.section-header {
  text-align: center;
  padding:25px 0;
}

.section-tag {
  color: var(--emerald-400);
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-quran);
  font-size: 2.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto;
}

.swiper-container-wrapper {
  position: relative;
  padding: .2rem 0 .5rem;
}

.swiper-prayers {
  width: 100%;
  padding-top: 30px !important;
  padding-bottom: 45px !important;
}
.swiper-pagination {
    margin-top: 1.5rem !important;
}
.swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    bottom: 0 !important;
}
.swiper-slide {
    height: auto;
}

/* بطاقة الدعاء داخل السلايدر */
.prayer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.prayer-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-300);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), 0 0 15px rgba(212, 175, 55, 0.15);
}

.prayer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.prayer-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: 1rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.prayer-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prayer-body {
  font-family: var(--font-quran);
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-gold);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.prayer-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-amen {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-amen:hover {
  background: var(--emerald-500);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-amen.active {
  background: var(--emerald-500);
  color: #fff;
  border-color: var(--emerald-400);
}

.amen-count {
  font-weight: 700;
}

/* تخصيص أسهم وتناسق Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold-500) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.1rem !important;
  font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--gold-500);
  color: #0b1522 !important;
  border-color: var(--gold-300);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.swiper-pagination-bullet-active {
  background: var(--gold-500) !important;
  opacity: 1 !important;
  width: 22px !important;
  border-radius: 6px !important;
}

/* أزرار الدعاء أسفل السلايدر */
.slider-bottom-actions {
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

/* ==========================================================================
   قسم السبحة الإلكترونية (Tasbeeh Counter)
   ========================================================================== */
.tasbeeh-section {
    padding: 0 0 35px 0;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    scroll-margin-top: 90px;
}

.tasbeeh-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

/* ==========================================================================
   وضع المظهر الليلي الملكي (Dark Theme - Royal Emerald & Gold)
   ========================================================================== */
.azkar-selector-box {
  background: linear-gradient(145deg, rgba(7, 35, 29, 0.85) 0%, rgba(5, 24, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.azkar-selector-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f3d382;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.azkar-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 420px;
  overflow-y: auto;
  padding-inline-end: 0.5rem;
}

.azkar-list::-webkit-scrollbar {
  width: 6px;
}
.azkar-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.zkr-btn {
  background: rgba(10, 40, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: start;
  color: #e8f5f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zkr-btn:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateX(-4px);
}

.zkr-btn.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.24) 0%, rgba(7, 50, 42, 0.95) 100%);
  border: 1.5px solid #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 0 10px rgba(212, 175, 55, 0.08);
}

.zkr-text {
  font-family: var(--font-quran);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f8f5;
  transition: color 0.2s ease;
}

.zkr-btn.active .zkr-text {
  color: #ffe599;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.zkr-target {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  color: #a4c2b7;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

.zkr-btn.active .zkr-target {
  background: rgba(212, 175, 55, 0.2);
  color: #ffe599;
  border-color: rgba(212, 175, 55, 0.4);
  font-weight: 700;
}

/* جهاز السبحة الإلكتروني التفاعلي */
.tasbeeh-device {
  background: linear-gradient(145deg, rgba(7, 35, 29, 0.85) 0%, rgba(5, 24, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(212, 175, 55, 0.15);
  position: relative;
}

.current-zkr-display {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.active-zkr-name {
  font-family: var(--font-quran);
  font-size: 2.1rem;
  color: #ffd875;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.45);
}

.active-zkr-virtue {
  font-size: 0.95rem;
  color: #9cb7ad;
  margin-top: 0.4rem;
}

/* القرص الدائري للنقر */
.tasbeeh-click-area {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: radial-gradient(circle at 35% 35%, #0e4c3f 0%, #062820 65%, #041b16 100%);
  border: 4px solid #d4af37;
  box-shadow: 
    0 14px 35px rgba(0, 0, 0, 0.7),
    inset 0 4px 12px rgba(255, 255, 255, 0.2),
    inset 0 -4px 12px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tasbeeh-click-area:active {
  transform: scale(0.94);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.8),
    inset 0 6px 15px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(212, 175, 55, 0.55);
}

.counter-content {
  text-align: center;
  z-index: 2;
}

.counter-number {
  font-size: 4.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family: monospace, var(--font-body);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

.counter-label {
  font-size: 0.9rem;
  color: #f3d382;
  margin-top: 0.35rem;
  display: block;
  font-weight: 600;
}

.counter-label span {
  color: #ffd875;
  font-weight: 700;
}

/* شريط التقدم الدائري SVG */
.progress-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 229px;
  height: 229px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.25s ease;
  stroke: #34d399;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.8));
}

/* عناصر تحكم السبحة */
.tasbeeh-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

#btn-reset-tasbeeh {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd875;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#btn-reset-tasbeeh:hover {
  background: #d4af37;
  color: #062820;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.tasbeeh-stats-bar {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #9cb7ad;
  font-size: 0.92rem;
}

.tasbeeh-stats-bar .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tasbeeh-stats-bar .stat-separator {
  color: var(--gold-500);
  opacity: 0.5;
  margin: 0 0.5rem;
}

.tasbeeh-stats-bar .stat-val {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 2px 10px;
  color: #ffd875;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   قسم الأدعية المأثورة والقرآن
   ========================================================================== */
.quran-section {
  padding-bottom:30px;
}

.verses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.verse-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  transition: var(--transition-smooth);
}

.verse-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow-md);
}

.verse-text {
  font-family: var(--font-quran);
  font-size: 1.45rem;
  color: var(--gold-500);
  line-height: 2;
  margin-bottom: 1.2rem;
}

.verse-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   النافذة المنبثقة: إضافة دعاء (Modal)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-card {
  background: #0f1c30;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: calc(100vh - 5.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
  margin: auto;
}

.modal-overlay.open .modal-card,
.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1) !important;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-quran);
  font-size: 1.8rem;
  color: var(--gold-300);
  margin-bottom: 0.4rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(7, 13, 24, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* اقتراحات أدعية سريعة */
.quick-templates-box {
  margin-bottom: 1.5rem;
}

.quick-templates-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-pill:hover {
  background: var(--gold-500);
  color: #0b1522;
}

/* ==========================================================================
   إشعارات التوست (Toast Notification)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100050 !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.toast {
    background: #163329;
    border: 1px solid var(--gold-500);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.3);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   تذييل الصفحة (Footer)
   ========================================================================== */
.footer {
  padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-quote {
  font-family: var(--font-quran);
  font-size: 1.3rem;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-social-shares {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-author {
    font-weight: bold;
    color: var(--gold-300);
}
/* ==========================================================================
   قسم مصحف الصدقة الجارية (Quran Reader Section)
   ========================================================================== */
.quran-reader-section {
    padding-bottom: 20px;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(7, 13, 24, 0.98) 75%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.surahs-controls-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.featured-surahs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.surah-pill {
    background: #081C17;
    border: 1px solid var(--border-color);
    color: var(--text-gold);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.surah-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

.surah-pill.active {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color: #070d18;
  border-color: var(--gold-300);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  font-weight: 700;
}

.all-surahs-dropdown-wrapper {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.select-surah-dropdown {
  width: 100%;
  background: #0f1c30;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--gold-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-surah-dropdown:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* بطاقة المصحف الشريف الكبرى */
.quran-mushaf-card {
  background: rgba(14, 25, 43, 0.92);
  border: 2px solid var(--gold-500);
  outline: 6px double rgba(212, 175, 55, 0.3);
  outline-offset: -10px;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md), 0 0 35px rgba(212, 175, 55, 0.2);
  position: relative;
  backdrop-filter: blur(16px);
}

.mushaf-header-frame {
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.mushaf-surah-title {
  font-family: var(--font-quran);
  font-size: 2.2rem;
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.mushaf-verses-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
}
.mushaf-audio-control{
    padding-top:15px;
}
/* شريط تنقل صفحات المصحف الحقيقي */
.real-mushaf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    background: rgba(7, 13, 24, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.4rem;
    margin-bottom: 2rem;
}

.mushaf-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-page-nav {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-jump-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--gold-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.mushaf-page-input {
  width: 60px;
  background: rgba(7, 13, 24, 0.9);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 0.25rem 0.4rem;
  outline: none;
}

.mushaf-page-input:focus {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* إطار صفحة المصحف الشريف الحقيقية */
.mushaf-real-page-wrapper {
  background: #fbf8ee;
  border: 3px solid var(--gold-500);
  outline: 6px double #aa820a;
  outline-offset: -8px;
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(212, 175, 55, 0.1);
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mushaf-real-page-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  filter: contrast(108%);
}

.mushaf-page-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(251, 248, 238, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #855e09;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 10;
}

.mushaf-bottom-page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

.mushaf-hint-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.mushaf-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-gift-reward {
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-900) 100%);
  color: #fff;
  border: 1px solid var(--emerald-400);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-gift-reward:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-500) 100%);
}

.btn-gift-reward.gifted {
  background: var(--gold-500);
  color: #070d18;
  border-color: var(--gold-300);
}

/* ==========================================================================
   التجاوب مع الشاشات (Media Queries & Responsive Design)
   ========================================================================== */

/* أجهزة التابلت والشاشات المتوسطة (أقل من 992px) */
@media (max-width: 992px) {
  .tasbeeh-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .prayer-main-text {
    font-size: 1.5rem;
  }
  .verses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* شاشات الجوال العامة (أقل من 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1rem;
  }
  .nav-links {
    display: none; /* إخفاء الروابط النصية للتركيز على الأزرار الأساسية */
  }
  .navbar {
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .brand-icon {
    font-size: 1.5rem;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  #btn-toggle-audio span {
    display: none; /* إبقاء الأيقونة فقط لتوفير المساحة */
  }
  #btn-toggle-audio {
    padding: 0.5rem 0.75rem;
  }
  .btn-open-prayer-modal {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
  .hero {
    padding:20px;
  }
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.4;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .featured-prayer-card {
    padding: 1.6rem 1.1rem;
    border-radius: var(--radius-md);
  }
  .prayer-main-text {
    font-size: 1.3rem;
    line-height: 1.85;
    margin: 1rem 0;
  }
  .prayer-action-row {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
  }
  .prayer-action-row .btn {
    width: 100%;
  }

  /* إخفاء أسهم السلايدر في الجوال للاعتماد على السحب باللمس وهو أسهل وأنظف */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  .swiper-prayers {
    padding-bottom: 35px !important;
  }

  .prayers-section,
  .tasbeeh-section,
  .quran-section {
    padding:10px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }
  .section-desc {
    font-size: 0.95rem;
  }

  /* السبحة الإلكترونية في الجوال */
  .azkar-selector-box {
    padding: 1.2rem;
  }
  .azkar-list {
    max-height: 250px;
    gap: 0.6rem;
  }
  .zkr-btn {
    padding: 0.75rem 0.9rem;
  }
  .zkr-text {
    font-size: 1.1rem;
  }
  .zkr-target {
    font-size: 0.75rem;
  }
  .tasbeeh-device {
    padding: 1.8rem 1rem;
    border-radius: var(--radius-md);
  }
  .active-zkr-name {
    font-size: 1.6rem;
  }
  .active-zkr-virtue {
    font-size: 0.85rem;
  }
  .tasbeeh-click-area {
    width: 190px;
    height: 190px;
    margin: 1.2rem auto;
  }
    .progress-ring {
        width: 199px;
        height: 199px;
     
    }
  .counter-number {
    font-size: 3.4rem;
  }

  /* النافذة المنبثقة لإضافة الدعاء */
  .modal-overlay {
    padding: 1rem;
  }
  .modal-card {
    padding: 1.5rem 1.1rem;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }
  .modal-title {
    font-size: 1.45rem;
  }
  .modal-desc {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }
  .form-input,
  .form-textarea {
    font-size: 16px; /* يمنع التكبير التلقائي المزعج في متصفحات الآيفون Safari */
  }

  /* عناصر اختيار السورة في الجوال - شريط تمرير أفقي أنيق ومدمج */
  .surahs-controls-container {
    gap: 0.65rem !important;
    margin-bottom: 0.9rem !important;
    padding: 0 0.2rem !important;
  }

  .featured-surahs-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.3rem 0.35rem 0.55rem 0.35rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  }

  .featured-surahs-pills::-webkit-scrollbar {
    display: none !important;
  }

  .surah-pill {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    font-size: 0.82rem !important;
    padding: 0.42rem 0.85rem !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
    background: rgba(14, 25, 43, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }

  .surah-pill i {
    font-size: 0.78rem !important;
  }

  .surah-pill.active {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%) !important;
    color: #070d18 !important;
    border-color: var(--gold-300) !important;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4) !important;
    font-weight: 700 !important;
  }

  .all-surahs-dropdown-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
  }

  .select-surah-dropdown {
    width: 100% !important;
    font-size: 0.84rem !important;
    padding: 0.58rem 1rem !important;
    border-radius: var(--radius-full) !important;
    background: rgba(10, 20, 36, 0.95) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    color: var(--gold-200) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* مصحف الصدقة الجارية في الجوال - تصميم نظيف وعصري ومريح للعين */
  .quran-mushaf-card {
    padding: 1.1rem 0.5rem !important;
    outline: none !important;
    border-radius: 14px !important;
    border-width: 1.5px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .mushaf-header-frame {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.85rem !important;
  }

  .mushaf-header-top-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.6rem !important;
  }

  .mushaf-surah-meta {
    gap: 0.4rem !important;
    align-items: center !important;
  }

  .mushaf-surah-title {
    font-size: 1.4rem !important;
  }

  .mushaf-verses-count {
    font-size: 0.72rem !important;
    padding: 0.15rem 0.5rem !important;
  }

  .btn-audio-quick {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  .btn-audio-quick i {
    font-size: 0.8rem !important;
  }

  .mushaf-reading-toolbar {
    padding-top: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .mushaf-toolbar-primary-group {
    gap: 0.35rem !important;
    justify-content: center !important;
  }

  .btn-mushaf-pill {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.76rem !important;
    gap: 0.32rem !important;
  }

  .btn-mushaf-pill i {
    font-size: 0.78rem !important;
  }

  .mushaf-drawer-tools {
    padding: 0.75rem 0.6rem !important;
    border-radius: 10px !important;
  }

  .mushaf-drawer-row {
    gap: 0.35rem !important;
  }

  .btn-drawer-item {
    font-size: 0.74rem !important;
    padding: 0.32rem 0.6rem !important;
    gap: 0.3rem !important;
  }

  .mushaf-drawer-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }

  .mushaf-reciter-control-group {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .select-reciter-dropdown {
    flex: 1 !important;
    max-width: none !important;
    font-size: 0.78rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .mushaf-real-page-wrapper {
    padding: 0.2rem 0.1rem !important;
    min-height: 440px !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
    outline: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7) !important;
    cursor: pointer;
  }

  .mushaf-real-page-img {
    filter: contrast(107%) !important;
    border-radius: 8px !important;
  }

  /* أزرار تقليب الصفحات السفلية على الهاتف - مريحة جداً للإبهام */
  .mushaf-bottom-page-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0.85rem !important;
    padding: 0 !important;
    gap: 0.5rem !important;
  }

  #btn-mushaf-prev,
  #btn-mushaf-next {
    display: inline-flex !important;
    padding: 0.42rem 0.42rem !important;
    font-size: 0.8rem !important;
    border-radius: 30px !important;
    border: 1px solid var(--gold-500) !important;
    color: var(--gold-500) !important;
  }

  #btn-mushaf-prev .nav-text,
  #btn-mushaf-next .nav-text {
    font-size: 0.78rem !important;
  }

  .page-jump-box {
    background: rgba(10, 20, 35, 0.95) !important;
    border: 1.5px solid var(--gold-400) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    padding: 0.32rem 0.75rem !important;
    border-radius: 30px !important;
    font-size: 0.82rem !important;
  }

  .mushaf-page-input {
    width: 44px !important;
    font-size: 0.88rem !important;
    padding: 0.18rem 0.25rem !important;
  }

  .mushaf-hint-text {
    font-size: 0.74rem !important;
    margin-top: 0.4rem !important;
  }

  .btn-gift-reward {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.92rem;
    justify-content: center;
  }

  /* الإشعارات في الجوال */
  .toast {
    width: 92vw;
    max-width: 360px;
    font-size: 0.85rem;
    padding: 0.75rem 1.2rem;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   بانر الإحصائيات العالمي الموحد (Global Stats Banner)
   ========================================================================== */
.global-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.stat-card {
  background: rgba(15, 28, 48, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.15);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-300);
  flex-shrink: 0;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-200);
  font-family: var(--font-primary);
  line-height: 1.2;
}

.stat-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.tasbeeh-stats-bar .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tasbeeh-stats-bar .stat-separator {
  color: var(--gold-500);
  opacity: 0.5;
  margin: 0 0.5rem;
}

/* ==========================================================================
   قسم المصحف الشريف وختمة القرآن الموحد (Unified Quran & Khatma Hub)
   ========================================================================== */
.quran-khatma-section {
  padding: 0px 0 20px;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

/* تبويبات التبديل بين المصحف والختمة */
.quran-khatma-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  flex-wrap: wrap;
  max-width: 640px;
  padding: 0.45rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(12px);
}

.quran-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-arabic-heading, inherit);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.quran-tab-btn:hover {
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.08);
}

.quran-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(16, 185, 129, 0.25) 100%);
  color: #fff;
  border-color: var(--gold-500);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.quran-tab-btn i {
  color: var(--gold-400);
}

.quran-tab-btn.active i {
  color: var(--gold-300);
}

/* ==========================================================================
   بطاقات أجزاء سكشن المصحف والختمة (.quran-subpart-block)
   متجاوبة بالكامل لجميع الشاشات وأجهزة Android و iPhone
   ========================================================================== */
.quran-subpart-block {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    position: relative;
}

.quran-subpart-block.is-hidden {
    display: none !important;
}

/* ضبط جزء مصحف الصدقة الجارية (عرض المصحف الذهبي الشريف) */
#subpart-mushaf.quran-subpart-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

/* ضبط جزء ختمة القرآن الكريم الـ 30 جزء */
#subpart-khatma.quran-subpart-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* تحسينات الشاشات الكبيرة وأجهزة الكمبيوتر (>= 992px) */
@media (min-width: 992px) {
    #subpart-mushaf.quran-subpart-block .golden-quran-wrapper {
        max-width: 1360px !important;
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
    }
}

/* تحسينات أجهزة التابلت والشاشات المتوسطة (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    #subpart-mushaf.quran-subpart-block .golden-quran-wrapper {
        max-width: 780px !important;
        width: 100%;
        border-radius: 18px;
    }
    #subpart-mushaf.quran-subpart-block .golden-mushaf-viewport {
        padding: 8px 6px;
    }
}

/* تحسينات الهواتف الذكية وأجهزة Android و iPhone (<= 768px) */
@media (max-width: 768px) {
    .quran-khatma-section {
        padding: 0 0 16px !important;
    }

    .quran-khatma-section .container {
        padding-inline-end: 6px !important;
        padding-inline-start: 6px !important;
        max-width: 100% !important;
    }

    .quran-subpart-block {
        width: 100% !important;
        padding: 0 !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-quran-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        margin: 0 auto !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-mushaf-viewport {
        padding: 4px 2px !important;
        min-height: auto !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-mushaf-img {
        width: 100% !important;
        max-height: calc(100vh - 120px) !important;
        object-fit: contain !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-mushaf-header,
    .golden-quran-wrapper.is-fullscreen .golden-mushaf-header {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-surah,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-surah {
        font-size: 1rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-juz-title,
    .golden-quran-wrapper.is-fullscreen .golden-juz-title {
        font-size: 0.85rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-left,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-left {
        gap: 8px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-btn,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-btn {
        padding: 6px 8px !important;
        font-size: 1.25rem !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-btn i,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-btn i {
        font-size: 1.25rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-mushaf-footer,
    .golden-quran-wrapper.is-fullscreen .golden-mushaf-footer {
        padding: 6px 8px 12px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-page-pill,
    .golden-quran-wrapper.is-fullscreen .golden-page-pill {
        padding: 6px 14px !important;
        font-size: 0.88rem !important;
        gap: 8px !important;
    }

    #subpart-khatma.quran-subpart-block {
        padding: 0 4px !important;
    }

    #subpart-khatma.quran-subpart-block .khatma-summary-card {
        padding: 1.2rem .4rem !important;
        border-radius: 16px !important;
    }
}

/* تحسينات الهواتف الصغيرة جداً و iPhone SE و Android الصغير (<= 480px) */
@media (max-width: 480px) {
    .quran-khatma-section .container {
        padding-inline-end: 2px !important;
        padding-inline-start: 2px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-quran-wrapper {
        border-radius: 10px !important;
        border-width: 1px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-mushaf-viewport {
        padding: 2px 0 !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-surah,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-surah {
        font-size: 1.05rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-juz-title,
    .golden-quran-wrapper.is-fullscreen .golden-juz-title {
        font-size: 0.85rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-left,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-left {
        gap: 6px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-btn,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-btn {
        padding: 4px 6px !important;
        font-size: 1.2rem !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-hdr-btn i,
    .golden-quran-wrapper.is-fullscreen .golden-hdr-btn i {
        font-size: 1.2rem !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-page-pill,
    .golden-quran-wrapper.is-fullscreen .golden-page-pill {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
        gap: 6px !important;
    }

    #subpart-mushaf.quran-subpart-block .golden-pill-tag,
    .golden-quran-wrapper.is-fullscreen .golden-pill-tag {
        font-size: 0.78rem !important;
    }
}

.subpart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.subpart-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
}

.subpart-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full, 9999px);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

/* فاصل زخرفي إسلامي فخم */
.islamic-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3.5rem auto;
  max-width: 600px;
}

.islamic-section-divider.is-hidden {
  display: none !important;
}

.islamic-section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.islamic-section-divider .divider-icon {
  font-size: 1.25rem;
  color: var(--gold-400);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

@media (max-width: 640px) {
  .quran-khatma-tabs {
    border-radius: var(--radius-md);
    padding: 0.4rem;
    gap: 0.4rem;
    width: 100%;
  }
  .quran-tab-btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   قسم ختمة القرآن الكريم الجماعية (Khatma Section)
   ========================================================================== */
.khatma-section {
  padding: 20px 0;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

.khatma-summary-card {
    margin-bottom:20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.khatma-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.khatma-badge-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.khatma-progress-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

.khatma-progress-text strong {
  color: var(--emerald-400);
}

.khatma-progress-bar-wrapper {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.khatma-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-500));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.khatma-status-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.status-available {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.legend-dot.status-reading {
  background: var(--gold-400);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.legend-dot.status-completed {
  background: var(--emerald-400);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.khatma-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.khatma-filter-btn {
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.khatma-filter-btn:hover {
  border-color: var(--gold-400);
  color: #fff;
}

.khatma-filter-btn.active {
  background: var(--gold-500);
  color: var(--bg-dark);
  font-weight: 700;
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.khatma-grid-wrapper {
  position: relative;
  width: 100%;
}

.khatma-mobile-nav-bar {
  display: none;
}

.khatma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .khatma-mobile-nav-bar {
    display: none !important;
  }

    .khatma-summary-card {
        padding: 1.2rem 0rem !important;
        border-radius: 14px !important;
        margin-bottom: 1.5rem !important;
    }
    .khatma-summary-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(12px);
    }


  .khatma-badge-title {
    font-size: 1.05rem !important;
  }

  .khatma-progress-text {
    font-size: 0.85rem !important;
  }

  .khatma-status-legend {
    gap: 0.8rem !important;
    margin-top: 1rem !important;
    font-size: 0.8rem !important;
  }

  .khatma-filters {
    gap: 0.4rem !important;
    margin-bottom: 1.2rem !important;
  }

  .khatma-filter-btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  /* عرض الأجزاء في شبكة ثنائية أنيقة بدلاً من السحب الأفقي المرهق */
  .khatma-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.2rem 0 1rem !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .juz-card {
    min-width: unset !important;
    max-width: unset !important;
    flex: unset !important;
    padding: 0.9rem 0.65rem !important;
    border-radius: 12px !important;
  }

  .juz-header {
    margin-bottom: 0.5rem !important;
  }

  .juz-number-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }

  .juz-badge-tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
  }

  .juz-surah-info {
    font-size: 0.76rem !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.35 !important;
  }

  .btn-reserve-juz {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 400px) {
  .khatma-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .juz-card {
    padding: 0.75rem 0.5rem !important;
  }
}

.juz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.juz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.juz-card.status-available {
  border-color: rgba(255, 255, 255, 0.1);
}

.juz-card.status-reading {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(15, 28, 48, 0.6) 100%);
}

.juz-card.status-completed {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 28, 48, 0.6) 100%);
}

.juz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.juz-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.juz-card.status-reading .juz-number-badge {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.15);
}

.juz-card.status-completed .juz-number-badge {
  border-color: var(--emerald-400);
  color: var(--emerald-300);
  background: rgba(16, 185, 129, 0.15);
}

.juz-badge-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-available .juz-badge-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.status-reading .juz-badge-tag {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
}

.status-completed .juz-badge-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
}

.juz-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.juz-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.juz-reader-info {
  margin: 0.7rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.juz-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.juz-btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.juz-btn-reserve {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-200);
}

.juz-btn-reserve:hover {
  background: var(--gold-500);
  color: var(--bg-dark);
}

.juz-btn-complete {
  background: var(--emerald-600);
  border: 1px solid var(--emerald-400);
  color: #fff;
}

.juz-btn-complete:hover {
  background: var(--emerald-500);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.juz-btn-done {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-400);
  cursor: default;
}

/* ==========================================================================
   قسم أذكار الصباح والمساء التفاعلية (Azkar Section)
   ========================================================================== */
.azkar-section {
  padding-bottom: 25px;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
}

.azkar-tab-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.azkar-tab-btn {
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.azkar-tab-btn:hover {
  border-color: var(--gold-400);
  color: #fff;
}

.azkar-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--bg-dark);
  border-color: var(--gold-400);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.azkar-time-hint {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.azkar-progress-summary {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.azkar-progress-summary strong {
  color: var(--emerald-400);
}

.azkar-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.6rem;
}

.azkar-progress-fill {
  height: 100%;
  background: var(--emerald-500);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.azkar-cards-wrapper {
  position: relative;
  width: 100%;
}

.azkar-mobile-nav-bar,
.duas-mobile-nav-bar,
.asmaa-mobile-nav-bar,
.stories-mobile-nav-bar,
.khatma-mobile-nav-bar {
  display: none !important;
}

.azkar-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.4rem;
}

.azkar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.azkar-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-md);
}

.azkar-card.is-finished {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(15, 28, 48, 0.6) 100%);
}

.azkar-text {
  font-family: var(--font-quran);
  font-size: 1.35rem;
  line-height: 2.1;
  color: var(--text-gold);
  margin-bottom: 1.2rem;
}

.azkar-virtue {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.azkar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.azkar-count-badge {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.azkar-tap-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.azkar-tap-btn:hover {
  background: var(--gold-500);
  color: var(--bg-dark);
  transform: scale(1.03);
}

.azkar-tap-btn:active {
  transform: scale(0.96);
}

.azkar-card.is-finished .azkar-tap-btn {
  background: var(--emerald-500);
  border-color: var(--emerald-400);
  color: #fff;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  /* ==========================================================================
     أشرطة التنقل الأفقية التفاعلية المطورة للشاشات الصغيرة
     (Mobile Nav Bars - Animated Royal Edition: Azkar, Duas, Stories, Media)
     ========================================================================== */
  .azkar-mobile-nav-bar,
  .duas-mobile-nav-bar,
  .stories-mobile-nav-bar,
  .media-mobile-nav-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 16px;
    padding: 8px 12px;
    gap: 10px;
    background: linear-gradient(135deg, rgba(7, 46, 37, 0.88) 0%, rgba(4, 28, 22, 0.94) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 9999px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 14px rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: azkarBarSlideDown 0.35s ease-out, azkarBarAura 3.8s infinite ease-in-out;
    position: relative;
    z-index: 5;
  }

  @keyframes azkarBarSlideDown {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes azkarBarAura {
    0%, 100% { box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 10px rgba(212, 175, 55, 0.08); }
    50% { box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 18px rgba(212, 175, 55, 0.24); }
  }

  .azkar-scroll-hint,
  .duas-scroll-hint,
  .stories-scroll-hint,
  .media-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffd56b;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.08) 50%, rgba(212, 175, 55, 0.16) 100%);
    background-size: 200% 100%;
    border: 1px solid rgba(212, 175, 55, 0.38);
    padding: 5px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: azkarShimmerWave 4s infinite linear;
    user-select: none;
    letter-spacing: 0.2px;
  }

  @keyframes azkarShimmerWave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  .azkar-scroll-hint .hint-icon-glow,
  .duas-scroll-hint .hint-icon-glow,
  .stories-scroll-hint .hint-icon-glow,
  .media-scroll-hint .hint-icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.22);
    color: #ffd56b;
    font-size: 0.72rem;
  }

  .azkar-scroll-hint i,
  .duas-scroll-hint i,
  .stories-scroll-hint i,
  .media-scroll-hint i {
    animation: azkarSwipeSway 2.4s infinite ease-in-out;
  }

  @keyframes azkarSwipeSway {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
  }

  .azkar-scroll-hint .hint-live-dot,
  .duas-scroll-hint .hint-live-dot,
  .stories-scroll-hint .hint-live-dot,
  .media-scroll-hint .hint-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fed668;
    box-shadow: 0 0 8px #fed668;
    animation: azkarGlowPulse 1.8s infinite ease-in-out;
    display: inline-block;
  }

  @keyframes azkarGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); }
  }

  .azkar-scroll-arrows,
  .duas-scroll-arrows,
  .stories-scroll-arrows,
  .media-scroll-arrows {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-scroll-azkar,
  .btn-scroll-duas,
  .btn-scroll-stories,
  .btn-scroll-media {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #09372c 0%, #031e17 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #ffd56b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    padding: 0;
    user-select: none;
  }

  .btn-scroll-azkar:hover,
  .btn-scroll-duas:hover,
  .btn-scroll-stories:hover,
  .btn-scroll-media:hover {
    background: linear-gradient(145deg, #dfa72b 0%, #b8860b 100%);
    border-color: #ffd56b;
    color: #031c15;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  }

  .btn-scroll-azkar:active,
  .btn-scroll-duas:active,
  .btn-scroll-stories:active,
  .btn-scroll-media:active {
    transform: scale(0.92);
  }

  .btn-scroll-prev:hover i,
  .btn-scroll-duas:first-child:hover i,
  .btn-scroll-stories:first-child:hover i,
  #btn-scroll-media-prev:hover i {
    transform: translateX(2px);
    transition: transform 0.15s ease;
  }

  .btn-scroll-next:hover i,
  .btn-scroll-duas:last-child:hover i,
  .btn-scroll-stories:last-child:hover i,
  #btn-scroll-media-next:hover i {
    transform: translateX(-2px);
    transition: transform 0.15s ease;
  }

  /* تنسيقات الوضع النهاري (Light Theme) */
  body.light-theme .azkar-mobile-nav-bar,
  html[data-theme="light"] .azkar-mobile-nav-bar,
  [data-theme="light"] .azkar-mobile-nav-bar,
  body.light-theme .duas-mobile-nav-bar,
  html[data-theme="light"] .duas-mobile-nav-bar,
  [data-theme="light"] .duas-mobile-nav-bar,
  body.light-theme .stories-mobile-nav-bar,
  html[data-theme="light"] .stories-mobile-nav-bar,
  [data-theme="light"] .stories-mobile-nav-bar,
  body.light-theme .media-mobile-nav-bar,
  html[data-theme="light"] .media-mobile-nav-bar,
  [data-theme="light"] .media-mobile-nav-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 249, 0.96) 100%) !important;
    border: 1px solid rgba(184, 134, 11, 0.32) !important;
    box-shadow: 0 8px 24px -4px rgba(7, 63, 53, 0.08), 0 0 14px rgba(184, 134, 11, 0.08) !important;
  }

  body.light-theme .azkar-scroll-hint,
  html[data-theme="light"] .azkar-scroll-hint,
  [data-theme="light"] .azkar-scroll-hint,
  body.light-theme .duas-scroll-hint,
  html[data-theme="light"] .duas-scroll-hint,
  [data-theme="light"] .duas-scroll-hint,
  body.light-theme .stories-scroll-hint,
  html[data-theme="light"] .stories-scroll-hint,
  [data-theme="light"] .stories-scroll-hint,
  body.light-theme .media-scroll-hint,
  html[data-theme="light"] .media-scroll-hint,
  [data-theme="light"] .media-scroll-hint {
    background: linear-gradient(90deg, rgba(255, 248, 235, 0.95) 0%, rgba(254, 243, 222, 0.8) 50%, rgba(255, 248, 235, 0.95) 100%) !important;
    border: 1px solid rgba(184, 134, 11, 0.38) !important;
    color: #996800 !important;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.1) !important;
  }

  body.light-theme .azkar-scroll-hint .hint-icon-glow,
  html[data-theme="light"] .azkar-scroll-hint .hint-icon-glow,
  [data-theme="light"] .azkar-scroll-hint .hint-icon-glow,
  body.light-theme .duas-scroll-hint .hint-icon-glow,
  html[data-theme="light"] .duas-scroll-hint .hint-icon-glow,
  [data-theme="light"] .duas-scroll-hint .hint-icon-glow,
  body.light-theme .stories-scroll-hint .hint-icon-glow,
  html[data-theme="light"] .stories-scroll-hint .hint-icon-glow,
  [data-theme="light"] .stories-scroll-hint .hint-icon-glow,
  body.light-theme .media-scroll-hint .hint-icon-glow,
  html[data-theme="light"] .media-scroll-hint .hint-icon-glow,
  [data-theme="light"] .media-scroll-hint .hint-icon-glow {
    background: rgba(184, 134, 11, 0.15) !important;
    color: #996800 !important;
  }

  body.light-theme .azkar-scroll-hint .hint-live-dot,
  html[data-theme="light"] .azkar-scroll-hint .hint-live-dot,
  [data-theme="light"] .azkar-scroll-hint .hint-live-dot,
  body.light-theme .duas-scroll-hint .hint-live-dot,
  html[data-theme="light"] .duas-scroll-hint .hint-live-dot,
  [data-theme="light"] .duas-scroll-hint .hint-live-dot,
  body.light-theme .stories-scroll-hint .hint-live-dot,
  html[data-theme="light"] .stories-scroll-hint .hint-live-dot,
  [data-theme="light"] .stories-scroll-hint .hint-live-dot,
  body.light-theme .media-scroll-hint .hint-live-dot,
  html[data-theme="light"] .media-scroll-hint .hint-live-dot,
  [data-theme="light"] .media-scroll-hint .hint-live-dot {
    background: #b8860b !important;
    box-shadow: 0 0 8px #b8860b !important;
  }

  body.light-theme .btn-scroll-azkar,
  html[data-theme="light"] .btn-scroll-azkar,
  [data-theme="light"] .btn-scroll-azkar,
  body.light-theme .btn-scroll-duas,
  html[data-theme="light"] .btn-scroll-duas,
  [data-theme="light"] .btn-scroll-duas,
  body.light-theme .btn-scroll-stories,
  html[data-theme="light"] .btn-scroll-stories,
  [data-theme="light"] .btn-scroll-stories,
  body.light-theme .btn-scroll-media,
  html[data-theme="light"] .btn-scroll-media,
  [data-theme="light"] .btn-scroll-media {
    background: #ffffff !important;
    border: 1px solid rgba(184, 134, 11, 0.35) !important;
    color: #073f35 !important;
    box-shadow: 0 4px 12px rgba(7, 63, 53, 0.08) !important;
  }

  body.light-theme .btn-scroll-azkar:hover,
  html[data-theme="light"] .btn-scroll-azkar:hover,
  [data-theme="light"] .btn-scroll-azkar:hover,
  body.light-theme .btn-scroll-duas:hover,
  html[data-theme="light"] .btn-scroll-duas:hover,
  [data-theme="light"] .btn-scroll-duas:hover,
  body.light-theme .btn-scroll-stories:hover,
  html[data-theme="light"] .btn-scroll-stories:hover,
  [data-theme="light"] .btn-scroll-stories:hover,
  body.light-theme .btn-scroll-media:hover,
  html[data-theme="light"] .btn-scroll-media:hover,
  [data-theme="light"] .btn-scroll-media:hover {
    background: #0ea67a !important;
    border-color: #0ea67a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(14, 166, 122, 0.32) !important;
  }

  body.light-theme .btn-scroll-azkar:active,
  html[data-theme="light"] .btn-scroll-azkar:active,
  [data-theme="light"] .btn-scroll-azkar:active,
  body.light-theme .btn-scroll-duas:active,
  html[data-theme="light"] .btn-scroll-duas:active,
  [data-theme="light"] .btn-scroll-duas:active,
  body.light-theme .btn-scroll-stories:active,
  html[data-theme="light"] .btn-scroll-stories:active,
  [data-theme="light"] .btn-scroll-stories:active,
  body.light-theme .btn-scroll-media:active,
  html[data-theme="light"] .btn-scroll-media:active,
  [data-theme="light"] .btn-scroll-media:active {
    background: #0b8a65 !important;
    color: #ffffff !important;
  }

        .azkar-cards-container {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            gap: 1.2rem !important;
            padding: 0.5rem 0.3rem 1.5rem !important;
            scrollbar-width: thin;
            scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
        }

  .azkar-cards-container::-webkit-scrollbar {
    height: 6px;
  }

  .azkar-cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
  }

  .azkar-cards-container::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }

  .azkar-card {
    min-width: 82vw !important;
    max-width: 400px !important;
    flex: 0 0 82vw !important;
    scroll-snap-align: center;
    padding: 1.5rem 1.1rem !important;
    justify-content: space-between;
  }

  .azkar-text {
    font-size: 1.2rem !important;
    line-height: 1.9 !important;
  }
}


/* ==========================================================================
   ويدجت إذاعة القرآن الكريم المباشرة 24/7 (Live Radio Widget)
   ========================================================================== */
.live-radio-widget {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  z-index: 1000;
  direction: inherit;
}

.radio-fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 2px solid rgba(212, 175, 55, 0.55);
  color: #ffd875;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.radio-fab-btn:hover {
  transform: scale(1.08);
  border-color: #ffd875;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.5);
}

.radio-fab-btn.is-playing {
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 18px rgba(52, 211, 153, 0.45);
}

.radio-waves {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  position: absolute;
}

.radio-fab-btn.is-playing .radio-waves {
  display: flex;
}

.radio-fab-btn.is-playing .radio-icon {
  display: none;
}

.radio-waves span {
  width: 3px;
  background: #34d399;
  border-radius: 3px;
  animation: waveAnimation 1s ease-in-out infinite alternate;
}

.radio-waves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.radio-waves span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.radio-waves span:nth-child(3) { height: 10px; animation-delay: 0.5s; }
.radio-waves span:nth-child(4) { height: 14px; animation-delay: 0.2s; }

@keyframes waveAnimation {
  0% { height: 4px; }
  100% { height: 18px; }
}

.radio-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.5);
  opacity: 0;
  animation: pulseRadio 2s infinite;
  pointer-events: none;
}

.radio-fab-btn.is-playing .radio-pulse {
  border-color: #34d399;
}

.radio-fab-btn.is-loading {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 18px rgba(251, 191, 36, 0.6);
  animation: pulseRadio 1s infinite alternate;
}

.btn-radio-play.is-loading {
    opacity: 0.9;
    border-color: #fbbf24 !important;
    color: #062820 !important;
}

@keyframes pulseRadio {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.radio-panel {
  position: absolute;
  bottom: 74px;
  left: 0;
  width: 335px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(165deg, rgba(8, 38, 30, 0.98) 0%, rgba(4, 21, 17, 0.99) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 0.95rem;
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f8f5;
  z-index: 1005;
}

.radio-panel.open {
  display: flex;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.radio-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.75rem;
}

.radio-header-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #f1f8f5;
}

.radio-live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  margin-inline-start: 0.2rem;
}

.radio-live-status-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-close-radio {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a4c2b7;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-close-radio:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffd875;
  transform: scale(1.08);
}

.radio-station-info {
  background: rgba(10, 45, 37, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.radio-station-header-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.station-icon-badge {
  color: #ffd875;
  font-size: 0.95rem;
}

.radio-station-name {
  font-weight: 800;
  color: #ffd875;
  font-size: 1.02rem;
  line-height: 1.35;
}

.radio-station-desc {
  font-size: 0.8rem;
  color: #a4c2b7;
  line-height: 1.4;
}

.radio-station-select-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2f0ea;
  margin-bottom: 0.4rem;
}

.radio-station-select {
  width: 100%;
  background: rgba(6, 28, 22, 0.95);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  color: #ffffff;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-station-select:focus {
  border-color: #ffd875;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.radio-station-select option {
  background: #06221b;
  color: #ffffff;
  padding: 8px;
}

.radio-sleep-timer-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2f0ea;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

#radio-timer-countdown {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 700;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.radio-controls-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.btn-radio-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f3d382);
  border: none;
  color: #062820;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45);
}

.btn-radio-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.radio-volume-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-grow: 1;
  background: rgba(6, 28, 22, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
}

.btn-radio-mute {
  background: none;
  border: none;
  color: #ffd875;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-radio-mute:hover {
  color: #ffffff;
}

.radio-volume-group input[type="range"] {
  width: 100%;
  accent-color: #d4af37;
  cursor: pointer;
  height: 6px;
  border-radius: 9999px;
}

.modal-actions-dual {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.modal-actions-dual button {
  flex: 1;
}

/* الشاشات الصغيرة جداً (أقل من 420px مثل iPhone SE وغيرها) */
@media (max-width: 420px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 0.8rem;
  }
  .brand-title {
    font-size: 0.98rem;
  }
  .btn-open-prayer-modal span {
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .prayer-main-text {
    font-size: 1.15rem;
    line-height: 1.75;
  }
  .tasbeeh-click-area {
    width: 165px;
    height: 165px;
  }
    .progress-ring {
        width: 176px;
        height: 173px;
    }
  .counter-number {
    font-size: 2.9rem;
  }
  .verses-grid {
    grid-template-columns: 1fr;
  }
  .verse-card {
    padding: 1.3rem 0.9rem;
  }
  .verse-text {
    font-size: 1.15rem;
  }
  .azkar-card {
    min-width: 88vw !important;
    flex: 0 0 88vw !important;
    padding: 1.3rem 0.9rem !important;
  }
  .azkar-text {
    font-size: 1.12rem !important;
  }
  .radio-panel {
    width: calc(100vw - 48px);
  }
}

/* ==========================================================================
   الميزات الجديدة: PWA، مواقيت الصلاة، بطاقات الأدعية، التفسير، وزيارة القبور
   ========================================================================== */

/* زر تثبيت تطبيق الهاتف التقدمي (PWA) */
.btn-install-pwa {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: #fff;
  border: 1px solid var(--emerald-400);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-install-pwa:hover {
  transform: scale(1.04);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.6);
}

/* بنر تثبيت التطبيق الذكي للهواتف */
.pwa-install-banner {
  position: fixed;
  top: calc(76px + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 1030;
  backdrop-filter: blur(12px);
  animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-banner-icon img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.3;
  flex: 1;
}

.pwa-banner-text strong {
  color: var(--gold-200);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pwa-banner-text span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.pwa-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.pwa-close-btn:hover {
  color: #fff;
}

/* قسم مواقيت الصلاة وساعة الاستجابة */
.prayer-times-section {
  padding: 0px  0 25px;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
}

.response-hour-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.banner-icon {
  font-size: 2.2rem;
  color: var(--gold-300);
  flex-shrink: 0;
}

.banner-title {
  font-family: var(--font-quran);
  color: var(--gold-200);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.banner-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.prayer-times-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.prayer-times-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prayer-meta-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.prayer-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.prayer-location-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.prayer-hijri-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-500);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.prayer-city-select {
  background: transparent;
  border: none;
  color: var(--gold-500);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.prayer-city-select option {
  background: #0f1c30;
  color: #fff;
}

.prayer-next-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.countdown-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.countdown-label strong {
  color: var(--gold-500);
}

.countdown-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-400);
  color: var(--emerald-300);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: monospace, var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* التجاوب الفائق لشاشات التابلت والموبايل (Mobile & Tablet Responsiveness) */
@media (max-width: 991px) {
  .prayer-times-meta {
    gap: 0.85rem;
  }
}

@media (max-width: 768px) {
  .prayer-times-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .prayer-meta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }

  .prayer-location-selector {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.85rem;
  }

  .prayer-city-select {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .prayer-action-buttons {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
  }

  .prayer-action-buttons .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 125px;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .prayer-action-buttons .btn-select-muazzin {
    white-space: normal;
    text-align: center;
  }

  .btn-select-muazzin #selected-muazzin-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .btn-select-muazzin > i {
    flex-shrink: 0;
  }

  .prayer-hijri-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
  }

  .prayer-next-countdown {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.22);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.25);
  }

  .countdown-label {
    font-size: 0.85rem;
  }

  .countdown-badge {
    font-size: 0.98rem;
    padding: 0.25rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .prayer-times-card {
    padding: 1.25rem 0.9rem;
  }
  .prayer-action-buttons .btn span {
    font-size: 0.78rem;
  }
  .countdown-label {
    font-size: 0.8rem;
  }
  .countdown-badge {
    font-size: 0.92rem;
    letter-spacing: 0.5px;
  }
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.prayer-time-item {
    background: rgba(7, 13, 24, 0.21);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prayer-item-thumb {
  display: none;
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 0.35rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prayer-time-item:hover .prayer-item-thumb {
  transform: scale(1.03);
  border-color: var(--gold-400);
}

body.show-prayer-images .prayer-item-thumb,
.prayer-times-grid.show-prayer-images .prayer-item-thumb {
  display: block;
}

.prayer-time-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

.prayer-time-item.is-next {
  border-color: var(--gold-400);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 28, 48, 0.7) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.prayer-time-item.is-next .prayer-name {
  color: var(--gold-300);
  font-weight: 800;
}

.prayer-name {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.prayer-time {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: monospace, var(--font-body);
}

.prayer-status-label {
  font-size: 0.75rem;
  color: var(--gold-400);
  min-height: 1rem;
}

/* قسم دليل وآداب زيارة القبور */
.cemetery-guide-section {
  padding: 0px  0 25px;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
}

.cemetery-dua-featured-card {
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  margin-bottom:50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.18);
  position: relative;
}

.cemetery-dua-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gold-300);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.cemetery-dua-text {
  font-family: var(--font-quran);
  font-size: 1.55rem;
  line-height: 2.2;
  color: var(--text-gold);
  margin-bottom: 1.6rem;
}

.cemetery-dua-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.cemetery-dua-narrator {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cemetery-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.cemetery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-fast);
}

.cemetery-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
}

.cemetery-card-icon {
  font-size: 1.8rem;
  color: var(--emerald-400);
}

.cemetery-card-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cemetery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cemetery-list li strong {
  color: var(--gold-500);
}

/* نافذة صانع بطاقات الأدعية المصورة */
.modal-card-wide {
  max-width: 820px;
  width: 95%;
}

.dua-card-creator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .dua-card-creator-layout {
    grid-template-columns: 1fr;
  }
}

.recipient-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.label-badge-hint {
  font-size: 0.76rem;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.recipient-quick-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.recipient-pill {
  background: rgba(15, 28, 48, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.recipient-pill:hover {
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.recipient-pill.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
  color: #fff;
  font-weight: 600;
}

.prayer-card-newly-added {
  animation: prayerCardHighlight 1.5s ease-in-out infinite alternate !important;
  border-color: var(--gold-400) !important;
}

@keyframes prayerCardHighlight {
  0% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.75);
    transform: scale(1.02);
  }
}

.dua-theme-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.theme-pill {
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-200);
}

.theme-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dua-creator-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.canvas-preview-wrapper {
  width: 100%;
  background: rgba(7, 13, 24, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

#dua-card-canvas {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.preview-hint {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* نافذة التفسير الميسر */
.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tafsir-header-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tafsir-page-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.tafsir-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-zoom {
  background: rgba(15, 28, 48, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-zoom:hover {
  border-color: var(--gold-400);
  color: #fff;
}

.tafsir-content-box {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
  font-size: 1.1rem;
  line-height: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
}

.tafsir-ayah-item {
  padding: 1.2rem;
  background: rgba(7, 13, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.tafsir-ayah-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.ayah-badge {
  background: var(--gold-500);
  color: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.ayah-quran-text {
  font-family: var(--font-quran);
  color: var(--gold-200);
  font-size: 1.25rem;
}

.ayah-tafsir-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.tafsir-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  color: var(--gold-300);
  font-size: 1.1rem;
}

/* ==========================================================================
   شريط حالة الاتصال بالإنترنت (Offline Status Banner)
   ========================================================================== */
.offline-status-banner {
  background: linear-gradient(90deg, #9a3412, #c2410c);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  animation: slideDownFade 0.3s ease;
}

/* ==========================================================================
   بنر مواسم الصيام المستحب والعد التنازلي (Fasting Tracker)
   ========================================================================== */
.fasting-tracker-banner {
    background: linear-gradient(135deg, rgba(20, 108, 90, 0.12), rgba(14, 102, 84, 0.022));
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.fasting-tracker-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fasting-banner-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.fasting-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fasting-season-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.fasting-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.fasting-banner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.fasting-banner-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.fasting-countdown-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.fasting-timer-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.fasting-timer-value {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: 1px;
}

/* ==========================================================================
   بوصلة القبلة التفاعلية (Interactive Qibla Compass)
   ========================================================================== */
.btn-open-qibla {
  gap: 0.5rem;
}

.modal-card-qibla {
  max-width: 440px;
  text-align: center;
}

.qibla-city-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qibla-city-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: start;
}

.btn-qibla-gps {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
}

.qibla-angle-badge {
  color: var(--gold-300);
  font-weight: 700;
}

.compass-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.compass-dial {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, #0e1e36 0%, #060d18 100%);
  border: 4px solid var(--gold-500);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.2), inset 0 0 25px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.compass-cardinal {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.compass-north {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ef4444;
}

.compass-east {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-south {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-west {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-needle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

.needle-north {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 6px;
  height: 95px;
  background: linear-gradient(to top, transparent, #ef4444);
  transform: translateX(-50%);
  border-radius: 4px 4px 0 0;
}

.needle-north::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #ef4444;
}

.needle-south {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 6px;
  height: 95px;
  background: linear-gradient(to bottom, transparent, #94a3b8);
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
}

.needle-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--gold-400);
  border: 3px solid #060d18;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  z-index: 10;
}

.compass-qibla-pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.kaaba-icon-wrapper {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37, #f7df79);
  color: #0b1424;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  animation: pulseGoldGlow 2s infinite alternate;
}

@keyframes pulseGoldGlow {
  from { box-shadow: 0 0 8px rgba(212, 175, 55, 0.5); }
  to { box-shadow: 0 0 18px rgba(212, 175, 55, 0.95); }
}

.compass-sensor-status {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.compass-actions {
  margin-top: 1rem;
}

/* ==========================================================================
   قائمة أدعية الصائم (Fasting Duas)
   ========================================================================== */
.fasting-duas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-inline-start: 0.25rem;
}

.fasting-dua-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: start;
  transition: var(--transition-fast);
}

.fasting-dua-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.03);
}

.fasting-dua-title {
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fasting-dua-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.fasting-dua-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

.btn-copy-dua {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-copy-dua:hover {
  color: var(--gold-300);
  border-color: var(--gold-400);
}

/* ==========================================================================
   شريط الإهداء والصدقة الجارية لروح الجد (Charity Memorial Ribbon)
   ========================================================================== */
.charity-memorial-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto 2.2rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(10px);
  text-align: start;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.charity-memorial-banner:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.charity-memorial-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.charity-memorial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #FFF;
    width: 80%;
}

.charity-memorial-text strong {
  color: var(--gold-400);
}

@media (max-width: 768px) {
  .charity-memorial-banner {
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}

/* زر تحديد الموقع عبر GPS */
.btn-gps-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-gps-location:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
}

/* ==========================================================================
   قسم جدول الورد والمهام الإيمانية اليومية (Daily Wird Checklist & Tracker)
   ========================================================================== */
.daily-wird-section {
  padding-bottom: 25px;
  position: relative;
}

.daily-wird-card {
  background: linear-gradient(145deg, rgba(7, 35, 29, 0.88) 0%, rgba(5, 24, 20, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.daily-wird-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.wird-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(10, 42, 35, 0.7);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.wird-streak-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.wird-streak-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e8f5f0;
}

.wird-streak-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd875;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.wird-streak-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8f5f0;
}

.wird-streak-text strong {
  color: #ffd875;
  font-weight: 800;
}

.weekly-day-label {
  font-size: 0.72rem;
  color: #a4c2b7;
  font-weight: 600;
}

.weekly-day-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: transparent;
  transition: all var(--transition-fast);
}

.weekly-day-dot.done {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.weekly-day-dot.today {
  border-color: #ffd875;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.wird-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wird-progress-title {
  font-weight: 700;
  color: #f1f8f5;
  font-size: 1.05rem;
}

.wird-progress-badge {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffe599;
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  transition: all var(--transition-normal);
}

.wird-progress-badge.all-done {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #34d399;
}

.wird-progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.wird-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f3d382);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.wird-progress-bar-fill.all-done {
  background: linear-gradient(90deg, #059669, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.wird-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.wird-task-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.1rem 1.3rem;
  background: rgba(10, 42, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.wird-task-item:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.wird-task-item.is-completed {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(7, 45, 37, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.wird-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.wird-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wird-custom-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(7, 30, 25, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.wird-checkbox:checked + .wird-custom-check {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.wird-task-text {
  font-weight: 600;
  font-size: 0.98rem;
  color: #f1f8f5;
  transition: color var(--transition-fast);
}

.wird-task-item.is-completed .wird-task-text {
  color: #6ee7b7;
  font-weight: 700;
}

.wird-task-reward {
  font-size: 0.82rem;
  color: #a4c2b7;
  padding-inline-start: 2.2rem;
  font-weight: 500;
}

.wird-task-item.is-completed .wird-task-reward {
  color: #a7f3d0;
}

.wird-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.wird-reset-hint {
  font-size: 0.85rem;
  color: #a4c2b7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#btn-reset-wird {
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #ffd875;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.55rem 1.3rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#btn-reset-wird:hover {
  background: #d4af37;
  color: #062820;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   نافذة إرشادات تثبيت التطبيق على أجهزة الآيفون (iOS Safari Modal)
   ========================================================================== */
.modal-card-ios-install {
  max-width: 500px;
}

.ios-install-body {
  margin-top: 1rem;
}

.ios-install-lead {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.ios-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.ios-step-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.ios-step-card:hover {
  background: rgba(212, 175, 55, 0.07);
  border-color: var(--gold-400);
}

.ios-step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #0b1523;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.ios-step-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

.ios-step-main {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-color);
}

.ios-step-main strong {
  color: var(--gold-300);
}

.ios-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ios-step-glyph {
  font-size: 1.25rem;
  color: var(--gold-400);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-install-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-300);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.btn-block {
  width: 100%;
}

@media (max-width: 576px) {
  .btn-install-pwa {
    padding: 0.42rem 0.75rem;
    font-size: 0.8rem;
  }
  .btn-install-pwa span {
    display: inline;
  }
}
@media (max-width: 420px) {
  .btn-install-pwa span {
    display: none;
  }
  .btn-install-pwa {
    padding: 0.42rem 0.6rem;
  }
}

/* ==========================================================================
   1. بطاقة آية وحديث اليوم المتجددة (Daily Wisdom Card)
   ========================================================================== */
.daily-wisdom-card {
    background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin: 25px auto ;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(212, 175, 55, 0.06);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.daily-wisdom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.wisdom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wisdom-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wisdom-badge {
  font-family: var(--font-arabic-heading, inherit);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-300);
}

.wisdom-date-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.btn-share-story {
  border-color: rgba(212, 175, 55, 0.4);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.wisdom-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.wisdom-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: all var(--transition-normal);
}

.wisdom-item:hover {
  background: rgba(212, 175, 55, 0.04);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.wisdom-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wisdom-item-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wisdom-source {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wisdom-quote-text {
  font-family: var(--font-quran, serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #fff;
  text-align: justify;
}

.wisdom-reflection {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

@media (max-width: 768px) {
  .wisdom-card-body {
    grid-template-columns: 1fr;
  }
  .daily-wisdom-card {
    padding: 1.3rem 1.1rem;
  }
}

/* ==========================================================================
   2. شريط أدوات القراءة للمصحف الشريف (Mushaf Reading Toolbar & Comfort)
   ========================================================================== */
.mushaf-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.85rem;
}

.mushaf-surah-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: start;
}

.mushaf-surah-title {
  font-family: var(--font-quran);
  font-size: 1.9rem;
  color: var(--gold-300);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.mushaf-verses-count {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  white-space: nowrap;
}

/* زر الاستماع السريع للسورة في الترويسة */
.mushaf-header-quick-audio {
  display: flex;
  align-items: center;
}

.btn-audio-quick {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-audio-quick:hover,
.btn-audio-quick.active {
  background: linear-gradient(135deg, var(--gold-500), #eab308);
  color: #070d18;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-audio-quick.active i {
  animation: pulse-quick-audio 1.1s infinite ease-in-out;
}

@keyframes pulse-quick-audio {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

/* شريط الأدوات الرئيسي المدمج (Quick Action Bar) */
.mushaf-reading-toolbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mushaf-toolbar-primary-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn-mushaf-pill {
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #e2e8f0;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
}

.btn-mushaf-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-1px);
}

.btn-mushaf-pill.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.btn-bookmark-saved {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.btn-more-tools-toggle {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(15, 28, 48, 0.85));
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  font-weight: 700;
}

.btn-more-tools-toggle.active {
  background: var(--gold-400);
  color: #070d18;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

/* درج الأدوات المتقدمة والإعدادات (Collapsible Tools Drawer) */
.mushaf-drawer-tools {
  width: 100%;
  background: rgba(7, 13, 24, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(14px);
  animation: fadeInMushafDrawer 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInMushafDrawer {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mushaf-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mushaf-drawer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-drawer-item {
  background: rgba(15, 28, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-item:hover,
.btn-drawer-item.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-400);
  color: #fff;
}

.mushaf-drawer-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.mushaf-zoom-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.btn-drawer-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.btn-drawer-icon:hover {
  background: var(--gold-400);
  color: #070d18;
}

.mushaf-reciter-control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.reciter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gold-200);
}

.select-reciter-dropdown {
  background: rgba(11, 20, 36, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-200);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  max-width: 230px;
}

/* وضع القراءة الهادئ الخاشع (Focus / Zen Reading Mode) */
.real-mushaf-card.zen-reading-mode .mushaf-header-frame,
.real-mushaf-card.zen-reading-mode .mushaf-bottom-page-controls,
.real-mushaf-card.zen-reading-mode .mushaf-footer-actions,
.real-mushaf-card.zen-reading-mode .mushaf-hint-text {
  opacity: 0.12;
  transition: opacity 0.3s ease;
}

.real-mushaf-card.zen-reading-mode:hover .mushaf-header-frame,
.real-mushaf-card.zen-reading-mode:hover .mushaf-bottom-page-controls,
.real-mushaf-card.zen-reading-mode:hover .mushaf-footer-actions,
.real-mushaf-card.zen-reading-mode:hover .mushaf-hint-text {
  opacity: 1;
}

.real-mushaf-card.zen-reading-mode .mushaf-real-page-wrapper {
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
}

/* نمط القراءة المريح للعين (الورق القديم Sepia) */
.quran-mushaf-card.theme-sepia {
  background: #fbf0d9 !important;
  color: #2c2214 !important;
  border-color: #d1b580 !important;
}

.quran-mushaf-card.theme-sepia .mushaf-surah-title,
.quran-mushaf-card.theme-sepia .mushaf-verses-count {
  color: #5c3e17 !important;
}

.quran-mushaf-card.theme-sepia .mushaf-real-page-wrapper {
  background: #fdf6e7 !important;
  box-shadow: inset 0 0 30px rgba(120, 80, 20, 0.15) !important;
}

.quran-mushaf-card.theme-sepia .mushaf-real-page-img {
  filter: sepia(0.3) contrast(1.05) brightness(0.96);
}

.quran-mushaf-card.theme-sepia .btn {
  background: #f4e4c2 !important;
  color: #4a3416 !important;
  border-color: #caa867 !important;
}

.quran-mushaf-card.theme-sepia .mushaf-drawer-tools {
  background: #f6eedb !important;
  border-color: #caa867 !important;
  box-shadow: 0 10px 25px rgba(120, 80, 20, 0.12) !important;
}

.quran-mushaf-card.theme-sepia .page-jump-box {
  background: #f4e4c2 !important;
  border-color: #caa867 !important;
  color: #4a3416 !important;
}

.quran-mushaf-card.theme-sepia .mushaf-page-input {
  background: #fdf6e7 !important;
  border-color: #caa867 !important;
  color: #4a3416 !important;
}

.quran-mushaf-card.theme-sepia .select-reciter-dropdown {
  background: #fdf6e7 !important;
  border-color: #caa867 !important;
  color: #4a3416 !important;
}

/* ==========================================================================
   3. زر الأذان الصوتي (Adhan Button)
   ========================================================================== */
.btn-toggle-adhan {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-toggle-adhan.is-muted {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-toggle-adhan.is-muted i {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   4. مؤشر التتابع الإيماني والأسبوعي (Spiritual Streak Tracker)
   ========================================================================== */
.wird-streak-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wird-streak-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wird-streak-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.wird-streak-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f8f5;
}

.wird-streak-text strong {
  color: #ffd875;
  font-size: 1.1rem;
}

.wird-weekly-tracker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.weekly-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.weekly-day-label {
  font-size: 0.72rem;
  color: #a4c2b7;
  font-weight: 600;
}

.weekly-day-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #a4c2b7;
  transition: all var(--transition-fast);
}

.weekly-day-dot.done {
  background: #10b981;
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.weekly-day-dot.today {
  border-color: #ffd875;
  box-shadow: 0 0 6px rgba(255, 216, 117, 0.4);
}

/* ==========================================================================
   5. موسوعة الأدعية النبوية المبوبة (Categorized Duas with Sheikh Recitation)
   ========================================================================== */
.categorized-duas-section {
    padding: 0 0 35px 0;
    position: relative;
    background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
}

.duas-categories-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.duas-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.duas-tab-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-2px);
}

.duas-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-500));
  border-color: var(--gold-300);
  color: #0b1523;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* شريط البحث في موسوعة الأدعية */
.duas-search-filter-wrapper {
  max-width: 600px;
  margin: 0 auto 2.2rem;
}

.duas-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.duas-search-input {
  width: 100%;
  padding-inline-start: 2.8rem;
  padding-inline-end: 2.5rem;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.duas-search-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.duas-search-box .search-icon {
  position: absolute;
  inset-inline-start: 1.1rem;
  font-size: 0.95rem;
  pointer-events: none;
}

.btn-clear-duas-search {
  position: absolute;
  inset-inline-end: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.btn-clear-duas-search:hover {
  color: #fff;
}

.categorized-duas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 1.4rem;
}
@media (max-width: 992px) {
    .categorized-duas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.cat-dua-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cat-dua-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.cat-dua-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.cat-dua-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-300);
  line-height: 1.4;
}

.cat-dua-repeat-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-300);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cat-dua-body {
  font-family: var(--font-quran, serif);
  font-size: 1.22rem;
  line-height: 1.9;
  color: #fff;
  text-align: justify;
  margin-bottom: 0.5rem;
}

.cat-dua-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
  margin-bottom: 0.6rem;
}

.cat-dua-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-dua-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==========================================================================
   6. نافذة البحث في القرآن الكريم (Quran Search Modal)
   ========================================================================== */
.modal-card-quran-search {
  max-width: 680px;
}

.quran-search-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.quran-search-input {
  padding-inline-start: 2.5rem;
  font-size: 1rem;
}

.search-field-icon {
  position: absolute;
  inset-inline-start: 1rem;
  color: var(--gold-400);
  pointer-events: none;
}

.quran-search-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quran-search-results {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-inline-end: 0.3rem;
}

.quran-search-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quran-search-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-400);
  transform: translateX(-3px);
}

.quran-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.quran-match-surah {
  font-weight: 700;
  color: var(--gold-300);
  font-size: 0.95rem;
}

.quran-match-page-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-400);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.quran-match-text {
  font-family: var(--font-quran, serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
}

.quran-match-text mark {
  background: rgba(212, 175, 55, 0.35);
  color: #fff;
  padding: 0 0.2rem;
  border-radius: 3px;
}




/* ==========================================================================
   أشرطة التصنيفات والفلترة (Filter Bars & Pills)
   ========================================================================== */

.nawawi-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.nawawi-filter-pill {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nawawi-filter-pill:hover,
.nawawi-filter-pill.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #070d18;
  font-weight: 700;
  border-color: var(--gold-400);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}



/* ==========================================================================
   قسم أسماء الله الحسنى الـ 99 (99 Names of Allah)
   ========================================================================== */
.asmaa-section {
    padding: 0 0 40px 0;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.asmaa-counter-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(6, 78, 59, 0.2));
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.8rem auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.asmaa-counter-text {
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.8;
}

/* شريط البحث الفوري في أسماء الله الحسنى */
.asmaa-search-bar-wrap {
  max-width: 580px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.asmaa-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.asmaa-search-icon {
  position: absolute;
  inset-inline-start: 1.2rem;
  color: var(--gold-400);
  font-size: 1.05rem;
  pointer-events: none;
}

.asmaa-search-input {
  width: 100%;
  padding-block: 0.85rem;
  padding-inline: 3.2rem 2.8rem;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.asmaa-search-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.btn-clear-search {
  position: absolute;
  inset-inline-end: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e5e7eb;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.btn-clear-search:hover {
  background: var(--gold-500);
  color: #0f1c30;
}

.asmaa-search-status {
  font-size: 0.84rem;
  color: var(--gold-300);
  margin-top: 0.55rem;
  font-weight: 500;
}

/* شبكة أسماء الله الحسنى الفاخرة والمدمجة */
.asmaa-cards-wrapper {
  position: relative;
  width: 100%;
}

.asmaa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.95rem;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.8rem 0.6rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
}

.asmaa-grid::-webkit-scrollbar {
  width: 6px;
}
.asmaa-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
}
.asmaa-grid::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: var(--radius-full);
}

.asmaa-card {
  background: linear-gradient(145deg, rgba(16, 30, 54, 0.85), rgba(9, 18, 33, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 145px;
}

.asmaa-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-400);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.3);
  background: linear-gradient(145deg, rgba(24, 44, 76, 0.95), rgba(12, 24, 44, 0.98));
}

.asmaa-card-num {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.asmaa-card-name {
  font-family: var(--font-quran, serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-500);
  margin: 0.4rem 0 0.2rem;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.asmaa-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.12rem 0.55rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.asmaa-card-meaning {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* ==========================================================================
   قسم مواسم الطاعات والتقويم الهجري والإمساكية (Seasons of Worship)
   ========================================================================== */
.seasons-section {
    padding-bottom: 40px;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

/* ==========================================================================
   لوحة التقويم الهجري التفاعلية (Hijri Calendar Dashboard Card)
   ========================================================================== */
.hijri-calendar-card {
  background: linear-gradient(135deg, rgba(8, 38, 29, 0.95) 0%, rgba(4, 22, 17, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg, 18px);
  padding: 1.6rem 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(212, 175, 55, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hijri-calendar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400, #d4af37), transparent);
}

.hijri-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hijri-badge-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #a4c2b7;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hijri-offset-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.8rem;
}

.offset-title {
  color: #94a3b8;
  font-size: 0.75rem;
}

.offset-current-val {
  font-weight: 800;
  color: #ffd875;
  min-width: 18px;
  text-align: center;
}

.btn-offset-adjust {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.15);
  color: #ffd875;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-offset-adjust:hover {
  background: #d4af37;
  color: #061e16;
}

.btn-offset-reset {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.btn-offset-reset:hover {
  color: #ffd875;
}

.hijri-card-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hijri-card-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.2rem;
  }
}

.hijri-main-date-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hijri-weekday-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fbbf24;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full, 999px);
}

@media (max-width: 768px) {
  .hijri-weekday-badge {
    align-self: center;
  }
}

.hijri-prominent-date {
  font-family: var(--font-quran, serif);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.2rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hijri-h-letter {
  color: var(--gold-400, #d4af37);
  font-size: 1.4rem;
}

.gregorian-sub-date {
  font-size: 0.9rem;
  color: #a4c2b7;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .gregorian-sub-date {
    justify-content: center;
  }
}

.hijri-month-progress-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 12px);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.progress-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

.hijri-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hijri-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #d4af37);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.progress-sub-info strong {
  color: #e2e8f0;
}

.hijri-fasting-alerts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fasting-alert-pill {
  flex: 1;
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md, 10px);
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.fasting-alert-pill strong {
  color: #ffd875;
}

/* دعم الثيم الفاتح (Light Theme) */
html[data-theme="light"] .hijri-calendar-card,
body.light-theme .hijri-calendar-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e2f5eb 100%) !important;
  border-color: rgba(168, 121, 39, 0.35) !important;
  box-shadow: 0 10px 25px rgba(7, 63, 53, 0.1) !important;
}

html[data-theme="light"] .hijri-prominent-date,
body.light-theme .hijri-prominent-date {
  color: #0d281e !important;
  text-shadow: none !important;
}

html[data-theme="light"] .gregorian-sub-date,
body.light-theme .gregorian-sub-date {
  color: #4b6358 !important;
}

html[data-theme="light"] .hijri-badge-tag,
body.light-theme .hijri-badge-tag {
  color: #3b5347 !important;
}

html[data-theme="light"] .hijri-month-progress-box,
body.light-theme .hijri-month-progress-box {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(7, 63, 53, 0.12) !important;
}

html[data-theme="light"] .progress-title-row,
body.light-theme .progress-title-row {
  color: #1e3a2f !important;
}

html[data-theme="light"] .fasting-alert-pill,
body.light-theme .fasting-alert-pill {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(168, 121, 39, 0.25) !important;
  color: #1e3a2f !important;
}

html[data-theme="light"] .fasting-alert-pill strong,
body.light-theme .fasting-alert-pill strong {
  color: #926615 !important;
}

html[data-theme="light"] .hijri-offset-controls,
body.light-theme .hijri-offset-controls {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(168, 121, 39, 0.3) !important;
}

html[data-theme="light"] .offset-current-val,
body.light-theme .offset-current-val {
  color: #926615 !important;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.season-card {
  background: linear-gradient(145deg, rgba(14, 26, 45, 0.8), rgba(8, 16, 30, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.season-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.season-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-400);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.season-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.season-card-date {
  font-size: 0.9rem;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.season-countdown-box {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  margin-bottom: 1rem;
}

.countdown-unit {
  text-align: center;
  min-width: 50px;
}

.countdown-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-400);
  display: block;
}

.countdown-label {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.season-card-virtue {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* ==========================================================================
   قسم فتاوى وأحكام الميت والصدقة الجارية (Islamic FAQ Accordion)
   ========================================================================== */
.faq-section {
    padding: 0 0 40px 0;
    background: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, rgba(7, 23, 12, 0.98) 75);
}

.faq-accordion-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: linear-gradient(145deg, rgba(14, 26, 45, 0.8), rgba(8, 16, 30, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--gold-400);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-icon-arrow {
  color: var(--gold-400);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-body ul, .faq-body ol {
  padding-inline-start: 1.5rem;
  margin: 0.75rem 0;
}

.faq-body li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   مودال التنبيهات الذكية وإنشاء الروابط المخصصة
   ========================================================================== */
.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-switch-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toggle-switch-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.toggle-switch-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.azkar-time-picker-wrapper {
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(var(--gold-rgb, 212, 175, 55), 0.2);
}

.azkar-time-picker-wrapper label {
  font-size: 0.8rem;
  color: var(--gold-400, #d4af37);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  cursor: pointer;
}

.azkar-time-input {
  background: var(--bg-card, #163329);
  color: #fff;
  border: 1px solid var(--border-color, #315346);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color-scheme: dark;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.azkar-time-input:focus {
  border-color: var(--gold-400, #d4af37);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

select.azkar-time-input option {
  background: var(--bg-card, #163329);
  color: var(--text-primary, #fff);
  padding: 6px;
}

[data-theme="light"] select.azkar-time-input option {
  background: #ffffff;
  color: #111827;
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: auto;
  right: auto;
  inset-inline-start: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--gold-500);
}

input:checked + .slider-round:before {
  inset-inline-start: calc(100% - 23px);
  transform: none;
}

.prayer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.prayer-chip:hover {
  border-color: rgba(var(--gold-rgb, 212, 175, 55), 0.4);
}

.prayer-chip:has(input:checked) {
  background: rgba(var(--gold-rgb, 212, 175, 55), 0.14);
  border-color: var(--gold-500, #d4af37);
  color: var(--gold-400, #e6c86e);
}

.prayer-chip input {
  accent-color: var(--gold-500, #d4af37);
  cursor: pointer;
  margin: 0;
  width: 14px;
  height: 14px;
}

[data-theme="light"] .prayer-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

[data-theme="light"] .prayer-chip:has(input:checked) {
  background: rgba(184, 134, 11, 0.12);
  border-color: #b8860b;
  color: #92400e;
}

.notif-test-details summary::-webkit-details-marker {
  display: none;
}

.notif-test-details[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
}

.notif-test-details summary i.fa-chevron-down {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   شريط التنقل المتجاوب والقائمة الجانبية للهواتف (Responsive Navbar & Mobile Drawer)
   ========================================================================== */
.btn-mobile-menu {
  display: none;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
}

@media (max-width: 991px) {
  .nav-links {
    display: none !important;
  }

  .btn-mobile-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .btn-icon-only-mobile span {
    display: none;
  }

  .btn-icon-only-mobile {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.95rem;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.mobile-nav-drawer.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 84%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #0f1c30 0%, #081220 100%);
  border-inline-end: 1px solid var(--gold-400);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding-right: calc(1.2rem + env(safe-area-inset-right, 0px));
  padding-left: calc(1.2rem + env(safe-area-inset-left, 0px));
  overflow-y: auto;
  z-index: 10;
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.btn-close-mobile-nav {
  background: transparent;
  border: none;
  color: var(--gold-400);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-link i {
  color: var(--gold-400);
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border-inline-start: 3px solid var(--gold-400);
}

.mobile-nav-footer {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
}

/* ==========================================================================
   سلايدر الشاشات الصغيرة للأدعية والأربعين النووية وأسماء الله الحسنى (كالسبحة والأذكار)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. أشرطة التصنيفات والتبويبات الأفقية (أذكار اليوم، أدعية، فلاتر، قصص الأنبياء، أسماء الله) */
  .azkar-tab-controls,
  .duas-categories-tabs,
  .nawawi-filter-bar,
  #stories-filter-bar,
  #asmaa-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 0.4rem 0.5rem 0.8rem !important;
    gap: 0.6rem !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .azkar-tab-controls::-webkit-scrollbar,
  .duas-categories-tabs::-webkit-scrollbar,
  .nawawi-filter-bar::-webkit-scrollbar,
  #stories-filter-bar::-webkit-scrollbar,
  #asmaa-filter-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .azkar-tab-btn,
  .duas-tab-btn,
  .nawawi-filter-pill {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.88rem !important;
    padding: 0.55rem 1.15rem !important;
  }

  /* 2. موسوعة الأدعية النبوية المبوبة */
  .categorized-duas-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem !important;
    padding: 0.5rem 0.3rem 1.5rem !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
  }

  .categorized-duas-grid::-webkit-scrollbar {
    height: 6px;
  }
  .categorized-duas-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
  }
  .categorized-duas-grid::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }

  .categorized-dua-card,
  .cat-dua-card {
    min-width: 84vw !important;
    max-width: 420px !important;
    flex: 0 0 84vw !important;
    scroll-snap-align: center;
    padding: 1.5rem 1.1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }


  /* 3. مكتبة أسماء الله الحسنى الـ 99 */
  .asmaa-mobile-nav-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 0 0.25rem;
    gap: 0.8rem;
  }

  .asmaa-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gold-300);
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
  }

  .asmaa-scroll-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-scroll-asmaa {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
    border: 1px solid var(--gold-500);
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
  }

  .btn-scroll-asmaa:hover,
  .btn-scroll-asmaa:active {
    background: var(--gold-500);
    color: var(--bg-dark);
  }

  #asmaa-filter-bar {
    display: flex !important;
    padding-bottom: 0.5rem;
    gap: 0.6rem;
    scrollbar-width: none;
    justify-content: center !important;
    margin-bottom: 1.2rem;
  }
  #asmaa-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .asmaa-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 0.75rem !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0.6rem 0.4rem 1rem !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
  }

  .asmaa-grid::-webkit-scrollbar {
    width: 5px;
    height: auto;
  }
  .asmaa-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
  }
  .asmaa-grid::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }

  .asmaa-card {
    min-width: unset !important;
    max-width: unset !important;
    flex: unset !important;
    padding: 0.9rem 0.6rem !important;
    min-height: 135px !important;
  }

  .asmaa-card-name {
    font-size: 1.85rem !important;
  }


  .stories-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem !important;
    padding: 0.5rem 0.3rem 1.5rem !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
  }

  .stories-grid::-webkit-scrollbar {
    height: 6px;
  }
  .stories-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
  }
  .stories-grid::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }

  .story-card {
    min-width: 84vw !important;
    max-width: 420px !important;
    flex: 0 0 84vw !important;
    scroll-snap-align: center;
    padding: 1.5rem 1.1rem !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ==========================================================================
   عناصر وتنسيقات بطاقات الأدعية النبوية المتوافقة مع سكشن الأذكار
   ========================================================================== */
.cat-dua-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-dua-title {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--gold-500);
  line-height: 1.4;
  margin: 0;
}

.cat-dua-category-badge {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-500);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cat-dua-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-round {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.cat-dua-card.is-finished {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(15, 28, 48, 0.6) 100%);
}

.cat-dua-card.is-finished .btn-repeat-dua.all-done {
  background: var(--emerald-500);
  border-color: var(--emerald-400);
  color: #fff;
  cursor: default;
}

/* ==========================================================================
   قسم مكتبة قصص الأنبياء وسير الصحابة الكرام (Islamic Stories Section)
   ========================================================================== */
.stories-section {
    position: relative;
    padding: 0 0 40px 0;
    background: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, rgba(7, 18, 13, 0.98) 70%);
}

.stories-cards-wrapper {
  position: relative;
  width: 100%;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.story-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.story-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.story-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.story-title-group h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-500);
  margin: 0 0 0.2rem 0;
}

.story-card-tag {
  font-size: 0.76rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(212, 175, 55, 0.22);
  font-weight: 600;
}

.story-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.story-verse-preview {
    background: rgba(16, 185, 129, 0.08);
    border-inline-start: 3px solid var(--gold-500);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-family: var(--font-quran, serif);
    font-size: 1.05rem;
    color: var(--gold-500);
    line-height: 1.8;
    margin: 0;
}

.story-card-summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.story-lesson-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.story-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-read-story {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ==========================================================================
   قسم مسابقة واختبر معلوماتك الدينية (Islamic Quiz Section)
   ========================================================================== */
.quiz-section {
  position: relative;
  padding:0 0 50px 0;
}

.quiz-container-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.quiz-progress-text {
  font-size: 0.9rem;
  color: var(--gold-300);
  font-weight: 700;
}

.quiz-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-400));
  transition: width 0.35s ease;
}

.quiz-question-box {
  margin-bottom: 1.5rem;
}

.quiz-question-category {
  font-size: 0.82rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-question-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.quiz-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  background: rgba(15, 28, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: start;
  font-family: inherit;
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--gold-400);
  background: rgba(212, 175, 55, 0.09);
  transform: translateY(-2px);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--emerald-400) !important;
  color: #34d399 !important;
  font-weight: 700;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.quiz-explanation-box {
  background: rgba(14, 25, 43, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  animation: fadeIn 0.3s ease-in-out;
}

.quiz-result-view {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.quiz-result-score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(15, 28, 48, 0.95) 100%);
  border: 3px solid var(--gold-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-300);
}

.quiz-result-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-result-title {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-result-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.quiz-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* بطاقة الحكمة وتدبر آية اليوم */
.daily-wisdom-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.daily-wisdom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   تنسيقات نافذة قراءة القصة الكاملة (Story Details Modal)
   ========================================================================== */
#story-details-modal .modal-card,
#daily-message-modal .modal-card {
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
}

.story-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.story-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-200);
  margin: 0 0 0.25rem 0;
}

.story-modal-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 600;
}

.story-verse-box {
  background: rgba(14, 25, 43, 0.9);
  border-inline-start: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

/* ==========================================================================
   1. شريط فاصلة المصحف الذكية ومتابع القراءة (Smart Quran Bookmark & Tracker)
   ========================================================================== */
.mushaf-reading-tracker-bar {
  background: linear-gradient(135deg, rgba(14, 25, 43, 0.95), rgba(7, 13, 24, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(212, 175, 55, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  margin-bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.mushaf-reading-tracker-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--emerald-400), transparent);
}

.tracker-bookmark-col {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.tracker-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tracker-bookmark-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tracker-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tracker-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-500);
}

.tracker-khatma-col {
  flex: 1.3;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tracker-khatma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tracker-today-pages {
  font-size: 0.8rem;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.tracker-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tracker-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-400));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.tracker-actions-col {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   2. حديقة الحسنات وشجرة الذكر التفاعلية (Spiritual Garden & Tree)
   ========================================================================== */
.spiritual-garden-section {
  padding: 0 0 45px;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.garden-interactive-card {
  background: linear-gradient(145deg, rgba(7, 35, 29, 0.88) 0%, rgba(5, 24, 20, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.garden-interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #d4af37, #10b981);
}

.garden-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tree-display-wrapper {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(6, 40, 32, 0.95) 75%);
  border: 2px solid #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.35), inset 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all 0.4s ease;
}

.spiritual-tree-aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  animation: rotateAura 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateAura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spiritual-tree-stage-graphic {
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tree-stage-emoji {
  font-size: 5.5rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.6));
  animation: pulseTree 3s ease-in-out infinite;
}

@keyframes pulseTree {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.tree-stage-badge {
  font-family: var(--font-arabic-heading, inherit);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd875;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.tree-stage-desc {
  font-size: 0.85rem;
  color: #a4c2b7;
  max-width: 240px;
  line-height: 1.45;
}

.garden-stats-col {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.garden-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.score-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.score-label {
  font-size: 0.85rem;
  color: #a4c2b7;
}

.score-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #34d399;
  font-family: var(--font-primary);
  line-height: 1;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.score-unit {
  font-size: 0.85rem;
  color: #ffd875;
  font-weight: 700;
}

.streak-pill {
  background: rgba(212, 175, 55, 0.18);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #ffe599;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.garden-progress-box {
  background: rgba(10, 42, 35, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #c2d6ce;
  margin-bottom: 0.55rem;
}

.progress-info-row span:last-child {
  font-weight: 700;
  color: #ffd875;
}

.garden-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.garden-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399, #fbbf24);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.garden-deeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

.garden-deed-item {
  background: rgba(10, 42, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.garden-deed-item:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-3px);
}

.deed-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #ffd875;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.deed-info {
  display: flex;
  flex-direction: column;
}

.deed-title {
  font-size: 0.78rem;
  color: #a4c2b7;
  font-weight: 500;
}

.deed-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.garden-actions-row {
  display: flex;
  justify-content: flex-end;
}

#btn-share-garden-status {
  background: linear-gradient(135deg, #d4af37 0%, #b89222 100%);
  color: #062820;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-fast);
}

#btn-share-garden-status:hover {
  background: linear-gradient(135deg, #ffd875 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   3. بنر التنبيهات اللطيفة الذكية (Smart Contextual Reminders Banner)
   ========================================================================== */
.smart-reminder-banner {
    background: linear-gradient(135deg, rgba(20, 108, 90, 0.99), rgba(14, 102, 84, 0.99));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-lg);
    padding: 1rem 1.4rem;
    margin: 1.5rem auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    animation: slideDownFade 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.smart-reminder-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold-400);
}

.smart-reminder-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.smart-reminder-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.smart-reminder-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.smart-reminder-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e5c68c;
}

.smart-reminder-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.smart-reminder-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 868px) {
  .garden-interactive-card {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   21. قسم المرئيات والبودكاست الإسلامي (Islamic Media Hub)
   ========================================================================== */
.islamic-media-section {
    padding-bottom: 40px;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    position: relative;
}

.media-controls-container {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.media-filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 6px 4px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  box-sizing: border-box;
}

.media-filter-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .media-filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 6px 0 12px;
  }
}

.media-filter-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.media-filter-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-200);
  transform: translateY(-2px);
}

.media-filter-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(184, 134, 11, 0.18) 100%);
  border-color: var(--gold-400);
  color: #fff;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3), inset 0 0 12px rgba(212, 175, 55, 0.15);
}

.media-filter-count {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 1.3rem;
  text-align: center;
}

.media-filter-btn.active .media-filter-count {
  background: var(--gold-500);
  color: #0b1320;
  border-color: var(--gold-300);
}

.media-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.media-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.media-search-icon {
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-400);
  font-size: 0.95rem;
  pointer-events: none;
}

.media-search-input {
  width: 100%;
  padding-block: 0.75rem;
  padding-inline: 2.8rem 2.5rem;
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.media-search-input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.media-search-clear {
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.media-search-clear:hover {
  color: #fff;
}

.media-stats-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.media-stats-pill strong {
  color: var(--gold-300);
}

.media-mobile-nav-bar {
  display: none;
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 1080px) and (min-width: 769px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .media-controls-container {
    gap: 0.85rem !important;
    margin-bottom: 1.2rem !important;
  }

  .media-filter-tabs {
    padding: 4px 2px 8px !important;
    gap: 0.5rem !important;
    margin-bottom: 0.3rem !important;
  }

  .media-filter-btn {
    padding: 0.45rem 0.95rem !important;
    font-size: 0.84rem !important;
  }

  .media-search-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }

  .media-search-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }

  .media-search-input {
    font-size: 14px !important;
    padding-block: 0.65rem !important;
    padding-inline: 2.5rem 2.2rem !important;
  }

  .media-stats-pill {
    align-self: center !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.85rem !important;
  }


  .media-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.1rem !important;
    padding: 0.4rem 0.2rem 1.2rem !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.08);
  }

  .media-grid::-webkit-scrollbar {
    height: 6px;
  }
  .media-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
  }
  .media-grid::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }

  .media-card {
    min-width: 84vw !important;
    max-width: 350px !important;
    flex: 0 0 84vw !important;
    scroll-snap-align: center;
  }

  .media-card-content {
    padding: 1rem !important;
    gap: 0.6rem !important;
  }

  .media-card-title {
    font-size: 0.96rem !important;
  }

  .media-card-desc {
    font-size: 0.8rem !important;
  }
}

@keyframes mediaCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-card {
  background: linear-gradient(180deg, rgba(17, 30, 49, 0.85) 0%, rgba(12, 22, 36, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: mediaCardFadeIn 0.4s ease forwards;
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.media-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b13;
  overflow: hidden;
  cursor: pointer;
}

.media-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-card:hover .media-thumbnail-img {
  transform: scale(1.06);
}

.media-duration-pill {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.5px;
}

.media-badge-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(14, 25, 43, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(6px);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.media-card:hover .media-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.18);
}

.media-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: #0b1320;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-left: 3px;
  border: none;
  cursor: pointer;
}

.media-card:hover .media-play-btn {
  transform: scale(1.14);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
}

.media-card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.85rem;
}

.media-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.media-speaker-tag {
  font-size: 0.84rem;
  color: var(--gold-500);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}

.media-views-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffda79;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.speaker-avatar-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--gold-400);
}

.media-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.media-card-title:hover {
  color: var(--gold-300);
}

.media-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.5rem;
}

.btn-watch-media {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-500);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-watch-media:hover {
  background: var(--gold-400);
  color: #0b1320;
  border-color: var(--gold-300);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.btn-share-media-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-share-media-card:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

/* Load More Controls */
.media-load-more-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.btn-load-more-media {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-500);
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.btn-load-more-media:hover {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: #0b1320;
  border-color: var(--gold-300);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-load-more-media i {
  transition: transform 0.3s ease;
}

.btn-load-more-media:hover i {
  transform: translateY(3px);
}

.load-more-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.btn-load-more-media:hover .load-more-badge {
  background: rgba(0, 0, 0, 0.2);
  color: #0b1320;
  border-color: rgba(0, 0, 0, 0.3);
}

/* Empty State */
.media-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.media-empty-state i {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.media-empty-state h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.media-empty-state p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   مشغل المرئيات المتقدم البسيط والمضغوط (Compact & Sleek Media Player Modal)
   ========================================================================== */
.modal-card-media-player {
  position: relative;
  max-width: 640px;
  width: 94vw;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #101c2d 0%, #09111c 100%);
  border: 1px solid var(--gold-500);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
}

/* شريط رأس المشغل البسيط والمباشر */
.media-player-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(8, 15, 25, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  gap: 8px;
  user-select: none;
}

.media-player-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.media-player-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-300);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.media-player-duration {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.media-player-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-popup-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-popup-youtube {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
}

.btn-popup-youtube:hover {
  background: #ef4444;
  color: #fff;
}

.modal-close-btn-simple {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close-btn-simple:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.08);
}

/* مشغل الفيديو */
.media-player-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-player-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* تفاصيل المقطع المدمجة السفلية */
.media-player-details {
  padding: 0.75rem 1rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(8, 15, 25, 0.9);
}

.media-player-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.media-player-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-player-speaker-line {
  font-size: 0.8rem;
  color: var(--gold-300);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-player-modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn-compact-action {
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-wa-share {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
  flex: 1.3;
}

.btn-wa-share:hover {
  background: #25d366;
  color: #0b1320;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  flex: 1;
}

.btn-copy:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn-bookmark {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold-400);
  padding: 0.42rem 0.65rem;
}

.btn-bookmark:hover,
.btn-bookmark.saved {
  background: var(--gold-500);
  color: #0b1320;
  border-color: var(--gold-400);
}

.media-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.media-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.media-mode-btn.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1320;
}

/* ==========================================================================
   تطويرات المرئيات والبودكاست: المحفوظات، استئناف المشاهدة، وضع الصوت، مقطع اليوم
   ========================================================================== */

/* 1. زر المفضلة والمحفوظات على البطاقة (Media Card Bookmark Button) */
.media-card-bookmark-btn {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  background: rgba(14, 25, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.media-card-bookmark-btn:hover {
  transform: scale(1.12);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.media-card-bookmark-btn.saved {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-400);
  color: var(--gold-400);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* 2. شريط تقدم المشاهدة على البطاقة (Media Progress Bar) */
.media-card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 4;
}

.media-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), #ffda79);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* 3. عناصر تحكم رأس المشغل (تبديل الفيديو/الصوت وحفظ المقطع) */
.media-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.media-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.media-mode-btn.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1320;
}

/* 4. بنر استئناف المشاهدة المختصر (Compact Resume Playback Banner) */
.media-resume-banner {
  background: rgba(18, 32, 50, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  animation: mediaCardFadeIn 0.3s ease;
}

.media-resume-text {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-resume-text strong {
  color: var(--gold-300);
  font-size: 0.85rem;
}

.media-resume-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-resume-action {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-resume-continue {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1320;
}

.btn-resume-restart {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

/* 5. وضع الاستماع الصوتي فقط المضغوط (Compact Audio-Only Mode Styles) */
.media-audio-player-wrapper {
  background: radial-gradient(circle at center, #132438 0%, #080f1a 100%);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
}

.media-audio-cover-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.6rem;
  position: relative;
}

.media-audio-disk {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(16, 185, 129, 0.2));
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  animation: pulseAudioGlow 3s ease-in-out infinite alternate;
  margin-bottom: 0.5rem;
}

.media-audio-avatar {
  font-size: 1.6rem;
  color: var(--gold-300);
}

/* Animated sound wave bars */
.media-audio-wave-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 0.2rem;
}

.media-audio-wave-bars .bar {
  width: 3px;
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--emerald-400) 100%);
  border-radius: 2px;
  animation: audioWaveBar 1.2s ease-in-out infinite alternate;
}

.media-audio-wave-bars .bar-1 { height: 8px; animation-delay: 0.1s; }
.media-audio-wave-bars .bar-2 { height: 18px; animation-delay: 0.3s; }
.media-audio-wave-bars .bar-3 { height: 24px; animation-delay: 0.5s; }
.media-audio-wave-bars .bar-4 { height: 12px; animation-delay: 0.2s; }
.media-audio-wave-bars .bar-5 { height: 20px; animation-delay: 0.4s; }
.media-audio-wave-bars .bar-6 { height: 14px; animation-delay: 0.6s; }

.media-audio-mode-info {
  margin-bottom: 0.6rem;
}

.media-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.media-audio-controls-bar,
.media-audio-speed-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  flex-wrap: wrap;
  justify-content: center;
}

.media-audio-wave-bars.paused .bar {
  animation-play-state: paused;
}

.media-audio-controls-bar {
  width: min(100%, 24rem);
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
}

.audio-time-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 2.4rem;
  text-align: center;
}

.audio-seek-slider {
  flex: 1;
  min-width: 5.5rem;
  accent-color: var(--gold-400);
  cursor: pointer;
  direction: ltr;
}

.media-audio-controls-bar .speed-label,
.media-audio-speed-bar .speed-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-audio-speed {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio-speed.active,
.btn-audio-speed:hover {
  background: var(--gold-400);
  color: #0b1320;
  border-color: var(--gold-300);
}

.btn-audio-seek {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-300);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.btn-audio-seek:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
}

/* Audio mode hiding video */
.modal-card-media-player.audio-mode .media-player-video-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  overflow: hidden;
}

/* 6. كارت موعظة اليوم المرئية في الشاشة الرئيسية (Daily Featured Clip Hero Card) */
.daily-featured-media-card {
  background: linear-gradient(135deg, rgba(17, 30, 49, 0.95) 0%, rgba(10, 20, 32, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.daily-featured-media-card:hover {
  border-color: var(--gold-400);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.2);
}

.daily-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.daily-featured-badge {
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.daily-featured-cat-tag {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-400);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.daily-featured-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  align-items: center;
}

@media (max-width: 600px) {
  .daily-featured-body {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.daily-featured-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.daily-clip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.daily-featured-thumb-box:hover .daily-clip-img {
  transform: scale(1.08);
}

.daily-clip-duration {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.daily-clip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.daily-featured-thumb-box:hover .daily-clip-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.daily-clip-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1320;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
  transition: transform 0.25s ease;
  padding-left: 2px;
}

.daily-featured-thumb-box:hover .daily-clip-play-btn {
  transform: scale(1.15);
}

.daily-featured-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.daily-clip-speaker {
  font-size: 0.78rem;
  color: var(--gold-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.daily-clip-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daily-clip-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daily-clip-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.btn-watch-daily-clip {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1320;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-watch-daily-clip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-audio-daily-clip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-audio-daily-clip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.btn-bookmark-daily-clip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-bookmark-daily-clip:hover,
.btn-bookmark-daily-clip.saved {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

/* Dark mode theme overrides */
html[data-theme="dark"] .daily-featured-media-card,
[data-theme="dark"] .daily-featured-media-card {
  background: #163329 !important;
  border-color: #315346 !important;
  color: #F3F8F4 !important;
}

html[data-theme="dark"] .modal-card-media-player,
[data-theme="dark"] .modal-card-media-player {
  background: linear-gradient(180deg, #132a21 0%, #0c1a14 100%) !important;
  border-color: #315346 !important;
}

html[data-theme="dark"] .media-player-header-bar,
[data-theme="dark"] .media-player-header-bar,
html[data-theme="dark"] .media-player-details,
[data-theme="dark"] .media-player-details {
  background: #0d1e18 !important;
}

html[data-theme="dark"] .media-audio-player-wrapper,
[data-theme="dark"] .media-audio-player-wrapper {
  background: radial-gradient(circle at center, #163329 0%, #0d1e18 100%) !important;
  border-color: #315346 !important;
}



/* ==========================================================================
   22. لوحة الإحصائيات الخاصة (Admin & Analytics Dashboard)
   ========================================================================== */
.modal-card-admin {
  max-width: 960px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.8rem 2rem;
  background: linear-gradient(180deg, rgba(14, 25, 43, 0.98) 0%, rgba(8, 15, 27, 0.99) 100%);
  border: 1px solid var(--gold-500);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.25);
}

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 1.6rem;
}

.admin-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-dashboard-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.admin-dashboard-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 868px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  background: rgba(212, 175, 55, 0.06);
}

.admin-stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.bg-gold-subtle { background: rgba(212, 175, 55, 0.15); border: 1px solid rgba(212, 175, 55, 0.35); }
.bg-emerald-subtle { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); }
.bg-blue-subtle { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); }
.bg-rose-subtle { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); }
.bg-amber-subtle { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); }
.bg-cyan-subtle { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); }

.admin-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.admin-stat-sub {
  font-size: 0.75rem;
  color: var(--gold-300);
}

/* Details Row */
.admin-details-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 768px) {
  .admin-details-row {
    grid-template-columns: 1fr;
  }
}

.admin-panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.device-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.device-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-300) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.admin-daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 160px;
  overflow-y: auto;
}

.admin-daily-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-daily-item strong {
  color: var(--gold-300);
}

/* Dashboard Footer */
.admin-dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--emerald-400);
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  background: var(--emerald-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-400);
  animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.admin-footer-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* PIN Input */
.admin-pin-input-wrapper {
  margin: 0 auto;
  max-width: 260px;
}

.admin-pin-input {
  width: 100%;
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 6px;
  background: rgba(14, 25, 43, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.admin-pin-input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   23. المظهر النهاري الإسلامي الفاخر الشامل والمريح للعين (Ultimate Eye-Comfort Light Theme)
   ========================================================================== */
:root,
html[data-theme="light"],
html.light-theme,
:root[data-theme="light"],
body.light-theme,
[data-theme="light"] {
  color-scheme: light;

  /* لوحة الألوان النهارية الرسمية العصرية والفخمة - زاد المسلم */
  --bg-primary: #F7F9F6;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elevated: #F0F5F1;
  --bg-surface: #FFFFFF;
  --bg-main: #F7F9F6;
  --bg-dark: #F7F9F6;
  --card-bg: #FFFFFF;

  --text-primary: #193B34;
  --text-secondary: #536A60;
  --text-muted: #64786D;
  --text-color: #193B34;
  --text-gold: #A87927;

  --primary: #073F35;
  --primary-hover: #0E6654;
  --primary-contrast: #FFFFFF;

  --accent: #A87927;
  --accent-bg: #FFF5E3;

  --border-color: #DFE9E1;
  --border-glow: rgba(7, 63, 53, 0.18);
  --shadow-color: rgba(7, 63, 53, 0.08);

  --input-bg: #FFFFFF;
  --nav-bg: #FFFFFF;

  /* درجات الذهب الدافئة والأخضر الزمردي بنقاء وتباين ممتاز */
  --gold-100: #573e00;
  --gold-200: #735200;
  --gold-300: #8c6218;
  --gold-400: #a87927;
  --gold-500: #c59318;
  --gold-600: #9e7200;
  --gold-700: #7d5a00;
  --emerald-400: #10b981;
  --emerald-500: #059669;
  --emerald-900: #073f35;

  /* ظلال نهارية نقية وناعمة */
  --shadow-sm: 0 2px 8px rgba(7, 63, 53, 0.04);
  --shadow-md: 0 6px 20px rgba(7, 63, 53, 0.06);
  --shadow-gold: 0 0 20px rgba(168, 121, 39, 0.15);
  --shadow-emerald: 0 0 20px rgba(7, 63, 53, 0.15);
}

html[data-theme="light"],
html.light-theme,
html[data-theme="light"] body,
body.light-theme {
  background-color: #F7F9F6 !important;
  color: #193B34 !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(7, 63, 53, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 121, 39, 0.025) 0%, transparent 45%) !important;
}

/* 1. Navbar & Top Navigation */
body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(184, 134, 11, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .brand-title {
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.light-theme .brand-subtitle {
  color: #8d6404 !important;
}

body.light-theme .nav-links a {
  color: #334155 !important;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: #8d6404 !important;
  background: rgba(184, 134, 11, 0.09) !important;
}

body.light-theme .nav-links a.active::after {
  background: #c59318 !important;
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.4) !important;
}

/* 2. Mobile Nav Drawer */
body.light-theme .mobile-nav-content {
  background: #ffffff !important;
  border-inline-end: 1px solid rgba(184, 134, 11, 0.25) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .mobile-nav-header {
  border-bottom: 1px solid rgba(184, 134, 11, 0.2) !important;
}

body.light-theme .mobile-nav-link {
  color: #334155 !important;
}

body.light-theme .mobile-nav-link:hover,
body.light-theme .mobile-nav-link.active {
  background: rgba(184, 134, 11, 0.09) !important;
  color: #8d6404 !important;
  border-inline-start: 3px solid #c59318 !important;
}

body.light-theme .btn-close-mobile-nav {
  color: #64748b !important;
}

/* 3. Hero & Banners */
body.light-theme .hero-section {
  background: linear-gradient(180deg, #faf8f2 0%, #f3ede2 100%) !important;
}

body.light-theme .hero-badge,
body.light-theme .hero-hijri-badge {
  background: rgba(184, 134, 11, 0.1) !important;
  border-color: rgba(184, 134, 11, 0.3) !important;
  color: #7d5a00 !important;
}

body.light-theme .hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.light-theme .hero-title span {
  color: #8d6404 !important;
}

body.light-theme .hero-subtitle {
  color: #334155 !important;
}

body.light-theme .hero-quote {
  color: #0f172a !important;
}

body.light-theme .charity-memorial-banner {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}
    html[data-theme="light"] .charity-memorial-text, body.light-theme .charity-memorial-text {
        color: #0E6654 !important;
    }

body.light-theme .charity-memorial-text strong {
  color: var(--primary) !important;
}

body.light-theme .charity-memorial-icon {
  background: rgba(184, 134, 11, 0.1) !important;
  color: #7d5a00 !important;
  border-color: rgba(184, 134, 11, 0.3) !important;
}

body.light-theme .featured-prayer-card {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.25) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .prayer-main-text {
  color: #0f172a !important;
}

body.light-theme .prayer-ornament-top,
body.light-theme .prayer-ornament-bottom {
  color: #8d6404 !important;
}

body.light-theme .daily-wisdom-card {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.25) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .wisdom-badge {
  color: #7d5a00 !important;
}

html[data-theme="light"] .wisdom-date-tag,
body.light-theme .wisdom-date-tag {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
}

html[data-theme="light"] .wisdom-item,
body.light-theme .wisdom-item {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .wisdom-item-tag,
body.light-theme .wisdom-item-tag {
  color: #073f35 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .wisdom-quote-text,
body.light-theme .wisdom-quote-text {
  color: #193b34 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .wisdom-reflection,
body.light-theme .wisdom-reflection {
  color: #536a60 !important;
  border-top: 1px dashed #dfe9e1 !important;
}

/* 4. Section Backgrounds (All 15 Target Sections in Light Mode) */
html[data-theme="light"] .quran-khatma-section,
body.light-theme .quran-khatma-section,
html.light-theme .quran-khatma-section,
html[data-theme="light"] .khatma-section,
body.light-theme .khatma-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .prayer-times-section,
body.light-theme .prayer-times-section,
html.light-theme .prayer-times-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .tasbeeh-section,
body.light-theme .tasbeeh-section,
html.light-theme .tasbeeh-section,
html[data-theme="light"] .azkar-section,
body.light-theme .azkar-section,
html.light-theme .azkar-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .spiritual-garden-section,
body.light-theme .spiritual-garden-section,
html.light-theme .spiritual-garden-section {
  background: radial-gradient(circle at 50% 100%, rgba(7, 63, 53, 0.04) 0%, #F7F9F6 70%) !important;
}

html[data-theme="light"] .daily-wird-section,
body.light-theme .daily-wird-section,
html.light-theme .daily-wird-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .seasons-section,
body.light-theme .seasons-section,
html.light-theme .seasons-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .categorized-duas-section,
body.light-theme .categorized-duas-section,
html.light-theme .categorized-duas-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .asmaa-section,
body.light-theme .asmaa-section,
html.light-theme .asmaa-section {
  background: #F7F9F6 !important;
}


html[data-theme="light"] .islamic-media-section,
body.light-theme .islamic-media-section,
html.light-theme .islamic-media-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .stories-section,
body.light-theme .stories-section,
html.light-theme .stories-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .quiz-section,
body.light-theme .quiz-section,
html.light-theme .quiz-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .prayers-section,
body.light-theme .prayers-section,
html.light-theme .prayers-section,
html[data-theme="light"] .community-prayers-section,
body.light-theme .community-prayers-section,
html.light-theme .community-prayers-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .quran-section,
body.light-theme .quran-section,
html.light-theme .quran-section,
html[data-theme="light"] .quran-reader-section,
body.light-theme .quran-reader-section,
html.light-theme .quran-reader-section {
  background: #FFFFFF !important;
}

html[data-theme="light"] .faq-section,
body.light-theme .faq-section,
html.light-theme .faq-section {
  background: #F7F9F6 !important;
}

html[data-theme="light"] .cemetery-guide-section,
body.light-theme .cemetery-guide-section,
html.light-theme .cemetery-guide-section {
  background: #FFFFFF !important;
}

/* 5. Universal Cards & Containers */
    html[data-theme="light"] .khatma-card,
    body.light-theme .khatma-card,
    html[data-theme="light"] .prayer-times-card,
    body.light-theme .prayer-times-card,
    html[data-theme="light"] .media-card,
    body.light-theme .media-card,
    html[data-theme="light"] .tasbeeh-card,
    body.light-theme .tasbeeh-card,
    html[data-theme="light"] .azkar-card,
    body.light-theme .azkar-card,
    html[data-theme="light"] .hadith-card,
    body.light-theme .hadith-card,
    html[data-theme="light"] .asmaa-card,
    body.light-theme .asmaa-card,
    html[data-theme="light"] .story-card,
    body.light-theme .story-card,
    html[data-theme="light"] .quiz-card,
    body.light-theme .quiz-card,
    html[data-theme="light"] .cat-dua-card,
    body.light-theme .cat-dua-card,
    html[data-theme="light"] .garden-interactive-card,
    body.light-theme .garden-interactive-card,
    html[data-theme="light"] .stat-card,
    body.light-theme .stat-card,
    html[data-theme="light"] .faq-item,
    body.light-theme .faq-item,
    html[data-theme="light"] .wird-group-card,
    body.light-theme .wird-group-card,
    html[data-theme="light"] .daily-wird-card,
    body.light-theme .daily-wird-card,
    html[data-theme="light"] .season-card,
    body.light-theme .season-card,
    html[data-theme="light"] .spiritual-message-card,
    body.light-theme .spiritual-message-card,
    html[data-theme="light"] .counter-box,
    body.light-theme .counter-box,
    html[data-theme="light"] .quran-search-item,
    body.light-theme .quran-search-item,
    html[data-theme="light"] .featured-prayer-card,
    body.light-theme .featured-prayer-card,
    html[data-theme="light"] .prayer-card,
    body.light-theme .prayer-card,
    html[data-theme="light"] .community-prayer-card,
    body.light-theme .community-prayer-card,
    html[data-theme="light"] .khatma-summary-card,
    body.light-theme .khatma-summary-card,
    html[data-theme="light"] .azkar-selector-box,
    body.light-theme .azkar-selector-box,
    html[data-theme="light"] .cemetery-dua-featured-card,
    body.light-theme .cemetery-dua-featured-card,
    html[data-theme="light"] .cemetery-card,
    body.light-theme .cemetery-card,
    html[data-theme="light"] .quiz-container-card,
    body.light-theme .quiz-container-card,
    html[data-theme="light"] .verse-card,
    body.light-theme .verse-card,
    html[data-theme="light"] .tasbeeh-device,
    body.light-theme .tasbeeh-device,
    html[data-theme="light"] .juz-card,
    body.light-theme .juz-card,
    html[data-theme="light"] .charity-memorial-text,
    body.light-theme ..charity-memorial-text {
        background: #FFFFFF !important;
        border: 1px solid #DFE9E1 !important;
        box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        color: #193B34 !important;
    }


html[data-theme="light"] .khatma-card:hover,
body.light-theme .khatma-card:hover,
html[data-theme="light"] .media-card:hover,
body.light-theme .media-card:hover,
html[data-theme="light"] .hadith-card:hover,
body.light-theme .hadith-card:hover,
html[data-theme="light"] .asmaa-card:hover,
body.light-theme .asmaa-card:hover,
html[data-theme="light"] .story-card:hover,
body.light-theme .story-card:hover,
html[data-theme="light"] .cat-dua-card:hover,
body.light-theme .cat-dua-card:hover,
html[data-theme="light"] .prayer-card:hover,
body.light-theme .prayer-card:hover,
html[data-theme="light"] .community-prayer-card:hover,
body.light-theme .community-prayer-card:hover,
html[data-theme="light"] .cemetery-card:hover,
body.light-theme .cemetery-card:hover,
html[data-theme="light"] .azkar-card:hover,
body.light-theme .azkar-card:hover,
html[data-theme="light"] .season-card:hover,
body.light-theme .season-card:hover,
html[data-theme="light"] .stat-card:hover,
body.light-theme .stat-card:hover,
html[data-theme="light"] .juz-card:hover,
body.light-theme .juz-card:hover {
  border-color: #A87927 !important;
  box-shadow: 0 10px 28px rgba(7, 63, 53, 0.09) !important;
}

/* Stat Cards (Global Stats Banner) */
body.light-theme .stat-card .stat-icon {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.12), rgba(16, 185, 129, 0.1)) !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
  color: #7d5a00 !important;
}

body.light-theme .stat-card .stat-number {
  color: #0f172a !important;
}

body.light-theme .stat-card .stat-title {
  color: #475569 !important;
}

/* 6. Headings & Text High Contrast */
html[data-theme="light"] h2,
body.light-theme h2,
html[data-theme="light"] h4,
body.light-theme h4,
html[data-theme="light"] h5,
body.light-theme h5,
html[data-theme="light"] h6,
body.light-theme h6,
html[data-theme="light"] .section-title,
body.light-theme .section-title,
html[data-theme="light"] .media-card-title,
body.light-theme .media-card-title,
html[data-theme="light"] .hadith-title,
body.light-theme .hadith-title,
html[data-theme="light"] .story-title,
body.light-theme .story-title,
html[data-theme="light"] .cat-dua-title,
body.light-theme .cat-dua-title,
html[data-theme="light"] .modal-title,
body.light-theme .modal-title,
html[data-theme="light"] .prayer-main-text,
body.light-theme .prayer-main-text,
html[data-theme="light"] .author-name,
body.light-theme .author-name,
html[data-theme="light"] .khatma-badge-title,
body.light-theme .khatma-badge-title,
html[data-theme="light"] .juz-title,
body.light-theme .juz-title,
html[data-theme="light"] .story-title-group h3,
body.light-theme .story-title-group h3,
html[data-theme="light"] .quiz-question-title,
body.light-theme .quiz-question-title,
html[data-theme="light"] .quiz-result-title,
body.light-theme .quiz-result-title,
html[data-theme="light"] .season-card-title,
body.light-theme .season-card-title,
html[data-theme="light"] .story-modal-title,
body.light-theme .story-modal-title {
  color: #193B34 !important;
}
    html[data-theme="light"] h3,
    body.light-theme h3{
        color:var(--gold-500);
    }
    /* بطاقة البداية الرئيسية تحتفظ بنصها الأبيض التبايني على التدرج الأخضر الفاخر في كلا الوضعين */
    body.light-theme .hero h1,
    body.light-theme .hero p,
    body.light-theme .app-hero-strip h1,
    body.light-theme .app-hero-strip p {
        color: #ffffff !important;
    }

html[data-theme="light"] .section-desc,
body.light-theme .section-desc,
html[data-theme="light"] .media-card-desc,
body.light-theme .media-card-desc,
html[data-theme="light"] .modal-desc,
body.light-theme .modal-desc,
html[data-theme="light"] .faq-answer,
body.light-theme .faq-answer,
html[data-theme="light"] .prayer-date,
body.light-theme .prayer-date,
html[data-theme="light"] .khatma-progress-text,
body.light-theme .khatma-progress-text,
html[data-theme="light"] .legend-item,
body.light-theme .legend-item,
html[data-theme="light"] .juz-meta,
body.light-theme .juz-meta,
html[data-theme="light"] .azkar-virtue,
body.light-theme .azkar-virtue,
html[data-theme="light"] .story-card-summary,
body.light-theme .story-card-summary,
html[data-theme="light"] .quiz-result-desc,
body.light-theme .quiz-result-desc,
html[data-theme="light"] .season-card-virtue,
body.light-theme .season-card-virtue,
html[data-theme="light"] .media-player-desc,
body.light-theme .media-player-desc,
html[data-theme="light"] .admin-dashboard-subtitle,
body.light-theme .admin-dashboard-subtitle,
html[data-theme="light"] .admin-stat-label,
body.light-theme .admin-stat-label,
html[data-theme="light"] .deed-title,
body.light-theme .deed-title,
html[data-theme="light"] .tree-stage-desc,
body.light-theme .tree-stage-desc,
html[data-theme="light"] .fasting-banner-desc,
body.light-theme .fasting-banner-desc,
html[data-theme="light"] .fasting-timer-label,
body.light-theme .fasting-timer-label,
html[data-theme="light"] .tracker-label,
body.light-theme .tracker-label,
html[data-theme="light"] .hadith-narrator,
body.light-theme .hadith-narrator {
  color: #536A60 !important;
}
    html[data-theme="light"] h1,
    body.light-theme h1{
        color:#fff;
    }
    /* 7. Islamic texts & Arabic calligraphies */
    html[data-theme="light"] .quran-text,
    body.light-theme .quran-text,
    html[data-theme="light"] .hadith-matn,
    body.light-theme .hadith-matn,
    html[data-theme="light"] .hadith-text,
    body.light-theme .hadith-text,
    html[data-theme="light"] .cat-dua-body,
    body.light-theme .cat-dua-body,
    html[data-theme="light"] .azkar-text,
    body.light-theme .azkar-text,
    html[data-theme="light"] .story-full-text,
    body.light-theme .story-full-text,
    html[data-theme="light"] .prayer-body,
    body.light-theme .prayer-body,
    html[data-theme="light"] .verse-text,
    body.light-theme .verse-text,
    html[data-theme="light"] .quran-match-text,
    body.light-theme .quran-match-text {
        color: #193B34 !important;
        font-weight: 600 !important;
    }

html[data-theme="light"] .asmaa-name-calligraphy,
body.light-theme .asmaa-name-calligraphy,
html[data-theme="light"] .asmaa-card-name,
body.light-theme .asmaa-card-name {
  color: #073F35 !important;
  text-shadow: none !important;
}

/* 8. Section Tag (Clean Eyebrow text) */
html[data-theme="light"] .section-tag,
body.light-theme .section-tag {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0E6654 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  display: block !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.5px !important;
}

html[data-theme="light"] .section-tag i,
body.light-theme .section-tag i {
  color: #073F35 !important;
}

/* 9. Azkar Tabs, Surah Pills & Filter Buttons */
html[data-theme="light"] .azkar-tab-btn,
body.light-theme .azkar-tab-btn,
html[data-theme="light"] .surah-pill,
body.light-theme .surah-pill,
html[data-theme="light"] .media-filter-btn,
body.light-theme .media-filter-btn,
html[data-theme="light"] .nawawi-filter-pill,
body.light-theme .nawawi-filter-pill,
html[data-theme="light"] .duas-tab-btn,
body.light-theme .duas-tab-btn,
html[data-theme="light"] .theme-pill,
body.light-theme .theme-pill,
html[data-theme="light"] .media-stats-pill,
body.light-theme .media-stats-pill,
html[data-theme="light"] .hadith-tag,
body.light-theme .hadith-tag,
html[data-theme="light"] .asmaa-meaning-pill,
body.light-theme .asmaa-meaning-pill,
html[data-theme="light"] .wird-badge,
body.light-theme .wird-badge,
html[data-theme="light"] .khatma-filter-btn,
body.light-theme .khatma-filter-btn,
html[data-theme="light"] .azkar-category-btn,
body.light-theme .azkar-category-btn,
html[data-theme="light"] .tasbeeh-preset-btn,
body.light-theme .tasbeeh-preset-btn,
html[data-theme="light"] .quick-pill,
body.light-theme .quick-pill {
  background: #FFFFFF !important;
  border: 1px solid #DFE9E1 !important;
  color: #536A60 !important;
  box-shadow: 0 2px 6px rgba(7, 63, 53, 0.03) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .azkar-tab-btn:hover,
body.light-theme .azkar-tab-btn:hover,
html[data-theme="light"] .surah-pill:hover,
body.light-theme .surah-pill:hover,
html[data-theme="light"] .media-filter-btn:hover,
body.light-theme .media-filter-btn:hover,
html[data-theme="light"] .nawawi-filter-pill:hover,
body.light-theme .nawawi-filter-pill:hover,
html[data-theme="light"] .duas-tab-btn:hover,
body.light-theme .duas-tab-btn:hover,
html[data-theme="light"] .theme-pill:hover,
body.light-theme .theme-pill:hover,
html[data-theme="light"] .khatma-filter-btn:hover,
body.light-theme .khatma-filter-btn:hover,
html[data-theme="light"] .tasbeeh-preset-btn:hover,
body.light-theme .tasbeeh-preset-btn:hover,
html[data-theme="light"] .quick-pill:hover,
body.light-theme .quick-pill:hover {
  background: #F0F5F1 !important;
  border-color: #073F35 !important;
  color: #073F35 !important;
}

html[data-theme="light"] .azkar-tab-btn.active,
body.light-theme .azkar-tab-btn.active,
html[data-theme="light"] .surah-pill.active,
body.light-theme .surah-pill.active,
html[data-theme="light"] .media-filter-btn.active,
body.light-theme .media-filter-btn.active,
html[data-theme="light"] .nawawi-filter-pill.active,
body.light-theme .nawawi-filter-pill.active,
html[data-theme="light"] .duas-tab-btn.active,
body.light-theme .duas-tab-btn.active,
html[data-theme="light"] .theme-pill.active,
body.light-theme .theme-pill.active,
html[data-theme="light"] .khatma-filter-btn.active,
body.light-theme .khatma-filter-btn.active,
html[data-theme="light"] .azkar-category-btn.active,
body.light-theme .azkar-category-btn.active,
html[data-theme="light"] .tasbeeh-preset-btn.active,
body.light-theme .tasbeeh-preset-btn.active {
  background: linear-gradient(135deg, #073F35 0%, #0E6654 100%) !important;
  color: #FFFFFF !important;
  border-color: #073F35 !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.25) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .media-filter-btn.active .media-filter-count,
body.light-theme .media-filter-btn.active .media-filter-count {
  background: #FFFFFF !important;
  color: #073F35 !important;
}

/* Quran & Khatma Hub Tabs (تبويبات المصحف والختمة) */
html[data-theme="light"] .quran-khatma-tabs,
body.light-theme .quran-khatma-tabs {
  background: #F0F5F1 !important;
  border: 1px solid #DFE9E1 !important;
  box-shadow: 0 4px 16px rgba(7, 63, 53, 0.05), inset 0 1px 3px rgba(7, 63, 53, 0.03) !important;
}

html[data-theme="light"] .quran-tab-btn,
body.light-theme .quran-tab-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #536A60 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .quran-tab-btn:hover,
body.light-theme .quran-tab-btn:hover {
  background: rgba(7, 63, 53, 0.06) !important;
  color: #073F35 !important;
  border-color: transparent !important;
}

html[data-theme="light"] .quran-tab-btn.active,
body.light-theme .quran-tab-btn.active {
  background: linear-gradient(135deg, #073F35 0%, #0E6654 100%) !important;
  color: #FFFFFF !important;
  border-color: #073F35 !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.25) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .quran-tab-btn i,
body.light-theme .quran-tab-btn i {
  color: #A87927 !important;
}

html[data-theme="light"] .quran-tab-btn.active i,
body.light-theme .quran-tab-btn.active i {
  color: #FFD875 !important;
}

/* 10. Spiritual Garden & Tree (حديقة الحسنات وشجرة الذكر التفاعلية - Light Mode) */
html[data-theme="light"] .spiritual-garden-section,
body.light-theme .spiritual-garden-section {
  background: radial-gradient(circle at 50% 100%, rgba(7, 63, 53, 0.05) 0%, #f8fbf9 70%) !important;
}

html[data-theme="light"] .garden-interactive-card,
body.light-theme .garden-interactive-card {
  background: #ffffff !important;
  border: 1px solid rgba(7, 63, 53, 0.12) !important;
  box-shadow: 0 14px 40px rgba(7, 63, 53, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  color: #143830 !important;
}

html[data-theme="light"] .garden-interactive-card::before,
body.light-theme .garden-interactive-card::before {
  background: linear-gradient(90deg, #073f35, #a87927, #073f35) !important;
}

html[data-theme="light"] .tree-display-wrapper,
body.light-theme .tree-display-wrapper {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, #f0f7f4 75%) !important;
  border: 2.5px solid #073f35 !important;
  box-shadow: 0 8px 24px rgba(7, 63, 53, 0.12) !important;
}

html[data-theme="light"] .spiritual-tree-aura,
body.light-theme .spiritual-tree-aura {
  border: 1.5px dashed rgba(168, 121, 39, 0.45) !important;
}

html[data-theme="light"] .tree-stage-emoji,
body.light-theme .tree-stage-emoji {
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.4)) !important;
}

html[data-theme="light"] .tree-stage-badge,
body.light-theme .tree-stage-badge {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .tree-stage-desc,
body.light-theme .tree-stage-desc {
  color: #4b655a !important;
}

html[data-theme="light"] .score-pill,
body.light-theme .score-pill {
  background: #eef7f2 !important;
  border: 1.5px solid #b8dfcb !important;
}

html[data-theme="light"] .score-label,
body.light-theme .score-label {
  color: #3b564c !important;
}

html[data-theme="light"] .score-number,
body.light-theme .score-number {
  color: #073f35 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .score-unit,
body.light-theme .score-unit {
  color: #8c6218 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .streak-pill,
body.light-theme .streak-pill {
  background: #fdf8ed !important;
  border: 1.5px solid #dfbe7d !important;
  color: #8c6218 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .garden-progress-box,
body.light-theme .garden-progress-box {
  background: #f8faf9 !important;
  border: 1px solid #e1ebe5 !important;
}

html[data-theme="light"] .progress-info-row,
body.light-theme .progress-info-row {
  color: #4b655a !important;
}

html[data-theme="light"] .progress-info-row span:last-child,
body.light-theme .progress-info-row span:last-child {
  color: #8c6218 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .garden-progress-track,
body.light-theme .garden-progress-track {
  background: #e5ece8 !important;
}

html[data-theme="light"] .garden-progress-bar,
body.light-theme .garden-progress-bar {
  background: linear-gradient(90deg, #073f35, #10b981, #d4af37) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="light"] .garden-deed-item,
body.light-theme .garden-deed-item {
  background: #f8faf9 !important;
  border: 1px solid #e1ebe5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

html[data-theme="light"] .garden-deed-item:hover,
body.light-theme .garden-deed-item:hover {
  background: #f0f7f3 !important;
  border-color: #a87927 !important;
  box-shadow: 0 6px 18px rgba(7, 63, 53, 0.08) !important;
  transform: translateY(-3px) !important;
}

html[data-theme="light"] .deed-icon,
body.light-theme .deed-icon {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
}

html[data-theme="light"] .deed-title,
body.light-theme .deed-title {
  color: #4b655a !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .deed-count,
body.light-theme .deed-count {
  color: #073f35 !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
}

html[data-theme="light"] #btn-share-garden-status,
body.light-theme #btn-share-garden-status {
  background: linear-gradient(135deg, #073f35 0%, #0e5c4d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.25) !important;
}

html[data-theme="light"] #btn-share-garden-status:hover,
body.light-theme #btn-share-garden-status:hover {
  background: #a87927 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(168, 121, 39, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* 9. Prayer Times Box & Items */
html[data-theme="light"] .prayer-time-item,
body.light-theme .prayer-time-item {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 3px 12px rgba(7, 63, 53, 0.03) !important;
}

html[data-theme="light"] .prayer-time-item .prayer-name,
body.light-theme .prayer-time-item .prayer-name {
  color: #536a60 !important;
}

html[data-theme="light"] .prayer-time-item .prayer-time,
body.light-theme .prayer-time-item .prayer-time {
  color: #193b34 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .prayer-time-item:hover,
body.light-theme .prayer-time-item:hover {
  border-color: #a87927 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(7, 63, 53, 0.08) !important;
}

html[data-theme="light"] .prayer-time-item.is-next,
body.light-theme .prayer-time-item.is-next {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
  border: 2px solid #059669 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.15) !important;
}

html[data-theme="light"] .prayer-time-item.is-next .prayer-name,
body.light-theme .prayer-time-item.is-next .prayer-name {
  color: #065f46 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .prayer-time-item.is-next .prayer-time,
body.light-theme .prayer-time-item.is-next .prayer-time {
  color: #073f35 !important;
}

html[data-theme="light"] .prayer-time-item.is-next .prayer-status-label,
body.light-theme .prayer-time-item.is-next .prayer-status-label {
  color: #059669 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .prayer-location-selector,
body.light-theme .prayer-location-selector {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 2px 8px rgba(7, 63, 53, 0.03) !important;
}

html[data-theme="light"] .prayer-city-select,
body.light-theme .prayer-city-select {
  color: #073f35 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .prayer-city-select option,
body.light-theme .prayer-city-select option {
  background: #ffffff !important;
  color: #193b34 !important;
}

html[data-theme="light"] .prayer-hijri-badge,
body.light-theme .prayer-hijri-badge {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
  color: #8c6218 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .prayer-next-countdown,
body.light-theme .prayer-next-countdown {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.04) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 1rem !important;
}

html[data-theme="light"] .countdown-label,
body.light-theme .countdown-label {
  color: #536a60 !important;
  font-size: 0.92rem !important;
}

html[data-theme="light"] .countdown-label strong,
body.light-theme .countdown-label strong {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .countdown-badge,
html[data-theme="light"] .prayer-next-countdown .countdown-badge,
body.light-theme .countdown-badge,
body.light-theme .prayer-next-countdown .countdown-badge {
  background: #ecfdf5 !important;
  border: 1px solid #10b981 !important;
  color: #065f46 !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18) !important;
}

html[data-theme="light"] .response-hour-banner,
body.light-theme .response-hour-banner {
  background: linear-gradient(135deg, #fdf8ed 0%, #f0fdf4 100%) !important;
  border: 1px solid #dfbe7d !important;
  box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
}

html[data-theme="light"] .banner-icon,
body.light-theme .banner-icon {
  color: #8c6218 !important;
}

html[data-theme="light"] .banner-title,
body.light-theme .banner-title {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .banner-text,
body.light-theme .banner-text {
  color: #536a60 !important;
}

html[data-theme="light"] .fasting-tracker-banner,
body.light-theme .fasting-tracker-banner {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 6px 20px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .fasting-banner-title,
body.light-theme .fasting-banner-title {
  color: #193b34 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .fasting-badge-icon,
body.light-theme .fasting-badge-icon {
  background: #fdf8ed !important;
  border-color: #dfbe7d !important;
  color: #8c6218 !important;
}

html[data-theme="light"] .fasting-countdown-box,
body.light-theme .fasting-countdown-box {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .fasting-timer-value,
body.light-theme .fasting-timer-value {
  color: #073f35 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .qibla-city-status,
body.light-theme .qibla-city-status {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .qibla-angle-badge,
body.light-theme .qibla-angle-badge {
  color: #a87927 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .compass-dial,
body.light-theme .compass-dial {
  background: radial-gradient(circle, #ffffff 0%, #f0f5f1 100%) !important;
  border: 4px solid #073f35 !important;
  box-shadow: 0 0 35px rgba(7, 63, 53, 0.12) !important;
}

html[data-theme="light"] .compass-cardinal,
body.light-theme .compass-cardinal {
  color: #536a60 !important;
}

html[data-theme="light"] .compass-sensor-status,
body.light-theme .compass-sensor-status {
  background: #f0f5f1 !important;
  color: #64786d !important;
}

/* 10. Quran & Real Mushaf Reader */
html[data-theme="light"] .mushaf-reading-tracker-bar,
body.light-theme .mushaf-reading-tracker-bar {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 6px 20px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .tracker-value,
body.light-theme .tracker-value {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .tracker-badge-icon,
body.light-theme .tracker-badge-icon {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border-color: #dfbe7d !important;
}

html[data-theme="light"] .tracker-progress-track,
body.light-theme .tracker-progress-track {
  background: #e5ece8 !important;
}

html[data-theme="light"] .quran-mushaf-card,
body.light-theme .quran-mushaf-card {
  background: #ffffff !important;
  border: 2px solid #a87927 !important;
  outline: 6px double rgba(168, 121, 39, 0.25) !important;
  box-shadow: 0 10px 35px rgba(7, 63, 53, 0.06) !important;
}

html[data-theme="light"] .mushaf-surah-title,
body.light-theme .mushaf-surah-title {
  color: #073f35 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .mushaf-verses-count,
body.light-theme .mushaf-verses-count {
  background: #f0f5f1 !important;
  color: #536a60 !important;
  border: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .real-mushaf-toolbar,
body.light-theme .real-mushaf-toolbar {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
}

body.light-theme .page-jump-box {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
  color: #7d5a00 !important;
}

body.light-theme .mushaf-page-input {
  background: #ffffff !important;
  border: 1px solid #c59318 !important;
  color: #0f172a !important;
}

body.light-theme .select-surah-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
  color: #0f172a !important;
}

body.light-theme .select-surah-dropdown option {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.light-theme .btn-audio-quick {
  background: linear-gradient(135deg, rgba(197, 147, 24, 0.15), rgba(16, 185, 129, 0.15)) !important;
  border-color: #c59318 !important;
  color: #7d5a00 !important;
}

body.light-theme .btn-audio-quick:hover,
body.light-theme .btn-audio-quick.active {
  background: linear-gradient(135deg, #c59318, #9e7200) !important;
  color: #ffffff !important;
}

body.light-theme .btn-mushaf-pill {
  background: #f8fafc !important;
  border-color: rgba(184, 134, 11, 0.25) !important;
  color: #334155 !important;
}

body.light-theme .btn-mushaf-pill:hover {
  background: rgba(184, 134, 11, 0.1) !important;
  color: #7d5a00 !important;
}

body.light-theme .btn-more-tools-toggle {
  background: #fef9c3 !important;
  border-color: #ca8a04 !important;
  color: #854d0e !important;
}

body.light-theme .mushaf-drawer-tools {
  background: #ffffff !important;
  border-color: rgba(184, 134, 11, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .btn-drawer-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

body.light-theme .btn-drawer-item:hover,
body.light-theme .btn-drawer-item.active {
  background: #fef9c3 !important;
  border-color: #ca8a04 !important;
  color: #854d0e !important;
}

body.light-theme .btn-drawer-icon {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #7d5a00 !important;
}

body.light-theme .select-reciter-dropdown {
  background: #ffffff !important;
  border-color: rgba(184, 134, 11, 0.35) !important;
  color: #0f172a !important;
}

body.light-theme .mushaf-hint-text {
  color: #64748b !important;
}

body.light-theme .juz-card {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.2) !important;
}

body.light-theme .juz-card.status-reading {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, #ffffff 100%) !important;
  border-color: #c59318 !important;
}

body.light-theme .juz-card.status-completed {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%) !important;
  border-color: #059669 !important;
}

body.light-theme .juz-number-badge {
  background: rgba(184, 134, 11, 0.08) !important;
  border-color: rgba(184, 134, 11, 0.25) !important;
  color: #0f172a !important;
}

body.light-theme .status-available .juz-badge-tag {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #64748b !important;
}

body.light-theme .juz-reader-info {
  color: #8d6404 !important;
}

body.light-theme .btn-scroll-khatma,
body.light-theme .btn-scroll-asmaa {
  background: #ffffff !important;
  border: 1px solid #c59318 !important;
  color: #7d5a00 !important;
}

body.light-theme .khatma-scroll-hint,
body.light-theme .asmaa-scroll-hint {
  background: rgba(184, 134, 11, 0.08) !important;
  color: #7d5a00 !important;
  border-color: rgba(184, 134, 11, 0.3) !important;
}

/* 11. Tasbeeh & Azkar (Light Mode) */
html[data-theme="light"] .azkar-selector-box,
body.light-theme .azkar-selector-box {
  background: #ffffff !important;
  border: 1px solid rgba(7, 63, 53, 0.12) !important;
  box-shadow: 0 10px 30px rgba(7, 63, 53, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

html[data-theme="light"] .azkar-selector-title,
body.light-theme .azkar-selector-title {
  color: #073f35 !important;
}

html[data-theme="light"] .azkar-list::-webkit-scrollbar-thumb,
body.light-theme .azkar-list::-webkit-scrollbar-thumb {
  background: rgba(7, 63, 53, 0.18) !important;
}

html[data-theme="light"] .zkr-btn,
body.light-theme .zkr-btn {
  background: #f8faf9 !important;
  border: 1px solid #e1ebe5 !important;
  color: #143830 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .zkr-btn:hover,
body.light-theme .zkr-btn:hover {
  background: #f0f7f3 !important;
  border-color: #a87927 !important;
  transform: translateX(-4px);
}

html[data-theme="light"] .zkr-btn.active,
body.light-theme .zkr-btn.active {
  background: linear-gradient(90deg, #fdf8ed 0%, #edf7f2 100%) !important;
  border: 2px solid #a87927 !important;
  box-shadow: 0 4px 16px rgba(168, 121, 39, 0.18) !important;
}

html[data-theme="light"] .zkr-text,
body.light-theme .zkr-text {
  color: #143830 !important;
}

html[data-theme="light"] .zkr-btn.active .zkr-text,
body.light-theme .zkr-btn.active .zkr-text {
  color: #8c6218 !important;
  font-weight: 700;
}

html[data-theme="light"] .zkr-target,
body.light-theme .zkr-target {
  background: #edf3f0 !important;
  color: #496359 !important;
  border: 1px solid #d8e5de !important;
  font-weight: 600;
}

html[data-theme="light"] .zkr-btn.active .zkr-target,
body.light-theme .zkr-btn.active .zkr-target {
  background: #faedd1 !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
  font-weight: 800;
}

html[data-theme="light"] .tasbeeh-device,
body.light-theme .tasbeeh-device {
  background: #ffffff !important;
  border: 1px solid rgba(7, 63, 53, 0.14) !important;
  box-shadow: 0 12px 36px rgba(7, 63, 53, 0.08), 0 0 20px rgba(168, 121, 39, 0.08) !important;
}

html[data-theme="light"] .active-zkr-name,
body.light-theme .active-zkr-name {
  color: #073f35 !important;
  text-shadow: none !important;
  font-weight: 800;
}

html[data-theme="light"] .active-zkr-virtue,
body.light-theme .active-zkr-virtue {
  color: #4b655a !important;
}

/* القرص الدائري في الوضع النهاري: قرص زمردي فاخر ومجسم يجذب الانتباه ويبعث على الخشوع والتركيز */
html[data-theme="light"] .tasbeeh-circle-btn,
html[data-theme="light"] .tasbeeh-click-area,
body.light-theme .tasbeeh-circle-btn,
body.light-theme .tasbeeh-click-area {
  background: radial-gradient(circle at 35% 35%, #0e5c4d 0%, #073f35 70%, #042620 100%) !important;
  border: 4px solid #a87927 !important;
  box-shadow: 
    0 12px 30px rgba(7, 63, 53, 0.3),
    inset 0 4px 10px rgba(255, 255, 255, 0.25),
    inset 0 -4px 10px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(168, 121, 39, 0.25) !important;
}

html[data-theme="light"] .counter-number,
body.light-theme .counter-number,
body.light-theme .tasbeeh-count-number {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(52, 211, 153, 0.7) !important;
}

html[data-theme="light"] .counter-label,
body.light-theme .counter-label {
  color: #faedd1 !important;
}

html[data-theme="light"] .counter-label span,
body.light-theme .counter-label span {
  color: #ffd875 !important;
}

html[data-theme="light"] .progress-ring__circle,
body.light-theme .progress-ring__circle {
  stroke: #10b981 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8)) !important;
}

html[data-theme="light"] #btn-reset-tasbeeh,
body.light-theme #btn-reset-tasbeeh {
  background: #f4f8f5 !important;
  border: 1.5px solid #a87927 !important;
  color: #073f35 !important;
}

html[data-theme="light"] #btn-reset-tasbeeh:hover,
body.light-theme #btn-reset-tasbeeh:hover {
  background: #073f35 !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(7, 63, 53, 0.25) !important;
}

html[data-theme="light"] .tasbeeh-stats-bar,
body.light-theme .tasbeeh-stats-bar {
  border-top: 1px solid rgba(7, 63, 53, 0.12) !important;
  color: #4b655a !important;
}

html[data-theme="light"] .tasbeeh-stats-bar .stat-separator,
body.light-theme .tasbeeh-stats-bar .stat-separator {
  color: #a87927 !important;
  opacity: 0.7 !important;
}

html[data-theme="light"] .tasbeeh-stats-bar .stat-val,
body.light-theme .tasbeeh-stats-bar .stat-val,
body.light-theme .stat-val {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
  color: #8c6218 !important;
}

body.light-theme .azkar-card.is-finished {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%) !important;
  border-color: rgba(5, 150, 105, 0.4) !important;
}

body.light-theme .azkar-tap-btn {
  background: rgba(184, 134, 11, 0.1) !important;
  border: 1px solid #c59318 !important;
  color: #7d5a00 !important;
}

body.light-theme .azkar-tap-btn:hover {
  background: #c59318 !important;
  color: #ffffff !important;
}

body.light-theme .azkar-card.is-finished .azkar-tap-btn {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

body.light-theme .azkar-progress-bar {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* 12. Hadiths, 99 Names, Stories, Quiz, FAQ, Wird */
html[data-theme="light"] .hadith-number-badge,
body.light-theme .hadith-number-badge {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .hadith-text,
body.light-theme .hadith-text {
  background: #f8faf9 !important;
  border-inline-start: 3px solid #073f35 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .hadith-details-toggle,
body.light-theme .hadith-details-toggle {
  color: #073f35 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .hadith-details-body,
body.light-theme .hadith-details-body {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
  color: #536a60 !important;
}

html[data-theme="light"] .asmaa-counter-banner,
body.light-theme .asmaa-counter-banner {
  background: linear-gradient(135deg, #fdf8ed 0%, #ecfdf5 100%) !important;
  border: 1px solid #dfbe7d !important;
  box-shadow: 0 4px 16px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .asmaa-counter-text,
body.light-theme .asmaa-counter-text {
  color: #193b34 !important;
}

html[data-theme="light"] .asmaa-grid,
body.light-theme .asmaa-grid {
  background: transparent !important;
  border: none !important;
}

html[data-theme="light"] .asmaa-card-cat,
body.light-theme .asmaa-card-cat {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .asmaa-card-meaning,
body.light-theme .asmaa-card-meaning {
  color: #536a60 !important;
}

html[data-theme="light"] .asmaa-card-num,
body.light-theme .asmaa-card-num {
  background: #f0f5f1 !important;
  color: #073f35 !important;
  border: 1px solid #dfe9e1 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .story-card-tag,
body.light-theme .story-card-tag {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .story-verse-preview,
body.light-theme .story-verse-preview {
  background: #f8faf9 !important;
  color: #193b34 !important;
  border-inline-start: 3px solid #a87927 !important;
}

html[data-theme="light"] .story-lesson-preview,
body.light-theme .story-lesson-preview {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .story-verse-box,
body.light-theme .story-verse-box {
  background: #f8faf9 !important;
  border-inline-start: 3px solid #a87927 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .quiz-option-btn,
body.light-theme .quiz-option-btn {
  background: #f8faf9 !important;
  border: 1.5px solid #dfe9e1 !important;
  color: #193b34 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .quiz-option-btn:hover:not(:disabled),
body.light-theme .quiz-option-btn:hover:not(:disabled) {
  background: #f0f7f3 !important;
  border-color: #073f35 !important;
  color: #073f35 !important;
}

html[data-theme="light"] .quiz-option-btn.correct,
body.light-theme .quiz-option-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .quiz-option-btn.wrong,
body.light-theme .quiz-option-btn.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

html[data-theme="light"] .quiz-explanation-box,
body.light-theme .quiz-explanation-box {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
  color: #536a60 !important;
}

html[data-theme="light"] .quiz-result-score-circle,
body.light-theme .quiz-result-score-circle {
  background: radial-gradient(circle, #f0fdf4 0%, #e2f5ea 100%) !important;
  color: #073f35 !important;
  border: 4px solid #059669 !important;
}

html[data-theme="light"] .season-card-date,
body.light-theme .season-card-date {
  color: #8c6218 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .season-countdown-box,
body.light-theme .season-countdown-box {
  background: #f8faf9 !important;
  border: 1px dashed #dfbe7d !important;
}

html[data-theme="light"] .countdown-val,
body.light-theme .countdown-val {
  color: #073f35 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .faq-question,
body.light-theme .faq-question {
  background: #ffffff !important;
  color: #193b34 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .faq-question:hover,
body.light-theme .faq-question:hover {
  background: #f8faf9 !important;
  color: #073f35 !important;
}

html[data-theme="light"] .faq-body,
body.light-theme .faq-body {
  background: #f8faf9 !important;
  color: #536a60 !important;
  border-top: 1px solid #dfe9e1 !important;
}

body.light-theme .daily-wird-card,
html[data-theme="light"] .daily-wird-card {
  background: #ffffff !important;
  border: 1px solid rgba(7, 63, 53, 0.14) !important;
  box-shadow: 0 12px 36px rgba(7, 63, 53, 0.06) !important;
  color: #143830 !important;
}

body.light-theme .daily-wird-card::before,
html[data-theme="light"] .daily-wird-card::before {
  background: linear-gradient(90deg, transparent, #a87927, transparent) !important;
}

body.light-theme .wird-header-bar,
html[data-theme="light"] .wird-header-bar {
  background: #f8faf9 !important;
  border: 1px solid #e1ebe5 !important;
  box-shadow: inset 0 1px 3px rgba(7, 63, 53, 0.03) !important;
}

body.light-theme .wird-streak-info,
html[data-theme="light"] .wird-streak-info {
  color: #073f35 !important;
}

body.light-theme .wird-streak-icon,
html[data-theme="light"] .wird-streak-icon {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
}

body.light-theme .wird-streak-text,
html[data-theme="light"] .wird-streak-text {
  color: #143830 !important;
  font-weight: 600 !important;
}

body.light-theme .wird-streak-text strong,
html[data-theme="light"] .wird-streak-text strong {
  color: #8c6218 !important;
}

body.light-theme .weekly-day-label,
html[data-theme="light"] .weekly-day-label {
  color: #4b655a !important;
  font-weight: 600 !important;
}

body.light-theme .weekly-day-dot,
html[data-theme="light"] .weekly-day-dot {
  background: #edf3f0 !important;
  border: 1px solid #d8e5de !important;
  color: #4b655a !important;
  font-weight: 600 !important;
}

body.light-theme .weekly-day-dot.done,
html[data-theme="light"] .weekly-day-dot.done {
  background: #073f35 !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(7, 63, 53, 0.25) !important;
}

body.light-theme .wird-progress-title,
html[data-theme="light"] .wird-progress-title {
  color: #073f35 !important;
  font-weight: 800 !important;
}

body.light-theme .wird-progress-badge,
html[data-theme="light"] .wird-progress-badge {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
  color: #8c6218 !important;
  font-weight: 700 !important;
}

body.light-theme .wird-progress-badge.all-done,
html[data-theme="light"] .wird-progress-badge.all-done {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

body.light-theme .wird-progress-bar-container,
html[data-theme="light"] .wird-progress-bar-container {
  background: #e2ebe6 !important;
}

body.light-theme .wird-progress-bar-fill,
html[data-theme="light"] .wird-progress-bar-fill {
  background: linear-gradient(90deg, #a87927, #c59318) !important;
  box-shadow: 0 0 10px rgba(168, 121, 39, 0.3) !important;
}

body.light-theme .wird-progress-bar-fill.all-done,
html[data-theme="light"] .wird-progress-bar-fill.all-done {
  background: linear-gradient(90deg, #059669, #10b981) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

body.light-theme .wird-tasks-grid,
html[data-theme="light"] .wird-tasks-grid {
  gap: 1rem !important;
}

body.light-theme .wird-task-item,
html[data-theme="light"] .wird-task-item {
  background: #f8faf9 !important;
  border: 1px solid #e1ebe5 !important;
  box-shadow: 0 2px 8px rgba(7, 63, 53, 0.03) !important;
}

body.light-theme .wird-task-item:hover,
html[data-theme="light"] .wird-task-item:hover {
  background: #f0f7f3 !important;
  border-color: #a87927 !important;
  box-shadow: 0 6px 16px rgba(7, 63, 53, 0.08) !important;
  transform: translateY(-2px) !important;
}

body.light-theme .wird-task-item.is-completed,
html[data-theme="light"] .wird-task-item.is-completed {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12) !important;
}

body.light-theme .wird-custom-check,
html[data-theme="light"] .wird-custom-check {
  background: #ffffff !important;
  border: 2px solid #a87927 !important;
  color: transparent !important;
}

body.light-theme .wird-checkbox:checked + .wird-custom-check,
html[data-theme="light"] .wird-checkbox:checked + .wird-custom-check {
  background: #073f35 !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(7, 63, 53, 0.35) !important;
}

body.light-theme .wird-task-text,
html[data-theme="light"] .wird-task-text {
  color: #143830 !important;
  font-weight: 700 !important;
}

body.light-theme .wird-task-item.is-completed .wird-task-text,
html[data-theme="light"] .wird-task-item.is-completed .wird-task-text {
  color: #065f46 !important;
  font-weight: 800 !important;
}

body.light-theme .wird-task-reward,
html[data-theme="light"] .wird-task-reward {
  color: #4b655a !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

body.light-theme .wird-task-item.is-completed .wird-task-reward,
html[data-theme="light"] .wird-task-item.is-completed .wird-task-reward {
  color: #047857 !important;
  font-weight: 700 !important;
}

body.light-theme .wird-actions-bar,
html[data-theme="light"] .wird-actions-bar {
  border-top: 1px solid #e1ebe5 !important;
}

body.light-theme .wird-reset-hint,
html[data-theme="light"] .wird-reset-hint {
  color: #4b655a !important;
}

body.light-theme #btn-reset-wird,
html[data-theme="light"] #btn-reset-wird {
  background: #f4f8f5 !important;
  border: 1.5px solid #a87927 !important;
  color: #073f35 !important;
  font-weight: 700 !important;
}

body.light-theme #btn-reset-wird:hover,
html[data-theme="light"] #btn-reset-wird:hover {
  background: #073f35 !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.25) !important;
}

/* 13. Form Inputs & Modals */
html[data-theme="light"] input[type="text"],
body.light-theme input[type="text"],
html[data-theme="light"] input[type="search"],
body.light-theme input[type="search"],
html[data-theme="light"] input[type="password"],
body.light-theme input[type="password"],
html[data-theme="light"] select,
body.light-theme select,
html[data-theme="light"] textarea,
body.light-theme textarea,
html[data-theme="light"] .duas-search-input,
body.light-theme .duas-search-input,
html[data-theme="light"] .media-search-input,
body.light-theme .media-search-input,
html[data-theme="light"] .quran-search-input,
body.light-theme .quran-search-input,
html[data-theme="light"] .asmaa-search-input,
body.light-theme .asmaa-search-input,
html[data-theme="light"] .admin-pin-input,
body.light-theme .admin-pin-input,
html[data-theme="light"] .form-input,
body.light-theme .form-input,
html[data-theme="light"] .form-textarea,
body.light-theme .form-textarea {
  background: #ffffff !important;
  color: #193b34 !important;
  border: 1.5px solid #dfe9e1;
  box-shadow: 0 2px 8px rgba(7, 63, 53, 0.03) !important;
}

html[data-theme="light"] input:focus,
body.light-theme input:focus,
html[data-theme="light"] select:focus,
body.light-theme select:focus,
html[data-theme="light"] textarea:focus,
body.light-theme textarea:focus {
  border-color: #073f35 !important;
  box-shadow: 0 0 12px rgba(7, 63, 53, 0.15) !important;
  outline: none !important;
}

html[data-theme="light"] input::placeholder,
body.light-theme input::placeholder,
html[data-theme="light"] textarea::placeholder,
body.light-theme textarea::placeholder {
  color: #64786d !important;
}

html[data-theme="light"] .modal-overlay,
body.light-theme .modal-overlay {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .modal-card,
body.light-theme .modal-card,
html[data-theme="light"] .modal-card-admin,
body.light-theme .modal-card-admin,
html[data-theme="light"] .modal-card-media-player,
body.light-theme .modal-card-media-player,
html[data-theme="light"] .modal-card-quran-search,
body.light-theme .modal-card-quran-search,
html[data-theme="light"] .modal-card-qibla,
body.light-theme .modal-card-qibla,
html[data-theme="light"] .modal-card-ios-install,
body.light-theme .modal-card-ios-install {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  color: #193b34 !important;
  box-shadow: 0 25px 60px rgba(7, 63, 53, 0.14) !important;
}

html[data-theme="light"] .media-player-header-bar,
body.light-theme .media-player-header-bar,
html[data-theme="light"] .media-player-details,
body.light-theme .media-player-details {
  background: #f8faf9 !important;
  border-color: #dfe9e1 !important;
}

html[data-theme="light"] .media-player-title,
body.light-theme .media-player-title {
  color: #193b34 !important;
}

html[data-theme="light"] .modal-close-btn-simple,
body.light-theme .modal-close-btn-simple {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
}

html[data-theme="light"] .btn-popup-tool,
body.light-theme .btn-popup-tool {
  background: #eef4f0 !important;
  border-color: #dfe9e1 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .modal-header,
body.light-theme .modal-header {
  border-bottom: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .modal-footer,
body.light-theme .modal-footer {
  border-top: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .modal-close-btn,
body.light-theme .modal-close-btn {
  color: #64786d !important;
}

html[data-theme="light"] .modal-close-btn:hover,
body.light-theme .modal-close-btn:hover {
  color: #193b34 !important;
}

html[data-theme="light"] .form-label,
body.light-theme .form-label {
  color: #193b34 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .toggle-switch-title,
body.light-theme .toggle-switch-title {
  color: #193b34 !important;
}

html[data-theme="light"] .toggle-switch-desc,
body.light-theme .toggle-switch-desc {
  color: #536a60 !important;
}

html[data-theme="light"] .slider-round,
body.light-theme .slider-round {
  background-color: gray !important;
}
    html[data-theme="light"] input:checked + .slider-round,
    body.light-theme input:checked + .slider-round{
        background-color:green !important;
    }
    /* Modals Content Specifics */
    html[data-theme="light"] #modal-asmaa-name,
    body.light-theme #modal-asmaa-name {
        color: #073f35 !important;
        text-shadow: none !important;
    }

html[data-theme="light"] #modal-asmaa-meaning,
body.light-theme #modal-asmaa-meaning,
html[data-theme="light"] #modal-story-text,
body.light-theme #modal-story-text,
html[data-theme="light"] #modal-msg-reflection,
body.light-theme #modal-msg-reflection {
  color: #193b34 !important;
}

html[data-theme="light"] .asmaa-virtue-box,
body.light-theme .asmaa-virtue-box,
html[data-theme="light"] .daily-msg-dua-box,
body.light-theme .daily-msg-dua-box {
  background: #fdf8ed !important;
  border-inline-start-color: #dfbe7d !important;
}

html[data-theme="light"] #modal-asmaa-virtue,
body.light-theme #modal-asmaa-virtue,
html[data-theme="light"] #modal-msg-dua,
body.light-theme #modal-msg-dua {
  color: #536a60 !important;
}

html[data-theme="light"] .asmaa-dua-box,
body.light-theme .asmaa-dua-box,
html[data-theme="light"] .story-lessons-box,
body.light-theme .story-lessons-box {
  background: #ecfdf5 !important;
  border-inline-start-color: #10b981 !important;
}

html[data-theme="light"] #modal-asmaa-dua,
body.light-theme #modal-asmaa-dua,
html[data-theme="light"] #modal-story-lessons,
body.light-theme #modal-story-lessons {
  color: #065f46 !important;
}

html[data-theme="light"] .story-modal-title,
body.light-theme .story-modal-title {
  color: #193b34 !important;
}

html[data-theme="light"] .story-modal-tag,
body.light-theme .story-modal-tag {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
}

html[data-theme="light"] .story-modal-icon-badge,
body.light-theme .story-modal-icon-badge {
  background: #fdf8ed !important;
  color: #8c6218 !important;
  border: 1px solid #dfbe7d !important;
}

html[data-theme="light"] #modal-story-verse,
body.light-theme #modal-story-verse,
html[data-theme="light"] #modal-msg-title,
body.light-theme #modal-msg-title,
html[data-theme="light"] #modal-msg-verse,
body.light-theme #modal-msg-verse {
  color: #073f35 !important;
}

html[data-theme="light"] .daily-msg-verse-card,
body.light-theme .daily-msg-verse-card {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] #modal-msg-surah,
body.light-theme #modal-msg-surah {
  color: #64786d !important;
}

/* 14. Buttons & Interactive Controls */
body.light-theme .btn-outline {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  color: #334155 !important;
}

body.light-theme .btn-outline:hover {
  background: rgba(184, 134, 11, 0.1) !important;
  color: #7d5a00 !important;
  border-color: #b8860b !important;
}

body.light-theme .btn-gold {
  background: linear-gradient(135deg, #c59318 0%, #a17400 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25) !important;
}

body.light-theme .btn-gold:hover {
  background: linear-gradient(135deg, #b8860b 0%, #855f00 100%) !important;
  color: #ffffff !important;
}

body.light-theme .btn-amen {
  background: rgba(5, 150, 105, 0.08) !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  color: #047857 !important;
}

body.light-theme .btn-amen:hover,
body.light-theme .btn-amen.active {
  background: #059669 !important;
  color: #ffffff !important;
}

body.light-theme .swiper-button-next,
body.light-theme .swiper-button-prev {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  color: #7d5a00 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .swiper-button-next:hover,
body.light-theme .swiper-button-prev:hover {
  background: #c59318 !important;
  color: #ffffff !important;
}

body.light-theme .swiper-pagination-bullet {
  background: #94a3b8 !important;
}

body.light-theme .swiper-pagination-bullet-active {
  background: #c59318 !important;
}

/* 15. Live Radio, PWA, Admin Dashboard & Footer */
html[data-theme="light"] .radio-fab-btn,
body.light-theme .radio-fab-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7f3 100%) !important;
  border: 2px solid #073f35 !important;
  color: #073f35 !important;
  box-shadow: 0 6px 20px rgba(7, 63, 53, 0.16), 0 0 10px rgba(168, 121, 39, 0.15) !important;
}

html[data-theme="light"] .radio-fab-btn:hover,
body.light-theme .radio-fab-btn:hover {
  border-color: #a87927 !important;
  color: #a87927 !important;
  box-shadow: 0 8px 25px rgba(7, 63, 53, 0.22), 0 0 15px rgba(168, 121, 39, 0.25) !important;
}

html[data-theme="light"] .radio-fab-btn.is-playing,
body.light-theme .radio-fab-btn.is-playing {
  border-color: #059669 !important;
  color: #059669 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.22), 0 0 12px rgba(5, 150, 105, 0.25) !important;
}

html[data-theme="light"] .radio-waves span,
body.light-theme .radio-waves span {
  background: #059669 !important;
}

html[data-theme="light"] .radio-panel,
body.light-theme .radio-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f8faf9 100%) !important;
  border: 1.5px solid rgba(7, 63, 53, 0.18) !important;
  color: #143830 !important;
  box-shadow: 0 20px 50px rgba(7, 63, 53, 0.12), 0 0 15px rgba(168, 121, 39, 0.08) !important;
}

html[data-theme="light"] .radio-panel-header,
body.light-theme .radio-panel-header {
  border-bottom: 1px solid #e1ebe5 !important;
}

html[data-theme="light"] .radio-header-title,
body.light-theme .radio-header-title {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .radio-live-status-badge,
body.light-theme .radio-live-status-badge {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
}

html[data-theme="light"] .radio-live-status-badge .live-dot,
body.light-theme .radio-live-status-badge .live-dot {
  background: #059669 !important;
  box-shadow: 0 0 6px #059669 !important;
}

html[data-theme="light"] .btn-close-radio,
body.light-theme .btn-close-radio {
  background: #edf3f0 !important;
  border: 1px solid #d8e5de !important;
  color: #4b655a !important;
}

html[data-theme="light"] .btn-close-radio:hover,
body.light-theme .btn-close-radio:hover {
  background: #073f35 !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .radio-station-info,
body.light-theme .radio-station-info {
  background: #f4f8f5 !important;
  border: 1px solid #d8e5de !important;
}

html[data-theme="light"] .station-icon-badge,
body.light-theme .station-icon-badge {
  color: #a87927 !important;
}

html[data-theme="light"] .radio-station-name,
body.light-theme .radio-station-name {
  color: #073f35 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .radio-station-desc,
body.light-theme .radio-station-desc {
  color: #4b655a !important;
}

html[data-theme="light"] .radio-station-select-group label,
body.light-theme .radio-station-select-group label,
html[data-theme="light"] .radio-sleep-timer-group label,
body.light-theme .radio-sleep-timer-group label {
  color: #073f35 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .radio-station-select,
body.light-theme .radio-station-select {
  background: #ffffff !important;
  border: 1.5px solid rgba(7, 63, 53, 0.22) !important;
  color: #073f35 !important;
}

html[data-theme="light"] .radio-station-select:focus,
body.light-theme .radio-station-select:focus {
  border-color: #073f35 !important;
  box-shadow: 0 0 10px rgba(7, 63, 53, 0.18) !important;
}

html[data-theme="light"] .radio-station-select option,
body.light-theme .radio-station-select option {
  background: #ffffff !important;
  color: #073f35 !important;
}

html[data-theme="light"] #radio-timer-countdown,
body.light-theme #radio-timer-countdown {
  color: #047857 !important;
}

html[data-theme="light"] .radio-controls-row,
body.light-theme .radio-controls-row {
  border-top: 1px solid #e1ebe5 !important;
}

html[data-theme="light"] .btn-radio-play,
body.light-theme .btn-radio-play {
  background: linear-gradient(135deg, #073f35, #0c5749) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(7, 63, 53, 0.25) !important;
}

html[data-theme="light"] .btn-radio-play:hover,
body.light-theme .btn-radio-play:hover {
  background: #073f35 !important;
  box-shadow: 0 6px 20px rgba(7, 63, 53, 0.35) !important;
}

html[data-theme="light"] .radio-volume-group,
body.light-theme .radio-volume-group {
  background: #f4f8f5 !important;
  border: 1px solid #d8e5de !important;
}

html[data-theme="light"] .btn-radio-mute,
body.light-theme .btn-radio-mute {
  color: #073f35 !important;
}

html[data-theme="light"] .radio-volume-group input[type="range"],
body.light-theme .radio-volume-group input[type="range"] {
  accent-color: #073f35 !important;
}

body.light-theme .pwa-install-banner {
  background: #ffffff !important;
  border: 1px solid #c59318 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .pwa-banner-text strong {
  color: #7d5a00 !important;
}

body.light-theme .pwa-banner-text span {
  color: #475569 !important;
}

body.light-theme .admin-stat-card {
  background: #fdfbf7 !important;
  border: 1px solid rgba(184, 134, 11, 0.2) !important;
}

body.light-theme .admin-stat-number {
  color: #0f172a !important;
}

body.light-theme .admin-panel-box {
  background: #fbf9f2 !important;
  border: 1px solid rgba(184, 134, 11, 0.18) !important;
}

body.light-theme .admin-daily-item {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid rgba(184, 134, 11, 0.15) !important;
}

body.light-theme .footer {
  background: #ede8dc !important;
  border-top: 1px solid rgba(184, 134, 11, 0.25) !important;
}

body.light-theme .footer-quote {
  color: #7d5a00 !important;
}

body.light-theme .footer-text {
  color: #475569 !important;
}

body.light-theme .footer-author {
  color: #7d5a00 !important;
}

body.light-theme .footer-social-shares .btn {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
}

body.light-theme .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #c59318 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   تنسيقات مصحف الأوفلاين والتحميل بدون إنترنت ووضع ملء الشاشة
   ========================================================================== */
.badge-offline-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.65rem;
  margin-inline-start: 0.25rem;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* وضع ملء الشاشة والتركيز */
.real-mushaf-card.mushaf-fullscreen-mode {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  overflow-y: auto !important;
  background: var(--bg-primary, #0a1120) !important;
  box-shadow: none !important;
}

.real-mushaf-card.mushaf-fullscreen-mode .mushaf-real-page-wrapper {
  max-height: 82vh !important;
}

/* نافذة إدارة تحميل المصحف بدون إنترنت */
.modal-card-offline {
  max-width: 680px;
}

.offline-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.offline-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.offline-modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin-top: 0.4rem;
}

/* بطاقة حالة التخزين */
.offline-status-card {
  background: linear-gradient(145deg, #07382d 0%, #031c15 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.offline-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.offline-status-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.offline-status-info .status-label {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.offline-status-info .status-value {
  font-size: 0.98rem;
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
}

.offline-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.82rem;
  font-weight: 600;
}

.offline-badge-pill.ready-full {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.offline-badge-pill.ready-partial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.offline-badge-pill.ready-none {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.offline-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}

.offline-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b8860b, #e6ca65);
  border-radius: var(--radius-full, 9999px);
  transition: width 0.35s ease;
}

.offline-progress-bar.animated-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* خيارات التحميل */
.offline-download-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

.offline-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(14, 25, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 16px);
  transition: all var(--transition-fast, 0.2s);
}

.offline-option-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(14, 25, 43, 0.8);
}

.offline-option-card.featured-option {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.offline-option-card .option-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.offline-option-card .option-details {
  flex: 1;
  min-width: 220px;
}

.offline-option-card .option-details h4 {
  font-size: 0.98rem;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.offline-option-card .option-details p {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

/* صندوق التحميل النشط */
.offline-active-download-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.download-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 0.75rem;
}

.download-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.offline-modal-footer-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offline-note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
}

.offline-note-item i {
  margin-top: 0.2rem;
}

/* تنسيقات الوضع النهاري للتحميل بدون إنترنت (Light Mode) */
html[data-theme="light"] .offline-status-card,
body.light-theme .offline-status-card {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 4px 15px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .offline-status-info .status-value,
body.light-theme .offline-status-info .status-value {
  color: #193b34 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .offline-option-card,
body.light-theme .offline-option-card {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
}

html[data-theme="light"] .offline-option-card:hover,
body.light-theme .offline-option-card:hover {
  background: #f0f5f1 !important;
  border-color: #073f35 !important;
}

html[data-theme="light"] .offline-option-card .option-details h4,
body.light-theme .offline-option-card .option-details h4 {
  color: #193b34 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .offline-option-card .option-details p,
body.light-theme .offline-option-card .option-details p {
  color: #536a60 !important;
}

html[data-theme="light"] .offline-active-download-box,
body.light-theme .offline-active-download-box {
  background: #f0fdf4 !important;
  border-color: #a7f3d0 !important;
}

html[data-theme="light"] .download-info-row,
body.light-theme .download-info-row {
  color: #193b34 !important;
}

html[data-theme="light"] .offline-note-item,
body.light-theme .offline-note-item {
  color: #536a60 !important;
}

html[data-theme="light"] .offline-modal-subtitle,
body.light-theme .offline-modal-subtitle {
  color: #536a60 !important;
}

html[data-theme="light"] .real-mushaf-card.mushaf-fullscreen-mode,
body.light-theme .real-mushaf-card.mushaf-fullscreen-mode {
  background: #f7f9f6 !important;
}

/* ==========================================================================
   تنسيقات اختيار القراء ووضع تحفيظ وتكرار القرآن الكريم
   ========================================================================== */
.mushaf-reciter-control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 25, 43, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.35rem 0.2rem 0.65rem;
}

.select-reciter-dropdown {
  background: transparent;
  color: var(--gold-300);
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  outline: none;
  max-width: 175px;
}

.select-reciter-dropdown option {
  background: #0a1322;
  color: #f8fafc;
}

/* نافذة وضع التحفيظ */
.modal-card-hifz {
  max-width: 760px;
}

.hifz-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hifz-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.hifz-modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
}

.hifz-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hifz-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hifz-input-group label {
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hifz-input-group .form-control {
  background: rgba(14, 25, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 10px);
  color: var(--text-primary, #f8fafc);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.hifz-input-group .form-control:focus {
  border-color: var(--gold-400, #d4af37);
}

.hifz-range-inputs {
  display: flex;
  gap: 0.5rem;
}

.range-sub-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.range-sub-input span {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.range-sub-input .form-control {
  width: 100%;
  text-align: center;
}

/* بطاقة الآية النشطة ومشغل التحفيظ */
.hifz-active-player-card {
  background: rgba(14, 25, 43, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl, 20px);
  padding: 1.35rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hifz-player-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hifz-active-meta {
  display: flex;
  gap: 0.4rem;
}

.badge-hifz-surah {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-hifz-ayah {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hifz-repeat-indicator {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.hifz-repeat-indicator strong {
  color: var(--gold-300);
}

.hifz-verse-display {
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hifz-verse-text {
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
  line-height: 2.1;
  color: var(--gold-200, #fef08a);
  margin: 0;
  text-align: center;
}

.hifz-verse-display.hidden-for-test {
  background: rgba(5, 10, 20, 0.9);
  border-style: dashed;
}

.hifz-verse-display.hidden-for-test .hifz-verse-text {
  filter: blur(8px);
  opacity: 0.15;
  user-select: none;
}

.hifz-verse-display.hidden-for-test::after {
  content: "👁️ الآية مخفية لاختبار استحضار الحفظ - اقرأها بصوتك!";
  position: absolute;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
}

.hifz-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-hifz-play {
  padding: 0.65rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.btn-hifz-play.is-playing {
  background: #f59e0b !important;
  color: #0f172a !important;
}

.hifz-status-message {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  min-height: 24px;
}

/* تنسيقات الوضع النهاري للتحفيظ والقراء (Light Mode) */
html[data-theme="light"] .mushaf-reciter-control-group,
body.light-theme .mushaf-reciter-control-group {
  background: #ffffff !important;
  border-color: #dfe9e1 !important;
}

html[data-theme="light"] .select-reciter-dropdown,
body.light-theme .select-reciter-dropdown {
  color: #073f35 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .select-reciter-dropdown option,
body.light-theme .select-reciter-dropdown option {
  background: #ffffff !important;
  color: #193b34 !important;
}

html[data-theme="light"] .hifz-input-group .form-control,
body.light-theme .hifz-input-group .form-control {
  background: #ffffff !important;
  border-color: #dfe9e1 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .hifz-input-group label,
body.light-theme .hifz-input-group label {
  color: #536a60 !important;
}

html[data-theme="light"] .hifz-active-player-card,
body.light-theme .hifz-active-player-card {
  background: #ffffff !important;
  border-color: #dfe9e1 !important;
  box-shadow: 0 10px 30px rgba(7, 63, 53, 0.05) !important;
}

html[data-theme="light"] .hifz-verse-display,
body.light-theme .hifz-verse-display {
  background: #f8faf9 !important;
  border-color: #dfe9e1 !important;
}

html[data-theme="light"] .hifz-verse-text,
body.light-theme .hifz-verse-text {
  color: #193b34 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .hifz-repeat-indicator,
body.light-theme .hifz-repeat-indicator {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
  color: #8c6218 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .hifz-status-message,
body.light-theme .hifz-status-message {
  color: #536a60 !important;
}

/* ==========================================================================
   تنسيقات بنر التنبيهات الذكية اللطيفة في الوضع النهاري (Smart Reminder in Light Mode)
   ========================================================================== */
body.light-theme .smart-reminder-banner,
html[data-theme="light"] .smart-reminder-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fbf9f2 100%) !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05), 0 0 15px rgba(184, 134, 11, 0.08) !important;
}

body.light-theme .smart-reminder-banner::before,
html[data-theme="light"] .smart-reminder-banner::before {
  background: #b8860b !important;
}

body.light-theme .smart-reminder-icon,
html[data-theme="light"] .smart-reminder-icon {
  background: rgba(184, 134, 11, 0.12) !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
}

body.light-theme .smart-reminder-icon i,
html[data-theme="light"] .smart-reminder-icon i {
  color: #7d5a00 !important;
}

body.light-theme .smart-reminder-title,
html[data-theme="light"] .smart-reminder-title {
  color: #1e293b !important;
  font-weight: 800 !important;
}

body.light-theme .smart-reminder-desc,
html[data-theme="light"] .smart-reminder-desc {
  color: #475569 !important;
}

body.light-theme .btn-dismiss-reminder,
html[data-theme="light"] .btn-dismiss-reminder {
  color: #64748b !important;
}

body.light-theme .btn-dismiss-reminder:hover,
html[data-theme="light"] .btn-dismiss-reminder:hover {
  color: #0f172a !important;
}

/* ==========================================================================
   مشغل الآيات التزامني التفاعلي (Ayah Sync Player & Interactive Verses)
   ========================================================================== */
.ayah-sync-player-panel {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(7, 13, 24, 0.98));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s ease;
}

.ayah-sync-controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.ayah-sync-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ayah-sync-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ayah-sync-current-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  font-family:unset !important;
}

.ayah-sync-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.select-speed-dropdown {
  background: rgba(15, 28, 48, 0.8);
  border: 1px solid var(--border-color);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.ayah-sync-player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ayah-sync-view-switch {
  display: flex;
  align-items: center;
  background: rgba(10, 20, 35, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
  margin-inline-start: auto;
}

.btn-view-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-view-toggle.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-200);
  border: 1px solid var(--gold-400);
}

/* حاوية الآيات التفاعلية المظللة */
.mushaf-interactive-verses-wrapper {
  background: #091422;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}

.mushaf-verses-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ayah-verse-card {
  background: rgba(15, 28, 48, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.ayah-verse-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.ayah-verse-card.is-active-ayah {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(16, 185, 129, 0.12)) !important;
  border: 1.5px solid var(--gold-400) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15) !important;
  transform: scale(1.01);
}

.ayah-verse-text {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  line-height: 2.3;
  color: #f8fafc;
  text-align: justify;
  text-align-last: right;
  direction: rtl;
}

.ayah-verse-card.is-active-ayah .ayah-verse-text {
  color: #fff;
  text-shadow: 0 0 10px rgba(252, 227, 138, 0.4);
}

.ayah-num-symbol {
  font-family: 'Amiri', serif;
  color: var(--gold-400);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0.3rem;
  display: inline-block;
}

.ayah-verse-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ayah-verse-card:hover .ayah-verse-actions,
.ayah-verse-card.is-active-ayah .ayah-verse-actions {
  opacity: 1;
}

.ayah-action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ayah-action-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-200);
}

@media (max-width: 768px) {
  .ayah-sync-controls-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .ayah-sync-view-switch {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Light Mode Overrides for Ayah Sync Player & Interactive Verses */
html[data-theme="light"] .ayah-sync-player-panel,
body.light-theme .ayah-sync-player-panel {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 8px 25px rgba(7, 63, 53, 0.08) !important;
}

html[data-theme="light"] .ayah-sync-controls-top,
body.light-theme .ayah-sync-controls-top {
  border-bottom-color: #dfe9e1 !important;
}

html[data-theme="light"] .ayah-sync-badge,
body.light-theme .ayah-sync-badge {
  background: #fdf8ed !important;
  border-color: #dfbe7d !important;
  color: #8c6218 !important;
}

html[data-theme="light"] .ayah-sync-current-title,
body.light-theme .ayah-sync-current-title {
  color: #193b34 !important;
}

html[data-theme="light"] .select-speed-dropdown,
body.light-theme .select-speed-dropdown {
  background: #f0f5f1 !important;
  border-color: #dfe9e1 !important;
  color: #193b34 !important;
}

html[data-theme="light"] .ayah-sync-view-switch,
body.light-theme .ayah-sync-view-switch {
  background: #f0f5f1 !important;
  border-color: #dfe9e1 !important;
}

html[data-theme="light"] .btn-view-toggle,
body.light-theme .btn-view-toggle {
  color: #64786d !important;
}

html[data-theme="light"] .btn-view-toggle.active,
body.light-theme .btn-view-toggle.active {
  background: #ffffff !important;
  color: #073f35 !important;
  border: 1px solid #073f35 !important;
  box-shadow: 0 2px 6px rgba(7, 63, 53, 0.1) !important;
}

html[data-theme="light"] .mushaf-interactive-verses-wrapper,
body.light-theme .mushaf-interactive-verses-wrapper {
  background: #f7f9f6 !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: inset 0 2px 8px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .ayah-verse-card,
body.light-theme .ayah-verse-card {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 2px 6px rgba(7, 63, 53, 0.04) !important;
}

html[data-theme="light"] .ayah-verse-card:hover,
body.light-theme .ayah-verse-card:hover {
  background: #fdf8ed !important;
  border-color: #dfbe7d !important;
}

html[data-theme="light"] .ayah-verse-card.is-active-ayah,
body.light-theme .ayah-verse-card.is-active-ayah {
  background: linear-gradient(135deg, #fdf8ed, #ecfdf5) !important;
  border: 1.5px solid #a87927 !important;
  box-shadow: 0 4px 15px rgba(168, 121, 39, 0.15) !important;
}

html[data-theme="light"] .ayah-verse-text,
body.light-theme .ayah-verse-text {
  color: #193b34 !important;
}

html[data-theme="light"] .ayah-verse-card.is-active-ayah .ayah-verse-text,
body.light-theme .ayah-verse-card.is-active-ayah .ayah-verse-text {
  color: #073f35 !important;
}

html[data-theme="light"] .ayah-num-symbol,
body.light-theme .ayah-num-symbol {
  color: #a87927 !important;
}

html[data-theme="light"] .ayah-verse-actions,
body.light-theme .ayah-verse-actions {
  border-top-color: #dfe9e1 !important;
}

html[data-theme="light"] .ayah-action-btn,
body.light-theme .ayah-action-btn {
  background: #f0f5f1 !important;
  border: 1px solid #dfe9e1 !important;
  color: #536a60 !important;
}

html[data-theme="light"] .ayah-action-btn:hover,
body.light-theme .ayah-action-btn:hover {
  background: #073f35 !important;
  color: #ffffff !important;
  border-color: #073f35 !important;
}

/* Light Mode Overrides for In-App Push Banner */
html[data-theme="light"] .zad-cloud-push-banner,
body.light-theme .zad-cloud-push-banner {
  background: #ffffff !important;
  border: 1.5px solid #a87927 !important;
  box-shadow: 0 16px 45px rgba(7, 63, 53, 0.15) !important;
}

html[data-theme="light"] .push-banner-title,
body.light-theme .push-banner-title {
  color: #193b34 !important;
}

html[data-theme="light"] .push-banner-body,
body.light-theme .push-banner-body {
  color: #536a60 !important;
}

html[data-theme="light"] .push-banner-icon,
body.light-theme .push-banner-icon {
  background: #fdf8ed !important;
  border-color: #dfbe7d !important;
  color: #a87927 !important;
}


/* ==========================================================================
   بنر الإشعار السحابي المنبثق التفاعلي داخل الموقع (In-App Push Banner)
   يتم وضعه أسفل شريط التنقل (Header) مباشرة مع احترام الحواف الآمنة والجزيرة التفاعلية (Dynamic Island)
   ========================================================================== */
.zad-cloud-push-banner {
    position: fixed;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 580px;
    background: linear-gradient(180deg, rgba(16, 44, 37, 0.5) 0%, rgba(8, 28, 23, 0.65) 100%);
    border: 1.5px solid var(--gold-400);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.15rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    transition: top 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.zad-cloud-push-banner.show {
  top: calc(var(--navbar-actual-height, calc(env(safe-area-inset-top, 0px) + 68px)) + 12px);
  opacity: 1;
  pointer-events: auto;
}

.push-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  direction: inherit;
}

.push-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.push-banner-content {
  flex: 1;
  min-width: 0;
}

.push-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-200);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.push-banner-body {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.45;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.push-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-banner-action {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #070d18;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-banner-action:hover {
  transform: translateY(-2px);
  color: #000;
}

.btn-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.2s;
}

.btn-banner-close:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .zad-cloud-push-banner {
    width: calc(100% - 16px);
    padding: 0.75rem 0.85rem;
  }
  .push-banner-inner {
    gap: 0.65rem;
  }
  .push-banner-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .push-banner-title {
    font-size: 0.85rem;
  }
  .push-banner-body {
    font-size: 0.76rem;
  }
  .btn-banner-action {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }
}

body.light-theme .zad-cloud-push-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.99));
  border-color: var(--gold-500);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15), 0 0 25px rgba(212, 175, 55, 0.2);
}
body.light-theme .push-banner-title {
  color: #854d0e;
}
body.light-theme .push-banner-body {
  color: #334155;
}
body.light-theme .btn-banner-close {
  color: #64748b;
}

/* ==========================================================================
   مودال اختيار المؤذن (Muazzin Selector Modal Styles)
   ========================================================================== */
.modal-card-muazzin {
  max-width: 580px;
  width: 95%;
  background: linear-gradient(180deg, #0f1c30 0%, #0a1322 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.1);
}

.muazzin-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  max-height: 58vh;
  overflow-y: auto;
  padding-inline-end: 0.25rem;
  padding-inline-start: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}

.muazzin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(18, 30, 49, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: all 0.25s ease;
}

.muazzin-card:hover {
  background: rgba(22, 38, 62, 0.9);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.muazzin-card.is-selected {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.muazzin-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.muazzin-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.muazzin-card.is-selected .muazzin-icon-circle {
  background: var(--gold-400);
  color: #070d18;
}
.muazzin-card.is-selected .muazzin-icon-circle i {
  color: #070d18 !important;
}

.muazzin-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.muazzin-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.muazzin-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.muazzin-badge-active {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.muazzin-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.muazzin-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-preview-muazzin {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-preview-muazzin.is-playing {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-border 1.5s infinite;
}

.btn-choose-muazzin {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-choose-muazzin.is-current {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  cursor: default;
}

.muazzin-modal-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gold-200);
  line-height: 1.45;
  margin-top: 0.5rem;
}

@media (max-width: 580px) {
  .muazzin-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .muazzin-card-actions {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }

  .muazzin-card-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   دعم المظهر النهاري / الأبيض لمودال المؤذن وموسوعة الأدعية
   (Light & White Mode Support for Muazzin Modal & Categorized Duas)
   ========================================================================== */

/* 1. قسم موسوعة الأدعية النبوية في المظهر النهاري */
body.light-theme .categorized-duas-section,
html[data-theme="light"] .categorized-duas-section,
html.light-theme .categorized-duas-section {
  background: #FFFFFF !important;
}

body.light-theme .duas-tab-btn,
html[data-theme="light"] .duas-tab-btn,
html.light-theme .duas-tab-btn {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
  color: #536a60 !important;
  box-shadow: 0 2px 6px rgba(7, 63, 53, 0.03) !important;
  font-weight: 600 !important;
}

body.light-theme .duas-tab-btn:hover,
html[data-theme="light"] .duas-tab-btn:hover,
html.light-theme .duas-tab-btn:hover {
  background: #f0f5f1 !important;
  border-color: #073f35 !important;
  color: #073f35 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.08) !important;
}

body.light-theme .duas-tab-btn.active,
html[data-theme="light"] .duas-tab-btn.active,
html.light-theme .duas-tab-btn.active {
  background: linear-gradient(135deg, #073f35, #0e6654) !important;
  border-color: #073f35 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(7, 63, 53, 0.25) !important;
}

body.light-theme .duas-search-input,
html[data-theme="light"] .duas-search-input,
html.light-theme .duas-search-input {
  background: #ffffff !important;
  border: 1.5px solid #dfe9e1 !important;
  color: #193b34 !important;
  box-shadow: 0 4px 16px rgba(7, 63, 53, 0.03) !important;
}

body.light-theme .duas-search-input::placeholder,
html[data-theme="light"] .duas-search-input::placeholder,
html.light-theme .duas-search-input::placeholder {
  color: #64786d !important;
}

body.light-theme .duas-search-input:focus,
html[data-theme="light"] .duas-search-input:focus,
html.light-theme .duas-search-input:focus {
  border-color: #073f35 !important;
  box-shadow: 0 0 16px rgba(7, 63, 53, 0.15) !important;
}

body.light-theme .duas-search-box .search-icon,
html[data-theme="light"] .duas-search-box .search-icon,
html.light-theme .duas-search-box .search-icon {
  color: #073f35 !important;
}

body.light-theme .btn-clear-duas-search,
html[data-theme="light"] .btn-clear-duas-search,
html.light-theme .btn-clear-duas-search {
  color: #64786d !important;
}

body.light-theme .btn-clear-duas-search:hover,
html[data-theme="light"] .btn-clear-duas-search:hover,
html.light-theme .btn-clear-duas-search:hover {
  color: #193b34 !important;
}

body.light-theme .cat-dua-card,
html[data-theme="light"] .cat-dua-card,
html.light-theme .cat-dua-card {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
}

body.light-theme .cat-dua-card:hover,
html[data-theme="light"] .cat-dua-card:hover,
html.light-theme .cat-dua-card:hover {
  background: #ffffff !important;
  border-color: #a87927 !important;
  box-shadow: 0 10px 28px rgba(7, 63, 53, 0.09) !important;
}

body.light-theme .cat-dua-header,
html[data-theme="light"] .cat-dua-header,
html.light-theme .cat-dua-header {
  border-bottom: 1px solid #dfe9e1 !important;
}

body.light-theme .cat-dua-title,
html[data-theme="light"] .cat-dua-title,
html.light-theme .cat-dua-title {
  color: #073f35 !important;
  font-weight: 800 !important;
}

body.light-theme .cat-dua-repeat-badge,
body.light-theme .cat-dua-category-badge,
html[data-theme="light"] .cat-dua-repeat-badge,
html[data-theme="light"] .cat-dua-category-badge,
html.light-theme .cat-dua-repeat-badge,
html.light-theme .cat-dua-category-badge {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
  color: #8c6218 !important;
  font-weight: 700 !important;
}

body.light-theme .cat-dua-body,
html[data-theme="light"] .cat-dua-body,
html.light-theme .cat-dua-body {
  color: #193b34 !important;
  font-weight: 600 !important;
}

body.light-theme .cat-dua-meta-row,
html[data-theme="light"] .cat-dua-meta-row,
html.light-theme .cat-dua-meta-row {
  border-top: 1px dashed #dfe9e1 !important;
}

body.light-theme .cat-dua-source,
html[data-theme="light"] .cat-dua-source,
html.light-theme .cat-dua-source {
  color: #64786d !important;
}

body.light-theme .cat-dua-card.is-finished,
html[data-theme="light"] .cat-dua-card.is-finished,
html.light-theme .cat-dua-card.is-finished {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
  border-color: #10b981 !important;
}

/* 2. مودال اختيار المؤذن في المظهر النهاري / الأبيض */
body.light-theme .modal-card-muazzin,
html[data-theme="light"] .modal-card-muazzin,
html.light-theme .modal-card-muazzin {
  background: #ffffff !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 25px 65px rgba(7, 63, 53, 0.15) !important;
}

body.light-theme .modal-card-muazzin .modal-title,
html[data-theme="light"] .modal-card-muazzin .modal-title,
html.light-theme .modal-card-muazzin .modal-title {
  color: #193b34 !important;
  font-weight: 800 !important;
}

body.light-theme .modal-card-muazzin .modal-desc,
html[data-theme="light"] .modal-card-muazzin .modal-desc,
html.light-theme .modal-card-muazzin .modal-desc {
  color: #536a60 !important;
}

body.light-theme .muazzin-card,
html[data-theme="light"] .muazzin-card,
html.light-theme .muazzin-card {
  background: #f8faf9 !important;
  border: 1px solid #dfe9e1 !important;
  box-shadow: 0 2px 10px rgba(7, 63, 53, 0.02) !important;
}

body.light-theme .muazzin-card:hover,
html[data-theme="light"] .muazzin-card:hover,
html.light-theme .muazzin-card:hover {
  background: #f0f5f1 !important;
  border-color: #073f35 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 63, 53, 0.08) !important;
}

body.light-theme .muazzin-card.is-selected,
html[data-theme="light"] .muazzin-card.is-selected,
html.light-theme .muazzin-card.is-selected {
  background: linear-gradient(135deg, #ecfdf5 0%, #fdf8ed 100%) !important;
  border: 1.5px solid #059669 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.18) !important;
}

body.light-theme .muazzin-icon-circle,
html[data-theme="light"] .muazzin-icon-circle,
html.light-theme .muazzin-icon-circle {
  background: #fdf8ed !important;
  border: 1px solid #dfbe7d !important;
}

body.light-theme .muazzin-icon-circle i,
html[data-theme="light"] .muazzin-icon-circle i,
html.light-theme .muazzin-icon-circle i {
  color: #8c6218 !important;
}

body.light-theme .muazzin-card.is-selected .muazzin-icon-circle,
html[data-theme="light"] .muazzin-card.is-selected .muazzin-icon-circle,
html.light-theme .muazzin-card.is-selected .muazzin-icon-circle {
  background: #059669 !important;
}

body.light-theme .muazzin-card.is-selected .muazzin-icon-circle i,
html[data-theme="light"] .muazzin-card.is-selected .muazzin-icon-circle i,
html.light-theme .muazzin-card.is-selected .muazzin-icon-circle i {
  color: #ffffff !important;
}

body.light-theme .muazzin-name,
html[data-theme="light"] .muazzin-name,
html.light-theme .muazzin-name {
  color: #193b34 !important;
  font-weight: 800 !important;
}

body.light-theme .muazzin-desc,
html[data-theme="light"] .muazzin-desc,
html.light-theme .muazzin-desc {
  color: #475569 !important;
}

body.light-theme .muazzin-desc .text-gold-light,
html[data-theme="light"] .muazzin-desc .text-gold-light,
html.light-theme .muazzin-desc .text-gold-light {
  color: #8d6404 !important;
  font-weight: 600;
}

body.light-theme .muazzin-badge-active,
html[data-theme="light"] .muazzin-badge-active,
html.light-theme .muazzin-badge-active {
  background: rgba(5, 150, 105, 0.12) !important;
  border: 1px solid rgba(5, 150, 105, 0.35) !important;
  color: #047857 !important;
}

body.light-theme .btn-preview-muazzin,
html[data-theme="light"] .btn-preview-muazzin,
html.light-theme .btn-preview-muazzin {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  color: #573e00 !important;
}

body.light-theme .btn-preview-muazzin:hover,
html[data-theme="light"] .btn-preview-muazzin:hover,
html.light-theme .btn-preview-muazzin:hover {
  background: #fdfbf7 !important;
  border-color: #b8860b !important;
  color: #0f172a !important;
}

body.light-theme .btn-preview-muazzin.is-playing,
html[data-theme="light"] .btn-preview-muazzin.is-playing,
html.light-theme .btn-preview-muazzin.is-playing {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

body.light-theme .btn-choose-muazzin.is-current,
html[data-theme="light"] .btn-choose-muazzin.is-current,
html.light-theme .btn-choose-muazzin.is-current {
  background: rgba(5, 150, 105, 0.15) !important;
  color: #047857 !important;
  border: 1px solid rgba(5, 150, 105, 0.4) !important;
}

body.light-theme .muazzin-modal-tip,
html[data-theme="light"] .muazzin-modal-tip,
html.light-theme .muazzin-modal-tip {
  background: rgba(184, 134, 11, 0.08) !important;
  border: 1px dashed rgba(184, 134, 11, 0.3) !important;
  color: #735200 !important;
}

/* ==========================================================================
   بنر الأذان التفاعلي الفوري للهواتف والآيفون (Interactive Adhan Alert Banner)
   ========================================================================== */
.adhan-autoplay-banner {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  width: 92%;
  max-width: 500px;
  z-index: 999999;
  background: linear-gradient(135deg, #0e1e34 0%, #07111e 100%);
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.35);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: adhanPulseGlow 2s infinite alternate;
}

.adhan-autoplay-banner.active {
  transform: translateX(-50%) translateY(0);
}

.adhan-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.adhan-banner-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-400);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.adhan-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adhan-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.adhan-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.adhan-banner-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.adhan-banner-sub {
  font-size: 0.78rem;
  color: var(--gold-200);
  line-height: 1.35;
}

.adhan-banner-btn {
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

@keyframes adhanPulseGlow {
  0% {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 15px rgba(212, 175, 55, 0.25);
  }
  100% {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.55);
  }
}

/* في الوضع النهاري / الأبيض */
body.light-theme .adhan-autoplay-banner,
html[data-theme="light"] .adhan-autoplay-banner,
html.light-theme .adhan-autoplay-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%) !important;
  border: 1.5px solid #b8860b !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2), 0 0 25px rgba(184, 134, 11, 0.25) !important;
}

body.light-theme .adhan-banner-title,
html[data-theme="light"] .adhan-banner-title,
html.light-theme .adhan-banner-title {
  color: #0f172a !important;
}

body.light-theme .adhan-banner-sub,
html[data-theme="light"] .adhan-banner-sub,
html.light-theme .adhan-banner-sub {
  color: #735200 !important;
}

/* ==========================================================================
   22. تصميم واجهة زاد المسلم العصرية والتفاعلية (ZadMuslim Modern Responsive Interface)
   متجاوب بالكامل للآيفون، الأندرويد، والشاشات الكبيرة (Desktop)
   ========================================================================== */

/* الحاوية العصرية العامة */
.modern-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* بطاقة البداية العصرية بهوية إسلامية فاخرة (Modern Hero Card) */
.modern-hero-card {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  border-radius: 28px;
  background: radial-gradient(circle at 10% 15%, rgba(33, 111, 90, 0.45) 0%, transparent 55%),
              radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, #053329 0%, #08483b 50%, #0d5a49 100%);
  color: #ffffff;
  min-height: 290px;
  padding: 2.8rem 3.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 45px rgba(5, 51, 41, 0.4), 0 0 30px rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modern-hero-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

.modern-hero-card::before {
  content: "۞";
  position: absolute;
  left: 5%;
  top: -120px;
  font-size: 380px;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  font-family: serif;
}

.modern-hero-content {
  max-width: 680px;
  z-index: 2;
  position: relative;
}

.modern-hero-eyebrow {
  color: #f6dc8d;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
}

.modern-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 0.6rem 0;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.modern-hero-desc {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #e0f2ea;
  margin: 0.6rem 0 1.5rem;
}

.modern-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-modern-gold {
  background: linear-gradient(135deg, #d9b773 0%, #c49b50 100%);
  color: #163d31 !important;
  font-weight: 800;
  padding: 0.75rem 1.6rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(196, 155, 80, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-modern-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 155, 80, 0.45);
}

.btn-modern-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-modern-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.modern-hero-moon {
  font-size: 100px;
  color: #f6dc8d;
  opacity: 0.95;
  filter: drop-shadow(0 0 35px rgba(246, 220, 141, 0.45));
  margin-left: 2rem;
  z-index: 2;
  user-select: none;
  animation: floatMoon 4s ease-in-out infinite alternate;
}

@keyframes floatMoon {
  0% { transform: translateY(0px) rotate(-5deg); }
  100% { transform: translateY(-8px) rotate(5deg); }
}

/* رؤوس الأقسام العصرية */
.modern-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 2.2rem 0 1.2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modern-section-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-section-title-wrap p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.modern-section-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

/* لوحة "يومي مع الله" التفاعلية (Dashboard) */
.modern-dashboard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.modern-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.modern-panel-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.modern-panel-head .modern-small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* شريط الصلاة داخل لوحة يومي */
.modern-prayer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 102, 84, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1.1rem 1.3rem;
  border-radius: 17px;
  margin-top: 1.2rem;
  gap: 1rem;
}

.modern-prayer-info strong {
  font-size: 1.15rem;
  color: var(--text-primary);
  display: block;
  margin: 0.2rem 0;
}

.modern-prayer-tag {
  font-size: 0.8rem;
  color: var(--gold-400);
  font-weight: 700;
}

.btn-modern-outline {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-300) !important;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-modern-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
}

/* شريط الإنجاز اليومي والمهام */
.modern-progress-wrap {
  margin-top: 1.2rem;
}

.modern-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modern-progress-bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.modern-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #e8c45a 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-tasks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.modern-task-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1rem;
  border-radius: 13px;
  text-align: start;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.modern-task-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-400);
}

.modern-task-btn.done {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
}

.modern-task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.modern-task-btn.done .modern-task-check {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

/* لوحة التسبيح السريع */
.modern-dhikr-panel {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(10, 41, 33, 0.6) 100%);
}

.modern-dhikr-quote {
  font-size: 1.35rem;
  line-height: 1.9;
  font-weight: 800;
  margin: 1.2rem auto;
  max-width: 360px;
  color: var(--gold-200);
  font-family: var(--font-quran), Amiri, serif;
}

.modern-dhikr-counter {
  font-size: 2.8rem;
  font-weight: 900;
  color: #34d399;
  margin: 0.3rem 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.modern-dhikr-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-modern-solid {
  background: linear-gradient(135deg, #0e6654 0%, #064034 100%);
  border: 1px solid #10b981;
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.75rem 1.6rem;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(6, 64, 52, 0.3);
  font-family: inherit;
}

.btn-modern-solid:active {
  transform: scale(0.96);
}

/* شبكة أقسام المنصة (Modern Features Grid) */
.modern-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.modern-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  min-height: 175px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modern-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-400);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 175, 55, 0.15);
}

.modern-fi {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(14, 102, 84, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.modern-feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modern-feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.8;
}

/* قسم الصدقة الجارية وتحدي 7 أيام (Bottom Grid) */
.modern-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.2rem 0 3.5rem;
}

.modern-panel-sadaqa {
  background: linear-gradient(135deg, rgba(30, 24, 15, 0.85) 0%, rgba(20, 15, 10, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modern-panel-challenge {
  background: linear-gradient(135deg, rgba(14, 38, 30, 0.85) 0%, rgba(10, 26, 21, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.modern-tag-gold {
  display: inline-block;
  font-size: 0.78rem;
  color: #fce8a8;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.28rem 0.85rem;
  border-radius: 30px;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.modern-tag-green {
  display: inline-block;
  font-size: 0.78rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.28rem 0.85rem;
  border-radius: 30px;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

/* شريط التنقل السفلي للهواتف (Mobile Bottom Bar) */
.modern-mobilebar {
  display: none;
}

/* ==========================================================================
   الملاءمة للوضع النهاري (Light Theme Support)
   ========================================================================== */
body.light-theme,
html[data-theme="light"] body {
  background: #f7f9f6 !important;
  color: #193b34 !important;
}

body.light-theme .modern-panel,
html[data-theme="light"] .modern-panel {
  background: #ffffff !important;
  border: 1px solid #e8eee9 !important;
  box-shadow: 0 6px 28px rgba(25, 59, 52, 0.06) !important;
}

body.light-theme .modern-panel-head h3,
html[data-theme="light"] .modern-panel-head h3,
body.light-theme .modern-section-title-wrap h2,
html[data-theme="light"] .modern-section-title-wrap h2,
body.light-theme .modern-feature-card h3,
html[data-theme="light"] .modern-feature-card h3 {
  color: #193b34 !important;
}

body.light-theme .modern-feature-card,
html[data-theme="light"] .modern-feature-card {
  background: #ffffff !important;
  border: 1px solid #e7eee8 !important;
  box-shadow: 0 4px 16px rgba(21, 62, 48, 0.05) !important;
}

body.light-theme .modern-feature-card:hover,
html[data-theme="light"] .modern-feature-card:hover {
  box-shadow: 0 12px 26px rgba(21, 62, 48, 0.1) !important;
  border-color: #0e6654 !important;
}

body.light-theme .modern-fi,
html[data-theme="light"] .modern-fi {
  background: #eaf5ee !important;
  border: 1px solid #d4e8dc !important;
}

body.light-theme .modern-prayer-strip,
html[data-theme="light"] .modern-prayer-strip {
  background: #eff7f1 !important;
  border: 1px solid #d6ece0 !important;
}

body.light-theme .modern-prayer-info strong,
html[data-theme="light"] .modern-prayer-info strong {
  color: #193b34 !important;
}

body.light-theme .modern-task-btn,
html[data-theme="light"] .modern-task-btn {
  background: #ffffff !important;
  border: 1px solid #e3ede5 !important;
  color: #193b34 !important;
}

body.light-theme .modern-task-btn.done,
html[data-theme="light"] .modern-task-btn.done {
  background: #edf8f0 !important;
  border-color: #8fcdb0 !important;
  color: #0e6654 !important;
}

body.light-theme .modern-dhikr-panel,
html[data-theme="light"] .modern-dhikr-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafcf9 100%) !important;
}

body.light-theme .modern-dhikr-quote,
html[data-theme="light"] .modern-dhikr-quote {
  color: #0e6654 !important;
}

body.light-theme .modern-dhikr-counter,
html[data-theme="light"] .modern-dhikr-counter {
  color: #0e6654 !important;
}

body.light-theme .modern-panel-sadaqa,
html[data-theme="light"] .modern-panel-sadaqa {
  background: #f3eadd !important;
  border-color: #eadbc2 !important;
}

body.light-theme .modern-panel-challenge,
html[data-theme="light"] .modern-panel-challenge {
  background: #eaf4ed !important;
  border-color: #d1e8d7 !important;
}

body.light-theme .btn-modern-solid,
html[data-theme="light"] .btn-modern-solid {
  background: #073f35 !important;
  border-color: #0e6654 !important;
  color: #ffffff !important;
}

body.light-theme .btn-modern-outline,
html[data-theme="light"] .btn-modern-outline {
  background: #ffffff !important;
  border: 1px solid #d7e4db !important;
  color: #073f35 !important;
}

/* ==========================================================================
   التجاوب التام للهواتف (Responsive Media Queries for Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  .modern-dashboard {
    grid-template-columns: 1fr;
  }
  .modern-bottom-grid {
    grid-template-columns: 1fr;
  }
  .modern-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modern-hero-card {
    padding: 2.2rem;
  }
  .modern-hero-moon {
    font-size: 70px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .modern-shell {
    padding: 0 12px;
  }
  .modern-hero-card {
    min-height: auto;
    padding: 1.4rem 1.1rem;
    border-radius: 20px;
    margin-top: 0.4rem;
    margin-bottom: 0.9rem;
    overflow: hidden;
  }
  .modern-hero-title {
    font-size: 1.55rem;
    line-height: 1.45;
    word-break: break-word;
  }
  .modern-hero-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
  }
  .modern-hero-moon {
    display: none;
  }
  .modern-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .modern-hero-actions .btn-modern-gold,
  .modern-hero-actions .btn-modern-glass {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  .modern-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .modern-feature-card {
    padding: 1.2rem 1rem;
    min-height: 150px;
    border-radius: 16px;
  }
  .modern-feature-card h3 {
    font-size: 0.96rem;
  }
  .modern-feature-card p {
    font-size: 0.76rem;
    line-height: 1.6;
  }
  .modern-fi {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border-radius: 12px;
    margin-bottom: 0.7rem;
  }
  .modern-tasks-grid {
    grid-template-columns: 1fr;
  }

  /* موضع زر راديو القرآن التفاعلي متناسق مع الشريط السفلي */
  .live-radio-widget {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
  }

  .radio-panel {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
    width: min(326px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))) !important;
    max-width: 330px !important;
  }

  /* شريط التبويبات السفلي للآيفون والأندرويد (Mobile Floating Dock Bar) */
  .modern-mobilebar {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(7, 13, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 55, 0.12);
  }

  body.light-theme .modern-mobilebar,
  html[data-theme="light"] .modern-mobilebar {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(14, 102, 84, 0.25) !important;
    box-shadow: 0 10px 30px rgba(14, 102, 84, 0.12) !important;
  }

  .modern-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
  }

  body.light-theme .modern-mobile-tab,
  html[data-theme="light"] .modern-mobile-tab {
    color: #64748b !important;
  }

  .modern-mobile-tab i,
  .modern-mobile-tab span.tab-icon {
    font-size: 1.18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .modern-mobile-tab.active {
    color: var(--gold-300) !important;
    background: rgba(212, 175, 55, 0.12);
  }

  .modern-mobile-tab.active i,
  .modern-mobile-tab.active span.tab-icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  }

  body.light-theme .modern-mobile-tab.active,
  html[data-theme="light"] .modern-mobile-tab.active {
    color: #0e6654 !important;
    background: rgba(14, 102, 84, 0.1) !important;
  }

  /* شريط التنقل السفلي المرجعي في الوضع النهاري (.mobilebar) */
  html[data-theme="light"] .mobilebar,
  body.light-theme .mobilebar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid #DFE9E1 !important;
    box-shadow: 0 -4px 20px rgba(7, 63, 53, 0.08) !important;
  }

  html[data-theme="light"] .mobilebar a,
  body.light-theme .mobilebar a {
    color: #64786D !important;
  }

  html[data-theme="light"] .mobilebar a:hover,
  html[data-theme="light"] .mobilebar a.active,
  body.light-theme .mobilebar a:hover,
  body.light-theme .mobilebar a.active {
    color: #073F35 !important;
  }

  /* شريط التنقل السفلي لتطبيق الموبايل في الوضع النهاري (.app-bottom-nav) */
  html[data-theme="light"] .app-bottom-nav,
  body.light-theme .app-bottom-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid #DFE9E1 !important;
    box-shadow: 0 -4px 20px rgba(7, 63, 53, 0.08) !important;
  }

  html[data-theme="light"] .app-nav-tab,
  body.light-theme .app-nav-tab {
    color: #64786D !important;
  }

  html[data-theme="light"] .app-nav-tab:hover,
  body.light-theme .app-nav-tab:hover {
    color: #073F35 !important;
  }

  html[data-theme="light"] .app-nav-tab.active,
  body.light-theme .app-nav-tab.active {
    color: #073F35 !important;
    background: rgba(7, 63, 53, 0.06) !important;
  }

  html[data-theme="light"] .app-nav-tab.active i,
  body.light-theme .app-nav-tab.active i {
    color: #073F35 !important;
  }
}

.services-search-wrapper {
    margin: 24px 0 32px;
    position: relative;
}

.services-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 16px 50px 16px 20px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

    .services-search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 6px 24px var(--shadow-color);
    }

.services-search-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.category-block {
    margin-bottom: 42px;
}

.category-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.category-badge {
    background: var(--bg-elevated);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media(max-width: 850px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 520px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

    .service-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

.service-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-elevated);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.service-info h3 {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-primary);
}

.service-info p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.8;
}

.service-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 14px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: none;
}

/* ==========================================================================
   26. تحسينات تجربة الموبايل والوضع الداكن والفاتح المعتمدة (Mobile UI/UX Refinements)
   ========================================================================== */

/* 1. حماية شريط التنقل العلوي وتوافق Safe Area ومنع التمرير الأفقي */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#services-interactive-hub {
    max-width: 100%;
    overflow-x: clip;
}

.top {
    padding-top: env(safe-area-inset-top, 0px) !important;
}

html {
    scroll-padding-top: calc(75px + env(safe-area-inset-top, 0px));
}

/* ==========================================================================
   تحسين وتنسيق هيدر أندرويد ليكون مدمجاً وأنيقاً وتفادي الحشو المزدوج (Android Header Optimization)
   ========================================================================== */
html.android-device .top,
html.android-device header.top,
body.android-device .top,
.android-device header.top,
.android-device .top {
    padding-top: 0 !important;
}

html.android-device {
    scroll-padding-top: 56px !important;
}

html.android-device .nav {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    gap: 8px !important;
}

html.android-device .logo {
    font-size: 16px !important;
    gap: 7px !important;
}

html.android-device .logo-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

html.android-device .nav .btn {
    padding: 5px 9px !important;
    font-size: 13px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
}

/* تصميم موحد وعصري لأيقونات الهيدر (Theme Toggle & Settings & Action Buttons) */
header.top .btn-theme-toggle,
header.top #btn-toggle-theme-nav,
header.top #btn-open-settings-nav,
header.top #btn-settings-services,
header.top #btn-toggle-theme-settings,
.settings-action-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, 0.16) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    color: var(--gold-400, #d4af37) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

[data-theme="light"] header.top .btn-theme-toggle,
[data-theme="light"] header.top #btn-toggle-theme-nav,
[data-theme="light"] header.top #btn-open-settings-nav,
[data-theme="light"] header.top #btn-settings-services,
[data-theme="light"] header.top #btn-toggle-theme-settings,
[data-theme="light"] .settings-action-btn {
    background: rgba(0, 0, 0, 0.035) !important;
    border-color: rgba(140, 110, 35, 0.24) !important;
}

header.top .btn-theme-toggle:hover,
header.top #btn-toggle-theme-nav:hover,
header.top #btn-open-settings-nav:hover,
header.top #btn-settings-services:hover,
header.top #btn-toggle-theme-settings:hover,
.settings-action-btn:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px);
}

header.top .btn-theme-toggle:active,
header.top #btn-toggle-theme-nav:active,
header.top #btn-open-settings-nav:active,
header.top #btn-settings-services:active,
header.top #btn-toggle-theme-settings:active,
.settings-action-btn:active {
    transform: scale(0.94) !important;
}

header.top .btn-theme-toggle i,
header.top #btn-toggle-theme-nav i,
header.top #btn-open-settings-nav i,
header.top #btn-settings-services i,
header.top #btn-toggle-theme-settings i,
.settings-action-btn i {
    font-size: 1.15rem !important;
    color: #d4af37 !important;
    transition: transform 0.25s ease, color 0.25s ease;
}

html.android-device .btn-theme-toggle,
html.android-device #btn-toggle-theme-nav,
html.android-device #btn-open-settings-nav {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.12rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.16) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    color: #d4af37 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 480px) {
    header.top .btn-theme-toggle,
    header.top #btn-toggle-theme-nav,
    header.top #btn-open-settings-nav,
    header.top #btn-settings-services,
    header.top #btn-toggle-theme-settings,
    .settings-action-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 12px !important;
    }
}

html.android-device .settings-page-wrapper {
    padding-top: 12px !important;
}

html.android-device .settings-header-bar {
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
}

/* 2. تصحيح تباين الوضع الداكن (Dark Mode Contrast Fix) */
[data-theme="dark"] {
    --bg-primary: #081C17 !important;
    --bg-secondary: #102820 !important;
    --bg-card: #163329 !important;
    --bg-elevated: #1D4033 !important;

    --text-primary: #F3F8F4 !important;
    --text-secondary: #C0D4C8 !important;
    --text-muted: #A7BFB0 !important;

    --primary: #73D3AB !important;
    --primary-hover: #9BE5C3 !important;
    --primary-contrast: #081C17 !important;

    --accent: #E6BD70 !important;
    --accent-bg: #3B3220 !important;

    --border-color: #315346 !important;
    --shadow-color: rgba(0, 0, 0, 0.35) !important;

    --nav-bg: #102820 !important;
    --input-bg: #1D4033 !important;
}

[data-theme="dark"] .service-card {
    background: #163329 !important;
    border: 1px solid #315346 !important;
    color: #F3F8F4 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .service-card:hover {
    border-color: #73D3AB !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .service-info h3 {
    color: #F3F8F4 !important;
}

[data-theme="dark"] .service-info p {
    color: #C0D4C8 !important;
}

[data-theme="dark"] .service-icon-box {
    background: #1D4033 !important;
    color: #73D3AB !important;
    border: 1px solid #315346 !important;
}

[data-theme="dark"] .service-action-link {
    color: #73D3AB !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .service-card:hover .service-action-link {
    color: #9BE5C3 !important;
}

[data-theme="dark"] .category-title {
    color: #F3F8F4 !important;
}

[data-theme="dark"] .category-badge {
    background: rgba(115, 211, 171, 0.14) !important;
    border: 1px solid rgba(115, 211, 171, 0.32) !important;
    color: #73D3AB !important;
}

[data-theme="dark"] .category-title-wrap {
    border-bottom: 1px solid #315346 !important;
}

[data-theme="dark"] .services-search-input {
    background: #163329 !important;
    border: 1px solid #315346 !important;
    color: #F3F8F4 !important;
}

[data-theme="dark"] .services-search-input::placeholder {
    color: #A7BFB0 !important;
}

[data-theme="dark"] .services-search-input:focus {
    border-color: #73D3AB !important;
    box-shadow: 0 0 0 3px rgba(115, 211, 171, 0.22) !important;
}

[data-theme="dark"] .services-search-icon {
    color: #73D3AB !important;
}

[data-theme="dark"] .mobilebar {
    background: #102820 !important;
    border-top: 1px solid #315346 !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .mobilebar a {
    color: #A7BFB0 !important;
}

[data-theme="dark"] .mobilebar a.active,
[data-theme="dark"] .mobilebar a:hover {
    color: #73D3AB !important;
}

[data-theme="dark"] .mobilebar a.active span,
[data-theme="dark"] .mobilebar a:hover span {
    color: #73D3AB !important;
}

/* 3. الوضع الفاتح (Light Mode Equivalents) */
[data-theme="light"] .service-card {
    background: #FFFFFF !important;
    border: 1px solid #DFE9E1 !important;
    color: #193B34 !important;
    box-shadow: 0 2px 10px rgba(7, 63, 53, 0.05) !important;
}

[data-theme="light"] .service-card:hover {
    border-color: #073F35 !important;
    box-shadow: 0 6px 18px rgba(7, 63, 53, 0.1) !important;
}

[data-theme="light"] .service-info h3 {
    color: #193B34 !important;
}

[data-theme="light"] .service-info p {
    color: #536A60 !important;
}

[data-theme="light"] .service-icon-box {
    background: #F0F5F1 !important;
    color: #073F35 !important;
    border: 1px solid #DFE9E1 !important;
}

[data-theme="light"] .service-action-link {
    color: #073F35 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .service-action-link:hover {
    color: #0E6654 !important;
}

[data-theme="light"] .category-title {
    color: #193B34 !important;
}

[data-theme="light"] .category-badge {
    background: #F0F5F1 !important;
    border: 1px solid #DFE9E1 !important;
    color: #073F35 !important;
}

[data-theme="light"] .category-title-wrap {
    border-bottom: 1px solid #DFE9E1 !important;
}

[data-theme="light"] .services-search-input {
    background: #FFFFFF !important;
    border: 1px solid #DFE9E1 !important;
    color: #193B34 !important;
}

[data-theme="light"] .services-search-input::placeholder {
    color: #64786D !important;
}

[data-theme="light"] .services-search-input:focus {
    border-color: #073F35 !important;
    box-shadow: 0 0 0 3px rgba(7, 63, 53, 0.12) !important;
}

[data-theme="light"] .services-search-icon {
    color: #073F35 !important;
}

/* 4. التحسينات الشاملة للشاشات الصغيرة وتطبيق الموبايل (Responsive Layout & Mobile Optimization) */
@media (max-width: 768px) {
    /* ضبط الهيدر وشريط العنوان وحماية من شريط الحالة */
    .nav {
        height: 52px !important;
        padding: 0 12px !important;
        gap: 8px !important;
    }

    .logo {
        font-size: 16.5px !important;
        gap: 7px !important;
    }

    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
        border-radius: 9px !important;
    }

    .nav .btn {
        padding: 10px 12px !important;
        font-size: 18px !important;
        white-space: nowrap !important;
        border-radius: 9px !important;
    }

    .btn-theme-toggle {
        padding: 6px 9px !important;
    }

    /* إلغاء الحشو المكرر لتمكين الكروت من استغلال العرض الطبيعي */ 
    .section-head,
    .services-search-wrapper,
    .category-block {
        padding: 0 !important;
    }

    .shell.container {
        padding: 0 14px !important;
    }

    main.shell {
        margin-top: 14px !important;
        margin-bottom: 30px !important;
    }

    /* تحسين العناوين والطباعة (Typography clamp) */
    .section-head {
        margin-top: 8px !important;
        margin-bottom: 14px !important;
    }

    .section-head h1,
    .services-page-title {
        font-size: clamp(21px, 6vw, 26px) !important;
        line-height: 1.35 !important;
        letter-spacing: -0.2px !important;
    }

    .section-head p,
    .services-page-desc {
        font-size: 12.5px !important;
        line-height: 1.6 !important;
        margin-top: 6px !important;
    }

    /* حقل البحث */
    .services-search-wrapper {
        margin: 10px 0 16px !important;
    }

    .services-search-input {
        height: 46px !important;
        font-size: 13px !important;
        padding: 0 42px 0 14px !important;
        border-radius: 14px !important;
    }

    .services-search-icon {
        right: 14px !important;
        font-size: 14px !important;
    }

    /* عناوين وشارات التصنيفات */
    .category-block {
        margin-bottom: 22px !important;
    }

    .category-title-wrap {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        gap: 8px !important;
    }

    .category-title {
        font-size: 17px !important;
    }

    .category-badge {
        font-size: 11px !important;
        padding: 3px 9px !important;
    }

    /* بطاقات الخدمات - أحجام مدروسة بدون فراغات مفرطة */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .service-card {
        padding: 13px 15px !important;
        border-radius: 16px !important;
        min-height: auto !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .service-card-top {
        margin-bottom: 4px !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .service-icon-box {
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }

    .service-info h3 {
        font-size: 15px !important;
        margin: 0 0 3px !important;
        line-height: 1.35 !important;
    }

    .service-info p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .service-action-link {
        margin-top: 6px !important;
        font-size: 12px !important;
        padding-top: 2px !important;
    }

    /* حماية نهاية الصفحة من التداخل مع شريط التنقل */
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* ضبط موضع زر الراديو العائم وحجمه المتناسق لمنع حجب المحتوى */
    .live-radio-widget {
        bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        z-index: 1500 !important;
    }

    .radio-fab-btn {
        width: 42px !important;
        height: 42px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    }

    .radio-fab-btn i {
        font-size: 16px !important;
    }

    /* شريط التنقل السفلي للهواتف المدمج والمتناسق مع الحافة السفلية الآمنة */
    .mobilebar {
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        height: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
    }

    .mobilebar a {
        font-size: 10px !important;
        padding: 2px 4px !important;
        min-width: 44px !important;
    }

    .mobilebar a span {
        font-size: 17px !important;
        line-height: 1.1 !important;
        display: block !important;
        margin-bottom: 1px !important;
    }

    .footer {
        padding: 2rem 1rem 1.2rem !important;
    }
}

/* ==========================================================================
   زاد المسلم V4 — القارئ القرآني المتقدم والعلامات المرجعية (Advanced Quran Reader)
   ========================================================================== */
.mushaf-mode-switcher-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 25, 43, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full, 9999px);
    padding: 2px;
    gap: 2px;
}

html[data-theme="light"] .mushaf-mode-switcher-pill,
body.light-theme .mushaf-mode-switcher-pill {
    background: #eef3f0 !important;
    border-color: #dfe9e1 !important;
}

.btn-mushaf-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full, 9999px);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mushaf-mode.active {
    background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #aa820a)) !important;
    color: #0b1a13 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-mushaf-mode:hover:not(.active) {
    color: var(--gold-300);
}

.quran-font-scale-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(14, 25, 43, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full, 9999px);
    padding: 2px 4px;
}

html[data-theme="light"] .quran-font-scale-group,
body.light-theme .quran-font-scale-group {
    background: #eef3f0 !important;
    border-color: #dfe9e1 !important;
}

.quran-font-scale-group .btn {
    border: none !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quran-font-scale-group .btn:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--gold-400) !important;
}

/* بطاقات العلامات المرجعية داخل المودال */
.quran-bookmark-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    transition: all 0.2s ease;
    gap: 10px;
}

.quran-bookmark-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quran-bookmark-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.quran-bookmark-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quran-bookmark-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quran-bookmark-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* وضع القراءة المستمرة للآيات */
.continuous-reading-flow {
    padding: 1.5rem 1rem;
    direction: rtl;
    line-height: 2.4;
    text-align: justify;
    font-family: var(--font-quran, "Amiri", "Uthmanic", serif);
    font-size: var(--quran-verse-font-size, 24px);
    color: var(--text-primary);
}

.continuous-surah-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--gold-rgb, 212, 175, 55), 0.2);
}

.continuous-surah-title {
    font-size: 2rem;
    color: var(--gold-400);
    margin: 0 0 0.5rem;
}

.continuous-basmala {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.continuous-ayah-word {
    display: inline;
    cursor: pointer;
    transition: background 0.15s ease;
    padding: 2px 2px;
    border-radius: 4px;
}

.continuous-ayah-word:hover {
    background: rgba(212, 175, 55, 0.15);
}

.continuous-ayah-symbol {
    display: inline-block;
    color: var(--gold-400);
    margin: 0 6px;
    font-weight: bold;
    user-select: none;
}

/* ==========================================================================
   زاد المسلم V4 — 1. واجهة المصحف الشريف الشاملة وهاب السور والأجزاء والعلامات
   ========================================================================== */

.quran-hub-header-hero {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    position: relative;
}

.quran-hub-title {
    font-size: 2.2rem;
    font-family: var(--font-quran, 'Amiri', serif);
    color: var(--gold-400);
    margin: 0 0 6px;
}

.quran-hub-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* بطاقة أكمل من حيث توقفت */
.quran-hub-resume-card {
    margin: 1rem 0 1.5rem;
}

.quran-resume-card-inner {
    background: linear-gradient(135deg, rgba(7, 63, 53, 0.95), rgba(14, 102, 84, 0.9));
    border: 1px solid var(--gold-400);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(7, 63, 53, 0.2);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .quran-resume-card-inner {
    background: linear-gradient(135deg, #102820, #163329);
    border-color: rgba(212, 175, 55, 0.4);
}

.quran-resume-badge {
    position: absolute;
    top: 10px;
    left: 14px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--gold-300);
}

.quran-resume-details {
    flex: 1;
}

.quran-resume-surah {
    font-size: 1.35rem;
    margin: 0 0 4px;
    color: var(--gold-300);
    font-family: var(--font-quran, 'Amiri', serif);
}

.quran-resume-meta {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.btn-resume-reading {
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* أزرار تبويبات مركز القرآن الثلاثة */
.quran-hub-tabs-nav {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 16px;
    margin-bottom: 1.2rem;
}

.quran-hub-nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quran-hub-nav-tab.active {
    background: var(--primary);
    color: var(--primary-contrast);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .quran-hub-nav-tab.active {
    background: var(--bg-elevated);
    color: var(--gold-400);
}

.quran-hub-tab-pane {
    display: none;
}

.quran-hub-tab-pane.active-pane {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* شبكة سور وأجزاء القرآن */
.quran-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.quran-surah-item-card,
.quran-juz-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quran-surah-item-card:hover,
.quran-juz-item-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quran-surah-number-badge,
.quran-juz-number-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.quran-surah-info,
.quran-juz-info {
    flex: 1;
}

.quran-surah-item-name,
.quran-juz-item-name {
    font-size: 1.05rem;
    margin: 0 0 2px;
    color: var(--text-primary);
}

.quran-surah-item-meta,
.quran-juz-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quran-surah-page-badge,
.quran-juz-page-badge {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.quran-hub-bookmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.quran-hub-bookmark-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.quran-hub-bookmark-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quran-bookmarks-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   2. لوحة إجراءات الآية التفاعلية (Ayah Action Sheet)
   ========================================================================== */
.ayah-action-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.ayah-action-sheet-overlay.open {
    display: flex;
    animation: fadeIn 0.15s ease-out;
}

.ayah-action-sheet-card {
    background: var(--bg-card);
    border-top: 2px solid var(--gold-400);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px 20px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.ayah-sheet-drag-handle {
    width: 44px;
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 auto 14px;
}

.ayah-sheet-header {
    margin-bottom: 14px;
    text-align: start;
}

.ayah-sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-500);
    margin: 0 0 6px;
}

.ayah-sheet-text {
    font-family: var(--font-quran, 'Amiri', serif);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-primary);
    background: var(--bg-elevated);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
    border-inline-start: 3px solid var(--gold-400);
}

.ayah-sheet-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.ayah-sheet-action-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: start;
    width: 100%;
}

.ayah-sheet-action-item:hover,
.ayah-sheet-action-item:active {
    background: var(--bg-elevated);
    border-color: var(--gold-400);
    transform: translateX(-3px);
}

.ayah-sheet-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(168, 121, 39, 0.12);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ayah-sheet-close-btn {
    margin-top: 12px;
    width: 100%;
    padding: 11px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   3. حاسبة الزكاة الذكية الشاملة (Zakat Calculator Styles)
   ========================================================================== */
.zakat-calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.zakat-settings-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-elevated);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.zakat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .zakat-form-grid {
        grid-template-columns: 1fr;
    }
}

.zakat-category-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.zakat-cat-title {
    font-size: 1.05rem;
    color: var(--gold-500);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.zakat-input-group {
    margin-bottom: 10px;
}

.zakat-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.zakat-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.zakat-input-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0 12px 0 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.zakat-currency-unit {
    position: absolute;
    inset-inline-end: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    pointer-events: none;
}

.zakat-result-panel {
    background: linear-gradient(135deg, rgba(7, 63, 53, 0.95), rgba(14, 102, 84, 0.9));
    color: #FFFFFF;
    border: 1.5px solid var(--gold-400);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(7, 63, 53, 0.25);
}

[data-theme="dark"] .zakat-result-panel {
    background: linear-gradient(135deg, #102820, #163329);
}

.zakat-due-display {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold-300);
    margin: 10px 0 4px;
}

.zakat-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.zakat-status-badge.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.zakat-status-badge.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.zakat-status-badge.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.zakat-breakdown-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px auto;
    max-width: 550px;
    text-align: start;
}

.zakat-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
}

.zakat-actions-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. مساجد قريبة منك (Nearby Mosques Styles)
   ========================================================================== */
.mosques-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
}

.mosques-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.mosques-view-tabs {
    display: inline-flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 3px;
}

.mosques-view-tab {
    background: transparent;
    border: none;
    padding: 7px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mosques-view-tab.active {
    background: var(--primary);
    color: var(--primary-contrast);
}

.mosques-radius-pill {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mosques-radius-pill:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.mosques-radius-pill.active {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #111827;
    border-color: #d4af37;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.mosques-status-box {
    margin-bottom: 16px;
}

.mosques-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
}

.mosques-alert {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.mosques-alert-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.mosques-alert-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.mosque-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.mosque-card:hover {
    border-color: var(--gold-400);
    box-shadow: var(--shadow-sm);
}

.mosque-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mosque-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168, 121, 39, 0.15);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.mosque-details {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.mosque-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.mosque-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
    word-break: break-word;
}

.mosque-address i {
    margin-top: 3px;
    flex-shrink: 0;
}

.mosque-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.mosque-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 700;
}

.mosque-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mosque-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-directions {
    background: linear-gradient(135deg, var(--gold-500, #c59b27), var(--gold-400, #d4af37));
    color: #0c2018 !important;
    border: 1px solid var(--gold-400, #d4af37);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn-directions:hover {
    background: linear-gradient(135deg, var(--gold-400, #d4af37), var(--gold-300, #f1d575));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* التجاوب التام لمساجد قريبة على الموبايل والشاشات الصغيرة */
@media (max-width: 640px) {
    .mosques-container-card {
        padding: 12px;
        border-radius: 16px;
    }

    .mosques-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mosques-top-bar #btn-find-nearby-mosques {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .mosques-view-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mosques-view-tab {
        text-align: center;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .mosque-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .mosque-card-main {
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .mosque-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .mosque-name {
        font-size: 0.98rem;
    }

    .mosque-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .mosque-actions .btn {
        width: 100%;
        padding: 9px 8px;
        font-size: 0.84rem;
        justify-content: center;
    }

    .mosques-radius-bar {
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .mosques-radius-bar::-webkit-scrollbar {
        display: none;
    }
}

#mosques-leaflet-map {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    z-index: 1;
}

/* ==========================================================================
   ZADMUSLIM V4 — COMPREHENSIVE LIGHT MODE MASTER HARMONIZATION
   ضمان التناسق البصري التام والوضوح بنسبة 100% في المظهر النهاري لجميع الأقسام
   ========================================================================== */
html[data-theme="light"],
body.light-theme {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

/* 1. خلفيات الأقسام المحددة في طلب المراجعة */
body.light-theme .quran-khatma-section,
html[data-theme="light"] .prayer-times-section,
body.light-theme .prayer-times-section,
html[data-theme="light"] .azkar-section,
body.light-theme .azkar-section,
html[data-theme="light"] .spiritual-garden-section,
body.light-theme .spiritual-garden-section,
html[data-theme="light"] .daily-wird-section,
body.light-theme .daily-wird-section,
html[data-theme="light"] .seasons-section,
body.light-theme .seasons-section,
html[data-theme="light"] .categorized-duas-section,
body.light-theme .categorized-duas-section,
html[data-theme="light"] .asmaa-section,
body.light-theme .asmaa-section,
html[data-theme="light"] .islamic-media-section,
body.light-theme .islamic-media-section,
html[data-theme="light"] .stories-section,
body.light-theme .stories-section,
html[data-theme="light"] .quiz-section,
body.light-theme .quiz-section,
html[data-theme="light"] .prayers-section,
body.light-theme .prayers-section,
html[data-theme="light"] .quran-section,
body.light-theme .quran-section,
html[data-theme="light"] .faq-section,
body.light-theme .faq-section,
html[data-theme="light"] .cemetery-guide-section,
body.light-theme .cemetery-guide-section,
html[data-theme="light"] #zakat-calculator-section,
body.light-theme #zakat-calculator-section,
html[data-theme="light"] #nearby-mosques-section,
body.light-theme #nearby-mosques-section {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}
    html[data-theme="light"] .quran-khatma-section {
        color: var(--gold-500) !important;
    }
    /* 2. البطاقات والعناصر الحاوية */
    html[data-theme="light"] .cemetery-dua-featured-card,
    body.light-theme .cemetery-dua-featured-card,
    html[data-theme="light"] .cemetery-card,
    body.light-theme .cemetery-card,
    html[data-theme="light"] .quran-hub-resume-card,
    body.light-theme .quran-hub-resume-card,
    html[data-theme="light"] .quran-surah-item-card,
    body.light-theme .quran-surah-item-card,
    html[data-theme="light"] .quran-juz-item-card,
    body.light-theme .quran-juz-item-card,
    html[data-theme="light"] .zakat-calc-card,
    body.light-theme .zakat-calc-card,
    html[data-theme="light"] .mosques-container-card,
    body.light-theme .mosques-container-card,
    html[data-theme="light"] .mosque-item-card,
    body.light-theme .mosque-item-card,
    html[data-theme="light"] .ayah-action-sheet-card,
    body.light-theme .ayah-action-sheet-card {
        background-color: #FFFFFF !important;
        border-color: var(--border-color) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
    }

/* 3. عناصر الإدخال والقوائم المنسدلة */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
body.light-theme input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
body.light-theme select,
html[data-theme="light"] textarea,
body.light-theme textarea {
    background-color: transparent !important;
    color: #193B34 !important;
    border-color: transparent !important;
}

    html[data-theme="light"] .setting-item-row select,
    body.light-theme .setting-item-row select
    {
        border-color: var(--gold-rgb) !important;
    }

    html[data-theme="light"] #media-search-input,
    body.light-theme #media-search-input {
        border-color: #193B34 !important;
    }

        html[data-theme="light"] select option,
        body.light-theme select option {
            background-color: #FFFFFF !important;
            color: #193B34 !important;
        }
        /* 4. تبويبات وأزرار التصفية في الوضع النهاري */
        html[data-theme="light"] .quran-tab-btn,
        body.light-theme .quran-tab-btn,
        html[data-theme="light"] .khatma-filter-btn,
        body.light-theme .khatma-filter-btn,
        html[data-theme="light"] .azkar-tab-btn,
        body.light-theme .azkar-tab-btn,
        html[data-theme="light"] .duas-tab-btn,
        body.light-theme .duas-tab-btn,
        html[data-theme="light"] .nawawi-filter-pill,
        body.light-theme .nawawi-filter-pill,
        html[data-theme="light"] .media-filter-btn,
        body.light-theme .media-filter-btn,
        html[data-theme="light"] .surah-pill,
        body.light-theme .surah-pill,
        html[data-theme="light"] .quran-hub-nav-tab,
        body.light-theme .quran-hub-nav-tab {
            color: var(--text-secondary);
            background: transparent;
        }

            html[data-theme="light"] .quran-tab-btn.active,
            body.light-theme .quran-tab-btn.active,
            html[data-theme="light"] .khatma-filter-btn.active,
            body.light-theme .khatma-filter-btn.active,
            html[data-theme="light"] .azkar-tab-btn.active,
            body.light-theme .azkar-tab-btn.active,
            html[data-theme="light"] .duas-tab-btn.active,
            body.light-theme .duas-tab-btn.active,
            html[data-theme="light"] .nawawi-filter-pill.active,
            body.light-theme .nawawi-filter-pill.active,
            html[data-theme="light"] .media-filter-btn.active,
            body.light-theme .media-filter-btn.active,
            html[data-theme="light"] .surah-pill.active,
            body.light-theme .surah-pill.active,
            html[data-theme="light"] .quran-hub-nav-tab.active,
            body.light-theme .quran-hub-nav-tab.active {
                background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
                color: #FFFFFF !important;
                border-color: var(--primary) !important;
                box-shadow: 0 4px 14px rgba(7, 63, 53, 0.2) !important;
            }
        /* 5. زر btn-gold الموحد لضمان التباين العالي دائماً */
        html[data-theme="light"] .btn-gold,
        body.light-theme .btn-gold {
            background: linear-gradient(135deg, #c59318 0%, #a17400 100%) !important;
            color: #ffffff !important;
            border-color: #a17400 !important;
            box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25) !important;
        }
        /* 6. نافذة إجراءات الآية وقوائم الإشعارات */
        html[data-theme="light"] .ayah-sheet-action-item,
        body.light-theme .ayah-sheet-action-item {
            background: #FFFFFF !important;
            color: var(--text-primary) !important;
            border-color: var(--border-color) !important;
        }

            html[data-theme="light"] .ayah-sheet-action-item:hover,
            body.light-theme .ayah-sheet-action-item:hover {
                background: var(--bg-elevated) !important;
                border-color: var(--gold-400) !important;
            }

        html[data-theme="light"] .zakat-category-box,
        body.light-theme .zakat-category-box,
        html[data-theme="light"] .zakat-settings-bar,
        body.light-theme .zakat-settings-bar {
            background: var(--bg-elevated) !important;
            border-color: var(--border-color) !important;
        }
        /* ==========================================================================
   7. التدقيق المتخصص للأقسام الستة (The 6 Target Sections Deep Light-Mode)
   .seasons-section | .asmaa-section | .islamic-media-section |
   .quran-section | .cemetery-guide-section | .faq-section
   ========================================================================== */
        /* أ. مواسم الطاعات (.seasons-section) */
        html[data-theme="light"] .season-card,
        body.light-theme .season-card {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        }

        html[data-theme="light"] .season-card-title,
        body.light-theme .season-card-title {
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .season-card-virtue,
        body.light-theme .season-card-virtue {
            color: var(--text-secondary) !important;
        }

        html[data-theme="light"] .season-countdown-box,
        body.light-theme .season-countdown-box {
            background: var(--bg-elevated) !important;
            border-color: rgba(168, 121, 39, 0.3) !important;
        }

        html[data-theme="light"] .countdown-val,
        body.light-theme .countdown-val {
            color: var(--gold-500) !important;
        }

        html[data-theme="light"] .countdown-label,
        body.light-theme .countdown-label {
            color: var(--text-muted) !important;
        }
        /* ب. فتاوى ودليل أحكام الجنائز (.faq-section) */
        html[data-theme="light"] .faq-item,
        body.light-theme .faq-item {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.04) !important;
        }

            html[data-theme="light"] .faq-item.active,
            body.light-theme .faq-item.active {
                border-color: var(--gold-400) !important;
                box-shadow: 0 6px 22px rgba(168, 121, 39, 0.12) !important;
            }

        html[data-theme="light"] .faq-question,
        body.light-theme .faq-question {
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .faq-body,
        body.light-theme .faq-body {
            color: var(--text-secondary) !important;
            border-top: 1px solid var(--border-color) !important;
        }

            html[data-theme="light"] .faq-body strong,
            body.light-theme .faq-body strong {
                color: var(--text-primary) !important;
            }

            html[data-theme="light"] .faq-body em,
            body.light-theme .faq-body em {
                color: var(--gold-600) !important;
            }
        /* ج. أسماء الله الحسنى (.asmaa-section) */
        html[data-theme="light"] .asmaa-card,
        body.light-theme .asmaa-card {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        }

            html[data-theme="light"] .asmaa-card:hover,
            body.light-theme .asmaa-card:hover {
                border-color: var(--gold-400) !important;
                box-shadow: 0 8px 24px rgba(7, 63, 53, 0.08) !important;
            }

        html[data-theme="light"] .asmaa-card-name,
        body.light-theme .asmaa-card-name,
        html[data-theme="light"] .asmaa-name-calligraphy,
        body.light-theme .asmaa-name-calligraphy {
            color: var(--primary) !important;
            text-shadow: none !important;
        }

        html[data-theme="light"] .asmaa-card-meaning,
        body.light-theme .asmaa-card-meaning {
            color: var(--text-secondary) !important;
        }

        html[data-theme="light"] .asmaa-card-num,
        body.light-theme .asmaa-card-num {
            background: var(--bg-elevated) !important;
            color: var(--primary) !important;
            border: 1px solid var(--border-color) !important;
        }

        html[data-theme="light"] .asmaa-card-cat,
        body.light-theme .asmaa-card-cat {
            background: var(--accent-bg) !important;
            color: var(--accent) !important;
            border: 1px solid rgba(168, 121, 39, 0.25) !important;
        }
        /* د. المرئيات والصوتيات الإسلامية (.islamic-media-section) */
        html[data-theme="light"] .media-card,
        body.light-theme .media-card {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        }

        html[data-theme="light"] .media-card-title,
        body.light-theme .media-card-title {
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .media-card-desc,
        body.light-theme .media-card-desc {
            color: var(--text-secondary) !important;
        }

        html[data-theme="light"] .media-card-speaker,
        body.light-theme .media-card-speaker {
            color: var(--text-muted) !important;
        }

        html[data-theme="light"] .media-card-badge,
        body.light-theme .media-card-badge {
            background: rgba(7, 63, 53, 0.85) !important;
            color: #FFFFFF !important;
        }

        html[data-theme="light"] .media-player-title,
        body.light-theme .media-player-title {
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .media-player-desc,
        body.light-theme .media-player-desc {
            color: var(--text-secondary) !important;
        }

        html[data-theme="light"] .media-stats-pill,
        body.light-theme .media-stats-pill {
            background: var(--bg-elevated) !important;
            color: var(--text-secondary) !important;
            border: 1px solid var(--border-color) !important;
        }
        /* هـ. قبسات من النور وقرآن المتوفى (.quran-section & .real-mushaf-toolbar) */
        html[data-theme="light"] .verse-card,
        body.light-theme .verse-card {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        }

        html[data-theme="light"] .verse-text,
        body.light-theme .verse-text {
            color: var(--primary) !important;
        }

        html[data-theme="light"] .verse-source,
        body.light-theme .verse-source {
            color: var(--text-muted) !important;
        }

        html[data-theme="light"] .real-mushaf-toolbar,
        body.light-theme .real-mushaf-toolbar {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.04) !important;
        }

        html[data-theme="light"] .mushaf-page-input,
        body.light-theme .mushaf-page-input {
            background: #FFFFFF !important;
            border-color: var(--gold-400) !important;
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .mushaf-verses-count,
        body.light-theme .mushaf-verses-count {
            background: var(--bg-elevated) !important;
            color: var(--text-secondary) !important;
        }
        /* و. آداب زيارة القبور ودعاء المقابر (.cemetery-guide-section) */
        html[data-theme="light"] .cemetery-dua-featured-card,
        body.light-theme .cemetery-dua-featured-card {
            background: #FFFFFF !important;
            border: 2px solid var(--gold-400) !important;
            box-shadow: 0 6px 25px rgba(168, 121, 39, 0.12) !important;
        }

        html[data-theme="light"] .cemetery-dua-tag,
        body.light-theme .cemetery-dua-tag {
            color: var(--gold-600) !important;
        }

        html[data-theme="light"] .cemetery-dua-text,
        body.light-theme .cemetery-dua-text {
            color: var(--primary) !important;
        }

        html[data-theme="light"] .cemetery-dua-narrator,
        body.light-theme .cemetery-dua-narrator {
            color: var(--text-muted) !important;
        }

        html[data-theme="light"] .cemetery-dua-actions,
        body.light-theme .cemetery-dua-actions {
            border-top: 1px solid var(--border-color) !important;
        }

        html[data-theme="light"] .cemetery-card,
        body.light-theme .cemetery-card {
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 4px 18px rgba(7, 63, 53, 0.05) !important;
        }

        html[data-theme="light"] .cemetery-card-title,
        body.light-theme .cemetery-card-title {
            color: var(--text-primary) !important;
        }

        html[data-theme="light"] .cemetery-card-icon,
        body.light-theme .cemetery-card-icon {
            color: var(--emerald-400) !important;
        }

        html[data-theme="light"] .cemetery-list,
        body.light-theme .cemetery-list {
            color: var(--text-secondary) !important;
        }

            html[data-theme="light"] .cemetery-list li strong,
            body.light-theme .cemetery-list li strong {
                color: var(--text-primary) !important;
            }
        /* ==========================================================================
   المصحف الذهبي الشريف المدمج بدون إنترنت (Golden Quran Offline Reader)
   ========================================================================== */
        .golden-quran-wrapper {
            position: relative;
            width: 100%;
            max-width: 820px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
            user-select: none;
            -webkit-user-select: none;
            transition: all 0.3s ease;
        }
            /* الوضع الليلي الملكي الدافئ (AMOLED Dark - Default) */
            .golden-quran-wrapper.theme-golden-night {
                background: #000000 !important;
                color: #e5c07b !important;
                border: 1px solid rgba(212, 175, 55, 0.3);
            }

                .golden-quran-wrapper.theme-golden-night .golden-mushaf-img {
                    filter: invert(1) sepia(0.32) brightness(1.02) contrast(1.08) !important;
                }
            /* وضع الورق الكريمي الهادئ (Eye-Comfort Cream Paper) */
            .golden-quran-wrapper.theme-golden-cream {
                background: #fbf7ee !important;
                color: #3b2c15 !important;
                border: 1px solid rgba(184, 134, 11, 0.35);
            }

                .golden-quran-wrapper.theme-golden-cream .golden-mushaf-viewport {
                    background: #fbf7ee !important;
                }

                .golden-quran-wrapper.theme-golden-cream .golden-page-side {
                    background: #fbf7ee !important;
                }

                .golden-quran-wrapper.theme-golden-cream .golden-mushaf-img {
                    filter: contrast(1.15) brightness(0.92) !important;
                }
        /* الترويسة الذهبية العلوية (Top Header) */
        .golden-mushaf-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px 8px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            z-index: 10;
            position: relative;
        }

        .theme-golden-night .golden-mushaf-header {
            background: rgba(0, 0, 0, 0.85);
            border-bottom-color: rgba(212, 175, 55, 0.2);
        }

        .theme-golden-cream .golden-mushaf-header {
            background: rgba(246, 239, 225, 0.9);
            border-bottom-color: rgba(184, 134, 11, 0.25);
        }

        .golden-hdr-btn {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            min-height: 40px;
            gap: 6px;
            font-family: inherit;
            font-size: 1.25rem;
            transition: transform 0.2s, opacity 0.2s;
            padding: 6px 8px;
        }

            .golden-hdr-btn i {
                font-size: 1.25rem;
            }

            .golden-hdr-btn:active {
                transform: scale(0.95);
            }

        .golden-hdr-surah {
            font-size: 1.15rem;
            font-weight: 800;
            color: #e5c07b;
        }

        .theme-golden-cream .golden-hdr-surah {
            color: #8a6519;
        }

        .golden-hdr-surah i {
            font-size: 0.85rem;
        }

        .golden-grid-icon {
            display: grid;
            grid-template-columns: repeat(2, 8px);
            gap: 3px;
        }

            .golden-grid-icon div {
                width: 8px;
                height: 8px;
                border: 2px solid #e5c07b;
                border-radius: 2px;
            }

        .theme-golden-cream .golden-grid-icon div {
            border-color: #8a6519;
        }

        .golden-hdr-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .golden-juz-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #e5c07b;
        }

        .theme-golden-cream .golden-juz-title {
            color: #8a6519;
        }

        .golden-bookmark-icon {
            font-size: 1.25rem;
            color: #e5c07b;
            transition: all 0.2s;
        }

            .golden-bookmark-icon.is-active {
                color: #f59e0b;
                filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
            }

        .theme-golden-cream .golden-bookmark-icon {
            color: #8a6519;
        }
        /* شاشة عرض صفحة المصحف (Viewport) */
        .golden-mushaf-viewport {
            position: relative;
            min-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            overflow: hidden;
            touch-action: pan-y;
        }

        @media (max-width: 678px) {
            .golden-mushaf-viewport {
                min-height: unset !important;
            }
        }
        /* حاوية العرض المزدوج (Dual Spread Container) */
        .golden-spread-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            position: relative;
        }

        .golden-page-side {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .golden-page-right {
            display: none;
        }

        .golden-spread-spine {
            display: none;
        }

        .golden-mushaf-img {
            width: 100%;
            height: auto;
            max-height: calc(100vh - 120px);
            object-fit: contain;
            display: block;
            margin: 0 auto;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }
        /* على الشاشات الكبيرة (أجهزة الكمبيوتر والتابلت >= 992px): عرض صفحتين متقابلتين جنباً إلى جنب */
        @media (min-width: 992px) {
            .golden-quran-wrapper {
                max-width: 1360px !important;
            }

            .golden-page-side {
                width: 50%;
            }

            .golden-page-right {
                display: flex;
            }

            .golden-page-left {
                display: flex;
            }
            /* طية المصحف المنتصفية الأصيلة */
            .golden-spread-spine {
                display: block;
                width: 1px;
                height: 94%;
                background: linear-gradient( to bottom, transparent, rgba(212, 175, 55, 0.4) 15%, rgba(212, 175, 55, 0.4) 85%, transparent );
                box-shadow: -2px 0 8px rgba(0, 0, 0, 0.9), 2px 0 8px rgba(0, 0, 0, 0.9);
                margin: 0 4px;
                z-index: 2;
                flex-shrink: 0;
            }

            .theme-golden-cream .golden-spread-spine {
                background: linear-gradient( to bottom, transparent, rgba(184, 134, 11, 0.3) 15%, rgba(184, 134, 11, 0.3) 85%, transparent );
                box-shadow: -2px 0 6px rgba(100, 70, 20, 0.15), 2px 0 6px rgba(100, 70, 20, 0.15);
            }

            .golden-mushaf-viewport {
                min-height: auto;
                padding: 6px 16px;
            }

            .golden-mushaf-img {
                max-height: calc(100vh - 175px);
            }
        }
        /* شريط موضع الوقوف المحفوظ (Ribbon Indicator) */
        .golden-page-ribbon {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 5;
            background: linear-gradient(135deg, #d4af37, #996515);
            color: #000;
            padding: 4px 18px;
            border-radius: 0 0 12px 12px;
            font-size: 0.82rem;
            font-weight: 800;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            gap: 6px;
            pointer-events: none;
            animation: slideDownRibbon 0.3s ease;
        }

        @keyframes slideDownRibbon {
            from {
                top: -30px;
                opacity: 0;
            }

            to {
                top: 0;
                opacity: 1;
            }
        }
        /* مناطق النقر الجانبية للتقليب السريع باللمس */
        .golden-tap-zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 22%;
            z-index: 3;
            cursor: pointer;
        }

        .golden-tap-prev {
            left: 0;
        }

        .golden-tap-next {
            right: 0;
        }
        /* التذييل السفلي (Bottom Footer) */
        .golden-mushaf-footer {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 16px 14px;
            background: transparent !important;
            border-top: none !important;
        }

        @media (max-width: 568px) {
            .golden-mushaf-footer {
                padding: 8px 8px 14px;
            }
        }

        .theme-golden-night .golden-mushaf-footer {
            background: rgba(0, 0, 0, 0.85);
        }

        .theme-golden-cream .golden-mushaf-footer {
            background: rgba(246, 239, 225, 0.9);
            border-top-color: rgba(184, 134, 11, 0.2);
        }

        .golden-page-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: rgba(17, 17, 17, 0.95);
            border: 1px solid rgba(212, 175, 55, 0.45);
            border-radius: 24px;
            padding: 6px 16px;
            color: #e5c07b;
            font-size: 0.92rem;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
            transition: transform 0.2s, background 0.2s, border-color 0.2s;
        }

            .golden-page-pill:hover {
                transform: scale(1.03);
                background: rgba(30, 30, 30, 0.9);
            }

        .golden-pill-divider {
            opacity: 0.4;
            font-size: 0.8rem;
        }

        .golden-pill-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            font-weight: 700;
            background: rgba(212, 175, 55, 0.16);
            border: 1px solid rgba(212, 175, 55, 0.38);
            border-radius: 14px;
            padding: 3px 12px;
            color: #fef08a;
            transition: all 0.2s ease;
        }

        .golden-page-pill:hover .golden-pill-tag {
            background: rgba(212, 175, 55, 0.28);
            border-color: rgba(212, 175, 55, 0.65);
            color: #ffffff;
        }

        .theme-golden-cream .golden-page-pill {
            background: #f1ebd9;
            border-color: rgba(184, 134, 11, 0.4);
            color: #8a6519;
        }

        .theme-golden-cream .golden-pill-tag {
            background: rgba(184, 134, 11, 0.12);
            border-color: rgba(184, 134, 11, 0.3);
            color: #6b4d12;
        }

        .golden-footer-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .golden-footer-action-btn {
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.35);
            color: #e5c07b;
            font-size: 0.8rem;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-family: inherit;
            transition: all 0.2s;
        }

            .golden-footer-action-btn:hover {
                background: rgba(212, 175, 55, 0.25);
            }

        .theme-golden-cream .golden-footer-action-btn {
            background: rgba(184, 134, 11, 0.1);
            border-color: rgba(184, 134, 11, 0.3);
            color: #8a6519;
        }
        /* مودال الفهرس الأنيق (Golden Quran Index Modal) */
        .golden-index-modal {
            position: fixed;
            inset: 0;
            z-index: 100010 !important;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

            .golden-index-modal.open {
                display: flex;
                animation: fadeIn 0.25s ease;
            }

        .golden-index-card {
            width: 100%;
            max-width: 580px;
            max-height: 85vh;
            background: #0d131a;
            border: 1px solid var(--gold-500, #d4af37);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
            color: #f1ebd9;
        }

        .golden-index-hdr {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

            .golden-index-hdr h3 {
                margin: 0;
                font-size: 1.15rem;
                font-weight: 800;
                color: #e5c07b;
            }

        .golden-index-close-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .golden-index-tabs {
            display: flex;
            background: rgba(0, 0, 0, 0.4);
            border-bottom: 1px solid rgba(212, 175, 55, 0.15);
            padding: 4px 8px;
            gap: 6px;
        }

        .golden-index-tab-btn {
            flex: 1;
            background: none;
            border: none;
            color: #94a3b8;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.88rem;
            padding: 8px 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

            .golden-index-tab-btn.active {
                background: rgba(212, 175, 55, 0.18);
                color: #e5c07b;
                border: 1px solid rgba(212, 175, 55, 0.35);
            }

        .golden-index-search {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

            .golden-index-search input {
                width: 100%;
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(212, 175, 55, 0.25);
                border-radius: 20px;
                padding: 8px 16px;
                color: #fff;
                font-family: inherit;
                font-size: 0.88rem;
                outline: none;
            }

        .golden-index-list {
            flex: 1;
            overflow-y: auto;
            padding: 10px 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .golden-index-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 10px 14px;
            cursor: pointer;
            transition: all 0.2s;
            color: inherit;
        }

            .golden-index-item:hover {
                background: rgba(212, 175, 55, 0.12);
                border-color: rgba(212, 175, 55, 0.35);
                transform: translateX(-3px);
            }

        .golden-index-item-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .golden-index-num {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #e5c07b;
            display: grid;
            place-items: center;
            font-size: 0.8rem;
            font-weight: 800;
        }

        .golden-index-name {
            font-size: 0.98rem;
            font-weight: 800;
        }

        .golden-index-meta {
            font-size: 0.78rem;
            color: #94a3b8;
        }

        .golden-index-page {
            font-size: 0.85rem;
            font-weight: 800;
            color: #e5c07b;
            background: rgba(212, 175, 55, 0.12);
            padding: 3px 10px;
            border-radius: 12px;
        }
        /* ==========================================================================
   أزرار الأسهم للشاشات الكبيرة فقط (Desktop Navigation Arrows < >)
   ========================================================================== */
        .golden-desktop-nav-btn {
            display: none; /* مخفية تماماً على الهواتف والشاشات الصغيرة */
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(18, 18, 18, 0.85);
            border: 1px solid rgba(212, 175, 55, 0.45);
            color: #e5c07b;
            font-size: 1.25rem;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
            transition: all 0.25s ease;
        }

            .golden-desktop-nav-btn:hover {
                background: rgba(212, 175, 55, 0.25);
                border-color: rgba(212, 175, 55, 0.85);
                color: #fff;
                transform: translateY(-50%) scale(1.12);
                box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
            }

            .golden-desktop-nav-btn:active {
                transform: translateY(-50%) scale(0.95);
            }

        .golden-nav-right {
            right: 18px;
        }

        .golden-nav-left {
            left: 18px;
        }

        .theme-golden-cream .golden-desktop-nav-btn {
            background: rgba(246, 239, 225, 0.9);
            border-color: rgba(184, 134, 11, 0.45);
            color: #8a6519;
        }

            .theme-golden-cream .golden-desktop-nav-btn:hover {
                background: #f1ebd9;
                border-color: #8a6519;
                color: #4a340b;
            }

        @media (min-width: 992px) {
            .golden-desktop-nav-btn {
                display: flex;
            }
        }
        /* ==========================================================================
   وضع ملء الشاشة الكامل والقراءة الغامرة (Fullscreen & Immersive Mode)
   ========================================================================== */
        .golden-quran-wrapper.is-fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            border-radius: 0 !important;
            z-index: 99999 !important;
            margin: 0 !important;
            border: none !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            padding-top: env(safe-area-inset-top, 0px) !important;
            padding-bottom: env(safe-area-inset-bottom, 0px) !important;
            padding-left: env(safe-area-inset-left, 0px) !important;
            padding-right: env(safe-area-inset-right, 0px) !important;
            box-sizing: border-box !important;
        }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-header {
                position: relative !important;
                z-index: 30 !important;
                pointer-events: auto !important;
                flex: 0 0 auto !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-footer {
                position: relative !important;
                z-index: 30 !important;
                pointer-events: auto !important;
                flex: 0 0 auto !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-hdr-btn {
                pointer-events: auto !important;
                cursor: pointer !important;
                touch-action: manipulation !important;
                -webkit-tap-highlight-color: transparent !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-page-pill {
                pointer-events: auto !important;
                cursor: pointer !important;
                touch-action: manipulation !important;
                -webkit-tap-highlight-color: transparent !important;
            }

            .golden-quran-wrapper.is-fullscreen.theme-golden-night {
                background: #000000 !important;
            }

            .golden-quran-wrapper.is-fullscreen.theme-golden-cream {
                background: #fbf7ee !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-viewport {
                flex: 1 1 auto !important;
                min-height: auto !important;
                height: auto !important;
                max-height: calc(100vh - 105px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-img {
                max-height: calc(100vh - 105px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
            }
        /* شريط التنبيه العربي الأنيق لوضع ملء الشاشة بدون أي إشارة لـ localhost */
        .golden-fullscreen-arabic-toast {
            position: absolute;
            top: calc(env(safe-area-inset-top, 0px) + 14px);
            left: 50%;
            transform: translateX(-50%) translateY(-24px);
            background: rgba(12, 20, 16, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(212, 175, 55, 0.5);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
            border-radius: 30px;
            padding: 8px 18px;
            z-index: 100000;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #ffffff;
            font-family: 'Tajawal', sans-serif;
            font-size: 0.86rem;
            font-weight: 600;
            white-space: nowrap;
            pointer-events: auto;
            cursor: pointer;
            opacity: 0;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            direction: inherit;
        }

            .golden-fullscreen-arabic-toast.is-visible {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }

            .golden-fullscreen-arabic-toast i {
                color: var(--gold-400, #d4af37);
                font-size: 0.95rem;
            }

            .golden-fullscreen-arabic-toast .fs-toast-action {
                background: rgba(212, 175, 55, 0.18);
                color: var(--gold-400, #d4af37);
                border-radius: 20px;
                padding: 2px 10px;
                font-size: 0.78rem;
                font-weight: 700;
                margin-inline-start: 4px;
            }
        /* وضع القراءة الغامرة (إخفاء الترويسة والكبسولة بنقرة خفيفة) */
        .golden-quran-wrapper.is-immersive .golden-mushaf-header,
        .golden-quran-wrapper.is-immersive .golden-mushaf-footer,
        .golden-quran-wrapper.is-immersive .golden-desktop-nav-btn {
            opacity: 0 !important;
            pointer-events: none !important;
            transform: translateY(-8px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .golden-quran-wrapper .golden-mushaf-header,
        .golden-quran-wrapper .golden-mushaf-footer,
        .golden-quran-wrapper .golden-desktop-nav-btn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        /* ==========================================================================
   نافذة التفاعل مع الآية والمراجع (طبق الأصل من المصحف الذهبي)
   ========================================================================== */
        .golden-ayah-modal {
            position: fixed;
            inset: 0;
            z-index: 100020 !important;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

            .golden-ayah-modal.open {
                opacity: 1;
                visibility: visible;
            }

        .golden-ayah-sheet {
            width: 100%;
            max-width: 580px;
            max-height: 88vh;
            background: #131316;
            border-radius: 28px 28px 0 0;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-bottom: none;
            box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 12px 20px 30px;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .golden-ayah-modal.open .golden-ayah-sheet {
            transform: translateY(0);
        }

        .golden-sheet-handle {
            width: 44px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            margin: 0 auto 10px;
            flex-shrink: 0;
        }

        .golden-sheet-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        .golden-sheet-close-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: #e5c07b;
            font-size: 1.3rem;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: background 0.2s;
        }

            .golden-sheet-close-btn:hover {
                background: rgba(255, 255, 255, 0.16);
            }

        .golden-sheet-topbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .golden-sheet-icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(212, 175, 55, 0.2);
            color: #e5c07b;
            font-size: 0.95rem;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }

            .golden-sheet-icon-btn:hover {
                background: rgba(212, 175, 55, 0.2);
                border-color: rgba(212, 175, 55, 0.5);
                color: #fff;
            }
        /* عرض نص الآية */
        .golden-ayah-display {
            text-align: center;
            padding: 10px 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .golden-ayah-text {
            font-family: "Amiri Quran", "Traditional Arabic", serif;
            font-size: 1.35rem;
            line-height: 2.2;
            color: #f7f1e1;
            text-shadow: 0 0 1px rgba(247, 241, 225, 0.2);
        }

        .golden-ayah-ref {
            display: inline-block;
            margin-top: 10px;
            font-size: 0.88rem;
            font-weight: 700;
            color: #94a3b8;
            background: rgba(255, 255, 255, 0.05);
            padding: 2px 14px;
            border-radius: 12px;
        }
        /* شريط الإجراءات السريعة الأربعة */
        .golden-quick-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin: 16px 0 20px;
        }

        .golden-action-pill {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 16px;
            padding: 10px 4px;
            color: #e2e8f0;
            font-family: inherit;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

            .golden-action-pill i {
                font-size: 1.15rem;
            }

            .golden-action-pill:hover,
            .golden-action-pill:active {
                background: rgba(212, 175, 55, 0.16);
                border-color: rgba(212, 175, 55, 0.5);
                transform: translateY(-2px);
            }

            .golden-action-pill.btn-action-play {
                background: rgba(212, 175, 55, 0.12);
                border-color: rgba(212, 175, 55, 0.4);
            }
        /* عنوان قائمة المراجع */
        .golden-references-title {
            font-size: 0.95rem;
            font-weight: 800;
            color: #f1f5f9;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        /* قائمة المراجع */
        .golden-references-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .golden-ref-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            overflow: hidden;
            transition: border-color 0.2s, background 0.2s;
        }

            .golden-ref-card:hover {
                background: rgba(255, 255, 255, 0.06);
                border-color: rgba(212, 175, 55, 0.3);
            }

        .golden-ref-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 13px 14px;
            cursor: pointer;
            user-select: none;
        }

        .golden-ref-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .golden-ref-bar {
            width: 3.5px;
            height: 22px;
            border-radius: 2px;
        }

        .bar-green {
            background: #10b981;
        }

        .bar-blue {
            background: #3b82f6;
        }

        .bar-red {
            background: #ef4444;
        }

        .bar-cyan {
            background: #06b6d4;
        }

        .bar-brown {
            background: #b45309;
        }

        .bar-gold {
            background: #f59e0b;
        }

        .golden-ref-icon {
            font-size: 1.05rem;
        }

        .color-green {
            color: #10b981;
        }

        .color-blue {
            color: #3b82f6;
        }

        .color-red {
            color: #ef4444;
        }

        .color-cyan {
            color: #06b6d4;
        }

        .color-brown {
            color: #d97706;
        }

        .color-gold {
            color: #f59e0b;
        }

        .golden-ref-name {
            font-size: 0.92rem;
            font-weight: 700;
            color: #e2e8f0;
        }

        .golden-ref-arrow {
            font-size: 0.75rem;
            color: #64748b;
            transition: transform 0.25s ease;
        }

        .golden-ref-card.open .golden-ref-arrow {
            transform: rotate(-90deg);
            color: #e5c07b;
        }

        .golden-ref-body {
            display: none;
            padding: 12px 16px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.9rem;
            line-height: 1.9;
            color: #cbd5e1;
            background: rgba(0, 0, 0, 0.25);
        }

        .golden-ref-card.open .golden-ref-body {
            display: block;
            animation: fadeInRef 0.25s ease;
        }

        @keyframes fadeInRef {
            from {
                opacity: 0;
                transform: translateY(-4px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* ==========================================================================
   المشغل الصوتي العائم المدمج للتلاوة (Floating Mini Player)
   ========================================================================== */
        .golden-mini-player {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100025 !important;
            width: calc(100% - 32px);
            max-width: 440px;
            background: rgba(18, 18, 20, 0.94);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(212, 175, 55, 0.5);
            border-radius: 36px;
            padding: 8px 14px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
            animation: slideUpPlayer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideUpPlayer {
            from {
                transform: translate(-50%, 40px);
                opacity: 0;
            }

            to {
                transform: translate(-50%, 0);
                opacity: 1;
            }
        }

        .golden-player-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .golden-player-btn-play {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4af37, #996515);
            border: none;
            color: #000;
            font-size: 1.1rem;
            display: grid;
            place-items: center;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
            transition: transform 0.2s;
        }

            .golden-player-btn-play:active {
                transform: scale(0.92);
            }

        .golden-player-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .golden-player-title {
            font-size: 0.88rem;
            font-weight: 800;
            color: #f8fafc;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .golden-player-reciter {
            font-size: 0.75rem;
            color: #94a3b8;
        }

        .golden-player-btn-close {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 4px 8px;
            transition: color 0.2s;
        }

            .golden-player-btn-close:hover {
                color: #ef4444;
            }
        /* ==========================================================================
   مودال مساعد الحفظ وتكرار الآيات الكريمة (Ayah Memorization & Repetition Studio)
   ========================================================================== */
        .golden-memorize-modal {
            position: fixed;
            inset: 0;
            z-index: 100030 !important;
            background: rgba(0, 0, 0, 0.82);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

            .golden-memorize-modal.open {
                opacity: 1;
                visibility: visible;
            }

        .golden-memorize-card {
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            background: linear-gradient(165deg, #0d1e18 0%, #06120e 100%);
            border: 1.5px solid rgba(212, 175, 55, 0.4);
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .golden-memorize-modal.open .golden-memorize-card {
            transform: scale(1);
        }

        .golden-memorize-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            background: rgba(0, 0, 0, 0.4);
        }

        .golden-memorize-title-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
        }

            .golden-memorize-title-wrap i {
                font-size: 1.5rem;
            }

            .golden-memorize-title-wrap h3 {
                margin: 0;
                font-size: 1.15rem;
                font-weight: 800;
                color: #fef08a;
            }

        .golden-memorize-close {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 1.8rem;
            cursor: pointer;
            line-height: 1;
            padding: 4px 8px;
            transition: color 0.2s;
        }

            .golden-memorize-close:hover {
                color: #ef4444;
            }

        .memorize-control-panel {
            padding: 14px 20px;
            background: rgba(0, 0, 0, 0.25);
            border-bottom: 1px solid rgba(212, 175, 55, 0.15);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .memorize-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        @media (max-width: 580px) {
            .memorize-row {
                grid-template-columns: 1fr;
            }
        }

        .memorize-col {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

            .memorize-col label {
                font-size: 0.85rem;
                font-weight: 700;
                color: var(--gold-400);
            }

        .memorize-select {
            background: #061510;
            border: 1px solid rgba(212, 175, 55, 0.35);
            color: #f8fafc;
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 0.88rem;
            font-family: inherit;
            outline: none;
        }

        .memorize-repeat-pills {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }

        .repeat-pill {
            background: #061510;
            border: 1px solid rgba(212, 175, 55, 0.25);
            color: #cbd5e1;
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

            .repeat-pill:hover {
                border-color: #d4af37;
                color: #ffd875;
            }

            .repeat-pill.active {
                background: linear-gradient(135deg, #d4af37, #996515);
                color: #0b1f17;
                border-color: #d4af37;
                font-weight: 800;
                box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
            }

        .memorize-row-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            padding-top: 4px;
        }

        .memorize-toggle-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: #cbd5e1;
            cursor: pointer;
        }

            .memorize-toggle-label input {
                accent-color: #d4af37;
                width: 16px;
                height: 16px;
                cursor: pointer;
            }

        .memorize-current-counter .counter-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 700;
            animation: pulseBadge 1s infinite alternate;
        }

        @keyframes pulseBadge {
            0% {
                transform: scale(1);
            }

            100% {
                transform: scale(1.05);
            }
        }

        .memorize-ayahs-list {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .memorize-ayah-card {
            background: rgba(14, 38, 30, 0.6);
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 16px;
            padding: 14px 16px;
            transition: all 0.25s ease;
            position: relative;
            cursor: pointer;
        }

            .memorize-ayah-card:hover {
                background: rgba(20, 52, 41, 0.85);
                border-color: rgba(212, 175, 55, 0.45);
            }

            .memorize-ayah-card.is-active {
                background: rgba(30, 68, 54, 0.95);
                border-color: #fef08a;
                box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
            }

        .memorize-ayah-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .memorize-ayah-badge {
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #ffd875;
            font-size: 0.78rem;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 8px;
        }

        .memorize-ayah-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .memorize-ayah-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.78rem;
            font-family: inherit;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

            .memorize-ayah-btn:hover {
                background: rgba(212, 175, 55, 0.2);
                color: #ffd875;
                border-color: #d4af37;
            }

            .memorize-ayah-btn.btn-play-single {
                background: linear-gradient(135deg, #d4af37, #996515);
                color: #0b1f17;
                border: none;
                font-weight: 800;
            }

        .memorize-ayah-card.is-active .memorize-ayah-btn.btn-play-single {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
        }

        .memorize-ayah-text {
            font-family: 'Amiri', 'Traditional Arabic', serif;
            font-size: 1.25rem;
            line-height: 2;
            color: #f8fafc;
            text-align: start;
            direction: rtl;
        }

        .memorize-ayah-card.is-active .memorize-ayah-text {
            color: #fef08a;
        }
        /* ==========================================================================
   نظام الختمة الذكية والـ Streak والأوسمة وبطاقات شارك الأجر للستوري
   ========================================================================== */
        /* كارت الختمة الذكية في لوحة التحكم */
        .smart-khatma-card {
            background: var(--bg-surface, #0c201a);
            border: 1px solid rgba(212, 175, 55, 0.25);
            border-radius: 18px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

            .smart-khatma-card::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 4px;
                background: linear-gradient(90deg, #d4af37, #10b981, #d4af37);
            }

        .khatma-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }

        .khatma-header-title {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .khatma-icon-tag {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: rgba(212, 175, 55, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
        }

        .khatma-title {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text-main, #f8fafc);
        }

        .khatma-subtitle {
            font-size: 0.85rem;
            color: var(--text-muted, #94a3b8);
        }

        .khatma-streak-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(212, 175, 55, 0.22));
            border: 1px solid rgba(245, 158, 11, 0.45);
            padding: 6px 14px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            .khatma-streak-badge:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
                border-color: #f59e0b;
            }

        .streak-fire {
            font-size: 1.25rem;
            animation: pulseFire 1.5s infinite;
        }

        @keyframes pulseFire {
            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.18);
            }
        }

        .streak-num {
            font-size: 1.15rem;
            font-weight: 900;
            color: #fbbf24;
        }

        .streak-txt {
            font-size: 0.85rem;
            font-weight: 700;
            color: #f8fafc;
        }

        .khatma-progress-section {
            margin-bottom: 1.25rem;
        }

        .khatma-progress-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--text-muted, #cbd5e1);
            margin-bottom: 6px;
        }

        .khatma-pct-gold {
            color: #fbbf24;
            font-weight: 800;
        }

        .khatma-bar-wrap {
            width: 100%;
            height: 10px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            overflow: hidden;
        }

        .khatma-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #d4af37);
            border-radius: 20px;
            transition: width 0.4s ease;
        }

        .today-wird-box {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 14px;
            padding: 1.15rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

            .today-wird-box.completed {
                background: rgba(16, 185, 129, 0.08);
                border-color: rgba(16, 185, 129, 0.35);
            }

        .wird-box-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .wird-eyebrow {
            font-size: 0.82rem;
            font-weight: 800;
            color: #fbbf24;
        }

        .wird-pages-range {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-main, #fff);
        }

        .wird-prayer-hint {
            font-size: 0.8rem;
            color: var(--text-muted, #94a3b8);
        }

        .wird-box-actions {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .btn-read-wird {
            padding: 8px 18px;
            font-size: 0.9rem;
            font-weight: 700;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-complete-wird {
            padding: 8px 18px;
            font-size: 0.9rem;
            font-weight: 700;
            background: #10b981;
            color: #fff;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

            .btn-complete-wird:hover {
                background: #059669;
            }

        .badge-done {
            color: #10b981;
            font-weight: 800;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .khatma-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px dashed rgba(255, 255, 255, 0.08);
        }

        .btn-link-action {
            background: none;
            border: none;
            color: var(--text-muted, #cbd5e1);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s;
        }

            .btn-link-action:hover {
                color: #fbbf24;
            }
        /* ==========================================================================
   نظام النوافذ المنبثقة التفاعلية الحديثة (Interactive Modals System)
   ========================================================================== */
        .modal-box {
            background: #163329;
            border: 1px solid #315346;
            border-radius: 22px;
            width: 92%;
            max-width: 580px;
            max-height: calc(100vh - 4.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
            overflow-y: auto;
            padding: 1.6rem 1.8rem;
            position: relative;
            margin: auto;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
            animation: modalBoxPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes modalBoxPopIn {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(14px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1.25rem;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-head-title {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            font-size: 1.15rem;
            font-weight: 800;
            color: #f8fafc;
            font-family: var(--font-arabic-heading, inherit);
            margin: 0;
        }

            .modal-head-title i {
                font-size: 1.15rem;
                flex-shrink: 0;
            }

        .btn-close-modal {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #cbd5e1;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.45rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            line-height: 1;
            flex-shrink: 0;
            padding: 0;
        }

            .btn-close-modal:hover {
                background: #e11d48;
                border-color: #e11d48;
                color: #ffffff;
                transform: rotate(90deg);
            }
        /* نافذة إرشادات الويدجت */
        .widget-guide-modal-box {
            max-width: 500px !important;
        }

        .widget-guide-lead {
            font-size: 0.95rem;
            color: var(--text-muted, #cbd5e1);
            line-height: 1.7;
            margin-bottom: 1.15rem;
        }

        .widget-guide-steps {
            padding-inline-start: 1.4rem;
            margin-bottom: 1.4rem;
            color: var(--text-muted, #cbd5e1);
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            line-height: 1.6;
            font-size: 0.92rem;
        }

            .widget-guide-steps li strong {
                color: #fbbf24;
            }

        .widget-guide-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
            flex-wrap: wrap;
        }
        /* نافذة تخطيط الختمة */
        .khatma-planner-modal {
            max-width: 540px !important;
        }

        .planner-lead {
            font-size: 0.95rem;
            color: var(--text-muted, #cbd5e1);
            line-height: 1.6;
            margin-bottom: 1.25rem;
        }

        .khatma-plans-selector {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-bottom: 1.25rem;
        }

        .plan-option {
            background: rgba(255, 255, 255, 0.04);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 1rem 1.2rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            .plan-option:hover {
                border-color: rgba(212, 175, 55, 0.5);
                background: rgba(212, 175, 55, 0.06);
            }

            .plan-option.active {
                border-color: #d4af37;
                background: rgba(212, 175, 55, 0.12);
                box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
            }

        .plan-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .plan-badge {
            font-size: 0.8rem;
            font-weight: 700;
            color: #fbbf24;
        }

            .plan-badge.popular {
                color: #10b981;
            }

        .plan-days {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--text-main, #fff);
        }

        .plan-desc {
            font-size: 0.85rem;
            color: var(--text-muted, #94a3b8);
        }

        .custom-plan-input-row {
            margin-bottom: 1.5rem;
        }

            .custom-plan-input-row label {
                display: block;
                font-size: 0.88rem;
                font-weight: 700;
                color: var(--text-muted, #cbd5e1);
                margin-bottom: 8px;
            }

        .input-with-action {
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .input-with-action input {
                width: 140px;
                padding: 8px 12px;
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.2);
                background: rgba(0, 0, 0, 0.25);
                color: #fff;
                font-size: 1rem;
                font-weight: 700;
            }

        .planner-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.8rem;
        }
        /* نافذة الأوسمة */
        .badges-modal-box {
            max-width: 620px !important;
        }

        .badges-stats-header {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.85rem;
            margin-bottom: 1.5rem;
        }

        .stat-bubble {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.9rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

            .stat-bubble.highlight {
                background: rgba(245, 158, 11, 0.12);
                border-color: rgba(245, 158, 11, 0.35);
            }

            .stat-bubble strong {
                font-size: 1.35rem;
                font-weight: 900;
                color: var(--text-main, #fff);
            }

            .stat-bubble.highlight strong {
                color: #fbbf24;
            }

            .stat-bubble span {
                font-size: 0.8rem;
                color: var(--text-muted, #94a3b8);
            }

        .badges-list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 0.85rem;
            max-height: 55vh;
            overflow-y: auto;
            padding-inline-end: 4px;
        }

        .badge-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.85rem;
            transition: all 0.2s;
        }

            .badge-item.unlocked {
                background: rgba(212, 175, 55, 0.08);
                border-color: rgba(212, 175, 55, 0.3);
            }

            .badge-item.locked {
                opacity: 0.6;
            }

        .badge-item-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            color: #94a3b8;
            flex-shrink: 0;
        }

        .badge-item-title {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--text-main, #fff);
            margin-bottom: 2px;
        }

        .badge-item-desc {
            font-size: 0.8rem;
            color: var(--text-muted, #94a3b8);
            line-height: 1.4;
        }
        /* توست وسام جديد مكتسب */
        .zad-badge-unlocked-toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(15, 23, 42, 0.95);
            border: 2px solid #fbbf24;
            border-radius: 16px;
            padding: 1rem 1.4rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 191, 36, 0.3);
            z-index: 100002;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            max-width: 90vw;
            width: 400px;
            backdrop-filter: blur(10px);
        }

            .zad-badge-unlocked-toast.show {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }

        .badge-toast-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .badge-toast-eyebrow {
            font-size: 0.78rem;
            font-weight: 800;
            color: #fbbf24;
        }

        .badge-toast-title {
            font-size: 1.05rem;
            font-weight: 900;
            color: #fff;
        }

        .badge-toast-desc {
            font-size: 0.82rem;
            color: #cbd5e1;
        }
        /* احتفال إتمام الختمة */
        .zad-khatma-celebration-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 100005;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            backdrop-filter: blur(8px);
        }

        .zad-khatma-celebration-box {
            background: linear-gradient(135deg, #071f18, #0e372b);
            border: 2px solid #d4af37;
            border-radius: 24px;
            padding: 2.5rem 2rem;
            max-width: 520px;
            width: 100%;
            text-align: center;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.25);
            animation: zoomPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes zoomPopIn {
            from {
                opacity: 0;
                transform: scale(0.85);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .celebration-confetti-badge {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .celebration-stat-pills {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin: 1.5rem 0;
        }

            .celebration-stat-pills .stat-pill {
                background: rgba(255, 255, 255, 0.06);
                border: 1px solid rgba(212, 175, 55, 0.25);
                border-radius: 12px;
                padding: 0.75rem 0.5rem;
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

                .celebration-stat-pills .stat-pill span {
                    font-size: 0.78rem;
                    color: #cbd5e1;
                }

                .celebration-stat-pills .stat-pill strong {
                    font-size: 1.05rem;
                    color: #fbbf24;
                }

        .celebration-actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        /* ==========================================================================
   محرك بطاقات الستوري (Share Card Generator)
   ========================================================================== */

        .share-card-modal-box {
            max-width: 780px !important;
            max-height: calc(100dvh - 24px);
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        #zad-share-card-modal { padding: 12px; box-sizing: border-box; }
        #zad-share-card-modal [hidden] { display: none !important; }
        #zad-share-card-modal button:disabled { opacity: .5; cursor: wait; }
        #zad-share-card-modal button:focus-visible { outline: 2px solid #b38c2f; outline-offset: 3px; }
        #zad-share-card-modal .share-format-options { display: flex; flex-wrap: wrap; gap: 8px; }
        #zad-share-card-modal .share-format-options button { min-height: 44px; flex: 1; }
        #share-card-status { font-size: .85rem; line-height: 1.6; margin: 0; }

        .share-modal-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 1.5rem;
            align-items: start;
        }

        @media (max-width: 768px) {
            .share-modal-layout {
                grid-template-columns: 1fr;
            }
        }

        .share-card-preview-area {
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            padding: 1rem;
        }

        .canvas-aspect-wrapper {
            width: 100%;
            max-width: 260px;
            aspect-ratio: 9 / 16;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

            .canvas-aspect-wrapper canvas {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: contain;
            }

        .share-card-controls {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .control-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-muted, #cbd5e1);
        }

        .theme-selection-row {
            display: flex;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .theme-pill-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-main, #f8fafc);
            padding: 8px 14px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

            .theme-pill-btn:hover {
                background: rgba(212, 175, 55, 0.15);
                border-color: #d4af37;
            }

            .theme-pill-btn.active {
                background: #d4af37;
                color: #0b1f17;
                border-color: #d4af37;
                font-weight: 800;
            }

        .share-primary-actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .btn-share-story {
            padding: 12px;
            font-size: 1rem;
            font-weight: 800;
            background: linear-gradient(135deg, #25d366, #128c7e);
            color: #fff;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }

            .btn-share-story:hover {
                background: linear-gradient(135deg, #1ebe5d, #0d7367);
            }

        .btn-download-story {
            padding: 10px 16px;
            font-weight: 700;
            border-radius: 12px;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.4);
            color: #fbbf24;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

            .btn-download-story:hover {
                background: #d4af37;
                color: #0c201a;
                border-color: #d4af37;
            }

        .btn-copy-story-text {
            padding: 10px 16px;
            font-weight: 700;
            border-radius: 12px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #cbd5e1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

            .btn-copy-story-text:hover {
                border-color: #d4af37;
                color: #fbbf24;
            }

        .share-hint-txt {
            font-size: 0.82rem;
            color: #94a3b8;
            line-height: 1.5;
            margin: 0;
        }
        /* زر شارك الأجر كستوري العائم والسريع */
        .btn-share-as-card {
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #fbbf24;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

            .btn-share-as-card:hover {
                background: #d4af37;
                color: #0c201a;
                border-color: #d4af37;
                transform: translateY(-1px);
            }
        /* ==========================================================================
   التوافق التام مع الوضع الفاتح والوضع الليلي (Light & Dark Theme Optimization)
   لإضافات: الختمة الذكية، عداد الـ Streak، الأوسمة، بطاقات الستوري، ودليل الويدجت
   ========================================================================== */
        /* 1. الوضع الفاتح (Light / White Mode) */
        html[data-theme="light"] .smart-khatma-card,
        [data-theme="light"] .smart-khatma-card,
        body.light-theme .smart-khatma-card {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 6px 24px rgba(7, 63, 53, 0.06) !important;
        }

        html[data-theme="light"] .khatma-title,
        [data-theme="light"] .khatma-title,
        body.light-theme .khatma-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .khatma-subtitle,
        [data-theme="light"] .khatma-subtitle,
        body.light-theme .khatma-subtitle {
            color: #536A60 !important;
        }

        html[data-theme="light"] .khatma-icon-tag,
        [data-theme="light"] .khatma-icon-tag,
        body.light-theme .khatma-icon-tag {
            background: #FFF5E3 !important;
            color: #A87927 !important;
        }

        html[data-theme="light"] .khatma-streak-badge,
        [data-theme="light"] .khatma-streak-badge,
        body.light-theme .khatma-streak-badge {
            background: #FFF5E3 !important;
            border-color: #E6BD70 !important;
        }

            html[data-theme="light"] .khatma-streak-badge .streak-num,
            [data-theme="light"] .khatma-streak-badge .streak-num,
            body.light-theme .khatma-streak-badge .streak-num {
                color: #A87927 !important;
            }

            html[data-theme="light"] .khatma-streak-badge .streak-txt,
            [data-theme="light"] .khatma-streak-badge .streak-txt,
            body.light-theme .khatma-streak-badge .streak-txt {
                color: #193B34 !important;
            }

        html[data-theme="light"] .khatma-progress-meta,
        [data-theme="light"] .khatma-progress-meta,
        body.light-theme .khatma-progress-meta {
            color: #536A60 !important;
        }

        html[data-theme="light"] .khatma-pct-gold,
        [data-theme="light"] .khatma-pct-gold,
        body.light-theme .khatma-pct-gold {
            color: #A87927 !important;
        }

        html[data-theme="light"] .khatma-bar-wrap,
        [data-theme="light"] .khatma-bar-wrap,
        body.light-theme .khatma-bar-wrap {
            background: #E8F4EF !important;
        }

        html[data-theme="light"] .today-wird-box,
        [data-theme="light"] .today-wird-box,
        body.light-theme .today-wird-box {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

            html[data-theme="light"] .today-wird-box.completed,
            [data-theme="light"] .today-wird-box.completed,
            body.light-theme .today-wird-box.completed {
                background: #E8F4EF !important;
                border-color: #73D3AB !important;
            }

        html[data-theme="light"] .wird-pages-range,
        [data-theme="light"] .wird-pages-range,
        body.light-theme .wird-pages-range {
            color: #193B34 !important;
        }

        html[data-theme="light"] .wird-eyebrow,
        [data-theme="light"] .wird-eyebrow,
        body.light-theme .wird-eyebrow {
            color: #A87927 !important;
        }

        html[data-theme="light"] .wird-prayer-hint,
        [data-theme="light"] .wird-prayer-hint,
        body.light-theme .wird-prayer-hint {
            color: #64786D !important;
        }

        html[data-theme="light"] .khatma-card-footer,
        [data-theme="light"] .khatma-card-footer,
        body.light-theme .khatma-card-footer {
            border-top: 1px dashed #DFE9E1 !important;
        }

        html[data-theme="light"] .btn-link-action,
        [data-theme="light"] .btn-link-action,
        body.light-theme .btn-link-action {
            color: #536A60 !important;
        }

            html[data-theme="light"] .btn-link-action:hover,
            [data-theme="light"] .btn-link-action:hover,
            body.light-theme .btn-link-action:hover {
                color: #A87927 !important;
            }
        /* نوافذ الختمة والأوسمة والستوري والودجت في الوضع الفاتح (Light Mode) */
        html[data-theme="light"] .modal-box,
        [data-theme="light"] .modal-box,
        body.light-theme .modal-box,
        html[data-theme="light"] .khatma-planner-modal,
        [data-theme="light"] .khatma-planner-modal,
        body.light-theme .khatma-planner-modal,
        html[data-theme="light"] .badges-modal-box,
        [data-theme="light"] .badges-modal-box,
        body.light-theme .badges-modal-box,
        html[data-theme="light"] .share-card-modal-box,
        [data-theme="light"] .share-card-modal-box,
        body.light-theme .share-card-modal-box,
        html[data-theme="light"] .widget-guide-modal-box,
        [data-theme="light"] .widget-guide-modal-box,
        body.light-theme .widget-guide-modal-box {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
            box-shadow: 0 20px 50px rgba(7, 63, 53, 0.16) !important;
        }

        html[data-theme="light"] .modal-head,
        [data-theme="light"] .modal-head,
        body.light-theme .modal-head {
            border-bottom: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .modal-head-title,
        [data-theme="light"] .modal-head-title,
        body.light-theme .modal-head-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .btn-close-modal,
        [data-theme="light"] .btn-close-modal,
        body.light-theme .btn-close-modal {
            background: #F0F5F1 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .btn-close-modal:hover,
            [data-theme="light"] .btn-close-modal:hover,
            body.light-theme .btn-close-modal:hover {
                background: #E11D48 !important;
                border-color: #E11D48 !important;
                color: #FFFFFF !important;
            }

        html[data-theme="light"] .planner-lead,
        [data-theme="light"] .planner-lead,
        body.light-theme .planner-lead {
            color: #536A60 !important;
        }

        html[data-theme="light"] .plan-option,
        [data-theme="light"] .plan-option,
        body.light-theme .plan-option {
            background: #F7F9F6 !important;
            border: 2px solid #DFE9E1 !important;
        }

            html[data-theme="light"] .plan-option:hover,
            [data-theme="light"] .plan-option:hover,
            body.light-theme .plan-option:hover {
                border-color: #A87927 !important;
                background: #FFF5E3 !important;
            }

            html[data-theme="light"] .plan-option.active,
            [data-theme="light"] .plan-option.active,
            body.light-theme .plan-option.active {
                border-color: #A87927 !important;
                background: #FFF5E3 !important;
                box-shadow: 0 4px 16px rgba(168, 121, 39, 0.15) !important;
            }

        html[data-theme="light"] .plan-days,
        [data-theme="light"] .plan-days,
        body.light-theme .plan-days {
            color: #193B34 !important;
        }

        html[data-theme="light"] .plan-desc,
        [data-theme="light"] .plan-desc,
        body.light-theme .plan-desc {
            color: #536A60 !important;
        }

        html[data-theme="light"] .custom-plan-input-row label,
        [data-theme="light"] .custom-plan-input-row label,
        body.light-theme .custom-plan-input-row label {
            color: #193B34 !important;
        }

        html[data-theme="light"] .input-with-action input,
        [data-theme="light"] .input-with-action input,
        body.light-theme .input-with-action input {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
        }

        html[data-theme="light"] .input-with-action span,
        [data-theme="light"] .input-with-action span,
        body.light-theme .input-with-action span {
            color: #536A60 !important;
        }
        /* الأوسمة في الوضع الفاتح */
        html[data-theme="light"] .stat-bubble,
        [data-theme="light"] .stat-bubble,
        body.light-theme .stat-bubble {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

            html[data-theme="light"] .stat-bubble strong,
            [data-theme="light"] .stat-bubble strong,
            body.light-theme .stat-bubble strong {
                color: #193B34 !important;
            }

            html[data-theme="light"] .stat-bubble span,
            [data-theme="light"] .stat-bubble span,
            body.light-theme .stat-bubble span {
                color: #536A60 !important;
            }

            html[data-theme="light"] .stat-bubble.highlight,
            [data-theme="light"] .stat-bubble.highlight,
            body.light-theme .stat-bubble.highlight {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
            }

                html[data-theme="light"] .stat-bubble.highlight strong,
                [data-theme="light"] .stat-bubble.highlight strong,
                body.light-theme .stat-bubble.highlight strong {
                    color: #A87927 !important;
                }

        html[data-theme="light"] .badge-item,
        [data-theme="light"] .badge-item,
        body.light-theme .badge-item {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

            html[data-theme="light"] .badge-item.unlocked,
            [data-theme="light"] .badge-item.unlocked,
            body.light-theme .badge-item.unlocked {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
            }

        html[data-theme="light"] .badge-item-title,
        [data-theme="light"] .badge-item-title,
        body.light-theme .badge-item-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .badge-item-desc,
        [data-theme="light"] .badge-item-desc,
        body.light-theme .badge-item-desc {
            color: #536A60 !important;
        }

        html[data-theme="light"] .badge-item-icon,
        [data-theme="light"] .badge-item-icon,
        body.light-theme .badge-item-icon {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
        }
        /* بطاقة الستوري والتحكم في الوضع الفاتح */
        html[data-theme="light"] .share-card-preview-area,
        [data-theme="light"] .share-card-preview-area,
        body.light-theme .share-card-preview-area {
            background: #F0F5F1 !important;
            border: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .control-label,
        [data-theme="light"] .control-label,
        body.light-theme .control-label {
            color: #193B34 !important;
        }

        html[data-theme="light"] .theme-pill-btn,
        [data-theme="light"] .theme-pill-btn,
        body.light-theme .theme-pill-btn {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
        }

            html[data-theme="light"] .theme-pill-btn:hover,
            [data-theme="light"] .theme-pill-btn:hover,
            body.light-theme .theme-pill-btn:hover {
                border-color: #A87927 !important;
                background: #FFF5E3 !important;
            }

            html[data-theme="light"] .theme-pill-btn.active,
            [data-theme="light"] .theme-pill-btn.active,
            body.light-theme .theme-pill-btn.active {
                background: #A87927 !important;
                color: #FFFFFF !important;
                border-color: #A87927 !important;
            }

        html[data-theme="light"] .btn-download-story,
        [data-theme="light"] .btn-download-story,
        body.light-theme .btn-download-story {
            background: #FFF5E3 !important;
            border: 1px solid #E6BD70 !important;
            color: #8E651E !important;
        }

            html[data-theme="light"] .btn-download-story:hover,
            [data-theme="light"] .btn-download-story:hover,
            body.light-theme .btn-download-story:hover {
                background: #A87927 !important;
                color: #FFFFFF !important;
                border-color: #A87927 !important;
            }

        html[data-theme="light"] .btn-copy-story-text,
        [data-theme="light"] .btn-copy-story-text,
        body.light-theme .btn-copy-story-text {
            background: transparent !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .btn-copy-story-text:hover,
            [data-theme="light"] .btn-copy-story-text:hover,
            body.light-theme .btn-copy-story-text:hover {
                border-color: #A87927 !important;
                color: #A87927 !important;
            }

        html[data-theme="light"] .share-hint-txt,
        [data-theme="light"] .share-hint-txt,
        body.light-theme .share-hint-txt {
            color: #536A60 !important;
        }
        /* نافذة إرشادات الويدجت في الوضع الفاتح */
        html[data-theme="light"] .widget-guide-lead,
        [data-theme="light"] .widget-guide-lead,
        body.light-theme .widget-guide-lead {
            color: #193B34 !important;
        }

        html[data-theme="light"] .widget-guide-steps,
        [data-theme="light"] .widget-guide-steps,
        body.light-theme .widget-guide-steps {
            color: #536A60 !important;
        }

            html[data-theme="light"] .widget-guide-steps li,
            [data-theme="light"] .widget-guide-steps li,
            body.light-theme .widget-guide-steps li {
                color: #536A60 !important;
            }

                html[data-theme="light"] .widget-guide-steps li strong,
                [data-theme="light"] .widget-guide-steps li strong,
                body.light-theme .widget-guide-steps li strong {
                    color: #A87927 !important;
                }
        /* أزرار شارك كستوري وإشعارات الحالة */
        html[data-theme="light"] .btn-share-as-card,
        [data-theme="light"] .btn-share-as-card,
        body.light-theme .btn-share-as-card {
            background: #FFF5E3 !important;
            border: 1px solid #E6BD70 !important;
            color: #8E651E !important;
        }

            html[data-theme="light"] .btn-share-as-card:hover,
            [data-theme="light"] .btn-share-as-card:hover,
            body.light-theme .btn-share-as-card:hover {
                background: #A87927 !important;
                color: #FFFFFF !important;
                border-color: #A87927 !important;
            }
        /* نافذة توست الأوسمة في الوضع الفاتح */
        html[data-theme="light"] .zad-badge-unlocked-toast,
        [data-theme="light"] .zad-badge-unlocked-toast,
        body.light-theme .zad-badge-unlocked-toast {
            background: #FFFFFF !important;
            border-color: #A87927 !important;
            box-shadow: 0 15px 40px rgba(7, 63, 53, 0.15) !important;
        }

        html[data-theme="light"] .badge-toast-title,
        [data-theme="light"] .badge-toast-title,
        body.light-theme .badge-toast-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .badge-toast-desc,
        [data-theme="light"] .badge-toast-desc,
        body.light-theme .badge-toast-desc {
            color: #536A60 !important;
        }

        html[data-theme="light"] .badge-toast-eyebrow,
        [data-theme="light"] .badge-toast-eyebrow,
        body.light-theme .badge-toast-eyebrow {
            color: #A87927 !important;
        }
        /* نافذة احتفال إتمام الختمة الكاملة في الوضع الفاتح */
        html[data-theme="light"] .zad-khatma-celebration-box,
        [data-theme="light"] .zad-khatma-celebration-box,
        body.light-theme .zad-khatma-celebration-box {
            background: linear-gradient(135deg, #FFFFFF, #F7F9F6) !important;
            border: 2px solid #A87927 !important;
            color: #193B34 !important;
        }

            html[data-theme="light"] .zad-khatma-celebration-box h2,
            [data-theme="light"] .zad-khatma-celebration-box h2,
            body.light-theme .zad-khatma-celebration-box h2 {
                color: #193B34 !important;
            }

        html[data-theme="light"] .celebration-subtitle,
        [data-theme="light"] .celebration-subtitle,
        body.light-theme .celebration-subtitle {
            color: #536A60 !important;
        }

        html[data-theme="light"] .celebration-stat-pills .stat-pill,
        [data-theme="light"] .celebration-stat-pills .stat-pill,
        body.light-theme .celebration-stat-pills .stat-pill {
            background: #F0F5F1 !important;
            border-color: #DFE9E1 !important;
        }

            html[data-theme="light"] .celebration-stat-pills .stat-pill span,
            [data-theme="light"] .celebration-stat-pills .stat-pill span,
            body.light-theme .celebration-stat-pills .stat-pill span {
                color: #536A60 !important;
            }

            html[data-theme="light"] .celebration-stat-pills .stat-pill strong,
            [data-theme="light"] .celebration-stat-pills .stat-pill strong,
            body.light-theme .celebration-stat-pills .stat-pill strong {
                color: #A87927 !important;
            }
        /* ==========================================================================
   2. تحسينات الوضع الليلي (Dark Mode)
   ========================================================================== */
        html[data-theme="dark"] .smart-khatma-card,
        [data-theme="dark"] .smart-khatma-card {
            background: #163329 !important;
            border-color: rgba(212, 175, 55, 0.3) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        }

        html[data-theme="dark"] .khatma-title,
        [data-theme="dark"] .khatma-title {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .khatma-subtitle,
        [data-theme="dark"] .khatma-subtitle {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .today-wird-box,
        [data-theme="dark"] .today-wird-box {
            background: #102820 !important;
            border-color: #315346 !important;
        }

        html[data-theme="dark"] .wird-pages-range,
        [data-theme="dark"] .wird-pages-range {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .wird-prayer-hint,
        [data-theme="dark"] .wird-prayer-hint {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .khatma-card-footer,
        [data-theme="dark"] .khatma-card-footer {
            border-top: 1px dashed #315346 !important;
        }

        html[data-theme="dark"] .btn-link-action,
        [data-theme="dark"] .btn-link-action {
            color: #A7BFB0 !important;
        }

            html[data-theme="dark"] .btn-link-action:hover,
            [data-theme="dark"] .btn-link-action:hover {
                color: #D4AF37 !important;
            }
        /* نوافذ المودال في الوضع الداكن */
        html[data-theme="dark"] .modal-box,
        [data-theme="dark"] .modal-box,
        html[data-theme="dark"] .khatma-planner-modal,
        [data-theme="dark"] .khatma-planner-modal,
        html[data-theme="dark"] .badges-modal-box,
        [data-theme="dark"] .badges-modal-box,
        html[data-theme="dark"] .share-card-modal-box,
        [data-theme="dark"] .share-card-modal-box,
        html[data-theme="dark"] .widget-guide-modal-box,
        [data-theme="dark"] .widget-guide-modal-box {
            background: #163329 !important;
            border-color: #315346 !important;
            color: #F3F8F4 !important;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
        }

        html[data-theme="dark"] .modal-head,
        [data-theme="dark"] .modal-head {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        html[data-theme="dark"] .modal-head-title,
        [data-theme="dark"] .modal-head-title {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .btn-close-modal,
        [data-theme="dark"] .btn-close-modal {
            background: rgba(255, 255, 255, 0.06) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            color: #CBD5E1 !important;
        }

            html[data-theme="dark"] .btn-close-modal:hover,
            [data-theme="dark"] .btn-close-modal:hover {
                background: #EF4444 !important;
                border-color: #EF4444 !important;
                color: #FFFFFF !important;
            }

        html[data-theme="dark"] .planner-lead,
        [data-theme="dark"] .planner-lead {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .plan-option,
        [data-theme="dark"] .plan-option {
            background: #102820 !important;
            border-color: #315346 !important;
        }

            html[data-theme="dark"] .plan-option:hover,
            [data-theme="dark"] .plan-option:hover {
                border-color: #D4AF37 !important;
                background: rgba(212, 175, 55, 0.08) !important;
            }

            html[data-theme="dark"] .plan-option.active,
            [data-theme="dark"] .plan-option.active {
                border-color: #D4AF37 !important;
                background: rgba(212, 175, 55, 0.15) !important;
                box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2) !important;
            }

        html[data-theme="dark"] .plan-days,
        [data-theme="dark"] .plan-days {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .plan-desc,
        [data-theme="dark"] .plan-desc {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .custom-plan-input-row label,
        [data-theme="dark"] .custom-plan-input-row label {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .input-with-action input,
        [data-theme="dark"] .input-with-action input {
            background: #102820 !important;
            border: 1px solid #315346 !important;
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .input-with-action span,
        [data-theme="dark"] .input-with-action span {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .stat-bubble,
        [data-theme="dark"] .stat-bubble {
            background: #102820 !important;
            border-color: #315346 !important;
        }

            html[data-theme="dark"] .stat-bubble strong,
            [data-theme="dark"] .stat-bubble strong {
                color: #F3F8F4 !important;
            }

            html[data-theme="dark"] .stat-bubble span,
            [data-theme="dark"] .stat-bubble span {
                color: #A7BFB0 !important;
            }

            html[data-theme="dark"] .stat-bubble.highlight,
            [data-theme="dark"] .stat-bubble.highlight {
                background: rgba(212, 175, 55, 0.12) !important;
                border-color: rgba(212, 175, 55, 0.35) !important;
            }

                html[data-theme="dark"] .stat-bubble.highlight strong,
                [data-theme="dark"] .stat-bubble.highlight strong {
                    color: #FBBF24 !important;
                }

        html[data-theme="dark"] .badge-item,
        [data-theme="dark"] .badge-item {
            background: #102820 !important;
            border-color: #315346 !important;
        }

            html[data-theme="dark"] .badge-item.unlocked,
            [data-theme="dark"] .badge-item.unlocked {
                background: rgba(212, 175, 55, 0.08) !important;
                border-color: rgba(212, 175, 55, 0.3) !important;
            }

        html[data-theme="dark"] .badge-item-title,
        [data-theme="dark"] .badge-item-title {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .badge-item-desc,
        [data-theme="dark"] .badge-item-desc {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .badge-item-icon,
        [data-theme="dark"] .badge-item-icon {
            background: #163329 !important;
            border-color: #315346 !important;
        }

        html[data-theme="dark"] .share-card-preview-area,
        [data-theme="dark"] .share-card-preview-area {
            background: #102820 !important;
            border: 1px solid #315346 !important;
        }

        html[data-theme="dark"] .control-label,
        [data-theme="dark"] .control-label {
            color: #A7BFB0 !important;
        }

        html[data-theme="dark"] .theme-pill-btn,
        [data-theme="dark"] .theme-pill-btn {
            background: #102820 !important;
            border-color: #315346 !important;
            color: #F3F8F4 !important;
        }

            html[data-theme="dark"] .theme-pill-btn:hover,
            [data-theme="dark"] .theme-pill-btn:hover {
                background: rgba(212, 175, 55, 0.15) !important;
                border-color: #D4AF37 !important;
            }

            html[data-theme="dark"] .theme-pill-btn.active,
            [data-theme="dark"] .theme-pill-btn.active {
                background: #D4AF37 !important;
                color: #102820 !important;
                border-color: #D4AF37 !important;
                font-weight: 800 !important;
            }

        html[data-theme="dark"] .btn-download-story,
        [data-theme="dark"] .btn-download-story {
            background: rgba(212, 175, 55, 0.15) !important;
            border: 1px solid rgba(212, 175, 55, 0.4) !important;
            color: #FBBF24 !important;
        }

            html[data-theme="dark"] .btn-download-story:hover,
            [data-theme="dark"] .btn-download-story:hover {
                background: #D4AF37 !important;
                color: #102820 !important;
            }

        html[data-theme="dark"] .btn-copy-story-text,
        [data-theme="dark"] .btn-copy-story-text {
            background: transparent !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            color: #CBD5E1 !important;
        }

            html[data-theme="dark"] .btn-copy-story-text:hover,
            [data-theme="dark"] .btn-copy-story-text:hover {
                border-color: #D4AF37 !important;
                color: #FBBF24 !important;
            }

        html[data-theme="dark"] .share-hint-txt,
        [data-theme="dark"] .share-hint-txt {
            color: #A7BFB0 !important;
        }
        /* نافذة إرشادات الويدجت في الوضع الداكن */
        html[data-theme="dark"] .widget-guide-lead,
        [data-theme="dark"] .widget-guide-lead {
            color: #F3F8F4 !important;
        }

        html[data-theme="dark"] .widget-guide-steps,
        [data-theme="dark"] .widget-guide-steps {
            color: #A7BFB0 !important;
        }

            html[data-theme="dark"] .widget-guide-steps li,
            [data-theme="dark"] .widget-guide-steps li {
                color: #A7BFB0 !important;
            }

                html[data-theme="dark"] .widget-guide-steps li strong,
                [data-theme="dark"] .widget-guide-steps li strong {
                    color: #FBBF24 !important;
                }
        /* ==========================================================================
   1. بوصلة القلوب والسكينة الإيمانية (Mood Compass Styles)
   ========================================================================== */
        .mood-compass-card {
            background: linear-gradient(135deg, rgba(7, 40, 32, 0.95), rgba(4, 25, 20, 0.98));
            border: 1px solid rgba(212, 175, 55, 0.35);
            border-radius: 20px;
            padding: 1.6rem;
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            position: relative;
            overflow: hidden;
        }

            .mood-compass-card::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3px;
                background: linear-gradient(90deg, transparent, #d4af37, #10b981, transparent);
            }

        .mood-compass-header {
            margin-bottom: 1.25rem;
        }

        .mood-compass-title-wrap {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .mood-icon-tag {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            flex-shrink: 0;
        }

        .mood-compass-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #f8fafc;
            margin: 0 0 4px 0;
            font-family: var(--font-arabic-heading, inherit);
        }

        .mood-compass-subtitle {
            font-size: 0.9rem;
            color: #94a3b8;
            margin: 0;
            line-height: 1.5;
        }

        .mood-pills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.75rem;
        }

        .mood-pill-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 0.85rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.22s ease;
            color: #f8fafc;
            text-align: start;
            font-family: inherit;
        }

            .mood-pill-btn:hover {
                background: rgba(212, 175, 55, 0.14);
                border-color: #d4af37;
                transform: translateY(-2px);
                box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
            }

        .mood-pill-emoji {
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .mood-pill-txt {
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.3;
        }
        /* نافذة بوصلة القلوب المنبثقة */
        .mood-compass-modal-box {
            max-width: 620px !important;
        }

        .mood-modal-body {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .mood-section-box {
            background: rgba(0, 0, 0, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.2rem;
        }

        .box-tag {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            font-weight: 800;
            color: #fbbf24;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        }

            .box-tag .box-meta {
                color: #94a3b8;
                font-weight: 600;
            }

        .mood-ayah-quote {
            font-family: 'Amiri', 'Traditional Arabic', serif;
            font-size: 1.35rem;
            line-height: 1.9;
            color: #fff;
            text-align: center;
            padding: 0.5rem 0.25rem 1rem;
        }

        .mood-ayah-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .btn-audio-play {
            background: linear-gradient(135deg, #059669, #047857);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
        }

            .btn-audio-play:hover {
                background: linear-gradient(135deg, #10b981, #059669);
                transform: translateY(-1px);
            }

            .btn-audio-play.playing {
                background: linear-gradient(135deg, #d97706, #b45309);
                animation: pulseAudio 1.5s infinite;
            }

        @keyframes pulseAudio {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(217, 119, 6, 0);
            }
        }

        .mood-dua-text {
            font-size: 1.05rem;
            line-height: 1.85;
            color: #f1f5f9;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }

        .mood-dua-note {
            font-size: 0.82rem;
            color: #94a3b8;
            line-height: 1.5;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            padding: 8px 12px;
            border-radius: 10px;
        }

        .mood-dhikr-txt {
            font-size: 1.15rem;
            font-weight: 800;
            color: #fbbf24;
            margin-bottom: 4px;
        }

        .mood-dhikr-virtue {
            font-size: 0.84rem;
            color: #94a3b8;
            line-height: 1.5;
            margin: 0 0 1rem 0;
        }

        .mood-counter-row {
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }

        .btn-mood-counter {
            background: linear-gradient(135deg, #d4af37, #b89025);
            color: #081a14;
            border: none;
            border-radius: 14px;
            padding: 10px 22px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            transition: all 0.15s ease;
            box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
            flex-shrink: 0;
        }

            .btn-mood-counter:active {
                transform: scale(0.94);
            }

        .count-digit {
            font-size: 1.5rem;
            font-weight: 900;
            line-height: 1;
        }

        .count-label {
            font-size: 0.75rem;
            font-weight: 800;
        }

        .counter-progress-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .progress-bar-bg {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #d4af37);
            border-radius: 10px;
            transition: width 0.2s ease;
        }

        .counter-status {
            font-size: 0.8rem;
            font-weight: 700;
            color: #cbd5e1;
        }

        .mood-reflection-footer {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.86rem;
            color: #a7f3d0;
            line-height: 1.5;
        }
        /* ==========================================================================
   2. السبحة الإلكترونية المتطورة (Smart Haptic Tasbih)
   ========================================================================== */
        .smart-tasbih-modal-box {
            max-width: 520px !important;
            text-align: center;
        }

        .btn-icon-setting {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #cbd5e1;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            .btn-icon-setting.active {
                background: rgba(212, 175, 55, 0.2);
                border-color: #d4af37;
                color: #fbbf24;
            }

        .tasbih-athkar-carousel {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 6px;
            margin-bottom: 1.25rem;
            -webkit-overflow-scrolling: touch;
        }

        .tasbih-zkr-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #e2e8f0;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.84rem;
            font-weight: 700;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

            .tasbih-zkr-pill.active {
                background: #d4af37;
                color: #0b1f17;
                border-color: #d4af37;
                font-weight: 800;
            }

        .tasbih-active-card {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1rem 1.2rem;
            margin-bottom: 1.5rem;
        }

        .tasbih-active-name {
            font-size: 1.15rem;
            font-weight: 800;
            color: #fbbf24;
            margin-bottom: 4px;
        }

        .tasbih-active-virtue {
            font-size: 0.82rem;
            color: #94a3b8;
            line-height: 1.4;
        }
        /* القرص الدائري التفاعلي للسبحة */
        .tasbih-disk-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 1.5rem 0;
        }

        .tasbih-disk-ring {
            width: 230px;
            height: 230px;
            border-radius: 50%;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            background: radial-gradient(circle, #0e372b 0%, #061e17 100%);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(212, 175, 55, 0.15);
            transition: transform 0.12s ease;
            overflow: hidden;
        }

            .tasbih-disk-ring:active {
                transform: scale(0.96);
            }

        .tasbih-svg-progress {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
            pointer-events: none;
        }

        .tasbih-svg-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 8;
        }

        .tasbih-svg-bar {
            fill: none;
            stroke: #d4af37;
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.15s ease;
        }

        .tasbih-disk-core {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            z-index: 2;
        }

        .tasbih-count-digit {
            font-size: 3.5rem;
            font-weight: 900;
            color: #fff;
            line-height: 1;
            font-family: var(--font-arabic-heading, inherit);
            transition: transform 0.1s ease;
        }

            .tasbih-count-digit.bump {
                animation: bumpCount 0.15s ease;
            }

        @keyframes bumpCount {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.15);
                color: #fbbf24;
            }

            100% {
                transform: scale(1);
            }
        }

        .tasbih-target-badge {
            font-size: 0.8rem;
            font-weight: 800;
            color: #fbbf24;
            background: rgba(0, 0, 0, 0.35);
            padding: 3px 10px;
            border-radius: 20px;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .tasbih-tap-hint {
            position: absolute;
            bottom: 18px;
            font-size: 0.72rem;
            color: #64748b;
            font-weight: 600;
        }
        /* تأثير التموج في القرص */
        .tasbih-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.35);
            transform: scale(0);
            animation: rippleAnim 0.6s linear;
            pointer-events: none;
        }

        @keyframes rippleAnim {
            to {
                transform: scale(3.5);
                opacity: 0;
            }
        }

        .tasbih-control-strip {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.25rem;
            padding-bottom: 1rem;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        }

        .target-picker-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .picker-label {
            font-size: 0.82rem;
            color: #94a3b8;
            font-weight: 700;
        }

        .target-pills {
            display: flex;
            gap: 4px;
        }

        .target-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
        }

            .target-pill.active {
                background: #d4af37;
                color: #0b1f17;
                border-color: #d4af37;
                font-weight: 800;
            }

        .btn-reset-disk {
            padding: 6px 14px;
            font-size: 0.82rem;
            font-weight: 700;
            border-radius: 8px;
        }

        .tasbih-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.65rem;
        }

        .tasbih-stat-card {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.65rem 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

            .tasbih-stat-card.highlight {
                background: rgba(16, 185, 129, 0.12);
                border-color: rgba(16, 185, 129, 0.35);
            }

            .tasbih-stat-card .stat-num {
                font-size: 1.25rem;
                font-weight: 900;
                color: #fff;
            }

            .tasbih-stat-card.highlight .stat-num {
                color: #34d399;
            }

            .tasbih-stat-card .stat-lbl {
                font-size: 0.75rem;
                color: #94a3b8;
            }
        /* ==========================================================================
   3. توافق بوصلة القلوب والسبحة مع الوضع الفاتح (Light Mode)
   ========================================================================== */
        html[data-theme="light"] .mood-compass-card,
        [data-theme="light"] .mood-compass-card,
        body.light-theme .mood-compass-card {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 8px 25px rgba(7, 63, 53, 0.06) !important;
        }

        html[data-theme="light"] .mood-compass-title,
        [data-theme="light"] .mood-compass-title,
        body.light-theme .mood-compass-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .mood-compass-subtitle,
        [data-theme="light"] .mood-compass-subtitle,
        body.light-theme .mood-compass-subtitle {
            color: #536A60 !important;
        }

        html[data-theme="light"] .mood-icon-tag,
        [data-theme="light"] .mood-icon-tag,
        body.light-theme .mood-icon-tag {
            background: #FFF5E3 !important;
            border-color: #E6BD70 !important;
        }

        html[data-theme="light"] .mood-pill-btn,
        [data-theme="light"] .mood-pill-btn,
        body.light-theme .mood-pill-btn {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
        }

            html[data-theme="light"] .mood-pill-btn:hover,
            [data-theme="light"] .mood-pill-btn:hover,
            body.light-theme .mood-pill-btn:hover {
                background: #FFF5E3 !important;
                border-color: #A87927 !important;
                box-shadow: 0 4px 14px rgba(168, 121, 39, 0.12) !important;
            }

        html[data-theme="light"] .mood-section-box,
        [data-theme="light"] .mood-section-box,
        body.light-theme .mood-section-box {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .box-tag,
        [data-theme="light"] .box-tag,
        body.light-theme .box-tag {
            color: #A87927 !important;
            border-bottom-color: #DFE9E1 !important;
        }

            html[data-theme="light"] .box-tag .box-meta,
            [data-theme="light"] .box-tag .box-meta,
            body.light-theme .box-tag .box-meta {
                color: #536A60 !important;
            }

        html[data-theme="light"] .mood-ayah-quote,
        [data-theme="light"] .mood-ayah-quote,
        body.light-theme .mood-ayah-quote {
            color: #193B34 !important;
        }

        html[data-theme="light"] .mood-dua-text,
        [data-theme="light"] .mood-dua-text,
        body.light-theme .mood-dua-text {
            color: #193B34 !important;
        }

        html[data-theme="light"] .mood-dua-note,
        [data-theme="light"] .mood-dua-note,
        body.light-theme .mood-dua-note {
            background: #FFFFFF !important;
            color: #536A60 !important;
        }

        html[data-theme="light"] .mood-dhikr-txt,
        [data-theme="light"] .mood-dhikr-txt,
        body.light-theme .mood-dhikr-txt {
            color: #A87927 !important;
        }

        html[data-theme="light"] .mood-dhikr-virtue,
        [data-theme="light"] .mood-dhikr-virtue,
        body.light-theme .mood-dhikr-virtue {
            color: #536A60 !important;
        }

        html[data-theme="light"] .btn-mood-counter,
        [data-theme="light"] .btn-mood-counter,
        body.light-theme .btn-mood-counter {
            background: linear-gradient(135deg, #A87927, #8E651E) !important;
            color: #FFFFFF !important;
        }

        html[data-theme="light"] .progress-bar-bg,
        [data-theme="light"] .progress-bar-bg,
        body.light-theme .progress-bar-bg {
            background: #E8F4EF !important;
        }

        html[data-theme="light"] .counter-status,
        [data-theme="light"] .counter-status,
        body.light-theme .counter-status {
            color: #536A60 !important;
        }

        html[data-theme="light"] .mood-reflection-footer,
        [data-theme="light"] .mood-reflection-footer,
        body.light-theme .mood-reflection-footer {
            background: #E8F4EF !important;
            border-color: #73D3AB !important;
            color: #193B34 !important;
        }
        /* سبحة الوضع الفاتح */
        html[data-theme="light"] .smart-tasbih-modal-box,
        [data-theme="light"] .smart-tasbih-modal-box,
        body.light-theme .smart-tasbih-modal-box {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .btn-icon-setting,
        [data-theme="light"] .btn-icon-setting,
        body.light-theme .btn-icon-setting {
            background: #F0F5F1 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .btn-icon-setting.active,
            [data-theme="light"] .btn-icon-setting.active,
            body.light-theme .btn-icon-setting.active {
                background: #FFF5E3 !important;
                border-color: #A87927 !important;
                color: #A87927 !important;
            }

        html[data-theme="light"] .tasbih-zkr-pill,
        [data-theme="light"] .tasbih-zkr-pill,
        body.light-theme .tasbih-zkr-pill {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
        }

            html[data-theme="light"] .tasbih-zkr-pill.active,
            [data-theme="light"] .tasbih-zkr-pill.active,
            body.light-theme .tasbih-zkr-pill.active {
                background: #A87927 !important;
                color: #FFFFFF !important;
                border-color: #A87927 !important;
            }

        html[data-theme="light"] .tasbih-active-card,
        [data-theme="light"] .tasbih-active-card,
        body.light-theme .tasbih-active-card {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .tasbih-active-name,
        [data-theme="light"] .tasbih-active-name,
        body.light-theme .tasbih-active-name {
            color: #193B34 !important;
        }

        html[data-theme="light"] .tasbih-active-virtue,
        [data-theme="light"] .tasbih-active-virtue,
        body.light-theme .tasbih-active-virtue {
            color: #536A60 !important;
        }

        html[data-theme="light"] .tasbih-disk-ring,
        [data-theme="light"] .tasbih-disk-ring,
        body.light-theme .tasbih-disk-ring {
            background: radial-gradient(circle, #E8F4EF 0%, #D4EBE1 100%) !important;
            box-shadow: 0 15px 35px rgba(7, 63, 53, 0.12), inset 0 0 20px rgba(168, 121, 39, 0.1) !important;
        }

        html[data-theme="light"] .tasbih-svg-bg,
        [data-theme="light"] .tasbih-svg-bg,
        body.light-theme .tasbih-svg-bg {
            stroke: #DFE9E1 !important;
        }

        html[data-theme="light"] .tasbih-svg-bar,
        [data-theme="light"] .tasbih-svg-bar,
        body.light-theme .tasbih-svg-bar {
            stroke: #A87927 !important;
        }

        html[data-theme="light"] .tasbih-count-digit,
        [data-theme="light"] .tasbih-count-digit,
        body.light-theme .tasbih-count-digit {
            color: #193B34 !important;
        }

        html[data-theme="light"] .tasbih-target-badge,
        [data-theme="light"] .tasbih-target-badge,
        body.light-theme .tasbih-target-badge {
            background: #FFF5E3 !important;
            border-color: #E6BD70 !important;
            color: #A87927 !important;
        }

        html[data-theme="light"] .tasbih-control-strip,
        [data-theme="light"] .tasbih-control-strip,
        body.light-theme .tasbih-control-strip {
            border-bottom-color: #DFE9E1 !important;
        }

        html[data-theme="light"] .picker-label,
        [data-theme="light"] .picker-label,
        body.light-theme .picker-label {
            color: #536A60 !important;
        }

        html[data-theme="light"] .target-pill,
        [data-theme="light"] .target-pill,
        body.light-theme .target-pill {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #193B34 !important;
        }

            html[data-theme="light"] .target-pill.active,
            [data-theme="light"] .target-pill.active,
            body.light-theme .target-pill.active {
                background: #A87927 !important;
                color: #FFFFFF !important;
                border-color: #A87927 !important;
            }

        html[data-theme="light"] .tasbih-stat-card,
        [data-theme="light"] .tasbih-stat-card,
        body.light-theme .tasbih-stat-card {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

            html[data-theme="light"] .tasbih-stat-card.highlight,
            [data-theme="light"] .tasbih-stat-card.highlight,
            body.light-theme .tasbih-stat-card.highlight {
                background: #E8F4EF !important;
                border-color: #73D3AB !important;
            }

            html[data-theme="light"] .tasbih-stat-card .stat-num,
            [data-theme="light"] .tasbih-stat-card .stat-num,
            body.light-theme .tasbih-stat-card .stat-num {
                color: #193B34 !important;
            }

            html[data-theme="light"] .tasbih-stat-card.highlight .stat-num,
            [data-theme="light"] .tasbih-stat-card.highlight .stat-num,
            body.light-theme .tasbih-stat-card.highlight .stat-num {
                color: #10B981 !important;
            }

            html[data-theme="light"] .tasbih-stat-card .stat-lbl,
            [data-theme="light"] .tasbih-stat-card .stat-lbl,
            body.light-theme .tasbih-stat-card .stat-lbl {
                color: #536A60 !important;
            }
        /* ==========================================================================
   لوحة الذكر والسبحة الإلكترونية التفاعلية المدمجة (Smart In-Panel Tasbih)
   ========================================================================== */
        .smart-dhikr-panel {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            text-align: center;
            position: relative;
            margin-top: 1.5rem;
            margin-bottom: 2rem;
            overflow: hidden;
            padding: 1.5rem 1.25rem;
            background: linear-gradient(145deg, rgba(7, 40, 32, 0.88) 0%, rgba(4, 24, 19, 0.96) 100%);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: var(--radius-lg, 16px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 25px rgba(212, 175, 55, 0.04);
            backdrop-filter: blur(12px);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
            user-select: none;
            -webkit-user-select: none;
            touch-action: pan-y;
        }

            .smart-dhikr-panel::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3px;
                background: linear-gradient(90deg, transparent, var(--gold-500, #d4af37), transparent);
            }

        .dhikr-panel-top {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            padding-bottom: 0.55rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        }

            .dhikr-panel-top .small {
                font-size: 0.88rem;
                font-weight: 700;
                color: #a4c2b7;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
            }

        .dhikr-streak-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.32rem 0.75rem;
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.35);
            border-radius: var(--radius-full, 999px);
            color: #fbbf24;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
            user-select: none;
        }

            .dhikr-streak-chip:hover {
                background: rgba(212, 175, 55, 0.22);
                border-color: #d4af37;
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
            }
        /* شريط تبديل الأذكار السريع (Horizontal Chips Strip) */
        .dhikr-chips-strip {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            overflow-x: auto;
            padding: 0.3rem 0.2rem 0.65rem;
            margin-bottom: 0.4rem;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x pan-y;
        }

            .dhikr-chips-strip::-webkit-scrollbar {
                display: none;
            }

        .dhikr-chip {
            padding: 0.32rem 0.75rem;
            border-radius: var(--radius-full, 999px);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
            font-size: 0.78rem;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

            .dhikr-chip:hover {
                background: rgba(212, 175, 55, 0.12);
                border-color: rgba(212, 175, 55, 0.35);
                color: #ffffff;
            }

            .dhikr-chip.active {
                background: linear-gradient(135deg, #d4af37, #b8972e);
                color: #0b1523;
                font-weight: 700;
                border-color: #ffd875;
                box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
            }
        /* صندوق عرض الذكر وفضله مع أسهم التنقل */
        .dhikr-card-display {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            margin: 0.4rem 0 0.8rem;
        }

        .btn-dhikr-arrow {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(212, 175, 55, 0.25);
            color: #d4af37;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            outline: none;
            transition: all 0.2s ease;
            user-select: none;
        }

            .btn-dhikr-arrow:hover {
                background: rgba(212, 175, 55, 0.2);
                border-color: #d4af37;
                transform: scale(1.08);
            }

            .btn-dhikr-arrow:active {
                transform: scale(0.95);
            }

        .dhikr-text-wrapper {
            flex: 1;
            text-align: center;
            min-height: 4.6rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 0.4rem;
        }

        .dhikr-quote-text {
            font-family: var(--font-quran, serif);
            font-size: 1.15rem;
            line-height: 1.8;
            font-weight: 700;
            color: #f8fafc;
            margin: 0 0 0.25rem 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
            transition: opacity 0.15s ease;
        }

        .dhikr-virtue-subtext {
            font-size: 0.78rem;
            color: #a4c2b7;
            line-height: 1.45;
            max-width: 95%;
            margin: 0 auto;
        }
        /* مساحة زر التسبيح التفاعلي الكبير النابض */
        .quick-tasbih-action-zone {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0.5rem 0 0.9rem;
            touch-action: pan-y;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .btn-quick-bead {
            width: 140px;
            height: 140px;
            min-width: 140px;
            min-height: 140px;
            flex-shrink: 0;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, #0e4435 0%, #06221a 70%, #03140f 100%);
            border: 3px solid #d4af37;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.2);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            outline: none;
            transition: transform 0.1s ease, box-shadow 0.1s ease;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            position: relative;
            overflow: hidden;
            transform: translateZ(0);
            will-change: transform;
        }

        @media (hover: hover) and (pointer: fine) {
            .btn-quick-bead:hover {
                transform: scale(1.03);
                box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.4);
            }
        }

        .btn-quick-bead:active {
            transform: scale(0.95);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 35px rgba(212, 175, 55, 0.6);
        }

        .quick-bead-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.35);
            transform: scale(0);
            animation: beadRipple 0.6s linear;
            pointer-events: none;
            will-change: transform, opacity;
        }

        @keyframes beadRipple {
            to {
                transform: scale(3.5);
                opacity: 0;
            }
        }

        .quick-bead-number {
            font-family: var(--font-arabic-heading, system-ui);
            font-size: 2.3rem;
            font-weight: 800;
            color: #ffd875;
            line-height: 1;
            text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
            display: inline-block;
            will-change: transform;
            transform-origin: center center;
            user-select: none;
            -webkit-user-select: none;
        }

            .quick-bead-number.bump {
                animation: beadDigitBump 0.18s ease;
            }

        @keyframes beadDigitBump {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.18);
            }

            100% {
                transform: scale(1);
            }
        }

        .quick-bead-target {
            font-size: 0.78rem;
            font-weight: 700;
            color: #a4c2b7;
            margin-top: 0.18rem;
        }

        .quick-bead-label {
            font-size: 0.7rem;
            font-weight: 600;
            color: #fbbf24;
            opacity: 0.85;
            letter-spacing: 0.3px;
            margin-top: 0.1rem;
        }
        /* شريط أدوات التحكم والهدف مدمج داخل اللوحة */
        .dhikr-panel-controls {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            padding-top: 0.8rem;
            margin-top: 0.3rem;
        }

        .dhikr-targets-selector {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
        }

        .dhikr-target-label-txt {
            font-size: 0.78rem;
            color: #a4c2b7;
            font-weight: 600;
        }

        .dhikr-target-pills {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .dhikr-target-pill {
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-full, 999px);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

            .dhikr-target-pill:hover {
                background: rgba(212, 175, 55, 0.12);
                border-color: rgba(212, 175, 55, 0.3);
                color: #fff;
            }

            .dhikr-target-pill.active {
                background: rgba(212, 175, 55, 0.25);
                border-color: #d4af37;
                color: #ffd875;
                font-weight: 700;
            }

        .dhikr-quick-action-buttons {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .btn-compact-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.42rem 0.82rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-full, 999px);
            color: #cbd5e1;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

            .btn-compact-chip:hover {
                background: rgba(212, 175, 55, 0.14);
                border-color: rgba(212, 175, 55, 0.4);
                color: #ffffff;
                transform: translateY(-1px);
            }

            .btn-compact-chip:active {
                transform: translateY(0);
            }
        /* ==========================================================================
   التوافق التام مع الوضع الفاتح (Light Theme Overrides)
   ========================================================================== */
        html[data-theme="light"] .smart-dhikr-panel,
        [data-theme="light"] .smart-dhikr-panel,
        body.light-theme .smart-dhikr-panel {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 8px 25px rgba(7, 63, 53, 0.06) !important;
        }

        html[data-theme="light"] .dhikr-panel-top,
        [data-theme="light"] .dhikr-panel-top,
        body.light-theme .dhikr-panel-top {
            border-bottom-color: #DFE9E1 !important;
        }

            html[data-theme="light"] .dhikr-panel-top .small,
            [data-theme="light"] .dhikr-panel-top .small,
            body.light-theme .dhikr-panel-top .small {
                color: #536A60 !important;
            }

        html[data-theme="light"] .dhikr-streak-chip,
        [data-theme="light"] .dhikr-streak-chip,
        body.light-theme .dhikr-streak-chip {
            background: #FFF5E3 !important;
            border: 1px solid #E6BD70 !important;
            color: #A87927 !important;
        }

        html[data-theme="light"] .dhikr-chip,
        [data-theme="light"] .dhikr-chip,
        body.light-theme .dhikr-chip {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .dhikr-chip.active,
            [data-theme="light"] .dhikr-chip.active,
            body.light-theme .dhikr-chip.active {
                background: #A87927 !important;
                border-color: #A87927 !important;
                color: #FFFFFF !important;
            }

        html[data-theme="light"] .btn-dhikr-arrow,
        [data-theme="light"] .btn-dhikr-arrow,
        body.light-theme .btn-dhikr-arrow {
            background: #F0F5F1 !important;
            border: 1px solid #DFE9E1 !important;
            color: #A87927 !important;
        }

        html[data-theme="light"] .dhikr-quote-text,
        [data-theme="light"] .dhikr-quote-text,
        body.light-theme .dhikr-quote-text {
            color: #193B34 !important;
            text-shadow: none !important;
        }

        html[data-theme="light"] .dhikr-virtue-subtext,
        [data-theme="light"] .dhikr-virtue-subtext,
        body.light-theme .dhikr-virtue-subtext {
            color: #536A60 !important;
        }

        html[data-theme="light"] .btn-quick-bead,
        [data-theme="light"] .btn-quick-bead,
        body.light-theme .btn-quick-bead {
            background: radial-gradient(circle at 35% 35%, #E8F4EF 0%, #D4EBE1 70%, #C2E2D3 100%) !important;
            border-color: #A87927 !important;
            box-shadow: 0 10px 25px rgba(7, 63, 53, 0.12), 0 0 15px rgba(168, 121, 39, 0.2), inset 0 0 15px rgba(168, 121, 39, 0.15) !important;
        }

        html[data-theme="light"] .quick-bead-number,
        [data-theme="light"] .quick-bead-number,
        body.light-theme .quick-bead-number {
            color: #193B34 !important;
            text-shadow: none !important;
        }

        html[data-theme="light"] .quick-bead-target,
        [data-theme="light"] .quick-bead-target,
        body.light-theme .quick-bead-target {
            color: #536A60 !important;
        }

        html[data-theme="light"] .quick-bead-label,
        [data-theme="light"] .quick-bead-label,
        body.light-theme .quick-bead-label {
            color: #A87927 !important;
        }

        html[data-theme="light"] .dhikr-panel-controls,
        [data-theme="light"] .dhikr-panel-controls,
        body.light-theme .dhikr-panel-controls {
            border-top-color: #DFE9E1 !important;
        }

        html[data-theme="light"] .dhikr-target-label-txt,
        [data-theme="light"] .dhikr-target-label-txt,
        body.light-theme .dhikr-target-label-txt {
            color: #536A60 !important;
        }

        html[data-theme="light"] .dhikr-target-pill,
        [data-theme="light"] .dhikr-target-pill,
        body.light-theme .dhikr-target-pill {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .dhikr-target-pill.active,
            [data-theme="light"] .dhikr-target-pill.active,
            body.light-theme .dhikr-target-pill.active {
                background: #A87927 !important;
                border-color: #A87927 !important;
                color: #FFFFFF !important;
            }

        html[data-theme="light"] .btn-compact-chip,
        [data-theme="light"] .btn-compact-chip,
        body.light-theme .btn-compact-chip {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .btn-compact-chip:hover,
            [data-theme="light"] .btn-compact-chip:hover,
            body.light-theme .btn-compact-chip:hover {
                background: #FFF5E3 !important;
                border-color: #A87927 !important;
                color: #A87927 !important;
            }
        /* ==============================================================================
   زاد المسلم — تنسيقات حائط الدعاء بظهر الغيب (Wall of Duas Styles)
   ============================================================================== */

        .wall-of-duas-section {
            padding: 25px 0 55px;
            position: relative;
            background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
        }

        .wall-header-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 20px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .wall-header-info {
            max-width: 680px;
        }

        .wall-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.35);
            color: var(--gold-400, #d4af37);
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .wall-main-title {
            font-size: clamp(1.6rem, 3.5vw, 2.2rem);
            font-weight: 900;
            color: var(--text-primary, #ffffff);
            margin: 0 0 8px;
            line-height: 1.3;
        }

        .wall-main-desc {
            font-size: 14.5px;
            color: var(--text-secondary, #94a3b8);
            margin: 0;
            line-height: 1.7;
        }

            .wall-main-desc small {
                color: var(--gold-400, #d4af37);
                font-weight: 700;
            }

        .wall-header-cta .btn-open-request-dua {
            padding: 12px 22px;
            border-radius: 14px;
            font-weight: 800;
            font-size: 14.5px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

            .wall-header-cta .btn-open-request-dua:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
            }
        /* شريط بشارة الإشعارات الخاصة بصاحب الدعاء عند العودة */
        .wall-my-duas-banner {
            display: flex;
            align-items: center;
            gap: 16px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(212, 175, 55, 0.15));
            border: 1.5px solid rgba(212, 175, 55, 0.4);
            border-radius: 16px;
            padding: 14px 20px;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            animation: gentlePulseGlow 3s infinite alternate;
        }

        @keyframes gentlePulseGlow {
            0% {
                box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
            }

            100% {
                box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
            }
        }

        .wall-my-duas-banner .banner-icon-bubble {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.2);
            border: 1px solid var(--gold-400, #d4af37);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        .wall-my-duas-banner .banner-content {
            flex-grow: 1;
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-primary, #ffffff);
        }

            .wall-my-duas-banner .banner-content strong {
                color: var(--gold-400, #d4af37);
            }

        .wall-my-duas-banner .banner-amen-count {
            font-size: 16px;
            color: #34d399;
        }

        .btn-banner-view-mine {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }

            .btn-banner-view-mine:hover {
                background: var(--gold-500, #d4af37);
                color: #000;
            }
        /* شريط الإحصائيات الحية */
        .wall-stats-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 14px;
            margin-bottom: 22px;
        }

        .wall-stat-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            background: var(--bg-card, rgba(15, 33, 27, 0.7));
            border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
            border-radius: 16px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

            .wall-stat-item.highlight-stat {
                border-color: rgba(212, 175, 55, 0.35);
                background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(16, 185, 129, 0.08));
            }

            .wall-stat-item .stat-icon-wrapper {
                width: 42px;
                height: 42px;
                border-radius: 12px;
                background: rgba(212, 175, 55, 0.12);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 18px;
                color: var(--gold-400, #d4af37);
                flex-shrink: 0;
            }

            .wall-stat-item .stat-meta {
                display: flex;
                flex-direction: column;
            }

            .wall-stat-item .stat-number {
                font-size: 18px;
                font-weight: 900;
                color: var(--text-primary, #ffffff);
                line-height: 1.2;
            }

            .wall-stat-item .stat-label {
                font-size: 12px;
                color: var(--text-muted, #94a3b8);
                margin-top: 2px;
            }
        /* شريط أزرار تصفية التصنيفات */
        .wall-filters-wrapper {
            margin-bottom: 24px;
            position: relative;
        }

        .wall-filters-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 2px 10px;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }

            .wall-filters-scroll::-webkit-scrollbar {
                height: 4px;
            }

            .wall-filters-scroll::-webkit-scrollbar-thumb {
                background: rgba(212, 175, 55, 0.25);
                border-radius: 4px;
            }

        .wall-filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 16px;
            background: var(--bg-card, rgba(15, 33, 27, 0.7));
            border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
            border-radius: 999px;
            color: var(--text-secondary, #cbd5e1);
            font-size: 13.5px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

            .wall-filter-pill:hover {
                background: rgba(212, 175, 55, 0.12);
                border-color: rgba(212, 175, 55, 0.35);
                color: var(--gold-300, #f6e05e);
            }

            .wall-filter-pill.active {
                background: linear-gradient(135deg, #10b981, #059669);
                border-color: #34d399;
                color: #ffffff;
                box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
            }

            .wall-filter-pill.pill-mine {
                border-color: rgba(236, 72, 153, 0.3);
            }

                .wall-filter-pill.pill-mine.active {
                    background: linear-gradient(135deg, #ec4899, #db2777);
                    border-color: #f472b6;
                    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
                }

        .mine-pill-badge {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
            padding: 1px 7px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 800;
        }
        /* شبكة بطاقات الأدعية */
        .wall-duas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
        }
        /* بطاقة الدعاء */
        .dua-wall-card {
            background: var(--bg-card, rgba(15, 33, 27, 0.8));
            border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
            border-radius: 18px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            position: relative;
            overflow: hidden;
        }

            .dua-wall-card::before {
                content: "";
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                height: 3px;
                background: linear-gradient(90deg, transparent, var(--badge-color, #d4af37), transparent);
                opacity: 0.6;
            }

            .dua-wall-card:hover {
                transform: translateY(-4px);
                border-color: rgba(212, 175, 55, 0.4);
                box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 16px rgba(212, 175, 55, 0.12);
            }

            .dua-wall-card.my-dua-card {
                border-color: rgba(212, 175, 55, 0.45);
                background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, var(--bg-card, rgba(15, 33, 27, 0.85)) 100%);
            }

        .dua-my-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(212, 175, 55, 0.12);
            border: 1px dashed rgba(212, 175, 55, 0.4);
            padding: 5px 10px;
            border-radius: 8px;
            font-size: 11.5px;
            color: var(--gold-300, #f6e05e);
            margin-bottom: 12px;
            font-weight: 700;
        }

        .dua-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
        }

        .dua-author-box {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dua-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(212, 175, 55, 0.2));
            border: 1px solid rgba(212, 175, 55, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold-400, #d4af37);
            font-size: 14px;
        }

        .dua-author-info {
            display: flex;
            flex-direction: column;
        }

        .dua-author-name {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--text-primary, #ffffff);
        }

        .dua-time {
            font-size: 11.5px;
            color: var(--text-muted, #94a3b8);
        }

        .dua-category-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 11.5px;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--badge-color, rgba(212, 175, 55, 0.3));
            color: var(--badge-color, var(--gold-400, #d4af37));
        }

        .dua-card-body {
            flex-grow: 1;
            margin-bottom: 14px;
        }

        .dua-text {
            font-size: 15.5px;
            line-height: 1.85;
            color: var(--text-primary, #e2e8f0);
            font-weight: 500;
            margin: 0;
            text-align: justify;
        }

        .dua-hadith-pill {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 6px 10px;
            background: rgba(16, 185, 129, 0.08);
            border-radius: 10px;
            font-size: 12px;
            color: #34d399;
            margin-bottom: 16px;
            font-weight: 600;
        }

        .dua-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }
        /* زر آمَنْتُ وَدَعَوْتُ لَكَ */
        .btn-wall-amen {
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.35);
            color: #34d399;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 13.5px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

            .btn-wall-amen:hover:not(:disabled) {
                background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
                border-color: #34d399;
                color: #ffffff;
                transform: scale(1.03);
                box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
            }

            .btn-wall-amen.voted {
                background: rgba(16, 185, 129, 0.2);
                border-color: #10b981;
                color: #6ee7b7;
                cursor: default;
            }

            .btn-wall-amen.pulse-amen {
                animation: amenButtonPulse 0.6s ease;
            }

        @keyframes amenButtonPulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.12);
                box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
            }

            100% {
                transform: scale(1);
            }
        }

        .btn-wall-amen .amen-badge-count {
            background: rgba(0, 0, 0, 0.25);
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 900;
        }

        .dua-card-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-card-icon-action {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted, #94a3b8);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

            .btn-card-icon-action:hover {
                background: rgba(255, 255, 255, 0.12);
                color: var(--text-primary, #ffffff);
                border-color: rgba(255, 255, 255, 0.25);
            }

        .btn-share-dua-wa:hover {
            color: #25D366;
            border-color: #25D366;
            background: rgba(37, 211, 102, 0.12);
        }
        /* زر عرض المزيد */
        .wall-load-more-box {
            grid-column: 1 / -1;
            display: flex;
            justify-content: center;
            margin-top: 15px;
        }

        .btn-load-more-duas {
            padding: 12px 28px;
            border-radius: 14px;
            font-size: 14.5px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-color: rgba(212, 175, 55, 0.35);
            color: var(--gold-400, #d4af37);
            transition: all 0.2s;
        }

            .btn-load-more-duas:hover {
                background: rgba(212, 175, 55, 0.12);
                border-color: var(--gold-400, #d4af37);
                transform: translateY(-2px);
            }
        /* الحالة الفارغة */
        .wall-empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 50px 20px;
            background: var(--bg-card, rgba(15, 33, 27, 0.6));
            border: 1px dashed rgba(255, 255, 255, 0.15);
            border-radius: 20px;
        }

            .wall-empty-state .empty-icon {
                font-size: 48px;
                margin-bottom: 12px;
            }

            .wall-empty-state h3 {
                font-size: 18px;
                color: var(--text-primary, #ffffff);
                margin-bottom: 8px;
            }

            .wall-empty-state p {
                font-size: 14px;
                color: var(--text-muted, #94a3b8);
                max-width: 480px;
                margin: 0 auto 18px;
            }
        /* تأثير البشارة الطائرة (Floating Blessing Pill) */
        .floating-blessing-pill {
            position: absolute;
            transform: translate(-50%, 0) scale(0.85);
            background: linear-gradient(135deg, #065f46, #047857);
            border: 1px solid #34d399;
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 12px rgba(16, 185, 129, 0.5);
            pointer-events: none;
            z-index: 9999;
            opacity: 0;
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

            .floating-blessing-pill.active {
                transform: translate(-50%, -12px) scale(1);
                opacity: 1;
            }

            .floating-blessing-pill.fade-out {
                transform: translate(-50%, -24px) scale(0.9);
                opacity: 0;
            }
        /* نافذة اطلب دعاءً بظهر الغيب (Modal) — تصميم راقٍ فخم وعصري */
        .modal-wall-dua-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.76);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 10050;
            align-items: center;
            justify-content: center;
            padding: 16px;
            opacity: 0;
            transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

            .modal-wall-dua-overlay.open {
                display: flex;
                opacity: 1;
            }

        .modal-card-wall-dua {
            background: var(--bg-card, #0a1f18);
            border: 1.5px solid rgba(212, 175, 55, 0.35);
            border-radius: 26px;
            width: 100%;
            max-width: 530px;
            padding: 24px 26px;
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.65), 0 0 35px rgba(212, 175, 55, 0.15);
            position: relative;
            transform: translateY(20px) scale(0.97);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-wall-dua-overlay.open .modal-card-wall-dua {
            transform: translateY(0) scale(1);
        }

        .modal-card-wall-dua .modal-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 16px;
            gap: 12px;
        }

        .modal-header-info-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-header-icon-bubble {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.2));
            border: 1px solid rgba(212, 175, 55, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold-400, #d4af37);
            font-size: 20px;
            flex-shrink: 0;
        }

        .modal-card-wall-dua .modal-title {
            font-size: 1.25rem;
            font-weight: 900;
            color: var(--text-primary, #ffffff);
            margin: 0 0 3px;
            line-height: 1.3;
        }

        .modal-card-wall-dua .modal-subtitle {
            font-size: 12.5px;
            color: var(--text-muted, #94a3b8);
            margin: 0;
            line-height: 1.5;
        }

        .modal-close-circle-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-muted, #94a3b8);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

            .modal-close-circle-btn:hover {
                background: rgba(239, 68, 68, 0.2);
                color: #ef4444;
                border-color: rgba(239, 68, 68, 0.4);
                transform: rotate(90deg);
            }

        .dua-form-group {
            margin-bottom: 16px;
        }

        .dua-form-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 13px;
            font-weight: 800;
            color: var(--text-primary, #e2e8f0);
            margin-bottom: 7px;
        }

            .dua-form-label .label-icon {
                color: var(--gold-400, #d4af37);
                font-size: 13px;
            }

        .dua-select-wrapper {
            position: relative;
            width: 100%;
        }

        .dua-form-select {
            width: 100%;
            padding: 12px 14px 12px 38px;
            background: rgba(255, 255, 255, 0.04);
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            color: var(--text-primary, #ffffff);
            font-size: 13.5px;
            font-weight: 600;
            appearance: none;
            -webkit-appearance: none;
            outline: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            .dua-form-select:focus {
                border-color: var(--gold-400, #d4af37);
                background: rgba(255, 255, 255, 0.07);
                box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
            }

            .dua-form-select option {
                background: #0a1f18;
                color: #ffffff;
            }

        .dua-select-arrow {
            position: absolute;
            inset-inline-end: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gold-400, #d4af37);
            pointer-events: none;
            font-size: 12px;
        }

        .templates-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .dua-form-label-subtle {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted, #94a3b8);
        }

        .templates-hint {
            font-size: 11px;
            color: var(--gold-400, #d4af37);
            font-weight: 600;
        }

        .quick-templates-chips {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 2px 2px 8px;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }

            .quick-templates-chips::-webkit-scrollbar {
                height: 4px;
            }

            .quick-templates-chips::-webkit-scrollbar-thumb {
                background: rgba(212, 175, 55, 0.3);
                border-radius: 4px;
            }

        .quick-tpl-chip {
            flex-shrink: 0;
            max-width: 290px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 7px 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(212, 175, 55, 0.25);
            border-radius: 999px;
            color: var(--text-secondary, #cbd5e1);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

            .quick-tpl-chip:hover {
                background: rgba(212, 175, 55, 0.15);
                border-color: var(--gold-400, #d4af37);
                color: var(--gold-300, #f6e05e);
                transform: translateY(-1px);
            }

            .quick-tpl-chip:active {
                transform: scale(0.96);
            }

        .dua-label-counter-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 7px;
        }

        .dua-char-counter {
            font-size: 11.5px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-muted, #94a3b8);
        }

            .dua-char-counter.limit-exceeded {
                background: rgba(239, 68, 68, 0.2);
                color: #ef4444;
            }

        .dua-form-textarea {
            width: 100%;
            min-height: 95px;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            color: var(--text-primary, #ffffff);
            font-size: 14px;
            line-height: 1.75;
            outline: none;
            resize: vertical;
            transition: all 0.2s ease;
        }

            .dua-form-textarea:focus {
                border-color: var(--gold-400, #d4af37);
                background: rgba(255, 255, 255, 0.07);
                box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
            }

        .dua-form-input {
            width: 100%;
            padding: 11px 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            color: var(--text-primary, #ffffff);
            font-size: 13.5px;
            outline: none;
            transition: all 0.2s ease;
        }

            .dua-form-input:focus {
                border-color: var(--gold-400, #d4af37);
                background: rgba(255, 255, 255, 0.07);
                box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
            }

        .dua-field-note {
            display: block;
            font-size: 11.5px;
            color: var(--text-muted, #94a3b8);
            margin-top: 5px;
            line-height: 1.4;
        }

        .dua-prophetic-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(212, 175, 55, 0.08));
            border: 1px dashed rgba(212, 175, 55, 0.35);
            border-radius: 14px;
            margin-bottom: 20px;
        }

            .dua-prophetic-banner .prophetic-icon {
                font-size: 20px;
                flex-shrink: 0;
            }

            .dua-prophetic-banner .prophetic-text {
                font-size: 12.5px;
                line-height: 1.6;
                color: var(--text-secondary, #cbd5e1);
            }

                .dua-prophetic-banner .prophetic-text strong {
                    color: var(--gold-400, #d4af37);
                    display: block;
                    font-size: 12px;
                }

        .dua-modal-actions {
            display: flex;
        }

        .btn-submit-dua {
            width: 100%;
            padding: 14px 20px;
            border-radius: 16px;
            background: linear-gradient(135deg, #d4af37 0%, #b89124 100%);
            border: none;
            color: #0b1e17;
            font-size: 15px;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
            transition: all 0.25s ease;
        }

            .btn-submit-dua:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5);
                filter: brightness(1.05);
            }

            .btn-submit-dua:active {
                transform: scale(0.98);
            }
        /* توست الإشعار الدافئ المخصص */
        .wall-warm-toast-container {
            position: fixed;
            bottom: 24px;
            left: 24px;
            right: 24px;
            max-width: 440px;
            margin: 0 auto;
            z-index: 10100;
            pointer-events: none;
        }

        .wall-warm-toast {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: linear-gradient(135deg, #064e3b, #065f46);
            border: 1.5px solid #34d399;
            border-radius: 16px;
            padding: 14px 18px;
            color: #ffffff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.35);
            pointer-events: auto;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

            .wall-warm-toast.visible {
                opacity: 1;
                transform: translateY(0);
            }

            .wall-warm-toast .toast-icon {
                font-size: 26px;
                flex-shrink: 0;
            }

            .wall-warm-toast .toast-body strong {
                display: block;
                font-size: 14px;
                color: #fde047;
                margin-bottom: 3px;
            }

            .wall-warm-toast .toast-body p {
                font-size: 13px;
                line-height: 1.5;
                margin: 0;
                color: #e2e8f0;
            }

            .wall-warm-toast .toast-close {
                background: none;
                border: none;
                color: rgba(255, 255, 255, 0.6);
                font-size: 20px;
                cursor: pointer;
                padding: 0 4px;
                line-height: 1;
            }
        /* ==============================================================================
   تنسيقات المظهر النهاري (Light Theme Overrides)
   ============================================================================== */
        html[data-theme="light"] .wall-of-duas-section,
        body.light-theme .wall-of-duas-section {
            background: radial-gradient(circle at 50% 0%, rgba(14, 102, 84, 0.04) 0%, transparent 70%);
        }

        html[data-theme="light"] .wall-main-title,
        body.light-theme .wall-main-title {
            color: #192723;
        }

        html[data-theme="light"] .wall-main-desc,
        body.light-theme .wall-main-desc {
            color: #536A60;
        }

        html[data-theme="light"] .wall-my-duas-banner,
        body.light-theme .wall-my-duas-banner {
            background: linear-gradient(135deg, #E6F5EE, #FFF8EB);
            border-color: #A87927;
        }

            html[data-theme="light"] .wall-my-duas-banner .banner-content,
            body.light-theme .wall-my-duas-banner .banner-content {
                color: #192723;
            }

        html[data-theme="light"] .btn-banner-view-mine,
        body.light-theme .btn-banner-view-mine {
            background: #FFFFFF;
            border-color: #DFE9E1;
            color: #192723;
        }

        html[data-theme="light"] .wall-stat-item,
        body.light-theme .wall-stat-item {
            background: #FFFFFF;
            border-color: #DFE9E1;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        }

            html[data-theme="light"] .wall-stat-item .stat-number,
            body.light-theme .wall-stat-item .stat-number {
                color: #192723;
            }

            html[data-theme="light"] .wall-stat-item .stat-label,
            body.light-theme .wall-stat-item .stat-label {
                color: #6C8178;
            }

        html[data-theme="light"] .wall-filter-pill,
        body.light-theme .wall-filter-pill {
            background: #FFFFFF;
            border-color: #DFE9E1;
            color: #536A60;
        }

            html[data-theme="light"] .wall-filter-pill:hover,
            body.light-theme .wall-filter-pill:hover {
                background: #F4F8F5;
                border-color: #A87927;
                color: #A87927;
            }

            html[data-theme="light"] .wall-filter-pill.active,
            body.light-theme .wall-filter-pill.active {
                background: linear-gradient(135deg, #0E6654, #0A5042);
                border-color: #0E6654;
                color: #FFFFFF;
            }

        html[data-theme="light"] .dua-wall-card,
        body.light-theme .dua-wall-card {
            background: #FFFFFF;
            border-color: #DFE9E1;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
        }

            html[data-theme="light"] .dua-wall-card:hover,
            body.light-theme .dua-wall-card:hover {
                border-color: #A87927;
                box-shadow: 0 8px 24px rgba(168, 121, 39, 0.12);
            }

        html[data-theme="light"] .dua-author-name,
        body.light-theme .dua-author-name {
            color: #192723;
        }

        html[data-theme="light"] .dua-text,
        body.light-theme .dua-text {
            color: #2D3E38;
        }

        html[data-theme="light"] .dua-hadith-pill,
        body.light-theme .dua-hadith-pill {
            background: #E8F5EF;
            color: #0E6654;
        }

        html[data-theme="light"] .btn-wall-amen,
        body.light-theme .btn-wall-amen {
            background: #E8F5EF;
            border-color: #A6DBC2;
            color: #0E6654;
        }

            html[data-theme="light"] .btn-wall-amen:hover:not(:disabled),
            body.light-theme .btn-wall-amen:hover:not(:disabled) {
                background: #0E6654;
                border-color: #0E6654;
                color: #FFFFFF;
            }

            html[data-theme="light"] .btn-wall-amen.voted,
            body.light-theme .btn-wall-amen.voted {
                background: #C4EBD8;
                border-color: #0E6654;
                color: #0A5042;
            }

        html[data-theme="light"] .btn-card-icon-action,
        body.light-theme .btn-card-icon-action {
            background: #F7F9F6;
            border-color: #DFE9E1;
            color: #536A60;
        }

        html[data-theme="light"] .modal-card-wall-dua,
        body.light-theme .modal-card-wall-dua {
            background: #FFFFFF;
            border-color: #DFE9E1;
            box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15), 0 0 35px rgba(168, 121, 39, 0.1);
        }

            html[data-theme="light"] .modal-card-wall-dua .modal-title,
            body.light-theme .modal-card-wall-dua .modal-title {
                color: #192723;
            }

        html[data-theme="light"] .modal-close-circle-btn,
        body.light-theme .modal-close-circle-btn {
            background: #F4F8F5;
            border-color: #DFE9E1;
            color: #536A60;
        }

        html[data-theme="light"] .dua-form-label,
        body.light-theme .dua-form-label {
            color: #192723;
        }

        html[data-theme="light"] .dua-form-select,
        body.light-theme .dua-form-select {
            background: #F8FAF8;
            border-color: #DFE9E1;
            color: #192723;
        }

            html[data-theme="light"] .dua-form-select option,
            body.light-theme .dua-form-select option {
                background: #FFFFFF;
                color: #192723;
            }

        html[data-theme="light"] .quick-tpl-chip,
        body.light-theme .quick-tpl-chip {
            background: #F8FAF8;
            border-color: #DFE9E1;
            color: #536A60;
        }

            html[data-theme="light"] .quick-tpl-chip:hover,
            body.light-theme .quick-tpl-chip:hover {
                background: #FFF8EB;
                border-color: #A87927;
                color: #A87927;
            }

        html[data-theme="light"] .dua-form-textarea,
        body.light-theme .dua-form-textarea {
            background: #F8FAF8;
            border-color: #DFE9E1;
            color: #192723;
        }

            html[data-theme="light"] .dua-form-textarea:focus,
            body.light-theme .dua-form-textarea:focus,
            html[data-theme="light"] .dua-form-input:focus,
            body.light-theme .dua-form-input:focus {
                background: #FFFFFF;
                border-color: #A87927;
                box-shadow: 0 0 0 3px rgba(168, 121, 39, 0.15);
            }

        html[data-theme="light"] .dua-form-input,
        body.light-theme .dua-form-input {
            background: #F8FAF8;
            border-color: #DFE9E1;
            color: #192723;
        }

        html[data-theme="light"] .dua-prophetic-banner,
        body.light-theme .dua-prophetic-banner {
            background: linear-gradient(135deg, #E6F5EE, #FFF8EB);
            border-color: rgba(168, 121, 39, 0.4);
        }

            html[data-theme="light"] .dua-prophetic-banner .prophetic-text,
            body.light-theme .dua-prophetic-banner .prophetic-text {
                color: #192723;
            }
        /* التجاوب مع شاشات الهواتف */
        @media (max-width: 640px) {
            .wall-header-wrapper {
                flex-direction: column;
                align-items: stretch;
                gap: 16px;
            }

            .wall-header-cta .btn-open-request-dua {
                width: 100%;
                justify-content: center;
            }

            .wall-duas-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            .dua-wall-card {
                padding: 16px;
            }

            .wall-stats-strip {
                grid-template-columns: 1fr 1fr;
            }

            .wall-stat-item:last-child {
                grid-column: 1 / -1;
            }

            .modal-wall-dua-overlay {
                padding: 10px;
                align-items: flex-end;
            }

            .modal-card-wall-dua {
                max-height: 90vh;
                border-radius: 26px 26px 16px 16px;
                padding: 20px 18px;
            }
        }
        /* ==========================================================================
   دليل الصلاة الشامل • صفة صلاة النبي ﷺ (Prayer Guide Module Styles)
   ========================================================================== */
        .prayer-guide-section {
            position: relative;
            padding: 25px 0 60px;
        }

        .prayer-guide-box {
            background: var(--bg-card, #13271f);
            border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
            border-radius: 24px;
            padding: 28px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
            position: relative;
            overflow: hidden;
        }

        .prayer-guide-hero {
            display: flex;
            align-items: center;
            gap: 18px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        }

        .prayer-guide-icon-circle {
            width: 62px;
            height: 62px;
            min-width: 62px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(16, 185, 129, 0.2));
            border: 2px solid var(--gold-400, #d4af37);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: var(--gold-400, #d4af37);
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
        }

        .prayer-guide-hero-text h2 {
            font-size: 1.45rem;
            font-weight: 800;
            color: var(--ink, #ffffff);
            margin: 0 0 6px 0;
            line-height: 1.3;
        }

        .prayer-guide-hero-text p {
            font-size: 0.92rem;
            color: var(--muted, #94a3b8);
            margin: 0;
            line-height: 1.5;
        }
        /* شريط التبويبات الفاخر */
        .prayer-guide-tabs {
            display: flex;
            align-items: center;
            gap: 10px;
            overflow-x: auto;
            padding: 6px 4px 14px;
            margin-bottom: 20px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

            .prayer-guide-tabs::-webkit-scrollbar {
                display: none;
            }

        .pg-tab-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(212, 175, 55, 0.18);
            border-radius: 30px;
            color: var(--muted, #94a3b8);
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.25s ease;
            font-family: inherit;
        }

            .pg-tab-btn:hover {
                background: rgba(212, 175, 55, 0.1);
                color: var(--gold-300, #f6e05e);
                border-color: rgba(212, 175, 55, 0.4);
            }

            .pg-tab-btn.active {
                background: linear-gradient(135deg, #10b981, #059669);
                color: #ffffff;
                border-color: #34d399;
                box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
            }
        /* الحاويات التفاعلية */
        .pg-pane {
            display: none;
            animation: fadeInPane 0.3s ease;
        }

            .pg-pane.active {
                display: block;
            }

        @keyframes fadeInPane {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pg-sections-grid {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .pg-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

            .pg-card.expanded {
                border-color: rgba(212, 175, 55, 0.35);
                box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
            }

        .pg-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            cursor: pointer;
            user-select: none;
            background: rgba(0, 0, 0, 0.15);
            transition: background 0.2s ease;
        }

            .pg-card-header:hover {
                background: rgba(212, 175, 55, 0.05);
            }

        .pg-card-title-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .pg-card-title {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--ink, #ffffff);
            margin: 0;
        }

        .pg-card-arrow {
            color: var(--gold-400, #d4af37);
            font-size: 0.95rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .pg-card.expanded .pg-card-arrow {
            transform: rotate(180deg);
        }

        .pg-card-body {
            display: none;
            padding: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .pg-card.expanded .pg-card-body {
            display: block;
        }

        .pg-card-intro {
            font-size: 0.92rem;
            color: var(--muted, #94a3b8);
            margin-top: 0;
            margin-bottom: 16px;
            line-height: 1.6;
        }
        /* البادجات */
        .pg-badge {
            display: inline-block;
            font-size: 0.76rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 20px;
        }

        .pg-badge-gold {
            background: rgba(212, 175, 55, 0.15);
            color: var(--gold-400, #d4af37);
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .pg-badge-danger {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .pg-badge-warning {
            background: rgba(245, 158, 11, 0.15);
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .pg-badge-info {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .pg-badge-green {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        /* قوائم العناصر والشروط والأركان */
        .pg-items-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pg-item-row {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

            .pg-item-row.danger {
                border-inline-end: 3px solid #ef4444;
                background: rgba(239, 68, 68, 0.05);
            }

        .pg-item-name {
            font-weight: 800;
            font-size: 0.95rem;
            color: var(--gold-300, #f6e05e);
        }

        .pg-item-row.danger .pg-item-name {
            color: #f87171;
        }

        .pg-item-detail {
            font-size: 0.88rem;
            color: var(--muted, #cbd5e1);
            line-height: 1.55;
        }
        /* شبكة كروت الصلوات والنوافل */
        .pg-prayer-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 14px;
        }

        .pg-prayer-subcard {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(212, 175, 55, 0.15);
            border-radius: 14px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow: hidden;
            word-break: break-word;
        }

        .pg-prayer-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 8px;
            flex-wrap: wrap;
        }

        .pg-prayer-name {
            font-size: 1.02rem;
            font-weight: 800;
            color: var(--gold-400, #d4af37);
            margin: 0;
            line-height: 1.35;
            flex: 1 1 auto;
        }

        .pg-prayer-rakaat {
            font-size: 0.78rem;
            font-weight: 700;
            padding: 3px 9px;
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border-radius: 8px;
            white-space: normal;
            line-height: 1.35;
            border: 1px solid rgba(16, 185, 129, 0.25);
            display: inline-block;
            max-width: 100%;
        }

        .pg-prayer-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .pg-prayer-row {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            font-size: 0.84rem;
            line-height: 1.45;
        }

            .pg-prayer-row.notes {
                background: rgba(212, 175, 55, 0.05);
                padding: 6px 10px;
                border-radius: 8px;
                margin-top: 4px;
            }

        .pg-row-label {
            font-weight: 700;
            color: var(--muted, #94a3b8);
            white-space: nowrap;
        }

        .pg-row-val {
            color: var(--ink, #ffffff);
        }
        /* صناديق أذكار الصلاة الفاخرة */
        .pg-adhkar-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .pg-dua-box {
            background: linear-gradient(135deg, rgba(20, 42, 34, 0.7), rgba(10, 24, 18, 0.9));
            border: 1px solid rgba(212, 175, 55, 0.25);
            border-radius: 16px;
            padding: 16px 18px;
            position: relative;
            box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.3);
        }

        .pg-dua-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.12);
            padding-bottom: 6px;
        }

        .pg-dua-subtitle {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--gold-400, #d4af37);
        }

        .pg-copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--muted, #cbd5e1);
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

            .pg-copy-btn:hover {
                background: rgba(212, 175, 55, 0.15);
                color: var(--gold-300, #f6e05e);
                border-color: rgba(212, 175, 55, 0.4);
            }

            .pg-copy-btn.copied {
                background: rgba(16, 185, 129, 0.2);
                color: #34d399;
                border-color: #34d399;
            }

        .pg-dua-arabic {
            font-family: var(--font-quran, 'Amiri', serif);
            font-size: 1.18rem;
            line-height: 2.1;
            color: #fef08a;
            text-align: justify;
            margin-bottom: 8px;
        }

        .pg-dua-trans {
            font-size: 0.86rem;
            color: #94a3b8;
            line-height: 1.5;
            margin-bottom: 6px;
        }

        .pg-dua-source {
            font-size: 0.78rem;
            color: #64748b;
            font-style: italic;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        /* شبكة كروت المنهيات والمكروهات */
        .pg-prohibitions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 14px;
            margin-bottom: 20px;
        }

        .pg-prohibition-card {
            background: rgba(239, 68, 68, 0.04);
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-radius: 14px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

            .pg-prohibition-card:hover {
                transform: translateY(-2px);
                border-color: rgba(239, 68, 68, 0.4);
            }

        .pg-prohibition-title {
            font-size: 0.96rem;
            font-weight: 800;
            color: #f87171;
        }

        .pg-prohibition-hadith {
            font-family: var(--font-quran, 'Amiri', serif);
            font-size: 1.05rem;
            line-height: 1.8;
            color: #fee2e2;
            background: rgba(0, 0, 0, 0.2);
            padding: 8px 12px;
            border-radius: 8px;
        }

        .pg-prohibition-explanation {
            font-size: 0.85rem;
            color: #cbd5e1;
            line-height: 1.5;
        }

        @media (max-width: 768px) {
            .prayer-guide-box {
                padding: 18px 14px;
                border-radius: 20px;
            }

            .prayer-guide-hero {
                gap: 12px;
            }

            .prayer-guide-icon-circle {
                width: 48px;
                height: 48px;
                min-width: 48px;
                font-size: 22px;
            }

            .prayer-guide-hero-text h2 {
                font-size: 1.2rem;
            }

            .pg-card-header {
                padding: 14px 16px;
            }

            .pg-card-body {
                padding: 16px 14px;
            }

            .pg-prayer-cards-grid,
            .pg-prohibitions-grid {
                grid-template-columns: 1fr;
            }

            .pg-dua-arabic {
                font-size: 1.08rem;
            }
        }
        /* ==============================================================================
   تنسيقات المظهر النهاري • دليل الصلاة الشامل (Prayer Guide - Light Theme)
   ============================================================================== */
        html[data-theme="light"] .prayer-guide-section,
        [data-theme="light"] .prayer-guide-section,
        body.light-theme .prayer-guide-section {
            background: transparent;
        }

        html[data-theme="light"] .prayer-guide-box,
        [data-theme="light"] .prayer-guide-box,
        body.light-theme .prayer-guide-box {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 8px 30px rgba(7, 63, 53, 0.06) !important;
        }

        html[data-theme="light"] .prayer-guide-hero,
        [data-theme="light"] .prayer-guide-hero,
        body.light-theme .prayer-guide-hero {
            border-bottom: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .prayer-guide-icon-circle,
        [data-theme="light"] .prayer-guide-icon-circle,
        body.light-theme .prayer-guide-icon-circle {
            background: linear-gradient(135deg, #FFF5E3, #E8F4EF) !important;
            border-color: #A87927 !important;
            color: #A87927 !important;
            box-shadow: 0 4px 16px rgba(168, 121, 39, 0.15) !important;
        }

        html[data-theme="light"] .prayer-guide-hero-text h2,
        [data-theme="light"] .prayer-guide-hero-text h2,
        body.light-theme .prayer-guide-hero-text h2 {
            color: #193B34 !important;
        }

        html[data-theme="light"] .prayer-guide-hero-text p,
        [data-theme="light"] .prayer-guide-hero-text p,
        body.light-theme .prayer-guide-hero-text p {
            color: #536A60 !important;
        }
        /* شريط التبويبات النهاري */
        html[data-theme="light"] .pg-tab-btn,
        [data-theme="light"] .pg-tab-btn,
        body.light-theme .pg-tab-btn {
            background: #F0F5F1 !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .pg-tab-btn:hover,
            [data-theme="light"] .pg-tab-btn:hover,
            body.light-theme .pg-tab-btn:hover {
                background: #FFF5E3 !important;
                border-color: #D8A547 !important;
                color: #A87927 !important;
            }

            html[data-theme="light"] .pg-tab-btn.active,
            [data-theme="light"] .pg-tab-btn.active,
            body.light-theme .pg-tab-btn.active {
                background: linear-gradient(135deg, #073F35, #0E6654) !important;
                color: #FFFFFF !important;
                border-color: #073F35 !important;
                box-shadow: 0 4px 14px rgba(7, 63, 53, 0.22) !important;
            }
        /* بطاقات الطي والأقسام */
        html[data-theme="light"] .pg-card,
        [data-theme="light"] .pg-card,
        body.light-theme .pg-card {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 2px 8px rgba(7, 63, 53, 0.03) !important;
        }

            html[data-theme="light"] .pg-card.expanded,
            [data-theme="light"] .pg-card.expanded,
            body.light-theme .pg-card.expanded {
                border-color: #C2D5C8 !important;
                box-shadow: 0 6px 20px rgba(7, 63, 53, 0.06) !important;
            }

        html[data-theme="light"] .pg-card-header,
        [data-theme="light"] .pg-card-header,
        body.light-theme .pg-card-header {
            background: #F7F9F6 !important;
        }

            html[data-theme="light"] .pg-card-header:hover,
            [data-theme="light"] .pg-card-header:hover,
            body.light-theme .pg-card-header:hover {
                background: #EEF4F0 !important;
            }

        html[data-theme="light"] .pg-card-title,
        [data-theme="light"] .pg-card-title,
        body.light-theme .pg-card-title {
            color: #193B34 !important;
        }

        html[data-theme="light"] .pg-card-arrow,
        [data-theme="light"] .pg-card-arrow,
        body.light-theme .pg-card-arrow {
            color: #A87927 !important;
        }

        html[data-theme="light"] .pg-card-body,
        [data-theme="light"] .pg-card-body,
        body.light-theme .pg-card-body {
            border-top: 1px solid #DFE9E1 !important;
            background: #FFFFFF !important;
        }

        html[data-theme="light"] .pg-card-intro,
        [data-theme="light"] .pg-card-intro,
        body.light-theme .pg-card-intro {
            color: #536A60 !important;
        }
        /* الشارات التوضيحية الفاخرة */
        html[data-theme="light"] .pg-badge-gold,
        [data-theme="light"] .pg-badge-gold,
        body.light-theme .pg-badge-gold {
            background: #FFF5E3 !important;
            color: #8E651E !important;
            border: 1px solid #E6BD70 !important;
        }

        html[data-theme="light"] .pg-badge-danger,
        [data-theme="light"] .pg-badge-danger,
        body.light-theme .pg-badge-danger {
            background: #FEF2F2 !important;
            color: #DC2626 !important;
            border: 1px solid #FECACA !important;
        }

        html[data-theme="light"] .pg-badge-warning,
        [data-theme="light"] .pg-badge-warning,
        body.light-theme .pg-badge-warning {
            background: #FFFBEB !important;
            color: #B45309 !important;
            border: 1px solid #FDE68A !important;
        }

        html[data-theme="light"] .pg-badge-info,
        [data-theme="light"] .pg-badge-info,
        body.light-theme .pg-badge-info {
            background: #EFF6FF !important;
            color: #1D4ED8 !important;
            border: 1px solid #BFDBFE !important;
        }

        html[data-theme="light"] .pg-badge-green,
        [data-theme="light"] .pg-badge-green,
        body.light-theme .pg-badge-green {
            background: #E8F4EF !important;
            color: #073F35 !important;
            border: 1px solid #B0D7C6 !important;
        }
        /* قوائم الشروط والأركان والواجبات */
        html[data-theme="light"] .pg-item-row,
        [data-theme="light"] .pg-item-row,
        body.light-theme .pg-item-row {
            background: #F7F9F6 !important;
            border: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .pg-item-name,
        [data-theme="light"] .pg-item-name,
        body.light-theme .pg-item-name {
            color: #0E6654 !important;
        }

        html[data-theme="light"] .pg-item-detail,
        [data-theme="light"] .pg-item-detail,
        body.light-theme .pg-item-detail {
            color: #384F45 !important;
        }

        html[data-theme="light"] .pg-item-row.danger,
        [data-theme="light"] .pg-item-row.danger,
        body.light-theme .pg-item-row.danger {
            background: #FFF5F5 !important;
            border: 1px solid #FED7D7 !important;
            border-inline-start: 3px solid #DC2626 !important;
            border-inline-end: none !important;
        }

            html[data-theme="light"] .pg-item-row.danger .pg-item-name,
            [data-theme="light"] .pg-item-row.danger .pg-item-name,
            body.light-theme .pg-item-row.danger .pg-item-name {
                color: #B91C1C !important;
            }

            html[data-theme="light"] .pg-item-row.danger .pg-item-detail,
            [data-theme="light"] .pg-item-row.danger .pg-item-detail,
            body.light-theme .pg-item-row.danger .pg-item-detail {
                color: #742A2A !important;
            }
        /* كروت الصلوات والنوافل */
        html[data-theme="light"] .pg-prayer-subcard,
        [data-theme="light"] .pg-prayer-subcard,
        body.light-theme .pg-prayer-subcard {
            background: #FDFEFD !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 2px 10px rgba(7, 63, 53, 0.04) !important;
        }

        html[data-theme="light"] .pg-prayer-head,
        [data-theme="light"] .pg-prayer-head,
        body.light-theme .pg-prayer-head {
            border-bottom: 1px solid #DFE9E1 !important;
        }

        html[data-theme="light"] .pg-prayer-name,
        [data-theme="light"] .pg-prayer-name,
        body.light-theme .pg-prayer-name {
            color: #073F35 !important;
        }

        html[data-theme="light"] .pg-prayer-rakaat,
        [data-theme="light"] .pg-prayer-rakaat,
        body.light-theme .pg-prayer-rakaat {
            background: #E8F4EF !important;
            color: #0E6654 !important;
            border: 1px solid #C2E2D3 !important;
        }

        html[data-theme="light"] .pg-prayer-row.notes,
        [data-theme="light"] .pg-prayer-row.notes,
        body.light-theme .pg-prayer-row.notes {
            background: #FFFBEB !important;
            border: 1px solid #FEF3C7 !important;
        }

        html[data-theme="light"] .pg-row-label,
        [data-theme="light"] .pg-row-label,
        body.light-theme .pg-row-label {
            color: #536A60 !important;
        }

        html[data-theme="light"] .pg-row-val,
        [data-theme="light"] .pg-row-val,
        body.light-theme .pg-row-val {
            color: #193B34 !important;
        }
        /* صناديق أدعية وأذكار الصلاة */
        html[data-theme="light"] .pg-dua-box,
        [data-theme="light"] .pg-dua-box,
        body.light-theme .pg-dua-box {
            background: linear-gradient(135deg, #FFFDF7, #F4F8F5) !important;
            border: 1px solid #E6D5B8 !important;
            box-shadow: 0 3px 12px rgba(7, 63, 53, 0.04) !important;
        }

        html[data-theme="light"] .pg-dua-head,
        [data-theme="light"] .pg-dua-head,
        body.light-theme .pg-dua-head {
            border-bottom: 1px solid #EFE4D1 !important;
        }

        html[data-theme="light"] .pg-dua-subtitle,
        [data-theme="light"] .pg-dua-subtitle,
        body.light-theme .pg-dua-subtitle {
            color: #8E651E !important;
        }

        html[data-theme="light"] .pg-copy-btn,
        [data-theme="light"] .pg-copy-btn,
        body.light-theme .pg-copy-btn {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            color: #536A60 !important;
        }

            html[data-theme="light"] .pg-copy-btn:hover,
            [data-theme="light"] .pg-copy-btn:hover,
            body.light-theme .pg-copy-btn:hover {
                background: #FFF5E3 !important;
                border-color: #D8A547 !important;
                color: #8E651E !important;
            }

            html[data-theme="light"] .pg-copy-btn.copied,
            [data-theme="light"] .pg-copy-btn.copied,
            body.light-theme .pg-copy-btn.copied {
                background: #E8F4EF !important;
                color: #0E6654 !important;
                border-color: #0E6654 !important;
            }

        html[data-theme="light"] .pg-dua-arabic,
        [data-theme="light"] .pg-dua-arabic,
        body.light-theme .pg-dua-arabic {
            color: #073F35 !important;
        }

        html[data-theme="light"] .pg-dua-trans,
        [data-theme="light"] .pg-dua-trans,
        body.light-theme .pg-dua-trans {
            color: #4A6357 !important;
        }

        html[data-theme="light"] .pg-dua-source,
        [data-theme="light"] .pg-dua-source,
        body.light-theme .pg-dua-source {
            color: #6C8178 !important;
        }
        /* كروت المنهيات والمكروهات */
        html[data-theme="light"] .pg-prohibition-card,
        [data-theme="light"] .pg-prohibition-card,
        body.light-theme .pg-prohibition-card {
            background: #FFFBFB !important;
            border: 1px solid #FED7D7 !important;
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.05) !important;
        }

            html[data-theme="light"] .pg-prohibition-card:hover,
            [data-theme="light"] .pg-prohibition-card:hover,
            body.light-theme .pg-prohibition-card:hover {
                border-color: #FEB2B2 !important;
            }

        html[data-theme="light"] .pg-prohibition-title,
        [data-theme="light"] .pg-prohibition-title,
        body.light-theme .pg-prohibition-title {
            color: #B91C1C !important;
        }

        html[data-theme="light"] .pg-prohibition-hadith,
        [data-theme="light"] .pg-prohibition-hadith,
        body.light-theme .pg-prohibition-hadith {
            color: #742A2A !important;
            background: #FFF5F5 !important;
            border: 1px solid #FED7D7 !important;
        }

        html[data-theme="light"] .pg-prohibition-explanation,
        [data-theme="light"] .pg-prohibition-explanation,
        body.light-theme .pg-prohibition-explanation {
            color: #4A5568 !important;
        }

            html[data-theme="light"] .pg-prohibition-explanation .text-gold,
            [data-theme="light"] .pg-prohibition-explanation .text-gold,
            body.light-theme .pg-prohibition-explanation .text-gold {
                color: #8E651E !important;
            }
        /* ========================================================
   نظام وضع التركيز وعرض الخدمة الفردية (Single-Service Focus Mode)
   ======================================================== */
        /* الوضع الافتراضي: فهرس الخدمات (Directory Hub Mode) */
        body.services-hub-mode .service-view-section {
            display: none !important;
        }

        body.services-hub-mode #services-directory {
            display: block !important;
        }

        body.services-hub-mode #serviceFocusHeader {
            display: none !important;
        }

        body.services-hub-mode #floatingBackToServices {
            display: none !important;
        }
        /* وضع الخدمة النشطة الفردية (Single Service Active View) */
        body.single-service-mode #services-directory {
            display: none !important;
        }

        body.single-service-mode .service-view-section {
            display: none !important;
        }

            body.single-service-mode .service-view-section.active-service-view {
                display: block !important;
                animation: serviceFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            }

        @keyframes serviceFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* شريط رأس الخدمة المركزة (Focus Header Bar) */
        .service-focus-header {
            display: none;
            background: var(--nav-bg, rgba(11, 23, 42, 0.94));
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color, rgba(212, 175, 55, 0.25));
            padding: 12px 0;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
        }

        [data-theme="light"] .service-focus-header,
        body.light-theme .service-focus-header {
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid rgba(180, 140, 20, 0.2);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
        }

        .service-focus-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

.btn-focus-back {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: 0;
    background: #163A2F;
    color: #F1F5F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}



        .service-focus-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            justify-content: center;
            text-align: center;
            min-width: 0;
        }

        .service-focus-badge {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.14);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
            font-size: 0.75rem;
            font-weight: 700;
            white-space: nowrap;
        }

        [data-theme="light"] .service-focus-badge,
        body.light-theme .service-focus-badge {
            background: #ecfdf5;
            color: #047857;
            border-color: #a7f3d0;
        }

        .service-focus-title {
            font-size: 1.05rem;
            font-weight: 800;
            margin: 0;
            color: var(--text-primary, #f8fafc);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .service-focus-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-focus-home {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-muted, #94a3b8);
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
        }

        [data-theme="light"] .btn-focus-home,
        body.light-theme .btn-focus-home {
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.08);
            color: #4b5563;
        }

        .btn-focus-home:hover {
            color: var(--gold-400, #d4af37);
            border-color: rgba(212, 175, 55, 0.3);
        }
        /* زر عائم سريع للعودة يظهر عند التمرير لأسفل في وضع الخدمة */
        #floatingBackToServices {
            position: fixed;
            bottom: 84px;
            inset-inline-start: 20px;
            z-index: 990;
            display: none;
            align-items: center;
            gap: 8px;
            background: rgba(16, 185, 129, 0.14);
            color: #d4af37;
            border: 1px solid rgba(212, 175, 55, 0.4);
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 0.88rem;
            font-weight: 700;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
            backdrop-filter: blur(10px);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        [data-theme="light"] #floatingBackToServices,
        body.light-theme #floatingBackToServices {
            background: rgba(255, 255, 255, 0.97);
            color: #854d0e;
            border-color: rgba(202, 138, 4, 0.45);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }

        body.single-service-mode #floatingBackToServices.show-floating {
            display: inline-flex !important;
            animation: popInFloating 0.25s ease-out;
        }

        @keyframes popInFloating {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* شريط تبويبات التصنيف في الفهرس (Category Pills) */
        .category-filter-pills {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            padding: 10px 2px 14px;
            margin: 10px 0 16px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

            .category-filter-pills::-webkit-scrollbar {
                display: none;
            }

        .cat-pill-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 0.88rem;
            font-weight: 700;
            white-space: nowrap;
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-muted, #94a3b8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        [data-theme="light"] .cat-pill-btn,
        body.light-theme .cat-pill-btn {
            background: #f8fafc;
            color: #64748b;
            border-color: #e2e8f0;
        }

        .cat-pill-btn:hover {
            color: var(--text-primary, #f8fafc);
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(212, 175, 55, 0.2);
        }

        .cat-pill-btn.active {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.1));
            color: var(--gold-400, #d4af37);
            border-color: rgba(212, 175, 55, 0.5);
            box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
        }

        [data-theme="light"] .cat-pill-btn.active,
        body.light-theme .cat-pill-btn.active {
            background: #fefce8;
            color: #a16207;
            border-color: #facc15;
        }
        /* اقتراحات بحث أنيقة ومبسطة بدون تشتيت */
        .services-search-hint {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: 10px 4px 18px;
            font-size: 0.85rem;
        }

        .search-hint-label {
            color: var(--muted, #94a3b8);
            font-size: 0.82rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-inline-end: 2px;
        }

        .search-hint-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(212, 175, 55, 0.24);
            color: var(--text-primary, #e2e8f0);
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 12px;
            border-radius: 999px;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: inherit;
            line-height: 1.4;
            user-select: none;
            -webkit-user-select: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        }

            .search-hint-pill:hover {
                background: rgba(212, 175, 55, 0.16);
                border-color: rgba(212, 175, 55, 0.6);
                color: #facc15;
                transform: translateY(-1.5px);
                box-shadow: 0 4px 12px rgba(212, 175, 55, 0.18);
            }

            .search-hint-pill:active {
                transform: translateY(0);
            }

        body.light-theme .services-search-hint .search-hint-label {
            color: #475569;
        }

        body.light-theme .services-search-hint .search-hint-pill {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #334155;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

            body.light-theme .services-search-hint .search-hint-pill:hover {
                background: #fefce8;
                border-color: #facc15;
                color: #a16207;
                box-shadow: 0 3px 8px rgba(250, 204, 21, 0.2);
            }

        .dot-sep {
            color: var(--muted, #64748b);
            opacity: 0.5;
            font-size: 0.75rem;
        }
        /* وصف تصنيف الخدمات لشرح أهمية كل قسم */
        .category-desc {
            font-size: 0.88rem;
            color: var(--muted, #94a3b8);
            margin: -4px 0 16px;
            line-height: 1.6;
            padding-inline-start: 4px;
        }

        [data-theme="light"] .category-desc,
        body.light-theme .category-desc {
            color: #64748b;
        }
        /* شريط وزر العودة في أسفل كل خدمة يظهر في وضع التركيز قبل الفوتر */
        .service-focus-bottom-bar {
            display: none;
            text-align: center;
            padding: 30px 16px 20px;
            margin: 20px auto 10px;
        }

        body.single-service-mode .service-focus-bottom-bar {
            display: block !important;
        }

        .btn-focus-back-bottom {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
            border: 1px solid rgba(212, 175, 55, 0.4);
            color: var(--gold-400, #d4af37);
            padding: 12px 28px;
            border-radius: 999px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.22s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
            font-family: inherit;
        }

        [data-theme="light"] .btn-focus-back-bottom,
        body.light-theme .btn-focus-back-bottom {
            background: #fefce8;
            color: #854d0e;
            border-color: #ca8a04;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        }

        .btn-focus-back-bottom:hover {
            background: #d4af37;
            color: #0b172a;
            transform: translateY(-2px);
        }

        @media (max-width: 640px) {
            .service-focus-title {
                font-size: 0.95rem;
            }

            .service-focus-badge {
                display: none;
            }

            .btn-focus-back {
                padding: 7px 14px;
                font-size: 0.84rem;
            }

            .btn-focus-home .hide-mobile {
                display: none;
            }

            #floatingBackToServices {
                bottom: calc(96px + env(safe-area-inset-bottom, 0px));
                inset-inline-start: 16px;
                padding: 9px 16px;
                font-size: 0.84rem;
            }

            .btn-focus-back-bottom {
                padding: 10px 22px;
                font-size: 0.88rem;
            }
        }
        /* Mobile Quran gestures and viewport-sized reading surface. */
        .golden-mushaf-viewport {
            touch-action: pan-y pinch-zoom;
        }

        .golden-mushaf-header {
            flex-wrap: wrap;
        }

        .golden-hdr-left {
            flex-wrap: wrap;
        }

        .golden-quran-wrapper.is-fullscreen {
            height: var(--mushaf-screen-height, 100dvh) !important;
            width: 100% !important;
            overflow: hidden;
        }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-header,
            .golden-quran-wrapper.is-fullscreen .golden-mushaf-footer {
                flex: 0 0 auto;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-viewport {
                min-height: 0 !important;
                max-height: none !important;
                overflow: hidden;
            }

            .golden-quran-wrapper.is-fullscreen .golden-spread-container,
            .golden-quran-wrapper.is-fullscreen .golden-page-side {
                min-height: 0;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-img {
                height: 100%;
                max-height: 100% !important;
                min-height: 0;
                object-fit: contain;
            }

            .golden-quran-wrapper.is-fullscreen .golden-hdr-btn {
                min-width: 44px;
                min-height: 44px;
            }

        @media (max-width: 600px) {
            .golden-quran-wrapper.is-fullscreen .golden-mushaf-header {
                padding: 6px 8px !important;
                gap: 4px !important;
                flex-wrap: nowrap !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-hdr-left {
                gap: 4px !important;
                flex-wrap: nowrap !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-hdr-btn {
                min-width: 36px !important;
                min-height: 36px !important;
                padding: 4px 6px !important;
                font-size: 1.15rem !important;
            }

                .golden-quran-wrapper.is-fullscreen .golden-hdr-btn i {
                    font-size: 1.15rem !important;
                }

            .golden-quran-wrapper.is-fullscreen .golden-hdr-surah {
                font-size: 0.95rem !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-juz-title {
                font-size: 0.8rem !important;
                white-space: nowrap !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-mushaf-footer {
                padding: 4px 8px 10px !important;
            }

            .golden-quran-wrapper.is-fullscreen .golden-page-pill {
                padding: 6px 12px !important;
                font-size: 0.82rem !important;
            }
        }

        #zad-share-card-modal {
            z-index: 100040 !important;
        }
        /* ==========================================================================
           قسم البداية المزدوج الملكي (Hero Home Compact - Two-Card Royal Islamic Edition)
           ========================================================================== */
        #home .home-hero-compact {
            min-height: 0;
            padding: 0 !important;
            margin-top: 14px;
            width: 100% !important;
            max-width: 100% !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            justify-content: flex-start !important;
            gap: 16px;
            position: relative;
            box-sizing: border-box !important;
        }

        #home .home-hero-compact::after,
        #home .home-hero-compact::before {
            display: none !important;
        }

        /* بطاقة الهيرو الملكية الموحدة بعرض متناسق تماماً مع الشاشة */
.home-hero-card {
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(160deg,var(--card-2),var(--card) 60%);
    background-image: radial-gradient(circle at 90% 0%, rgba(217, 180, 90, 0.18) 0%, transparent 60%), radial-gradient(circle at 10% 100%, rgba(16, 185, 129, 0.14) 0%, transparent 60%), linear-gradient(155deg, #072c23 0%, #041e17 55%, #02130e 100%) !important;
    border: 1.5px solid rgba(217, 180, 90, 0.38) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 24px rgba(217, 180, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    padding: 22px 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

        .home-hero-card:hover {
            border-color: rgba(217, 180, 90, 0.55) !important;
            box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(217, 180, 90, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        }

        /* طبقة الزخرفة الهندسية الإسلامية المذهبة بالثماني نجمات على كل بطاقة */
        .home-hero-card::after {
            content: "" !important;
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 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='%23d9b45a' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
            background-size: 56px 56px;
            background-repeat: repeat;
            opacity: 0.18;
            -webkit-mask-image: linear-gradient(160deg, #000, transparent 85%);
            mask-image: linear-gradient(160deg, #000, transparent 85%);
            transition: opacity 0.3s ease;
        }

        /* أركان الزخرفة الذهبية الملكية لكل بطاقة */
        .hero-corner-ornament {
            position: absolute;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 2;
            opacity: 0.75;
            transition: opacity 0.25s ease;
        }
        .hero-corner-ornament.corner-tr {
            top: 7px;
            right: 7px;
            border-top: 2px solid #fed668;
            border-right: 2px solid #fed668;
            border-top-right-radius: 8px;
            box-shadow: 1px -1px 8px rgba(254, 214, 104, 0.25);
        }
        .hero-corner-ornament.corner-tl {
            top: 7px;
            left: 7px;
            border-top: 2px solid #fed668;
            border-left: 2px solid #fed668;
            border-top-left-radius: 8px;
            box-shadow: -1px -1px 8px rgba(254, 214, 104, 0.25);
        }
        .hero-corner-ornament.corner-br {
            bottom: 7px;
            right: 7px;
            border-bottom: 2px solid #fed668;
            border-right: 2px solid #fed668;
            border-bottom-right-radius: 8px;
            box-shadow: 1px 1px 8px rgba(254, 214, 104, 0.25);
        }
        .hero-corner-ornament.corner-bl {
            bottom: 7px;
            left: 7px;
            border-bottom: 2px solid #fed668;
            border-left: 2px solid #fed668;
            border-bottom-left-radius: 8px;
            box-shadow: -1px 1px 8px rgba(254, 214, 104, 0.25);
        }

        .home-hero-card:hover .hero-corner-ornament {
            opacity: 1;
        }

        /* هالات الضوء الروحانية المحيطية */
        .hero-ambient-glow {
            position: absolute;
            border-radius: 50%;
            filter: blur(52px);
            pointer-events: none;
            z-index: 1;
        }
        .hero-ambient-glow.glow-gold {
            top: -30px;
            left: -30px;
            width: 180px;
            height: 180px;
            background: rgba(212, 175, 55, 0.12);
        }
        .hero-ambient-glow.glow-emerald {
            bottom: -30px;
            right: -30px;
            width: 180px;
            height: 180px;
            background: rgba(16, 185, 129, 0.1);
        }

        /* Reference hero: quiet emerald, double gold frame and inset corners. */
        #home .home-hero-compact { gap: 8px; text-align: start; }
        .home-hero-compact .home-hero-card {
            padding: 26px 26px 24px;
            border-radius: 32px;
            background-image: radial-gradient(ellipse at 88% 8%, rgba(191,161,65,.12), transparent 42%), linear-gradient(155deg,#102d21,#0c251b) !important;
            border: 1px solid rgba(181,150,58,.42) !important;
            box-shadow: inset 0 0 0 4px #0a2018, inset 0 0 0 5px rgba(181,150,58,.45), 0 12px 26px rgba(0,0,0,.16) !important;
        }
        .home-hero-compact .home-hero-card::after { opacity: .075; }
        .home-hero-compact .hero-ambient-glow { opacity: .25; }
        .home-hero-compact .hero-corner-ornament {
            width: 26px; height: 26px; border-color: #c7a447;
            border-width: 1.5px; box-shadow: none; opacity: .95;
        }
        .home-hero-compact .corner-tr { top: 15px; right: 15px; border-top-right-radius: 13px; }
        .home-hero-compact .corner-tl { top: 15px; left: 15px; border-top-left-radius: 13px; }
        .home-hero-compact .corner-br { bottom: 15px; right: 15px; border-bottom-right-radius: 13px; }
        .home-hero-compact .corner-bl { bottom: 15px; left: 15px; border-bottom-left-radius: 13px; }
        .home-hero-compact .greeting-card-main { margin-bottom: 20px; gap: 12px; }
        .home-hero-compact .home-hero-brand { gap: 9px; }
        .home-hero-compact .brand-name { font-size: clamp(1.35rem,4.8vw,1.5rem) !important; }
        .home-hero-compact .brand-tagline { color: #a2b8a7; font-size: .95rem; letter-spacing: 0; text-shadow: none; }
        .home-hero-compact .text-gold-gradient {
            background: linear-gradient(110deg,#f2df95,#d5b759) !important;
            -webkit-background-clip: text !important; filter: none;
        }
        .home-hero-compact .home-hero-visual { width: 66px; height: 66px; }
        .home-hero-compact .hero-crescent-svg { animation: none; filter: none; }
        .home-hero-compact .crescent-body, .home-hero-compact .star-nested { filter: none; }
        .home-hero-compact .star-nested { transform: translate(12px,23px); }
        .home-hero-compact .hero-moon-glow { animation: none; opacity: .4; }
        .home-hero-compact .home-date-pill {
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%;
        }
        .home-hero-compact .date-chip {
            flex: 1 1 auto; min-height: 39px; padding: 7px 12px; font-size: .8rem;
            color: #eee1b1 !important; background: rgba(4,25,17,.48) !important; box-shadow: none;
        }
        .home-hero-compact .date-hijri-text, .home-hero-compact .date-greg-text { white-space: normal; overflow: visible; }
        .home-hero-compact .home-daily-verse-card { padding-top: 24px; padding-bottom: 22px; }
        .home-hero-compact .daily-verse-header { margin-bottom: 16px; }
        .home-hero-compact .daily-verse-badge { color: #ead58a; font-size: .9rem; letter-spacing: 0; }
        .home-hero-compact .daily-verse-badge i { color: #c9a94c; font-size: .85rem; }
        .home-hero-compact .btn-verse-action {
            min-height: 40px; padding: 8px 14px; border-radius: 15px;
            color: #e6e7d8; border-color: rgba(181,150,58,.35); background: rgba(4,25,17,.5);
        }
        .home-hero-compact .daily-verse-frame {
            min-height: 192px; padding: 22px 20px; margin: 0 0 14px;
            border-color: rgba(181,150,58,.38); background: rgba(3,20,13,.24); border-radius: 19px;
        }
        .home-hero-compact .daily-verse-frame::before {
            content: ''; position: absolute; inset: 5px;
            border: 1px solid rgba(181,150,58,.32); border-radius: 14px; pointer-events: none;
        }
        .home-hero-compact .verse-frame-star { background: #0d281d; color: #cfad50; padding: 0 5px; }
        .home-hero-compact .daily-verse-body { display: block; padding: 0; }
        .home-hero-compact .daily-verse-text {
            display: inline; color: #f1df9a; font-size: clamp(1.7rem,6.4vw,2.35rem);
            font-weight: 600; line-height: 1.85; text-shadow: none; overflow-wrap: break-word;
        }
        .home-hero-compact .quran-bracket { display: inline; color: #c3a348; font-size: 1.8rem; filter: none; vertical-align: baseline; }
        .home-hero-compact .daily-verse-footer { justify-content: flex-start; gap: 12px; }
        .home-hero-compact .daily-verse-ref-pill {
            min-height: 42px; padding: 9px 14px; box-sizing: border-box;
            background: linear-gradient(110deg,#f3de94,#b38c2f) !important;
            box-shadow: 0 3px 12px rgba(212,169,70,.12); letter-spacing: 0;
        }
        .home-hero-compact .daily-verse-refresh-hint { color: #9cb09e; font-size: .76rem; }
        @media (max-width: 380px) {
            .home-hero-compact .home-hero-card { padding-inline: 20px; }
            .home-hero-compact .home-hero-visual { width: 54px; height: 54px; }
            .home-hero-compact .brand-tagline { font-size: .82rem; }
            .home-hero-compact .daily-verse-frame { padding-inline: 14px; }
            .home-hero-compact .daily-verse-footer { gap: 8px; }
        }

        /* تفاصيل البطاقة العلوية (Greeting Card) */
        .greeting-card-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            position: relative;
            z-index: 3;
            margin-bottom: 16px;
            width: 100%;
            box-sizing: border-box;
        }

        .home-hero-brand {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
            flex: 1;
        }

        .home-hero-brand .brand-name {
            font-size: clamp(1.35rem, 3.8vw, 1.85rem) !important;
            font-weight: 800 !important;
            margin: 0 !important;
            line-height: 1.25 !important;
        }

        .home-hero-brand .brand-tagline {
            font-size: clamp(0.78rem, 2.4vw, 0.88rem);
            color: #9cd5c4;
            margin: 0;
            font-weight: 500;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

        .text-gold-gradient {
            background: linear-gradient(135deg, #ffffff 0%, #fff2c6 25%, #ffd668 55%, #dfa72b 85%, #b3821a 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35));
        }

        /* Urdu joins and dots need the bundled Naskh face and a taller line box. */
        html[lang="ur"] .home-hero-brand .brand-name {
            font-family: ZadUrdu, 'Noto Naskh Arabic', serif;
            font-weight: 400 !important;
            line-height: 1.8 !important;
            align-items: baseline;
            letter-spacing: normal;
        }

        html[lang="ur"] .home-hero-brand .text-gold-gradient {
            display: inline-block;
            padding: 0.15em 0.08em;
            margin: -0.15em -0.08em;
            line-height: 1.8;
            letter-spacing: normal;
        }

        html[lang="ur"] .home-hero-brand .brand-tagline {
            font-family: ZadUrdu, 'Noto Naskh Arabic', serif;
            line-height: 1.85;
            letter-spacing: normal;
        }

        .greeting-card-date {
            position: relative;
            z-index: 3;
            width: 100%;
            box-sizing: border-box;
        }

        /* تصميم الهلال والنجوم داخل البطاقة العلوية */
        .home-hero-visual {
            position: relative;
            width: clamp(58px, 15vw, 76px);
            height: clamp(58px, 15vw, 76px);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
        }

        .hero-moon-glow {
            position: absolute;
            width: 85%;
            height: 85%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(254, 214, 104, 0.32) 0%, rgba(217, 180, 90, 0.1) 60%, transparent 80%);
            filter: blur(14px);
            animation: haloPulse 3.8s infinite ease-in-out;
            pointer-events: none;
        }

        .hero-crescent-svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 4px 14px rgba(251, 191, 36, 0.45));
            animation: moonFloat 5s ease-in-out infinite;
        }

        @keyframes moonFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-5px) rotate(-1deg); }
        }

        @keyframes haloPulse {
            0%, 100% { opacity: 0.4; transform: scale(0.95); }
            50% { opacity: 0.85; transform: scale(1.1); }
        }

        /* رقائق التاريخ الملكية المتناسقة مع كامل العرض (Date Chips) */
        .home-date-wrapper {
            display: flex;
            align-items: center;
            width: 100%;
            box-sizing: border-box;
        }

.home-date-pill {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box;
}

        .date-chip-divider {
            display: none !important;
        }

.date-chip {
    flex: 1 1 calc(50% - 10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 9999px;
    font-size: clamp(0.72rem, 2.3vw, 0.82rem);
    font-weight: 600;
    text-align: center;
    background: rgba(3, 24, 18, 0.78) !important;
    border: 1px solid rgba(217, 180, 90, 0.32) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

        .date-chip:hover {
            border-color: rgba(217, 180, 90, 0.6) !important;
            transform: translateY(-1px);
        }

        .date-hijri-text,
        .date-greg-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .date-chip-hijri {
            color: #fcf4d4 !important;
        }

        .date-chip-hijri i {
            color: #fed668 !important;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .date-chip-greg {
            color: #d1fae5 !important;
        }

        .date-chip-greg i {
            color: #e5b958 !important;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        /* تفاصيل بطاقة آية اليوم (Daily Verse Card) */
        .home-daily-verse-card {
            display: flex;
            flex-direction: column;
            gap: 0;
            padding: 22px 24px;
            width: 100% !important;
            box-sizing: border-box !important;
        }

        .daily-verse-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            position: relative;
            z-index: 3;
            margin-bottom: 16px;
            width: 100%;
            box-sizing: border-box;
        }

        .daily-verse-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: clamp(0.85rem, 2.5vw, 0.95rem);
            font-weight: 700;
            color: #fed668;
            letter-spacing: 0.3px;
        }

        .daily-verse-badge i {
            font-size: 1rem;
            color: #fed668;
        }

        .btn-verse-action {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 14px;
            border-radius: 10px;
            background: rgba(3, 20, 15, 0.7);
            border: 1px solid rgba(217, 180, 90, 0.42);
            color: #fed668;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.22s ease;
        }

        .btn-verse-action:hover {
            background: rgba(217, 180, 90, 0.2);
            border-color: #fed668;
            color: #ffffff;
            box-shadow: 0 3px 12px rgba(217, 180, 90, 0.25);
            transform: translateY(-1px);
        }

        /* البرواز المصحفي المحكم المحاط بالنجمتين الإسلاميتين بعرض متطابق تماماً */
.daily-verse-frame {
    position: relative;
    z-index: 3;
    border: 1px solid rgba(217, 180, 90, 0.35);
    border-radius: 18px;
    padding: 24px 20px;
    margin: 4px 0 18px;
    background: rgba(0, 0, 0, .16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    box-sizing: border-box !important;
}

        .verse-frame-star {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #041f18;
            padding: 0 8px;
            color: #fed668;
            z-index: 4;
            line-height: 1;
        }

        .verse-frame-star.star-top {
            top: -9px;
        }

        .verse-frame-star.star-bottom {
            bottom: -9px;
        }

        .verse-frame-star .star-core-dot {
            fill: #041f18;
        }

        .daily-verse-body {
            display: flex;
            direction: rtl;
            unicode-bidi: isolate;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 4px 0;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
        }

        .quran-bracket {
            flex-shrink: 0;
            font-family: var(--font-quran, 'Scheherazade New', 'Amiri', serif);
            color: #fed668;
            font-size: 1.6rem;
            font-weight: 700;
            line-height: 1;
            user-select: none;
            filter: drop-shadow(0 0 8px rgba(254, 214, 104, 0.6));
            transition: transform 0.25s ease;
        }

        .home-daily-verse-card:hover .quran-bracket-start {
            transform: translateX(3px);
        }
        .home-daily-verse-card:hover .quran-bracket-end {
            transform: translateX(-3px);
        }

        .daily-verse-text {
            font-family: var(--font-quran, 'Scheherazade New', 'Amiri', serif);
            font-size: clamp(1.15rem, 3.4vw, 1.55rem);
            font-weight: 600;
            line-height: 2.3;
            color: #fffef7;
            margin: 0;
            padding: 0;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
            max-width: 620px;
            width: 100%;
        }

        /* ذيل بطاقة آية اليوم (Solid Gold Ref Pill & Refresh Hint) */
        .daily-verse-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            position: relative;
            z-index: 3;
            flex-wrap: wrap;
            width: 100%;
            box-sizing: border-box;
        }

        .daily-verse-ref-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 18px;
            border-radius: 9999px;
            background: linear-gradient(135deg, #f5d77f 0%, #d4a946 100%) !important;
            color: #081a13 !important;
            font-weight: 800;
            font-size: clamp(0.75rem, 2.3vw, 0.82rem);
            box-shadow: 0 4px 14px rgba(212, 169, 70, 0.35);
            letter-spacing: 0.2px;
        }

        .daily-verse-ref-pill .ref-star-svg {
            color: #081a13;
            fill: #081a13;
            flex-shrink: 0;
        }

        .daily-verse-ref-pill #daily-verse-ref {
            color: #081a13 !important;
            font-weight: 800;
        }

        .daily-verse-refresh-hint {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #93b4a5;
            font-size: clamp(0.72rem, 2.2vw, 0.78rem);
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .home-hero-card {
                padding: 18px 16px;
                border-radius: 20px;
            }
            .daily-verse-frame {
                padding: 20px 14px;
            }
        }

        @media (max-width: 480px) {
            .home-hero-card {
                padding: 16px 14px;
                border-radius: 18px;
            }
            .daily-verse-frame {
                padding: 16px 10px;
            }
            .date-chip {
                flex: 1 1 100%;
                padding: 10px 14px;
            }
            .daily-verse-footer {
                justify-content: center;
                gap: 10px;
            }
        }

        @media (max-width: 360px) {
            .home-hero-card {
                padding: 14px 10px;
                border-radius: 16px;
            }
            .date-chip {
                padding: 5px 8px;
            }
        }
        /* ==========================================================================
   تصميم الواجهة الرئيسية المطور (Hero Prayer Cards & Strip - Luxury Edition)
   ========================================================================== */
        /* 1. بطاقة الصلاة القادمة الرئيسية (Card 1: Next Prayer Hero Card) */
        #home .home-prayer-hero-card {
            display: flex;
            flex-direction: column;
            padding: 22px 20px;
            margin: 18px 0 0 0;
            background: linear-gradient(160deg, #09261f 0%, #051c16 100%);
            border: 1px solid rgba(49, 83, 70, 0.75);
            border-radius: 22px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
            position: relative;
            overflow: hidden;
        }

            #home .home-prayer-hero-card::before {
                content: "";
                position: absolute;
                top: 0;
                right: 0;
                width: 140px;
                height: 140px;
                background: radial-gradient(circle, rgba(230, 189, 112, 0.08) 0%, transparent 70%);
                pointer-events: none;
            }

        .home-prayer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            width: 100%;
        }

        .home-prayer-badge {
            font-size: 0.95rem;
            font-weight: 600;
            color: rgba(230, 189, 112, 0.9);
            letter-spacing: -0.2px;
        }

        .home-prayer-countdown {
            font-size: 0.95rem;
            font-weight: 700;
            color: #e6bd70;
        }

        .home-prayer-main-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 16px;
            width: 100%;
        }

        #home .home-prayer-hero-card strong.home-prayer-name {
            font-size: 1.85rem;
            font-weight: 800;
            color: #ffffff;
            margin: 0;
            line-height: 1.2;
        }

        .home-prayer-exact-time {
            font-size: 1.65rem;
            font-weight: 800;
            color: #e6bd70;
            font-variant-numeric: tabular-nums;
            line-height: 1.2;
        }

        .home-prayer-progress-track {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.12);
            border-radius: 9999px;
            overflow: hidden;
            margin-bottom: 16px;
        }

        .home-prayer-progress-fill {
            height: 100%;
            background: #e6bd70;
            border-radius: 9999px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }








        /* 2. شريط الصلوات الخمس لليوم (Card 2: Today's 5 Prayers Strip) */
        .home-prayers-strip-card {
            margin-top: 14px;
            background: linear-gradient(160deg, #09261f 0%, #051c16 100%);
            border: 1px solid rgba(49, 83, 70, 0.75);
            border-radius: 20px;
            padding: 8px 10px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 4px;
            align-items: center;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
        }

        .home-strip-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 4px;
            border-radius: 14px;
            text-align: center;
            border: 1.5px solid transparent;
            transition: all 0.25s ease;
        }

        .home-strip-name {
            font-size: 0.92rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.65);
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .home-strip-time {
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.88);
            font-variant-numeric: tabular-nums;
            line-height: 1.2;
        }
        /* العنصر النشط (الصلاة القادمة) داخل شريط الصلوات الخمس */
        .home-strip-item.is-active {
            border-color: rgba(230, 189, 112, 0.55);
            background: rgba(230, 189, 112, 0.10);
            box-shadow: 0 0 14px rgba(230, 189, 112, 0.12);
        }

            .home-strip-item.is-active .home-strip-name {
                color: #e6bd70;
            }

            .home-strip-item.is-active .home-strip-time {
                color: #ffffff;
                font-weight: 800;
            }
        /* 3. بنر التذكير الذكي بالسياق والسنن (Card 3: Smart Reminder / Sunnah Banner) */
        .smart-reminder-banner.home-sunnah-reminder-card {
            margin-top: 14px;
            margin-bottom: 18px;
            background: linear-gradient(160deg, #09261f 0%, #051c16 100%);
            border: 1px solid rgba(49, 83, 70, 0.75);
            border-inline-start: 4px solid #e6bd70 !important;
            border-radius: 20px;
            padding: 16px 20px;
            position: relative;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
            gap: 6px;
            animation: slideDownFade 0.35s ease;
        }

        .smart-reminder-content {
            padding: 5px 0;
            display: flex;
            flex-direction: column;
        }

            .smart-reminder-content p {
                padding: 5px 0;
            }


        .smart-reminder-banner.home-sunnah-reminder-card::before {
            display: none !important;
        }

        .smart-reminder-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-title {
            font-size: 1.05rem;
            font-weight: 800;
            color: #e6bd70;
            margin: 0;
            line-height: 1.4;
        }

        .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder {
            background: none;
            border: none;
            font-size: 2rem;
            line-height: 1;
            color: rgba(255, 255, 255, 0.45);
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 6px;
            transition: color 0.15s ease;
        }

            .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder:hover {
                color: #ffffff;
            }

        .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-desc {
            font-size: 0.92rem;
            color: rgba(255, 255, 255, 0.78);
            line-height: 1.6;
            margin: 2px 0 8px 0;
        }

        .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-actions {
            display: flex;
            align-items: center;
            margin-top: 2px;
        }

        .smart-reminder-banner.home-sunnah-reminder-card .btn-reminder-act {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 18px;
            border-radius: 9999px;
            border: 1.5px solid rgba(230, 189, 112, 0.65);
            background: rgba(230, 189, 112, 0.08);
            color: #e6bd70 !important;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s ease;
            width: fit-content;
        }

            .smart-reminder-banner.home-sunnah-reminder-card .btn-reminder-act:hover {
                background: rgba(230, 189, 112, 0.18);
                border-color: #e6bd70;
                transform: translateY(-1px);
            }
        /* تنسيقات الوضع النهاري (Light Mode) */
        body.light-theme #home .home-prayer-hero-card,
        html[data-theme="light"] #home .home-prayer-hero-card,
        body.light-theme .home-prayers-strip-card,
        html[data-theme="light"] .home-prayers-strip-card,
        body.light-theme .smart-reminder-banner.home-sunnah-reminder-card,
        html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card {
            background: #ffffff !important;
            border-color: rgba(184, 134, 11, 0.3) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
        }

            body.light-theme #home .home-prayer-hero-card strong.home-prayer-name,
            html[data-theme="light"] #home .home-prayer-hero-card strong.home-prayer-name {
                color: #0d3b30 !important;
            }

        body.light-theme .home-prayer-badge,
        html[data-theme="light"] .home-prayer-badge,
        body.light-theme .home-prayer-countdown,
        html[data-theme="light"] .home-prayer-countdown,
        body.light-theme .home-prayer-exact-time,
        html[data-theme="light"] .home-prayer-exact-time {
            color: #b8860b !important;
        }

        body.light-theme .home-prayer-progress-track,
        html[data-theme="light"] .home-prayer-progress-track {
            background: rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .home-prayer-progress-fill,
        html[data-theme="light"] .home-prayer-progress-fill {
            background: #b8860b !important;
        }



        body.light-theme .home-strip-name,
        html[data-theme="light"] .home-strip-name {
            color: #64748b !important;
        }

        body.light-theme .home-strip-time,
        html[data-theme="light"] .home-strip-time {
            color: #1e293b !important;
        }

        body.light-theme .home-strip-item.is-active,
        html[data-theme="light"] .home-strip-item.is-active {
            background: rgba(184, 134, 11, 0.12) !important;
            border-color: rgba(184, 134, 11, 0.6) !important;
        }

            body.light-theme .home-strip-item.is-active .home-strip-name,
            html[data-theme="light"] .home-strip-item.is-active .home-strip-name {
                color: #b8860b !important;
            }

            body.light-theme .home-strip-item.is-active .home-strip-time,
            html[data-theme="light"] .home-strip-item.is-active .home-strip-time {
                color: #0d3b30 !important;
            }

        body.light-theme .smart-reminder-banner.home-sunnah-reminder-card,
        html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card {
            border-inline-start: 4px solid #b8860b !important;
        }

            body.light-theme .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-title,
            html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-title {
                color: #b8860b !important;
            }

            body.light-theme .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-desc,
            html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card .smart-reminder-desc {
                color: #334155 !important;
            }

            body.light-theme .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder,
            html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder {
                color: #94a3b8 !important;
            }

                body.light-theme .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder:hover,
                html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card .btn-dismiss-reminder:hover {
                    color: #1e293b !important;
                }

            body.light-theme .smart-reminder-banner.home-sunnah-reminder-card .btn-reminder-act,
            html[data-theme="light"] .smart-reminder-banner.home-sunnah-reminder-card .btn-reminder-act {
                border-color: #b8860b !important;
                background: rgba(184, 134, 11, 0.08) !important;
                color: #b8860b !important;
            }


        /* ==========================================================================
           مظهر قسم الهيرو الملكي في الوضع النهاري (Light Theme Hero Section)
           ========================================================================== */
        body.light-theme .home-hero-card,
        html[data-theme="light"] .home-hero-card,
        [data-theme="light"] .home-hero-card {
            background-color: #fcfaf5 !important;
            background-image:
                radial-gradient(circle at 90% 0%, rgba(217, 180, 90, 0.14) 0%, transparent 60%),
                radial-gradient(circle at 10% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                linear-gradient(155deg, #ffffff 0%, #fbf9f4 60%, #f4eee2 100%) !important;
            border-color: rgba(184, 134, 11, 0.38) !important;
            box-shadow: 0 12px 30px -6px rgba(184, 134, 11, 0.12), inset 0 1px 0 #ffffff !important;
        }

        body.light-theme .home-hero-card::after,
        html[data-theme="light"] .home-hero-card::after,
        [data-theme="light"] .home-hero-card::after {
            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='%23b8860b' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.12;
        }

        body.light-theme .hero-corner-ornament,
        html[data-theme="light"] .hero-corner-ornament,
        [data-theme="light"] .hero-corner-ornament {
            border-color: #b8860b !important;
            opacity: 0.65 !important;
            box-shadow: 0 0 6px rgba(184, 134, 11, 0.25) !important;
        }

        body.light-theme .home-hero-brand .brand-name .text-gold-gradient,
        html[data-theme="light"] .home-hero-brand .brand-name .text-gold-gradient,
        [data-theme="light"] .home-hero-brand .brand-name .text-gold-gradient {
            background: linear-gradient(135deg, #06382e 0%, #0d5c48 45%, #926402 85%, #704d02 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.2)) !important;
        }

        body.light-theme .home-hero-brand .brand-tagline,
        html[data-theme="light"] .home-hero-brand .brand-tagline,
        [data-theme="light"] .home-hero-brand .brand-tagline {
            color: #27624c !important;
            text-shadow: none !important;
        }

        body.light-theme .date-chip,
        html[data-theme="light"] .date-chip,
        [data-theme="light"] .date-chip {
            background: rgba(255, 255, 255, 0.88) !important;
            border-color: rgba(184, 134, 11, 0.35) !important;
            color: #17382b !important;
            box-shadow: 0 2px 8px rgba(184, 134, 11, 0.1) !important;
        }

        body.light-theme .daily-verse-badge,
        html[data-theme="light"] .daily-verse-badge,
        [data-theme="light"] .daily-verse-badge {
            color: #8c630a !important;
        }

        body.light-theme .daily-verse-badge i,
        html[data-theme="light"] .daily-verse-badge i,
        [data-theme="light"] .daily-verse-badge i {
            color: #b8860b !important;
        }

        body.light-theme .btn-verse-action,
        html[data-theme="light"] .btn-verse-action,
        [data-theme="light"] .btn-verse-action {
            background: rgba(255, 255, 255, 0.92) !important;
            border-color: rgba(184, 134, 11, 0.4) !important;
            color: #8c630a !important;
        }

        body.light-theme .btn-verse-action:hover,
        html[data-theme="light"] .btn-verse-action:hover,
        [data-theme="light"] .btn-verse-action:hover {
            background: #fbf5e6 !important;
            border-color: #b8860b !important;
        }

        body.light-theme .daily-verse-frame,
        html[data-theme="light"] .daily-verse-frame,
        [data-theme="light"] .daily-verse-frame {
            background: rgba(255, 255, 255, 0.7) !important;
            border-color: rgba(184, 134, 11, 0.32) !important;
        }

        body.light-theme .verse-frame-star,
        html[data-theme="light"] .verse-frame-star,
        [data-theme="light"] .verse-frame-star {
            background: #fcfaf5 !important;
            color: #b8860b !important;
        }

        body.light-theme .verse-frame-star .star-core-dot,
        html[data-theme="light"] .verse-frame-star .star-core-dot,
        [data-theme="light"] .verse-frame-star .star-core-dot {
            fill: #fcfaf5 !important;
        }

        body.light-theme .daily-verse-text,
        html[data-theme="light"] .daily-verse-text,
        [data-theme="light"] .daily-verse-text {
            color: #162f25 !important;
            text-shadow: none !important;
        }

        body.light-theme .quran-bracket,
        html[data-theme="light"] .quran-bracket,
        [data-theme="light"] .quran-bracket {
            color: #b8860b !important;
            filter: drop-shadow(0 0 4px rgba(184, 134, 11, 0.25)) !important;
        }

        body.light-theme .daily-verse-refresh-hint,
        html[data-theme="light"] .daily-verse-refresh-hint,
        [data-theme="light"] .daily-verse-refresh-hint {
            color: #55796b !important;
        }
        @media (max-width: 480px) {
            #home .home-prayer-hero-card {
                padding: 18px 16px;
            }

                #home .home-prayer-hero-card strong.home-prayer-name {
                    font-size: 1.65rem;
                }

            .home-prayer-exact-time {
                font-size: 1.45rem;
            }

            .home-strip-name {
                font-size: 0.82rem;
            }

            .home-strip-time {
                font-size: 0.78rem;
            }

            .smart-reminder-banner.home-sunnah-reminder-card {
                padding: 14px 16px;
            }
        }
        /* ==========================================================================
   لوحة رحلتك الإيمانية اليومية (Daily Journey Panel - Luxury Islamic Design)
   ========================================================================== */
        #daily-journey-panel {
            position: relative;
            overflow: hidden;
            align-self: start;
            padding: 1.35rem 1.25rem 1.2rem;
            background: linear-gradient(145deg, rgba(7, 40, 32, 0.90) 0%, rgba(4, 24, 19, 0.96) 100%);
            border: 1px solid rgba(212, 175, 55, 0.28);
            border-radius: var(--radius-lg, 18px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 25px rgba(212, 175, 55, 0.04);
            backdrop-filter: blur(12px);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
        }

            #daily-journey-panel::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3px;
                background: linear-gradient(90deg, transparent, var(--gold-500, #d4af37), transparent);
                pointer-events: none;
            }
            /* Header */
            #daily-journey-panel .journey-heading {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 14px;
                padding-bottom: 12px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }

            #daily-journey-panel .journey-heading-main {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            #daily-journey-panel .journey-heading-icon {
                display: grid;
                place-items: center;
                width: 42px;
                height: 42px;
                flex-shrink: 0;
                border-radius: 12px;
                background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.15));
                border: 1px solid rgba(212, 175, 55, 0.35);
                color: var(--gold-400, #f1c40f);
                font-size: 1.2rem;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            }

            #daily-journey-panel .journey-heading-text h3 {
                margin: 0;
                font-size: 1.12rem;
                font-weight: 800;
                color: var(--text-primary);
                line-height: 1.3;
            }

            #daily-journey-panel .journey-heading-text p {
                margin: 3px 0 0;
                font-size: 0.82rem;
                color: #a4c2b7;
            }

            #daily-journey-panel .journey-status-pill {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-size: 0.78rem;
                font-weight: 700;
                color: #d4af37;
                background: rgba(212, 175, 55, 0.12);
                border: 1px solid rgba(212, 175, 55, 0.28);
                border-radius: 20px;
                padding: 4px 10px;
                white-space: nowrap;
            }
            /* Card & Progress Bar */
            #daily-journey-panel .home-wird-card {
                margin: 0;
                padding: 0;
                border: 0;
                box-shadow: none;
                background: transparent;
            }

            #daily-journey-panel .wird-header-bar {
                background: rgba(0, 0, 0, 0.22);
                border: 1px solid rgba(255, 255, 255, 0.07);
                border-radius: 14px;
                padding: 12px 14px;
                margin-bottom: 12px;
            }

            #daily-journey-panel .wird-progress-info {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                margin-bottom: 8px;
            }

            #daily-journey-panel .wird-progress-title {
                font-size: 0.88rem;
                font-weight: 700;
                color: var(--text-primary);
                display: inline-flex;
                align-items: center;
                gap: 6px;
            }

            #daily-journey-panel .wird-progress-badge {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                font-size: 0.8rem;
                font-weight: 800;
                color: var(--gold-400, #f1c40f);
                background: rgba(212, 175, 55, 0.15);
                border: 1px solid rgba(212, 175, 55, 0.3);
                border-radius: 8px;
                padding: 3px 10px;
                transition: all 0.25s ease;
            }

                #daily-journey-panel .wird-progress-badge.all-done {
                    color: #10b981;
                    background: rgba(16, 185, 129, 0.18);
                    border-color: rgba(16, 185, 129, 0.4);
                }

            #daily-journey-panel .wird-progress-bar-container {
                height: 8px;
                border-radius: 10px;
                background: rgba(255, 255, 255, 0.08);
                overflow: hidden;
                position: relative;
            }

            #daily-journey-panel .wird-progress-bar-fill {
                height: 100%;
                border-radius: 10px;
                background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #d4af37 100%);
                transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
            }

                #daily-journey-panel .wird-progress-bar-fill.all-done {
                    background: linear-gradient(90deg, #10b981, #d4af37);
                    box-shadow: 0 0 14px rgba(212, 175, 55, 0.6);
                }
            /* Tasks Grid & Interactive Items */
            #daily-journey-panel .wird-tasks-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
                gap: 8px;
                margin: 0;
            }

            #daily-journey-panel .wird-task-item {
                display: flex;
                align-items: center;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.035);
                border: 1px solid rgba(255, 255, 255, 0.08);
                padding: 0 10px;
                transition: all 0.22s ease;
                user-select: none;
                -webkit-user-select: none;
            }

                #daily-journey-panel .wird-task-item:hover {
                    background: rgba(255, 255, 255, 0.065);
                    border-color: rgba(212, 175, 55, 0.3);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                }

                #daily-journey-panel .wird-task-item.is-completed {
                    background: rgba(16, 185, 129, 0.09);
                    border-color: rgba(16, 185, 129, 0.3);
                }

            #daily-journey-panel .wird-checkbox-label {
                display: flex;
                align-items: center;
                gap: 10px;
                width: 100%;
                min-height: 48px;
                padding: 7px 2px;
                cursor: pointer;
                box-sizing: border-box;
            }

            #daily-journey-panel .wird-task-icon-badge {
                display: grid;
                place-items: center;
                width: 32px;
                height: 32px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.06);
                color: var(--gold-400, #d4af37);
                font-size: 0.9rem;
                flex-shrink: 0;
                transition: all 0.25s ease;
            }

            #daily-journey-panel .is-completed .wird-task-icon-badge {
                background: rgba(16, 185, 129, 0.15);
                color: #10b981;
            }

            #daily-journey-panel .wird-custom-check {
                display: grid;
                place-items: center;
                width: 22px;
                height: 22px;
                border-radius: 50%;
                border: 1.8px solid rgba(255, 255, 255, 0.3);
                background: rgba(0, 0, 0, 0.25);
                color: transparent;
                font-size: 0.75rem;
                flex-shrink: 0;
                transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            }

            #daily-journey-panel .wird-checkbox:checked + .wird-custom-check {
                background: linear-gradient(135deg, #10b981, #059669);
                border-color: #10b981;
                color: #ffffff;
                box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
                transform: scale(1.05);
            }

            #daily-journey-panel .wird-checkbox:focus-visible + .wird-custom-check {
                outline: 2px solid var(--gold-400);
                outline-offset: 3px;
            }

            #daily-journey-panel .wird-task-text {
                flex: 1;
                color: var(--text-primary);
                font-size: 0.93rem;
                font-weight: 600;
                line-height: 1.5;
                transition: color 0.2s ease, opacity 0.2s ease;
            }

            #daily-journey-panel .is-completed .wird-task-text {
                color: #8da49a;
                text-decoration: line-through;
                text-decoration-color: rgba(212, 175, 55, 0.45);
                opacity: 0.85;
            }
            /* Secondary Tasks Accordion */
            #daily-journey-panel .home-wird-more {
                margin-top: 10px;
                border-top: 1px dashed rgba(255, 255, 255, 0.1);
                padding-top: 10px;
            }

                #daily-journey-panel .home-wird-more summary {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    cursor: pointer;
                    min-height: 44px;
                    padding: 9px 12px;
                    border-radius: 10px;
                    background: rgba(255, 255, 255, 0.035);
                    border: 1px solid rgba(255, 255, 255, 0.07);
                    font-weight: 700;
                    font-size: 0.88rem;
                    color: var(--text-primary);
                    transition: all 0.2s ease;
                    list-style: none;
                }

                    #daily-journey-panel .home-wird-more summary::-webkit-details-marker,
                    #daily-journey-panel .home-wird-more summary::marker {
                        display: none;
                    }

                    #daily-journey-panel .home-wird-more summary:hover {
                        background: rgba(255, 255, 255, 0.065);
                        border-color: rgba(212, 175, 55, 0.28);
                    }

                #daily-journey-panel .home-wird-more .summary-chevron {
                    font-size: 0.82rem;
                    color: var(--gold-400, #d4af37);
                    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
                }

                #daily-journey-panel .home-wird-more[open] .summary-chevron {
                    transform: rotate(180deg);
                }

                #daily-journey-panel .home-wird-more[open] summary {
                    margin-bottom: 8px;
                    border-color: rgba(212, 175, 55, 0.25);
                    background: rgba(212, 175, 55, 0.06);
                }
            /* Footer */
            #daily-journey-panel .journey-footer {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                flex-wrap: wrap;
                margin-top: 12px;
                padding-top: 10px;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }

            #daily-journey-panel .journey-footer-meta {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-size: 0.8rem;
                color: #a4c2b7;
            }

            #daily-journey-panel .home-wird-details {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 6px 14px;
                border-radius: 20px;
                font-size: 0.83rem;
                font-weight: 700;
                color: #d4af37;
                background: rgba(212, 175, 55, 0.1);
                border: 1px solid rgba(212, 175, 55, 0.26);
                text-decoration: none;
                transition: all 0.2s ease;
            }

                #daily-journey-panel .home-wird-details:hover {
                    background: rgba(212, 175, 55, 0.2);
                    border-color: var(--gold-400, #d4af37);
                    transform: translateX(-3px);
                    color: #f1c40f;
                }
        /* ==========================================================================
   التوافق التام مع الوضع الفاتح (Light Theme for Daily Journey Panel)
   ========================================================================== */
        html[data-theme="light"] #daily-journey-panel,
        [data-theme="light"] #daily-journey-panel,
        body.light-theme #daily-journey-panel {
            background: #FFFFFF !important;
            border: 1px solid #DFE9E1 !important;
            box-shadow: 0 8px 25px rgba(7, 63, 53, 0.06) !important;
        }

            html[data-theme="light"] #daily-journey-panel .journey-heading,
            [data-theme="light"] #daily-journey-panel .journey-heading,
            body.light-theme #daily-journey-panel .journey-heading {
                border-bottom-color: #DFE9E1 !important;
            }

            html[data-theme="light"] #daily-journey-panel .journey-heading-icon,
            [data-theme="light"] #daily-journey-panel .journey-heading-icon,
            body.light-theme #daily-journey-panel .journey-heading-icon {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
                color: #A87927 !important;
                box-shadow: 0 2px 8px rgba(168, 121, 39, 0.12) !important;
            }

            html[data-theme="light"] #daily-journey-panel .journey-heading-text h3,
            [data-theme="light"] #daily-journey-panel .journey-heading-text h3,
            body.light-theme #daily-journey-panel .journey-heading-text h3 {
                color: #17382d !important;
            }

            html[data-theme="light"] #daily-journey-panel .journey-heading-text p,
            [data-theme="light"] #daily-journey-panel .journey-heading-text p,
            body.light-theme #daily-journey-panel .journey-heading-text p {
                color: #536A60 !important;
            }

            html[data-theme="light"] #daily-journey-panel .journey-status-pill,
            [data-theme="light"] #daily-journey-panel .journey-status-pill,
            body.light-theme #daily-journey-panel .journey-status-pill {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
                color: #A87927 !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-header-bar,
            [data-theme="light"] #daily-journey-panel .wird-header-bar,
            body.light-theme #daily-journey-panel .wird-header-bar {
                background: #F7F9F6 !important;
                border-color: #DFE9E1 !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-progress-title,
            [data-theme="light"] #daily-journey-panel .wird-progress-title,
            body.light-theme #daily-journey-panel .wird-progress-title {
                color: #17382d !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-progress-badge,
            [data-theme="light"] #daily-journey-panel .wird-progress-badge,
            body.light-theme #daily-journey-panel .wird-progress-badge {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
                color: #A87927 !important;
            }

                html[data-theme="light"] #daily-journey-panel .wird-progress-badge.all-done,
                [data-theme="light"] #daily-journey-panel .wird-progress-badge.all-done,
                body.light-theme #daily-journey-panel .wird-progress-badge.all-done {
                    background: #E8F5E9 !important;
                    border-color: #A5D6A7 !important;
                    color: #1B5E20 !important;
                }

            html[data-theme="light"] #daily-journey-panel .wird-progress-bar-container,
            [data-theme="light"] #daily-journey-panel .wird-progress-bar-container,
            body.light-theme #daily-journey-panel .wird-progress-bar-container {
                background: #E5EDE7 !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-task-item,
            [data-theme="light"] #daily-journey-panel .wird-task-item,
            body.light-theme #daily-journey-panel .wird-task-item {
                background: #FBFDFB !important;
                border-color: #E2ECE5 !important;
            }

                html[data-theme="light"] #daily-journey-panel .wird-task-item:hover,
                [data-theme="light"] #daily-journey-panel .wird-task-item:hover,
                body.light-theme #daily-journey-panel .wird-task-item:hover {
                    background: #F2F7F4 !important;
                    border-color: #CBDED2 !important;
                }

                html[data-theme="light"] #daily-journey-panel .wird-task-item.is-completed,
                [data-theme="light"] #daily-journey-panel .wird-task-item.is-completed,
                body.light-theme #daily-journey-panel .wird-task-item.is-completed {
                    background: #F0F7F2 !important;
                    border-color: #C8E3D2 !important;
                }

            html[data-theme="light"] #daily-journey-panel .wird-task-icon-badge,
            [data-theme="light"] #daily-journey-panel .wird-task-icon-badge,
            body.light-theme #daily-journey-panel .wird-task-icon-badge {
                background: #EEF4F0 !important;
                color: #A87927 !important;
            }

            html[data-theme="light"] #daily-journey-panel .is-completed .wird-task-icon-badge,
            [data-theme="light"] #daily-journey-panel .is-completed .wird-task-icon-badge,
            body.light-theme #daily-journey-panel .is-completed .wird-task-icon-badge {
                background: #E2F3E7 !important;
                color: #28785f !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-custom-check,
            [data-theme="light"] #daily-journey-panel .wird-custom-check,
            body.light-theme #daily-journey-panel .wird-custom-check {
                border-color: #B5C9BE !important;
                background: #FFFFFF !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-checkbox:checked + .wird-custom-check,
            [data-theme="light"] #daily-journey-panel .wird-checkbox:checked + .wird-custom-check,
            body.light-theme #daily-journey-panel .wird-checkbox:checked + .wird-custom-check {
                background: linear-gradient(135deg, #28785f, #1b5e20) !important;
                border-color: #28785f !important;
                color: #FFFFFF !important;
            }

            html[data-theme="light"] #daily-journey-panel .wird-task-text,
            [data-theme="light"] #daily-journey-panel .wird-task-text,
            body.light-theme #daily-journey-panel .wird-task-text {
                color: #1B382D !important;
            }

            html[data-theme="light"] #daily-journey-panel .is-completed .wird-task-text,
            [data-theme="light"] #daily-journey-panel .is-completed .wird-task-text,
            body.light-theme #daily-journey-panel .is-completed .wird-task-text {
                color: #7A9186 !important;
            }

            html[data-theme="light"] #daily-journey-panel .home-wird-more,
            [data-theme="light"] #daily-journey-panel .home-wird-more,
            body.light-theme #daily-journey-panel .home-wird-more {
                border-top-color: #DFE9E1 !important;
            }

                html[data-theme="light"] #daily-journey-panel .home-wird-more summary,
                [data-theme="light"] #daily-journey-panel .home-wird-more summary,
                body.light-theme #daily-journey-panel .home-wird-more summary {
                    background: #F7F9F6 !important;
                    border-color: #DFE9E1 !important;
                    color: #17382d !important;
                }

                    html[data-theme="light"] #daily-journey-panel .home-wird-more summary:hover,
                    [data-theme="light"] #daily-journey-panel .home-wird-more summary:hover,
                    body.light-theme #daily-journey-panel .home-wird-more summary:hover {
                        background: #EEF4F0 !important;
                    }

                html[data-theme="light"] #daily-journey-panel .home-wird-more[open] summary,
                [data-theme="light"] #daily-journey-panel .home-wird-more[open] summary,
                body.light-theme #daily-journey-panel .home-wird-more[open] summary {
                    background: #FFF5E3 !important;
                    border-color: #E6BD70 !important;
                }

            html[data-theme="light"] #daily-journey-panel .journey-footer,
            [data-theme="light"] #daily-journey-panel .journey-footer,
            body.light-theme #daily-journey-panel .journey-footer {
                border-top-color: #DFE9E1 !important;
            }

            html[data-theme="light"] #daily-journey-panel .journey-footer-meta,
            [data-theme="light"] #daily-journey-panel .journey-footer-meta,
            body.light-theme #daily-journey-panel .journey-footer-meta {
                color: #536A60 !important;
            }

            html[data-theme="light"] #daily-journey-panel .home-wird-details,
            [data-theme="light"] #daily-journey-panel .home-wird-details,
            body.light-theme #daily-journey-panel .home-wird-details {
                background: #FFF5E3 !important;
                border-color: #E6BD70 !important;
                color: #A87927 !important;
            }

                html[data-theme="light"] #daily-journey-panel .home-wird-details:hover,
                [data-theme="light"] #daily-journey-panel .home-wird-details:hover,
                body.light-theme #daily-journey-panel .home-wird-details:hover {
                    background: #F7E7C4 !important;
                    color: #8C621B !important;
                }


/* Next prayer follows the compact hero's emerald and gold treatment. */
#home #home-next-prayer {
    --prayer-card-bg: #0d281d;
    --prayer-card-text: #f1df9a;
    --prayer-card-muted: #a2b8a7;
    --prayer-card-inset: #0a2018;
    --prayer-card-chip: rgba(4, 25, 17, .48);
    padding: 26px;
    margin-top: 12px;
    gap: 0;
    isolation: isolate;
    border-radius: 32px;
    background: radial-gradient(ellipse at 88% 8%, rgba(191,161,65,.12), transparent 48%), var(--prayer-card-bg) !important;
    border: 1px solid rgba(181,150,58,.42) !important;
    box-shadow: inset 0 0 0 4px var(--prayer-card-inset), inset 0 0 0 5px rgba(181,150,58,.45), 0 12px 26px rgba(0,0,0,.16) !important;
    text-align: start;
}
#home #home-next-prayer::before {
    inset: 15px;
    width: auto;
    height: auto;
    border: 1px solid rgba(199,164,71,.65);
    border-radius: 17px;
    background: none;
    pointer-events: none;
    z-index: -1;
}
#home #home-next-prayer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23d9b45a'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .055;
    pointer-events: none;
    z-index: -1;
}
#home-next-prayer .home-prayer-header {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
#home-next-prayer .home-prayer-badge { color: var(--prayer-card-muted); font-size: .88rem; }
#home-next-prayer .home-prayer-countdown {
    padding: 7px 12px;
    border: 1px solid rgba(181,150,58,.32);
    border-radius: 999px;
    background: var(--prayer-card-chip);
    color: var(--prayer-card-text);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
#home-next-prayer .home-prayer-main-row { gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
#home #home-next-prayer strong.home-prayer-name {
    color: var(--prayer-card-text);
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    line-height: 1.5;
}
#home-next-prayer .home-prayer-exact-time {
    color: var(--prayer-card-text);
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    line-height: 1.4;
    white-space: nowrap;
    unicode-bidi: isolate;
}
#home-next-prayer .home-prayer-progress-track { height: 5px; margin-bottom: 20px; background: rgba(181,150,58,.16); }
#home-next-prayer .home-prayer-progress-fill { background: linear-gradient(90deg,#b38c2f,#f3de94); }




html[data-theme="light"] #home #home-next-prayer,
body.light-theme #home #home-next-prayer {
    --prayer-card-bg: #fffaf0;
    --prayer-card-text: #71531a;
    --prayer-card-muted: #667365;
    --prayer-card-inset: #fffaf0;
    --prayer-card-chip: rgba(181,150,58,.07);
}
@media (max-width: 380px) {
    #home #home-next-prayer { padding: 24px 20px; }
    #home-next-prayer .home-prayer-header { margin-bottom: 16px; }
    #home-next-prayer .home-prayer-countdown { font-size: .76rem; padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    #home-next-prayer .home-prayer-progress-fill,
    #home-next-prayer .home-prayer-action-btn,
    #home-next-prayer .home-prayer-action-btn i { transition: none; }
}


/* Home hierarchy: compact welcome, practical prayer card, then the featured verse. */
#home .home-hero-greeting-card {
    padding: 10px 4px 12px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
#home .home-hero-greeting-card::after { display: none; }
#home .home-hero-greeting-card .greeting-card-main { margin-bottom: 10px; }
#home .home-hero-greeting-card .home-hero-brand { gap: 3px; }
#home .home-hero-greeting-card .brand-name { font-size: 1.3rem !important; }
#home .home-hero-greeting-card .brand-tagline { font-size: .8rem; }
#home .home-hero-greeting-card .home-hero-visual { width: 44px; height: 44px; }
#home .home-hero-greeting-card .hero-moon-glow { display: none; }
#home .home-hero-greeting-card .home-date-pill { gap: 4px 14px; }
#home .home-hero-greeting-card .date-chip {
    flex: 0 1 auto;
    min-height: 24px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none;
    font-size: .74rem;
    justify-content: flex-start;
}
#home #home-next-prayer {
    margin-top: 4px;
    padding: 20px;
    border-radius: 22px;
    border-color: rgba(181,150,58,.24) !important;
    background: var(--prayer-card-bg) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.08) !important;
}
#home #home-next-prayer::before, #home #home-next-prayer::after { display: none; }
#home-next-prayer .home-prayer-header { margin-bottom: 10px; }
#home-next-prayer .home-prayer-main-row { margin-bottom: 14px; }
#home-next-prayer .home-prayer-progress-track { margin-bottom: 14px; height: 4px; }
#home #home-next-prayer #home-prayers-strip {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 0 0;
    border: 0 !important;
    border-top: 1px solid rgba(181,150,58,.18) !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    gap: 3px;
    grid-template-columns: repeat(5,minmax(0,1fr));
}
#home-prayers-strip .home-strip-item { min-width: 0; padding: 8px 2px; border-radius: 10px; }
#home-prayers-strip .home-strip-name { font-size: .78rem; }
#home-prayers-strip .home-strip-time { font-size: .74rem; white-space: nowrap; }
#home-prayers-strip .home-strip-item.is-active { box-shadow: none; }
/* Compact details link: logical alignment and inherited card theme. */
#home #home-next-prayer .home-prayer-action-btn {
    --prayer-arrow-turn: 0deg;
    --prayer-arrow-shift: -2px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    gap: 8px;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-block: 6px 0;
    margin-inline: auto 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--prayer-card-text) !important;
    box-shadow: none;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, border-color .18s ease;
}
#home #home-next-prayer .home-prayer-action-btn i {
    flex: 0 0 auto;
    font-size: .75em;
    rotate: none;
    transform: rotate(var(--prayer-arrow-turn));
    transition: transform .18s ease;
}
html[dir="ltr"] #home #home-next-prayer .home-prayer-action-btn {
    --prayer-arrow-turn: 180deg;
    --prayer-arrow-shift: 2px;
}
#home #home-next-prayer .home-prayer-action-btn:is(:hover, :focus-visible) {
    background: var(--prayer-card-chip);
    border-color: currentColor;
    box-shadow: none;
    transform: none;
    filter: none;
    text-decoration: none;
}
#home #home-next-prayer .home-prayer-action-btn:focus-visible {
    outline: 2px solid var(--prayer-card-text);
    outline-offset: 3px;
}
@media (hover: hover) {
    #home #home-next-prayer .home-prayer-action-btn:hover i {
        transform: translateX(var(--prayer-arrow-shift)) rotate(var(--prayer-arrow-turn));
    }
}
@media (prefers-reduced-motion: reduce) {
    #home #home-next-prayer .home-prayer-action-btn,
    #home #home-next-prayer .home-prayer-action-btn i { transition: none; }
    #home #home-next-prayer .home-prayer-action-btn:hover i { transform: rotate(var(--prayer-arrow-turn)); }
}
#home-services-section { margin: 14px 0 18px; display: flex; flex-direction: column; }
#home-services-section .quick-access-grid { order: 0; margin: 0; gap: 8px; padding-bottom:8px;}
#home-services-section .home-quick-card { padding: 12px 6px; min-height: 0; border-radius: 16px; box-shadow: none; }
#home-services-section .home-quick-icon-box { width: 38px; height: 38px; margin-bottom: 6px; font-size: 1.2rem; }
#home-services-section .home-quick-title { font-size: .8rem; }
#home-services-section .home-services-more-wrap { order: 1; margin: 8px 0 0; }
#home-services-section .home-more-services-btn {
    min-height: 44px; padding: 8px 14px; font-size: .82rem;
    border: 0; box-shadow: none; background: transparent;
}
#home-services-section #services { order: 2; margin: 0; }
#home-services-section #services > .container { margin: 0 !important; }
#home-services-section #services a {
    padding: 6px 10px !important;
    min-height: 32px;
    font-size: .72rem !important;
    font-weight: 400 !important;
    background: transparent !important;
    border-color: transparent !important;
}
#home .home-verse-section { margin-top: 0; margin-bottom: 18px; }
#home .home-verse-section .daily-verse-frame { min-height: 0; padding: 20px 18px; }
#home .home-verse-section .daily-verse-text { font-size: clamp(1.65rem,5.8vw,2.15rem); line-height: 1.9; }
@media (max-width: 380px) {
    #home #home-next-prayer { padding: 16px 12px; }
    #home-prayers-strip .home-strip-time { font-size: .67rem; }
    #home-services-section .quick-access-grid { gap: 5px; }
    #home-services-section .home-quick-title { font-size: .72rem; }
}


/* A quiet, readable charity card with one clear action. */
#home #sadaqa { grid-template-columns: minmax(0,1fr); margin-top: 18px; }
#home .panel.sadaqa {
    --sadaqa-surface: #0d281d;
    --sadaqa-ink: #edf1e7;
    --sadaqa-muted: #afc0b1;
    --sadaqa-accent: #e5ce86;
    --sadaqa-quote: rgba(3,20,13,.26);
    min-width: 0;
    padding: clamp(18px,4vw,28px);
    gap: 18px;
    border-radius: 24px;
    border: 1px solid rgba(181,150,58,.25) !important;
    background: var(--sadaqa-surface) !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.08) !important;
    backdrop-filter: none;
    text-align: start;
    transform: none;
}
#home .panel.sadaqa::before { display: none; }
#sadaqa .sadaqa-top-row { margin: 0; }
#sadaqa .sadaqa-badge {
    padding: 0; border: 0; background: transparent;
    color: var(--sadaqa-muted); font-size: .76rem; font-weight: 500;
}
#sadaqa .sadaqa-header { align-items: flex-start; gap: 12px; margin: 0; }
#sadaqa .sadaqa-header-text { min-width: 0; }
#sadaqa .sadaqa-icon-aura {
    width: 42px; height: 42px; border-radius: 13px;
    background: rgba(181,150,58,.1); border: 1px solid rgba(181,150,58,.22);
    color: var(--sadaqa-accent); box-shadow: none; font-size: 1.15rem;
}
#sadaqa .sadaqa-header-text h2 { font-size: clamp(1.08rem,4vw,1.35rem); line-height: 1.6; color: var(--sadaqa-ink); }
#sadaqa .sadaqa-header-text p { margin-top: 6px; font-size: .86rem; line-height: 1.9; color: var(--sadaqa-muted); }
#sadaqa .sadaqa-hadith-card {
    margin: 0; padding: 16px 18px; border: 0;
    border-inline-start: 2px solid rgba(181,150,58,.65);
    border-radius: 12px; background: var(--sadaqa-quote);
}
#sadaqa .sadaqa-hadith-text { font-size: clamp(.96rem,3.5vw,1.08rem); line-height: 2; color: var(--sadaqa-ink); }
#sadaqa .sadaqa-hadith-ref { color: var(--sadaqa-accent); margin-top: 8px; font-weight: 500; }
#sadaqa .sadaqa-actions { margin: 0; gap: 8px; }
#sadaqa .sadaqa-cta-btn {
    min-height: 48px; padding: 12px 16px; width: 100%; box-sizing: border-box;
    border-radius: 14px; border: 0; background: linear-gradient(110deg,#f3de94,#b38c2f);
    color: #152317; box-shadow: none; font-size: .9rem; line-height: 1.6;
    white-space: normal; transform: none;
}
#sadaqa .sadaqa-cta-btn span { min-width: 0; }
#sadaqa .sadaqa-cta-btn i { flex-shrink: 0; }
#sadaqa .sadaqa-secondary-link {
    min-height: 44px; box-sizing: border-box; line-height: 1.8;
    color: var(--sadaqa-muted); text-align: center; font-weight: 500;
}
#sadaqa .sadaqa-secondary-link:hover { color: var(--sadaqa-accent); text-decoration: underline; }
#sadaqa .sadaqa-actions :focus-visible { outline: 2px solid var(--sadaqa-accent); outline-offset: 4px; }
html[dir="ltr"] #sadaqa .fa-arrow-left { transform: rotate(180deg); }
html[data-theme="light"] #home .panel.sadaqa, body.light-theme #home .panel.sadaqa {
    --sadaqa-surface: #fffaf0; --sadaqa-ink: #203c2d; --sadaqa-muted: #596b5c;
    --sadaqa-accent: #795b20; --sadaqa-quote: rgba(181,150,58,.07);
}
#modalContent #deceased, #modalContent .sadaqa-share-fallback {
    display: block; width: 100%; box-sizing: border-box; margin: 10px 0 16px;
    padding: 12px; border: 1px solid var(--border-color,#315346); border-radius: 10px;
    background: var(--card,#0d281d); color: var(--text-primary,#edf1e7); font: inherit;
}
#modalContent .sadaqa-share-fallback { min-height: 150px; resize: vertical; }
#cardResult { overflow-wrap: anywhere; }
#cardResult .notice p { line-height: 2; }
@media (max-width: 380px) {
    #sadaqa .sadaqa-header { gap: 9px; }
    #sadaqa .sadaqa-icon-aura { width: 34px; height: 34px; font-size: 1rem; }
    #sadaqa .sadaqa-hadith-card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #home .panel.sadaqa, #sadaqa .sadaqa-actions a, #sadaqa .sadaqa-actions button { transition: none; }
}


/* Shared home surfaces: match the prayer and charity cards. */
#home {
    --home-surface: #0d281d;
    --home-surface-inset: #0a2118;
    --home-surface-hover: #153526;
    --home-surface-border: rgba(181,150,58,.25);
    --home-surface-ink: #edf1e7;
    --home-surface-muted: #afc0b1;
    --home-surface-accent: #e5ce86;
    --home-surface-tint: rgba(181,150,58,.1);
}
html[data-theme="light"] #home, body.light-theme #home {
    --home-surface: #fffaf0;
    --home-surface-inset: #f6f0e3;
    --home-surface-hover: #f3ead6;
    --home-surface-border: rgba(181,150,58,.25);
    --home-surface-ink: #203c2d;
    --home-surface-muted: #596b5c;
    --home-surface-accent: #795b20;
    --home-surface-tint: rgba(181,150,58,.1);
}
#home #daily-featured-media-card,
#home #daily-journey-panel,
#home #home-services-section .home-quick-card {
    background: var(--home-surface) !important;
    border-color: var(--home-surface-border) !important;
    color: var(--home-surface-ink) !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.08) !important;
}
#home #daily-journey-panel::before { background: none; }
#home #home-services-section { background: transparent; }
#home #home-services-section .home-quick-card:hover {
    background: var(--home-surface-hover) !important;
    border-color: var(--home-surface-accent) !important;
}
#home #home-services-section .home-quick-icon-box,
#home #daily-journey-panel .journey-heading-icon,
#home #daily-journey-panel .wird-task-icon-badge {
    background: var(--home-surface-tint) !important;
    color: var(--home-surface-accent) !important;
    border-color: var(--home-surface-border) !important;
    box-shadow: none;
}
#home #home-services-section .home-quick-title,
#home #daily-featured-media-card .daily-clip-title,
#home #daily-journey-panel .journey-heading-text h3,
#home #daily-journey-panel .wird-task-text {
    color: var(--home-surface-ink) !important;
}
#home #daily-featured-media-card .daily-clip-desc,
#home #daily-featured-media-card .daily-clip-speaker,
#home #daily-journey-panel .journey-heading-text p,
#home #daily-journey-panel .journey-footer-meta {
    color: var(--home-surface-muted) !important;
}
#home #daily-journey-panel .home-wird-card { background: transparent !important; }
#home #daily-journey-panel .wird-header-bar,
#home #daily-journey-panel .wird-task-item,
#home #daily-journey-panel .home-wird-more,
#home #daily-featured-media-card .btn-audio-daily-clip,
#home #daily-featured-media-card .btn-bookmark-daily-clip {
    background: var(--home-surface-inset) !important;
    border-color: var(--home-surface-border) !important;
    color: var(--home-surface-ink) !important;
}
#home #daily-journey-panel .wird-task-item:hover,
#home #daily-journey-panel .home-wird-more summary:hover {
    background: var(--home-surface-hover) !important;
}
#home #daily-journey-panel .wird-task-item.is-completed,
#home #daily-featured-media-card .btn-bookmark-daily-clip.saved {
    background: var(--home-surface-tint) !important;
    border-color: var(--home-surface-accent) !important;
    color: var(--home-surface-accent) !important;
}
#home #daily-journey-panel .journey-heading,
#home #daily-journey-panel .journey-footer { border-color: var(--home-surface-border) !important; }

.travel-disclosure { width: min(90vw, 28rem); box-sizing: border-box; margin: auto; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card, #fff); color: var(--text, #16291d); text-align: start; }
.travel-disclosure::backdrop { background: rgba(0, 0, 0, .6); }
.travel-disclosure p { margin-block: 1rem; line-height: 1.7; }
.travel-disclosure form { display: flex; gap: .75rem; justify-content: flex-end; }
