/* ========================================================
         PHASE 1: VISUAL THEME & UNIFIED COLOR SYSTEM
         نظام الألوان والتناغم البصري للصفحة الرئيسية
         ======================================================== */
      :root {
        --zadi-bg-main: #F7F5EC;
        --zadi-surface-card: #FCFBF6;
        --zadi-surface-card-subtle: #F3EFE6;
        --zadi-primary: #064B3B;
        --zadi-secondary: #16866A;
        --zadi-active-tint: #DDF3E9;
        --zadi-accent-gold: #D8A33E;
        --zadi-text-main: #142E25;
        --zadi-text-muted: #536C62;
        --zadi-border-soft: rgba(22, 134, 106, 0.12);
        --zadi-border-card: rgba(20, 80, 60, 0.08);
        --zadi-shadow-soft: 0 4px 20px -2px rgba(6, 75, 59, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
        --zadi-shadow-hover: 0 8px 26px -2px rgba(6, 75, 59, 0.08), 0 3px 8px rgba(0, 0, 0, 0.03);
      }
      html.dark {
        --zadi-bg-main: #031310;
        --zadi-surface-card: #08211b;
        --zadi-surface-card-subtle: #0d2b24;
        --zadi-primary: #10b981;
        --zadi-secondary: #34d399;
        --zadi-active-tint: #0f3d30;
        --zadi-accent-gold: #fbbf24;
        --zadi-text-main: #ecfdf5;
        --zadi-text-muted: #94a3b8;
        --zadi-border-soft: rgba(16, 185, 129, 0.16);
        --zadi-border-card: rgba(16, 185, 129, 0.12);
        --zadi-shadow-soft: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
        --zadi-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
      }

      /* Unified Background for Light and Dark Modes */
      body {
        background-color: var(--zadi-bg-main) !important;
        color: var(--zadi-text-main);
      }

      /* ========================================================
         SIBHA REFLECTION & MINDFULNESS CARD (وقفة السكينة والتدبر)
         تصحيح جذري لتباين الألوان في الوضعين النهاري والليلي
         إلغاء خاصية وتأثير الـ 3D تماماً لضمان خطوط نقية ومقروءة 100%
         ======================================================== */
      
      /* الوضع النهاري (Light Mode) - بطاقة ناصعة بخطوط داكنة عالية التباين وبدون أي ظل 3D */
      html:not(.dark) .sibha-reflection-card {
        background-color: #ffffff !important;
        background: linear-gradient(160deg, #ffffff 0%, #f4fbf7 60%, #ebf8f1 100%) !important;
        border: 2px solid #059669 !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 10px 25px -3px rgba(5, 150, 105, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
        color: #064e3b !important;
      }
      html:not(.dark) .sibha-reflection-card > div:first-child {
        border-bottom-color: rgba(5, 150, 105, 0.25) !important;
      }
      html:not(.dark) .sibha-reflection-card .reflection-title {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
        filter: none !important;
      }
      html:not(.dark) .sibha-reflection-card svg {
        color: #d97706 !important;
        filter: none !important;
      }
      html:not(.dark) .sibha-reflection-card .reflection-theme-badge {
        background-color: #d1fae5 !important;
        border: 1.5px solid #059669 !important;
        color: #065f46 !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        padding: 3px 10px !important;
        border-radius: 9999px !important;
      }
      html:not(.dark) .sibha-reflection-card .reflection-quote {
        color: #062e24 !important;
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        line-height: 2 !important;
        text-shadow: none !important; /* إلغاء خاصية الـ 3D والظلال نهائياً */
        filter: none !important;
      }
      html:not(.dark) .sibha-reflection-card > div:last-child {
        border-top-color: rgba(5, 150, 105, 0.25) !important;
      }
      html:not(.dark) .sibha-reflection-card .reflection-reminder {
        color: #047857 !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        filter: none !important;
      }
      html:not(.dark) .sibha-reflection-card .reflection-confirm-btn {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        border: none !important;
        text-shadow: none !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
      }

      /* الوضع الليلي (Dark Mode) - بطاقة زمردية عميقة بخطوط بيضاء ناصعة وبدون أي ظل 3D */
      html.dark .sibha-reflection-card {
        background-color: #022019 !important;
        background: linear-gradient(145deg, #022019 0%, #064e3b 50%, #021a14 100%) !important;
        border: 2px solid #10b981 !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.2) !important;
        color: #ffffff !important;
      }
      html.dark .sibha-reflection-card > div:first-child {
        border-bottom-color: rgba(251, 191, 36, 0.3) !important;
      }
      html.dark .sibha-reflection-card .reflection-title {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: none !important;
        filter: none !important;
      }
      html.dark .sibha-reflection-card svg {
        color: #fbbf24 !important;
        filter: none !important;
      }
      html.dark .sibha-reflection-card .reflection-theme-badge {
        background-color: rgba(6, 78, 59, 0.8) !important;
        border: 1.5px solid #34d399 !important;
        color: #6ee7b7 !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        padding: 3px 10px !important;
        border-radius: 9999px !important;
      }
      html.dark .sibha-reflection-card .reflection-quote {
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        line-height: 2 !important;
        text-shadow: none !important; /* إلغاء خاصية الـ 3D والظلال نهائياً */
        filter: none !important;
      }
      html.dark .sibha-reflection-card > div:last-child {
        border-top-color: rgba(251, 191, 36, 0.25) !important;
      }
      html.dark .sibha-reflection-card .reflection-reminder {
        color: #fde68a !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        filter: none !important;
      }
      html.dark .sibha-reflection-card .reflection-confirm-btn {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        color: #022019 !important;
        font-weight: 900 !important;
        border: none !important;
        text-shadow: none !important;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
      }

      /* إزالة كل خصائص الـ 3D والظلال المتداخلة عن جميع النصوص داخل كرت السكينة */
      .sibha-reflection-card,
      .sibha-reflection-card *,
      .sibha-reflection-card p,
      .sibha-reflection-card span,
      .sibha-reflection-card button,
      .sibha-reflection-card h4 {
        text-shadow: none !important;
        filter: none !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      /* Home Daily Cards & Main Container Cohesion */
      #home-daily-cards > div {
        background-color: var(--zadi-surface-card) !important;
        border-radius: 1.5rem !important;
        transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
      }

      /* ========================================================
         DISTINCT CARD FRAMES & BORDERS (إطارات مستقلة بألوان متناسقة للكروت الأربعة)
         كرت الصلاة (زمردي) - كرت القرآن (ذهبي) - كرت هدفي الأهم (أزرق نيلي) - كرت صلة الرحم (وردي دافئ)
         ======================================================== */

      /* 1. كرت توقيت الصلاة (Prayer Times Card) - إطار أخضر زمردي إيماني ووقور */
      #card-prayer-times,
      #home-daily-cards > div:nth-child(1) {
        border: 2px solid rgba(5, 150, 105, 0.45) !important;
        box-shadow: 0 4px 20px -2px rgba(5, 150, 105, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
      }
      #card-prayer-times:hover,
      #home-daily-cards > div:nth-child(1):hover {
        border-color: rgba(5, 150, 105, 0.8) !important;
        box-shadow: 0 8px 28px -2px rgba(5, 150, 105, 0.22), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #card-prayer-times,
      html.dark #home-daily-cards > div:nth-child(1) {
        border: 2px solid rgba(52, 211, 153, 0.45) !important;
        box-shadow: 0 6px 24px -2px rgba(5, 150, 105, 0.25) !important;
      }
      html.dark #card-prayer-times:hover,
      html.dark #home-daily-cards > div:nth-child(1):hover {
        border-color: rgba(52, 211, 153, 0.85) !important;
        box-shadow: 0 10px 32px -2px rgba(5, 150, 105, 0.4) !important;
      }

      /* 2. كرت أكمل رحلتك مع كتاب الله (Quran Card) - إطار ذهبي عنبري ملكي */
      #card-quran-journey,
      #home-daily-cards > div:nth-child(2) {
        border: 2px solid rgba(217, 119, 6, 0.45) !important;
        box-shadow: 0 4px 20px -2px rgba(217, 119, 6, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
      }
      #card-quran-journey:hover,
      #home-daily-cards > div:nth-child(2):hover {
        border-color: rgba(217, 119, 6, 0.85) !important;
        box-shadow: 0 8px 28px -2px rgba(217, 119, 6, 0.24), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #card-quran-journey,
      html.dark #home-daily-cards > div:nth-child(2) {
        border: 2px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 6px 24px -2px rgba(245, 158, 11, 0.25) !important;
      }
      html.dark #card-quran-journey:hover,
      html.dark #home-daily-cards > div:nth-child(2):hover {
        border-color: rgba(251, 191, 36, 0.85) !important;
        box-shadow: 0 10px 32px -2px rgba(245, 158, 11, 0.4) !important;
      }

      /* 3. كرت هدفي الأهم وحصني الإيماني (Goals Card) - إطار أزرق نيلي/سماوي وقور */
      #card-my-goals,
      #home-daily-cards > div:nth-child(3) {
        border: 2px solid rgba(2, 132, 199, 0.45) !important;
        box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
      }
      #card-my-goals:hover,
      #home-daily-cards > div:nth-child(3):hover {
        border-color: rgba(2, 132, 199, 0.85) !important;
        box-shadow: 0 8px 28px -2px rgba(2, 132, 199, 0.24), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #card-my-goals,
      html.dark #home-daily-cards > div:nth-child(3) {
        border: 2px solid rgba(56, 189, 248, 0.45) !important;
        box-shadow: 0 6px 24px -2px rgba(2, 132, 199, 0.25) !important;
      }
      html.dark #card-my-goals:hover,
      html.dark #home-daily-cards > div:nth-child(3):hover {
        border-color: rgba(56, 189, 248, 0.85) !important;
        box-shadow: 0 10px 32px -2px rgba(2, 132, 199, 0.4) !important;
      }

      /* 4. كرت صلة الرحم والبر (Silat Al-Rahim Card) - إطار ياقوتي/وردي دافئ يفيض مودة */
      #card-silat-rahim,
      #home-daily-cards > div:nth-child(4) {
        border: 2px solid rgba(225, 29, 72, 0.42) !important;
        box-shadow: 0 4px 20px -2px rgba(225, 29, 72, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
      }
      #card-silat-rahim:hover,
      #home-daily-cards > div:nth-child(4):hover {
        border-color: rgba(225, 29, 72, 0.8) !important;
        box-shadow: 0 8px 28px -2px rgba(225, 29, 72, 0.22), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #card-silat-rahim,
      html.dark #home-daily-cards > div:nth-child(4) {
        border: 2px solid rgba(251, 113, 133, 0.45) !important;
        box-shadow: 0 6px 24px -2px rgba(225, 29, 72, 0.25) !important;
      }
      html.dark #card-silat-rahim:hover,
      html.dark #home-daily-cards > div:nth-child(4):hover {
        border-color: rgba(251, 113, 133, 0.85) !important;
        box-shadow: 0 10px 32px -2px rgba(225, 29, 72, 0.4) !important;
      }

      /* ========================================================
         QURAN CARD - LIGHT MODE REFINEMENT (EXACT REFERENCE ALIGNMENT)
         كرت "أكمل رحلتك مع كتاب الله" في الوضع النهاري طبقاً للمرجع
         ======================================================== */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] {
        background: radial-gradient(circle at 15% 15%, rgba(26, 77, 56, 0.4) 0%, transparent 65%),
                    linear-gradient(145deg, #133b2a 0%, #0c2b1e 55%, #061e15 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.2) !important;
        box-shadow: 0 14px 32px -4px rgba(4, 25, 16, 0.45) !important;
        border-radius: 1.5rem !important;
        color: #ffffff !important;
        transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"]:hover {
        box-shadow: 0 18px 36px -4px rgba(4, 25, 16, 0.55) !important;
        border-color: rgba(52, 211, 153, 0.3) !important;
      }

      /* Top Pill Badge: "أكمل رحلتك مع كتاب الله" */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] span[class*="bg-amber-400"] {
        background-color: rgba(22, 58, 41, 0.9) !important;
        border: 1px solid rgba(234, 179, 8, 0.45) !important;
        color: #f3c859 !important;
        font-weight: 800 !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] span[class*="bg-amber-400"] *,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] span[class*="bg-amber-400"] svg {
        color: #f3c859 !important;
        stroke: #f3c859 !important;
      }

      /* Top Sub-label: "آخر موضع محتفظ به" */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] span[class*="text-emerald-200"] {
        color: #a1c1b1 !important;
      }

      /* The Two Inner Boxes: "المصحف الشريف" and "آخر استماع" (خلفية خضراء داكنة صريحة وواضحة لقراءة النصوص البيضاء والذهبية) */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="bg-white/10"],
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div.grid > div {
        background-color: #0a261a !important;
        background: linear-gradient(145deg, #0e3323 0%, #071f15 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.25) !important;
        border-radius: 1rem !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="bg-white/10"] div[class*="text-amber-300"],
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div.grid > div div[class*="text-amber-300"] {
        color: #f3c859 !important;
        font-weight: 800 !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="bg-white/10"] div[class*="text-amber-300"] *,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div.grid > div div[class*="text-amber-300"] *,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="bg-white/10"] div[class*="text-amber-300"] svg,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div.grid > div div[class*="text-amber-300"] svg {
        color: #f3c859 !important;
        stroke: #f3c859 !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="bg-white/10"] p,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div.grid > div p {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
      }

      /* Bottom Divider */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] div[class*="border-t"] {
        border-color: rgba(255, 255, 255, 0.08) !important;
      }

      /* Bottom Left Action Button: "متابعة التلاوة" */
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button {
        background-color: #f5b638 !important;
        background-image: none !important;
        color: #0c1813 !important;
        text-shadow: none !important;
        font-weight: 900 !important;
        border-radius: 0.875rem !important;
        box-shadow: 0 4px 14px rgba(245, 182, 56, 0.35) !important;
        border: none !important;
        transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button:hover {
        background-color: #f8c14d !important;
        box-shadow: 0 6px 18px rgba(245, 182, 56, 0.45) !important;
        transform: translateY(-1px);
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button:active {
        transform: scale(0.97);
      }
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button *,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button svg,
      html:not(.dark) #home-daily-cards > div[class*="from-emerald-900"] button path {
        color: #0c1813 !important;
        stroke: #0c1813 !important;
      }

      /* Sakina Message Card */
      #home-daily-cards > div[class*="from-amber-500/10"] {
        background: linear-gradient(135deg, rgba(221, 243, 233, 0.65) 0%, rgba(252, 251, 246, 0.95) 50%, rgba(216, 163, 62, 0.08) 100%) !important;
        border: 1px solid rgba(22, 134, 106, 0.16) !important;
      }
      html.dark #home-daily-cards > div[class*="from-amber-500/10"] {
        background: linear-gradient(135deg, #092620 0%, #08211b 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.2) !important;
      }

      /* ========================================================
         HOME DATE RIBBON - DUAL COMPLETE CALENDAR (HIJRI & GREGORIAN)
         شريط التاريخ بالصفحة الرئيسية - هجري وميلادي كاملين بألوان عالية الوضوح
         ======================================================== */
      #home-header-date-badge,
      .home-date-ribbon {
        background: #FAF8F2 !important;
        background-color: #FAF8F2 !important;
        border: 1px solid rgba(16, 120, 80, 0.22) !important;
        box-shadow: 0 2px 10px -2px rgba(10, 40, 28, 0.08) !important;
        margin-bottom: 0.75rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-radius: 9999px !important;
        padding: 0.45rem 0.95rem !important;
        gap: 0.5rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
        cursor: pointer !important;
        transition: all 0.25s ease-in-out !important;
      }
      #home-header-date-badge:hover,
      .home-date-ribbon:hover {
        background: #F4EFE6 !important;
        background-color: #F4EFE6 !important;
        border-color: rgba(16, 120, 80, 0.45) !important;
        box-shadow: 0 4px 16px -2px rgba(10, 40, 28, 0.12) !important;
      }
      #home-header-date-badge:active,
      .home-date-ribbon:active {
        transform: scale(0.995) !important;
      }
      #home-header-date-badge:focus-visible,
      .home-date-ribbon:focus-visible {
        outline: 2px solid #059669 !important;
        outline-offset: 2px !important;
      }
      .dark #home-header-date-badge,
      .dark .home-date-ribbon,
      html.dark #home-header-date-badge,
      html.dark .home-date-ribbon {
        background: linear-gradient(135deg, #09251c 0%, #051912 100%) !important;
        background-color: #051912 !important;
        border: 1px solid rgba(52, 211, 153, 0.35) !important;
        box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45) !important;
      }
      .dark #home-header-date-badge:hover,
      .dark .home-date-ribbon:hover,
      html.dark #home-header-date-badge:hover,
      html.dark .home-date-ribbon:hover {
        background: linear-gradient(135deg, #0e3428 0%, #08241b 100%) !important;
        background-color: #08241b !important;
        border-color: rgba(52, 211, 153, 0.55) !important;
        box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.6) !important;
      }
      /* Interactive Calendar & Anniversary Link Pill */
      #home-header-date-badge .home-date-link-pill,
      .home-date-ribbon .home-date-link-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        background-color: rgba(16, 185, 129, 0.12) !important;
        color: #064e3b !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
        border-radius: 9999px !important;
        font-weight: 900 !important;
        font-size: 0.6875rem !important;
        padding: 0.2rem 0.6rem !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease-in-out !important;
      }
      #home-header-date-badge:hover .home-date-link-pill,
      .home-date-ribbon:hover .home-date-link-pill {
        background-color: rgba(16, 185, 129, 0.22) !important;
        border-color: rgba(16, 185, 129, 0.55) !important;
        color: #04382a !important;
      }
      .dark #home-header-date-badge .home-date-link-pill,
      .dark .home-date-ribbon .home-date-link-pill,
      html.dark #home-header-date-badge .home-date-link-pill,
      html.dark .home-date-ribbon .home-date-link-pill {
        background-color: rgba(16, 185, 129, 0.22) !important;
        color: #6ee7b7 !important;
        border: 1px solid rgba(52, 211, 153, 0.45) !important;
      }
      .dark #home-header-date-badge:hover .home-date-link-pill,
      .dark .home-date-ribbon:hover .home-date-link-pill {
        background-color: rgba(16, 185, 129, 0.35) !important;
        border-color: rgba(52, 211, 153, 0.7) !important;
        color: #a7f3d0 !important;
      }
      /* Full dates banner in calendar page */
      .full-dates-banner {
        transition: all 0.25s ease-in-out !important;
      }
      /* Other subtle stone containers */
      div[class*="bg-stone-50/90"]:not([class*="select-none"]):not([class*="shadow-3xs"]) {
        background-color: var(--zadi-surface-card) !important;
        border: 1px solid var(--zadi-border-card) !important;
        box-shadow: var(--zadi-shadow-soft) !important;
        border-radius: 1rem !important;
      }

      /* ========================================================
         NIYYAH CARD (تجديد النية) - CALM BREATHING ANIMATION
         حركة انسيابية هادئة (Breathing & Subtle Float) لبطاقة تجديد النية
         ======================================================== */
      @keyframes zadiNiyyahCardBreathing {
        0%, 100% {
          transform: translateY(0) scale(1);
        }
        50% {
          transform: translateY(-3.5px) scale(1.012);
        }
      }

      @keyframes zadiNiyyahFabBreathing {
        0%, 100% {
          transform: translateY(0) scale(1);
        }
        50% {
          transform: translateY(-3px) scale(1.04);
        }
      }

      /* بطاقة تجديد النية المفتوحة */
      div:has(> div[class*="rounded-[2.8rem]"]),
      div[class*="rounded-[2.8rem]"] {
        animation: zadiNiyyahCardBreathing 4.5s ease-in-out infinite !important;
        transform-origin: center center !important;
        will-change: transform !important;
      }

      /* بطاقة تجديد النية وهو مغلق قبل فتحه (سحابة النية بالحالة المصغرة) */
      div[title*="تأمل سحابة تجديد النية"],
      div:has(> div[class*="rounded-[2.5rem]"]),
      div[class*="rounded-[2.5rem]"] {
        animation: zadiNiyyahCardBreathing 4.2s ease-in-out infinite !important;
        transform-origin: center center !important;
        will-change: transform !important;
      }

      /* تجنب تكرار الحركة داخل الحاويات */
      div:has(> div[class*="rounded-[2.8rem]"]) > div[class*="rounded-[2.8rem]"],
      div[title*="تأمل سحابة تجديد النية"] div[class*="rounded-[2.5rem]"],
      div:has(> div[class*="rounded-[2.5rem]"]) > div[class*="rounded-[2.5rem]"] {
        animation: none !important;
      }

      /* إيقاف الحركة مؤقتاً عند التفاعل والتمرير للضغط المريح */
      div:has(> div[class*="rounded-[2.8rem]"]):hover,
      div[class*="rounded-[2.8rem]"]:hover,
      div[title*="تأمل سحابة تجديد النية"]:hover,
      div[class*="rounded-[2.5rem]"]:hover {
        animation-play-state: paused !important;
      }

      /* زر / كبسولة تجديد النية العائمة */
      #global-niyyah-fab {
        animation: zadiNiyyahFabBreathing 3.6s ease-in-out infinite !important;
        will-change: transform !important;
      }

      #global-niyyah-fab:hover {
        animation-play-state: paused !important;
      }

      /* Subtle Inner Pill Badges */
      span[class*="bg-emerald-500/10"],
      span[class*="bg-amber-500/15"],
      span[class*="bg-amber-500/10"] {
        background-color: var(--zadi-active-tint) !important;
        color: var(--zadi-primary) !important;
        border-color: rgba(22, 134, 106, 0.18) !important;
      }
      html.dark span[class*="bg-emerald-500/10"],
      html.dark span[class*="bg-amber-500/15"],
      html.dark span[class*="bg-amber-500/10"] {
        background-color: rgba(16, 185, 129, 0.15) !important;
        color: #34d399 !important;
        border-color: rgba(16, 185, 129, 0.25) !important;
      }

      /* Quick Access Buttons */
      div.grid-cols-5 > button {
        background-color: var(--zadi-surface-card) !important;
        border: 1px solid var(--zadi-border-card) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
        border-radius: 1.15rem !important;
        transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
      }
      div.grid-cols-5 > button:hover {
        background-color: var(--zadi-active-tint) !important;
        border-color: rgba(22, 134, 106, 0.25) !important;
        transform: translateY(-2px);
      }
      html.dark div.grid-cols-5 > button {
        background-color: var(--zadi-surface-card) !important;
        border: 1px solid var(--zadi-border-card) !important;
      }
      html.dark div.grid-cols-5 > button:hover {
        background-color: var(--zadi-surface-card-subtle) !important;
      }

      /* ========================================================
         RESPONSIVE UI REFINEMENTS (MOBILE & WEB)
         تحسين التجاوب والتوزيع بين شاشات الهاتف والويب
         ======================================================== */
      #zadi-home-spiritual-backdrop {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 44rem;
        height: 480px;
        pointer-events: none;
        overflow: hidden;
        z-index: 0;
        transition: opacity 0.3s ease;
      }

      .zadi-backdrop-mosque {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 360px;
        background-image: url('/assets/decorations/mosque_bg.jpg');
        background-size: cover;
        background-position: center top;
        opacity: 0.90;
        mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,0.6) 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,0.6) 70%, transparent 100%);
      }

      .zadi-backdrop-leaves-left {
        position: absolute;
        top: 35px;
        left: -12px;
        width: 110px;
        height: 240px;
        background-image: url('/assets/decorations/leaves_left.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.85;
        filter: drop-shadow(0 2px 8px rgba(6, 75, 59, 0.08));
      }

      .zadi-backdrop-leaves-right {
        position: absolute;
        top: 75px;
        right: -12px;
        width: 110px;
        height: 240px;
        background-image: url('/assets/decorations/leaves_right.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.85;
        filter: drop-shadow(0 2px 8px rgba(6, 75, 59, 0.08));
      }

      .zadi-backdrop-fade {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 190px;
        background: linear-gradient(to bottom, rgba(247, 245, 236, 0) 0%, rgba(247, 245, 236, 0.6) 40%, var(--zadi-bg-main) 100%);
      }

      /* Mobile Screen Optimizations (< 640px) */
      @media (max-width: 639px) {
        #zadi-home-spiritual-backdrop {
          height: 380px;
        }
        .zadi-backdrop-mosque {
          height: 280px;
          opacity: 0.88;
        }
        .zadi-backdrop-leaves-left {
          top: 30px;
          left: -8px;
          width: 85px;
          height: 190px;
          opacity: 0.82;
        }
        .zadi-backdrop-leaves-right {
          top: 65px;
          right: -8px;
          width: 85px;
          height: 190px;
          opacity: 0.82;
        }
        .zadi-backdrop-fade {
          height: 140px;
        }

        /* Compact height for prayer prompt card on mobile */
        #home-daily-cards > div:first-child {
          padding: 1rem !important;
        }
        #home-daily-cards > div:first-child p {
          font-size: 0.725rem !important;
          line-height: 1.4 !important;
        }

        /* Balanced Niyyah Card on mobile */
        .zadi-cloud-frame {
          padding: 1.15rem !important;
          margin-top: 0.25rem !important;
          margin-bottom: 0.5rem !important;
        }
      }

      /* Web & Tablet Responsive Grid (> 768px) */
      @media (min-width: 768px) {
        #zadi-home-spiritual-backdrop {
          max-width: 58rem;
          height: 490px;
        }
        .zadi-backdrop-mosque {
          height: 370px;
        }
        .zadi-backdrop-leaves-left {
          top: 35px;
          left: -15px;
          width: 135px;
          height: 290px;
        }
        .zadi-backdrop-leaves-right {
          top: 75px;
          right: -15px;
          width: 135px;
          height: 290px;
        }

        /* Expand container comfortably on Web */
        div.max-w-2xl:has(> #home-daily-cards),
        div:has(> #home-daily-cards) {
          max-width: 54rem !important;
        }

        /* Responsive grid: Quran, Ward, Goals side-by-side */
        #home-daily-cards {
          display: grid !important;
          grid-template-columns: repeat(12, 1fr) !important;
          gap: 1rem !important;
        }

        /* Prayer times card: Full row */
        #home-daily-cards > div:nth-child(1) {
          grid-column: span 12 !important;
        }

        /* 2 Columns for Quran and Goal */
        #home-daily-cards > div:nth-child(2) {
          grid-column: span 6 !important;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }
        #home-daily-cards > div:nth-child(3) {
          grid-column: span 6 !important;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }

        /* Silat Rahim & Sakina Message: 2 Columns */
        #home-daily-cards > div:nth-child(4) {
          grid-column: span 6 !important;
        }
        #home-daily-cards > div:nth-child(5) {
          grid-column: span 6 !important;
          display: flex;
          flex-direction: column;
          justify-content: center;
        }
      }

      /* High-contrast and readable button texts */
      button.bg-gradient-to-r:not([class*="from-amber"]):not([class*="from-yellow"]),
      button[class*="bg-emerald-600"],
      button[class*="bg-emerald-700"] {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
      }
      button[class*="from-amber"],
      button[class*="from-yellow"],
      button.bg-amber-400,
      button.bg-amber-500 {
        color: #1c1917 !important;
        text-shadow: none !important;
      }
      button[class*="from-amber"] *,
      button[class*="from-yellow"] *,
      button.bg-amber-400 *,
      button.bg-amber-500 * {
        color: #1c1917 !important;
        text-shadow: none !important;
      }

      /* Dark Mode adaptation for backdrop */
      html.dark #zadi-home-spiritual-backdrop {
        opacity: 0.35;
        filter: brightness(0.65) contrast(1.15);
      }

      #root {
        position: relative;
        z-index: 1;
      }

      /* Ensure portal root and global toast layer are strictly above everything with max 32-bit z-index */
      #portal-root {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0 !important;
        z-index: 2147483647 !important;
        pointer-events: none !important;
      }
      #portal-root > * {
        pointer-events: auto !important;
      }
      #zadi-global-toast-host,
      .zadi-global-toast-container {
        position: fixed !important;
        z-index: 2147483647 !important;
        pointer-events: none !important;
      }
      #zadi-global-toast-host > *,
      .zadi-global-toast-container > * {
        pointer-events: auto !important;
      }
      /* Ensure modal dialogs and audio players stay in appropriate lower layers */
      [role="dialog"],
      .toast-notification,
      .radio-sticky-player-container,
      #quran-audio-player-bottom-bar {
        z-index: 999999 !important;
      }
      #quran-audio-player-bottom-bar {
        position: fixed !important;
        z-index: 9999999 !important;
      }
      #quran-niyyah-modal-root,
      #portal-root #quran-niyyah-modal-root {
        position: fixed !important;
        z-index: 10000000 !important;
      }

      /* ========================================================
         تأثير نبض هادئ وواقعي لإطار سحابة تجديد النية (Pulse Animation)
         ======================================================== */
      @keyframes zadiCloudPulseGlow {
        0%, 100% {
          transform: scale(1);
          box-shadow: 
            0 10px 28px -4px rgba(245, 158, 11, 0.08),
            0 2px 10px rgba(0, 0, 0, 0.03),
            inset 0 1px 2px rgba(255, 255, 255, 0.9);
        }
        50% {
          transform: scale(1.01);
          box-shadow: 
            0 14px 34px -2px rgba(245, 158, 11, 0.15),
            0 4px 14px rgba(0, 0, 0, 0.04),
            inset 0 1px 3px rgba(255, 255, 255, 1);
        }
      }

      @keyframes zadiCloudPulseGlowDark {
        0%, 100% {
          transform: scale(1);
          box-shadow: 
            0 12px 30px -4px rgba(0, 0, 0, 0.65),
            0 0 16px rgba(16, 185, 129, 0.05),
            inset 0 1px 2px rgba(255, 255, 255, 0.08);
        }
        50% {
          transform: scale(1.01);
          box-shadow: 
            0 16px 40px -2px rgba(0, 0, 0, 0.8),
            0 0 24px rgba(16, 185, 129, 0.12),
            inset 0 1px 3px rgba(255, 255, 255, 0.12);
        }
      }

      @keyframes zadiCloudFloatBreathing {
        0%, 100% {
          transform: translateY(0px);
        }
        50% {
          transform: translateY(-2.5px);
        }
      }

      @keyframes zadiCloudPuffPulse {
        0%, 100% {
          transform: scale(1);
          filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.08));
        }
        50% {
          transform: scale(1.035);
          filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.18));
        }
      }

      @keyframes zadiCloudPuffPulseDark {
        0%, 100% {
          transform: scale(1);
          filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
        }
        50% {
          transform: scale(1.035);
          filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
        }
      }

      /* ========================================================
         كرت تجديد النية: انسيابي وناعم بالكامل وبلا أي حواف أو زوايا حادة
         Borderless, Smooth & Organic Niyyah Renewal Card
         ======================================================== */
      .zadi-cloud-frame {
        animation: zadiCloudPulseGlow 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
        will-change: transform, box-shadow;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        border-radius: 2rem !important;
        transition: box-shadow 0.3s ease;
      }

      .dark .zadi-cloud-frame {
        animation: zadiCloudPulseGlowDark 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        border-radius: 2rem !important;
      }

      /* طفو وتنفس بطيء للبطاقة السحابية بالكامل */
      .zadi-cloud-card {
        animation: zadiCloudFloatBreathing 4.5s ease-in-out infinite;
        will-change: transform;
        border: none !important;
        outline: none !important;
      }

      /* حواف فقاعات السحابة المتنفسة حول الإطار - بلا أي حواف حادة */
      .zadi-cloud-puff {
        animation: zadiCloudPuffPulse 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
        transform-origin: center center;
        will-change: transform, filter;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        box-shadow: none !important;
      }

      .dark .zadi-cloud-puff {
        animation: zadiCloudPuffPulseDark 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
        background: linear-gradient(180deg, #132219 0%, #0a130e 100%) !important;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        box-shadow: none !important;
      }

      /* إلغاء الحواف الحادة لجميع بطاقات تجديد النية المصغرة والكاملة والمنبثقة */
      div[class*="rounded-[2.8rem]"],
      div[class*="rounded-[2.5rem]"],
      div[class*="rounded-[2rem]"],
      .niyyah-card,
      div[id*="niyyah"],
      div[class*="niyyah-card"] {
        border: none !important;
        border-width: 0 !important;
        border-color: transparent !important;
        outline: none !important;
      }
      div[class*="rounded-[2.8rem]"] {
        border-radius: 2.2rem !important;
        border: none !important;
      }
      div[class*="rounded-[2.5rem]"] {
        border-radius: 1.8rem !important;
        border: none !important;
      }
      div[class*="rounded-[2rem]"] {
        border-radius: 1.5rem !important;
        border: none !important;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
      }
      .dark div[class*="rounded-[2rem]"] {
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.06) !important;
      }
      div[class*="rounded-[2.8rem]"] .border-b,
      div[class*="rounded-[2.8rem]"] .border-t,
      div[class*="rounded-[2.5rem]"] .border-b,
      div[class*="rounded-[2.5rem]"] .border-t {
        border: none !important;
        border-color: transparent !important;
        border-width: 0 !important;
      }

      /* ========================================================
         ألوان خطوط واضحة وعالية التباين لكرت تجديد النية في الوضع الليلي
         High-contrast legible typography for Niyyah Cloud Card in Dark Mode
         ======================================================== */
      .dark .zadi-cloud-frame {
        background: linear-gradient(180deg, #0e1813 0%, #09120e 50%, #050a07 100%) !important;
        border: none !important;
        border-width: 0 !important;
        color: #fffdf5 !important;
      }

      /* نص عنوان السحابة بالوضع الليلي */
      .dark .zadi-cloud-frame .zadi-cloud-title,
      .dark .zadi-cloud-card .zadi-cloud-title {
        color: #fef3c7 !important; /* amber-100 */
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
      }

      /* عبارة النية الرئيسية (الخط الكبير) بالوضع الليلي */
      .dark .zadi-cloud-frame .font-serif,
      .dark .zadi-cloud-card .font-serif,
      .dark .zadi-cloud-phrase {
        color: #fffdf5 !important; /* warm bright white ivory */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
      }

      /* حاوية عبارة النية في الوضع الليلي بلا حواف حادة */
      .dark .zadi-cloud-phrase-box {
        background: linear-gradient(180deg, rgba(20, 35, 26, 0.95) 0%, rgba(13, 24, 18, 0.98) 100%) !important;
        border: none !important;
        border-radius: 1.5rem !important;
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.45) !important;
      }

      /* نصوص الوصف والوسم في الوضع الليلي */
      .dark .zadi-cloud-frame .zadi-cloud-desc {
        color: #cbd5e1 !important; /* slate-300 */
      }

      .dark .zadi-cloud-frame .zadi-cloud-watermark {
        color: #fbbf24 !important; /* amber-400 */
        font-weight: 800 !important;
      }

      .dark .zadi-cloud-frame .zadi-cloud-footer {
        color: #e2e8f0 !important; /* slate-200 */
        opacity: 0.95 !important;
      }

      /* أزرار السحابة في الوضع الليلي */
      .dark .zadi-cloud-frame button:not(.bg-gradient-to-r) {
        background-color: #14231a !important;
        border-color: rgba(251, 191, 36, 0.35) !important;
        color: #fef3c7 !important;
      }

      .dark .zadi-cloud-frame button:not(.bg-gradient-to-r):hover {
        background-color: #1c3225 !important;
        border-color: rgba(251, 191, 36, 0.6) !important;
        color: #fbbf24 !important;
      }

      /* النص في الكرت المصغر للحالة الهادئة بالوضع الليلي */
      .dark .zadi-cloud-compact-phrase {
        color: #f8fafc !important; /* slate-50 high contrast white */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
      }

      .dark .zadi-cloud-compact-category {
        color: #fef3c7 !important; /* amber-100 */
      }

      .dark .zadi-cloud-compact-badge {
        background-color: rgba(245, 158, 11, 0.25) !important;
        color: #fbbf24 !important;
        border-color: rgba(245, 158, 11, 0.45) !important;
      }

      /* ========================================================
         فلسفة راحة العين والسكينة النفسية (Visual & Psychological Calmness)
         والعمق النحتي ثلاثي الأبعاد (Sculptural 3D Depth & Inset/Outset Shadows)
         تُطبق عبر تنسيقات CSS النظيفة حصراً دون المساس ببنية DOM لضمان الاستقرار الدائم
         ======================================================== */
      html {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        scroll-behavior: smooth;
      }

      body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
      }

      /* ========================================================
         فلسفة راحة العين والسكينة النفسية والعمق ثلاثي الأبعاد
         تناغم تام بين الوضعين الليلي والنهاري (Flawless Dual-Mode Contrast)
         ======================================================== */

      /* --------------------------------------------------------
         1) الوضع الليلي (Dark Mode - 3D Sanctuary Depth)
         ألوان مضبوطة وفخامة إسلامية مع نصوص بيضاء وعاجية متلألئة
         -------------------------------------------------------- */
      html.dark body {
        background: radial-gradient(circle at 50% -10%, #082d25 0%, #041613 45%, #020c09 100%) !important;
        color: #f8fafc !important;
      }

      html.dark body,
      html.dark #root,
      html.dark main,
      html.dark .rounded-2xl,
      html.dark .rounded-xl,
      html.dark div[class*="bg-[#061d19]"],
      html.dark div[class*="bg-[#0c221e]"],
      html.dark div[class*="bg-[#031310]"],
      html.dark div[class*="bg-[#031512]"],
      html.dark div[class*="from-emerald-900"],
      html.dark div[class*="from-emerald-950"],
      html.dark div[class*="from-emerald-800"],
      html.dark .zadi-3d-card {
        color: #f8fafc !important;
      }

      /* شريط التمرير بالوضع الليلي */
      html.dark ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }
      html.dark ::-webkit-scrollbar-track {
        background: rgba(3, 19, 16, 0.7);
      }
      html.dark ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #059669 0%, #047857 100%);
        border-radius: 9999px;
        border: 1px solid rgba(251, 191, 36, 0.25);
      }
      html.dark ::-webkit-scrollbar-thumb:hover {
        background: #10b981;
      }

      /* الرأس بالوضع الليلي */
      html.dark header.sticky {
        background: linear-gradient(180deg, rgba(6, 28, 24, 0.94) 0%, rgba(4, 20, 17, 0.96) 100%) !important;
        backdrop-filter: blur(16px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
        box-shadow: 
          0 6px 22px -2px rgba(0, 0, 0, 0.55),
          0 1px 0 0 rgba(52, 211, 153, 0.16),
          inset 0 -1px 0 0 rgba(0, 0, 0, 0.35) !important;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
      }

      /* بطاقات الوضع الليلي بالعمق النحتي */
      html.dark main .rounded-2xl,
      html.dark .zadi-3d-card,
      html.dark div[class*="bg-[#061d19]"],
      html.dark div[class*="bg-[#0c221e]"] {
        position: relative;
        background: linear-gradient(145deg, #082822 0%, #051a16 55%, #03120f 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.2) !important;
        box-shadow:
          0 14px 34px -4px rgba(0, 5, 4, 0.72),
          0 4px 12px -2px rgba(0, 0, 0, 0.45),
          inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
          inset 0 -2px 4px 0 rgba(0, 0, 0, 0.5) !important;
      }

      html.dark main .rounded-2xl::before,
      html.dark div[class*="bg-[#061d19]"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, 0.38) 50%, transparent 100%);
        pointer-events: none;
        border-radius: 9999px;
      }

      html.dark main .rounded-2xl.bg-gradient-to-br,
      html.dark div[class*="from-emerald-900"][class*="via-[#072c23]"] {
        background: linear-gradient(140deg, #0f4035 0%, #072a22 45%, #031713 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.38) !important;
        box-shadow:
          0 18px 44px -6px rgba(0, 8, 6, 0.78),
          0 6px 18px -2px rgba(0, 0, 0, 0.55),
          0 0 30px -4px rgba(16, 185, 129, 0.22),
          inset 0 1px 2px 0 rgba(255, 255, 255, 0.22),
          inset 0 -3px 6px 0 rgba(0, 0, 0, 0.6) !important;
      }

      html.dark div[class*="bg-[#031512]"] {
        background: linear-gradient(180deg, #020f0d 0%, #031512 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        box-shadow:
          inset 0 3px 8px 1px rgba(0, 0, 0, 0.78),
          inset 0 1px 2px 0 rgba(0, 0, 0, 0.9),
          0 1px 1px 0 rgba(255, 255, 255, 0.08) !important;
      }

      html.dark div[class*="bg-[#031310]/60"] {
        background: linear-gradient(145deg, rgba(6, 26, 22, 0.78) 0%, rgba(3, 16, 13, 0.88) 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.18) !important;
        box-shadow:
          0 4px 14px rgba(0, 0, 0, 0.38),
          inset 0 1px 1px 0 rgba(255, 255, 255, 0.08),
          inset 0 -1px 2px 0 rgba(0, 0, 0, 0.42) !important;
      }

      html.dark div[class*="from-emerald-800/70"],
      html.dark div[class*="border-emerald-400"] {
        background: linear-gradient(135deg, #0e4438 0%, #082e26 50%, #041914 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.75) !important;
        box-shadow:
          0 0 26px -2px rgba(245, 158, 11, 0.38),
          0 8px 26px -3px rgba(0, 0, 0, 0.68),
          inset 0 1px 2px 0 rgba(255, 255, 255, 0.3),
          inset 0 -2px 4px 0 rgba(0, 0, 0, 0.5) !important;
      }

      /* شريط أقسام التطبيق السفلي في الوضع الليلي */
      html.dark #main-navigation-navbar,
      html.dark nav.fixed.bottom-0 {
        background: linear-gradient(180deg, rgba(5, 24, 20, 0.94) 0%, rgba(3, 15, 12, 0.98) 100%) !important;
        backdrop-filter: blur(20px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(170%) !important;
        border-top: 1px solid rgba(52, 211, 153, 0.25) !important;
        box-shadow:
          0 -6px 28px -2px rgba(0, 0, 0, 0.65),
          inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
          inset 0 2px 8px 0 rgba(16, 185, 129, 0.08) !important;
        padding-top: 0.35rem !important;
        padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
      }

      /* حواف واضحة ومتناسقة لجميع أيقونات أقسام التطبيق في الوضع الليلي */
      html.dark #main-navigation-navbar button,
      html.dark nav.fixed.bottom-0 button {
        position: relative !important;
        border: 1px solid rgba(52, 211, 153, 0.22) !important;
        background: rgba(5, 22, 17, 0.55) !important;
        border-radius: 14px !important;
        padding: 0.35rem 0.2rem !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
        color: #cbd5e1 !important;
      }

      /* تمييز حواف ومظهر القسم النشط عند الوقوف عليه في الوضع الليلي */
      html.dark #main-navigation-navbar button:has([class*="bg-amber-400"]),
      html.dark #main-navigation-navbar button:has([class*="bg-emerald-800"]),
      html.dark #main-navigation-navbar button[class*="scale-"],
      html.dark nav.fixed.bottom-0 button[class*="text-emerald-400"],
      html.dark nav.fixed.bottom-0 button[class*="text-emerald-500"],
      html.dark nav.fixed.bottom-0 button.active {
        border: 1.5px solid rgba(52, 211, 153, 0.75) !important;
        background: linear-gradient(180deg, rgba(16, 185, 129, 0.28) 0%, rgba(6, 78, 59, 0.55) 100%) !important;
        border-radius: 14px !important;
        box-shadow:
          inset 0 1px 2px rgba(255, 255, 255, 0.25),
          inset 0 -1px 2px rgba(0, 0, 0, 0.5),
          0 0 16px -2px rgba(16, 185, 129, 0.45) !important;
        color: #34d399 !important;
        transform: translateY(-1.5px) !important;
      }

      /* إخفاء شارة الخلفية القديمة المنفصلة لتنسيق متكامل ونظيف مع الأيقونات */
      html.dark #main-navigation-navbar [data-layoutid="activeTabBadge"],
      html.dark #main-navigation-navbar [layoutid="activeTabBadge"],
      html.dark #main-navigation-navbar button > div[class*="bg-amber-400"],
      html.dark #main-navigation-navbar button > div[class*="bg-emerald-800"] {
        display: none !important;
      }

      /* تفاعل التمرير لأزرار الأقسام غير النشطة */
      html.dark #main-navigation-navbar button:hover,
      html.dark nav.fixed.bottom-0 button:hover {
        border-color: rgba(52, 211, 153, 0.45) !important;
        background: rgba(16, 185, 129, 0.15) !important;
        color: #ffffff !important;
      }

      html.dark div[class*="min-h-[400px]"],
      html.dark div[class*="bg-[#0c221e]"] {
        background: radial-gradient(circle at 50% 30%, #0d2823 0%, #071c18 60%, #041310 100%) !important;
        border: 1px solid rgba(251, 191, 36, 0.28) !important;
        box-shadow:
          0 18px 48px -6px rgba(0, 5, 4, 0.8),
          inset 0 1px 2px 0 rgba(255, 255, 255, 0.14),
          inset 0 0 40px 0 rgba(0, 0, 0, 0.45) !important;
      }

      html.dark div[class*="w-56"][class*="h-56"][class*="rounded-full"] {
        border: 5px solid rgba(251, 191, 36, 0.45) !important;
        background: radial-gradient(circle at 50% 50%, #052620 0%, #02120f 70%, #010806 100%) !important;
        box-shadow:
          0 16px 45px -4px rgba(0, 0, 0, 0.85),
          0 0 35px -6px rgba(16, 185, 129, 0.35),
          inset 0 4px 12px 2px rgba(0, 0, 0, 0.8),
          inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
      }

      html.dark div[class*="flex p-1"][class*="bg-[#061d19]"] {
        background: #031410 !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(52, 211, 153, 0.15) !important;
      }

      html.dark div[class*="space-y-3"] > div[class*="rounded-xl"] {
        background: linear-gradient(145deg, #072620 0%, #041814 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.18) !important;
        box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08) !important;
      }

      html.dark div[class*="from-emerald-950/70"][class*="to-teal-950/40"] {
        background: linear-gradient(135deg, rgba(8, 38, 31, 0.85) 0%, rgba(4, 23, 19, 0.95) 100%) !important;
        border: 1px solid rgba(251, 191, 36, 0.3) !important;
      }

      /* نصوص وعناوين الوضع الليلي الفائقة الإشراقة والتباين */
      html.dark .text-slate-950,
      html.dark .text-slate-900,
      html.dark .text-slate-800,
      html.dark .text-slate-700,
      html.dark .text-emerald-950,
      html.dark .text-emerald-900,
      html.dark .text-emerald-800,
      html.dark .text-stone-950,
      html.dark .text-stone-900,
      html.dark .text-stone-800,
      html.dark .text-stone-700,
      html.dark .text-stone-600,
      html.dark .text-gray-950,
      html.dark .text-gray-900,
      html.dark .text-gray-800,
      html.dark .text-gray-700,
      html.dark .text-amber-950,
      html.dark .text-amber-900 {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
      }

      html.dark .text-slate-400,
      html.dark .text-slate-500,
      html.dark .text-slate-600,
      html.dark .text-stone-400,
      html.dark .text-stone-500,
      html.dark .text-stone-600,
      html.dark .text-gray-400,
      html.dark .text-gray-500 {
        color: #e2e8f0 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
      }

      html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6,
      html.dark main .font-bold:not(button *),
      html.dark main .font-black {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
      }

      html.dark .text-amber-300,
      html.dark .text-amber-400,
      html.dark .text-amber-500,
      html.dark .text-amber-600 {
        color: #fde68a !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
      }

      html.dark .text-emerald-400,
      html.dark .text-emerald-300,
      html.dark .text-emerald-200,
      html.dark .text-emerald-100 {
        color: #6ee7b7 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
      }

      html.dark .font-quran {
        color: #ffffff !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
        letter-spacing: 0.3px;
      }

      html.dark #main-navigation-navbar button,
      html.dark nav.fixed.bottom-0 button {
        color: #cbd5e1 !important;
      }
      html.dark #main-navigation-navbar button[class*="scale-"],
      html.dark nav.fixed.bottom-0 button[class*="text-emerald-400"],
      html.dark nav.fixed.bottom-0 button[class*="text-emerald-500"] {
        color: #34d399 !important;
      }
      html.dark #main-navigation-navbar button:hover,
      html.dark nav.fixed.bottom-0 button:hover {
        color: #ffffff !important;
      }

      html.dark input[type="text"],
      html.dark input[type="search"],
      html.dark select,
      html.dark textarea {
        background: linear-gradient(180deg, #020e0c 0%, #041613 100%) !important;
        color: #ffffff !important;
        border: 1px solid rgba(52, 211, 153, 0.24) !important;
      }
      html.dark input::placeholder,
      html.dark textarea::placeholder {
        color: #94a3b8 !important;
      }


      /* --------------------------------------------------------
         2) الوضع النهاري (Light Mode - Royal Ivory & Deep Jade)
         ألوان راقية لراحة العين، بدون بهتان، مع وضوح ملكي ناصع 
         وعمق ثلاثي الأبعاد بارز ومنحوت (Letterpress 3D Emboss)
         -------------------------------------------------------- */
      html:not(.dark) body {
        background: radial-gradient(circle at 50% 0%, #fcfaf6 0%, #f6f1e6 50%, #ebe3d2 100%) !important;
        color: #063c2f !important;
      }

      html:not(.dark) ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }
      html:not(.dark) ::-webkit-scrollbar-track {
        background: #f4efe4;
      }
      html:not(.dark) ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #10b981 0%, #059669 100%);
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.8);
      }

      /* الرأس بالوضع النهاري */
      html:not(.dark) header.sticky {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 242, 0.98) 100%) !important;
        backdrop-filter: blur(16px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
        box-shadow: 0 4px 18px -2px rgba(6, 46, 36, 0.08), 0 1px 0 0 rgba(16, 185, 129, 0.15) !important;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
      }

      /* بطاقات الوضع النهاري المجسمة ثلاثية الأبعاد بظلال ملكية هادئة */
      html:not(.dark) main div.rounded-2xl:not(.fixed *):not(button):not(button *):not(:has(#btn-enable-gps-home)):not(#azkar-mindfulness-station *):not(.mindfulness-quote-box):not([class*="bg-emerald-900"]):not([class*="bg-emerald-950"]):not(.zadi-reciter-card-active):not(.zadi-radio-card-active):not(#prayer-times-hero-card *):not(#prayer-times-widget div[class*="border-b-amber-400"] *):not(#home-header-date-badge *):not(.home-date-ribbon *):not(#quran-audio-player-bottom-bar *),
      html:not(.dark) .zadi-3d-card,
      html:not(.dark) div[class*="bg-[#061d19]"],
      html:not(.dark) div[class*="bg-[#0c221e]"],
      html:not(.dark) div[class*="bg-stone-50"],
      html:not(.dark) div[class*="bg-white"] {
        background: linear-gradient(145deg, #ffffff 0%, #faf8f2 55%, #f2ece0 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.22) !important;
        box-shadow: 
          0 10px 25px -4px rgba(6, 46, 36, 0.08), 
          0 3px 8px -1px rgba(0, 0, 0, 0.03), 
          inset 0 1px 1px 0 #ffffff, 
          inset 0 -1px 2px 0 rgba(6, 46, 36, 0.03) !important;
        color: #063c2f !important;
      }

      /* ========================================================
         بطاقات القراء المختارة وبطاقات الإذاعة النشطة في صفحة الاستماع
         Active Reciter & Radio Station Cards Contrast Fix
         ======================================================== */
      /* 1. بطاقة القارئ النشط وبطاقة الإذاعة الشغالة: خلفية خضراء ملكية فاخرة وواضحة جداً */
      .zadi-reciter-card-active,
      .zadi-radio-card-active,
      div.rounded-2xl[class*="bg-emerald-900"],
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"],
      html.dark div.rounded-2xl[class*="bg-emerald-900"] {
        background-color: #04362a !important;
        background: linear-gradient(145deg, #064e3b 0%, #032e24 100%) !important;
        border: 2px solid #f59e0b !important;
        box-shadow: 0 8px 20px -3px rgba(6, 78, 59, 0.4), 0 0 0 2px rgba(245, 158, 11, 0.45) !important;
        color: #ffffff !important;
      }

      /* 2. اسم القارئ واسم الإذاعة في البطاقة المختارة: لون ذهبي كريمي مشرق وفائق الوضوح */
      .zadi-reciter-card-active h4,
      .zadi-radio-card-active h4,
      div.rounded-2xl[class*="bg-emerald-900"] h4,
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] h4,
      html.dark div.rounded-2xl[class*="bg-emerald-900"] h4,
      div.rounded-2xl[class*="bg-emerald-900"] h3,
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] h3 {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      /* 3. وصف القارئ وتفاصيل التلاوة في البطاقة المختارة: أبيض زمردي فاتح ناصع */
      .zadi-reciter-card-active p,
      .zadi-radio-card-active p,
      div.rounded-2xl[class*="bg-emerald-900"] p,
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] p,
      html.dark div.rounded-2xl[class*="bg-emerald-900"] p {
        color: #d1fae5 !important;
        opacity: 0.95 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
      }

      /* 4. تفاصيل الموقع والتردد والبث المباشر في البطاقة المختارة */
      .zadi-reciter-card-active span:not([class*="bg-amber-400"]),
      .zadi-radio-card-active span:not([class*="bg-amber-400"]),
      div.rounded-2xl[class*="bg-emerald-900"] span:not([class*="bg-amber-400"]),
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] span:not([class*="bg-amber-400"]) {
        color: #fef9c3 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
      }

      /* 5. شارة الدولة وأيقونة الاختيار والتشغيل الذهبية في البطاقة المختارة */
      .zadi-reciter-card-active span[class*="bg-amber-400"],
      .zadi-radio-card-active span[class*="bg-amber-400"],
      div.rounded-2xl[class*="bg-emerald-900"] span[class*="bg-amber-400"],
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] span[class*="bg-amber-400"] {
        background-color: #f59e0b !important;
        color: #03261e !important;
        font-weight: 900 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
      }

      .zadi-reciter-card-active div[class*="bg-amber-400"],
      .zadi-radio-card-active div[class*="bg-amber-400"],
      div.rounded-2xl[class*="bg-emerald-900"] div[class*="bg-amber-400"],
      html:not(.dark) div.rounded-2xl[class*="bg-emerald-900"] div[class*="bg-amber-400"] {
        background-color: #f59e0b !important;
        color: #03261e !important;
      }

      /* 6. تحسين بطاقات القراء والإذاعات غير المختارة عند الوقوف عليها (Hover) */
      html:not(.dark) .zadi-reciter-card:hover,
      html:not(.dark) .zadi-radio-card:hover,
      html:not(.dark) div.rounded-2xl[class*="cursor-pointer"]:not([class*="bg-emerald-900"]):hover {
        background: #f0fdf4 !important;
        border-color: #059669 !important;
        box-shadow: 0 6px 16px rgba(6, 78, 59, 0.09) !important;
      }
      html:not(.dark) .zadi-reciter-card:hover h4,
      html:not(.dark) .zadi-radio-card:hover h4,
      html:not(.dark) div.rounded-2xl[class*="cursor-pointer"]:not([class*="bg-emerald-900"]):hover h4 {
        color: #064e3b !important;
      }
      html:not(.dark) .zadi-reciter-card:hover p,
      html:not(.dark) .zadi-radio-card:hover p,
      html:not(.dark) div.rounded-2xl[class*="cursor-pointer"]:not([class*="bg-emerald-900"]):hover p {
        color: #046a4e !important;
      }

      /* 7. صمام أمان صارم: منع أي خط أصفر باهت على أي خلفية بيضاء أو فاتحة نهائياً */
      html:not(.dark) :not([class*="bg-emerald-900"]):not([class*="from-emerald-9"]):not([class*="from-emerald-8"]):not([class*="bg-[#0"]):not([class*="bg-amber-500"]) > .text-amber-100,
      html:not(.dark) :not([class*="bg-emerald-900"]):not([class*="from-emerald-9"]):not([class*="from-emerald-8"]):not([class*="bg-[#0"]):not([class*="bg-amber-500"]) > .text-amber-200,
      html:not(.dark) :not([class*="bg-emerald-900"]):not([class*="from-emerald-9"]):not([class*="from-emerald-8"]):not([class*="bg-[#0"]):not([class*="bg-amber-500"]) > .text-amber-300 {
        color: #064e3b !important;
      }

      /* خطوط وعناوين الوضع النهاري: عميقة ومقروءة ومريحة للنظر وبدون بياض فوق بياض */
      html:not(.dark) h1:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) h2:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) h3:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) h4:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) h5:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) h6:not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) main .font-bold:not(button *):not([class*="bg-emerald-"]):not([class*="from-"]):not(div[title*="الطقس"] *):not(.prayer-weather-capsule *):not(#spiritual-chat-card *):not(#marfa-alrida-module *):not(div[class*="from-"] *),
      html:not(.dark) main .font-black:not(button *):not([class*="bg-emerald-"]):not([class*="from-"]):not(div[title*="الطقس"] *):not(.prayer-weather-capsule *):not(#spiritual-chat-card *):not(#marfa-alrida-module *):not(div[class*="from-"] *),
      html:not(.dark) .text-slate-900,
      html:not(.dark) .text-slate-950,
      html:not(.dark) .text-slate-800,
      html:not(.dark) .text-emerald-950,
      html:not(.dark) .text-stone-900,
      html:not(.dark) .text-stone-800 {
        color: #063529 !important;
        text-shadow: none !important;
      }

      /* النصوص الفرعية والملاحظات والتواريخ في الوضع النهاري */
      html:not(.dark) p:not([class*="text-white"]):not(.bg-emerald-700 *):not(.bg-emerald-800 *):not(div[title*="الطقس"] *):not(.prayer-weather-capsule *):not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) span:not([class*="text-white"]):not([class*="bg-emerald-"]):not(.bg-emerald-700 *):not(.bg-emerald-800 *):not(div[title*="الطقس"] *):not(.prayer-weather-capsule *):not(div[class*="from-"] *):not(#marfa-alrida-module *),
      html:not(.dark) .text-slate-700,
      html:not(.dark) .text-slate-600,
      html:not(.dark) .text-stone-700,
      html:not(.dark) .text-stone-600,
      html:not(.dark) .text-gray-700,
      html:not(.dark) .text-gray-600 {
        color: #0b3d30 !important;
        text-shadow: none !important;
      }

      /* الأوصاف والتفاصيل التوضيحية */
      html:not(.dark) .text-slate-400,
      html:not(.dark) .text-slate-500,
      html:not(.dark) .text-stone-400,
      html:not(.dark) .text-stone-500,
      html:not(.dark) .text-gray-400,
      html:not(.dark) .text-gray-500 {
        color: #046a4e !important;
        font-weight: 600 !important;
        text-shadow: none !important;
      }

      /* الأرقام والأوسمة الذهبية في الوضع النهاري */
      html:not(.dark) .text-amber-400,
      html:not(.dark) .text-amber-500,
      html:not(.dark) .text-amber-600 {
        color: #92400e !important;
        font-weight: 700 !important;
      }

      /* خط القرآن الكريم في الوضع النهاري */
      html:not(.dark) .font-quran {
        color: #053326 !important;
        text-shadow: none !important;
      }

      /* شاشة مؤقت الصلاة والعداد في الوضع النهاري */
      html:not(.dark) div[class*="bg-[#031512]"] {
        background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
        border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
        box-shadow: inset 0 2px 4px rgba(6, 78, 59, 0.08), 0 1px 2px rgba(255, 255, 255, 0.8) !important;
      }
      html:not(.dark) div[class*="bg-[#031512]"] div,
      html:not(.dark) div[class*="font-mono"][class*="text-emerald-"] {
        color: #065f46 !important;
        font-weight: 800 !important;
      }

      /* مربعات جدول مواقيت الصلاة في الوضع النهاري */
      html:not(.dark) div[class*="bg-[#031310]/60"] {
        background: linear-gradient(145deg, #ffffff 0%, #faf8f2 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        box-shadow: 0 4px 10px rgba(6, 46, 36, 0.04), inset 0 1px 1px #ffffff !important;
        color: #063c2f !important;
      }
      html:not(.dark) div[class*="bg-[#031310]/60"] * {
        color: #063c2f !important;
      }

      /* مربع الصلاة القادمة المميزة في الوضع النهاري */
      html:not(.dark) #prayer-times-widget div[class*="from-emerald-800/70"],      html:not(.dark) #prayer-times-widget div.rounded-2xl[class*="border-emerald-400"]:not(#home-header-date-badge) {        background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;        border: 1.5px solid rgba(245, 158, 11, 0.6) !important;        box-shadow: 0 8px 20px -2px rgba(5, 150, 105, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;      }      html:not(.dark) #prayer-times-widget div[class*="from-emerald-800/70"] *,      html:not(.dark) #prayer-times-widget div.rounded-2xl[class*="border-emerald-400"]:not(#home-header-date-badge) * {        color: #ffffff !important;      }

      /* شريط أقسام التطبيق السفلي في الوضع النهاري */
      html:not(.dark) #main-navigation-navbar,
      html:not(.dark) nav.fixed.bottom-0 {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 246, 0.98) 100%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        border-top: 1px solid rgba(16, 185, 129, 0.25) !important;
        box-shadow: 0 -4px 22px -2px rgba(6, 46, 36, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
        padding-top: 0.35rem !important;
        padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
      }

      /* حواف واضحة ومتناسقة لجميع أيقونات أقسام التطبيق في الوضع النهاري */
      html:not(.dark) #main-navigation-navbar button,
      html:not(.dark) nav.fixed.bottom-0 button {
        position: relative !important;
        border: 1px solid rgba(16, 185, 129, 0.24) !important;
        background: rgba(255, 255, 255, 0.88) !important;
        border-radius: 14px !important;
        padding: 0.35rem 0.2rem !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 1px 3px rgba(6, 46, 36, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
        color: #0b3d30 !important;
        font-weight: 700 !important;
      }

      /* تمييز حواف ومظهر القسم النشط عند الوقوف عليه في الوضع النهاري */
      html:not(.dark) #main-navigation-navbar button:has([class*="bg-emerald-800"]),
      html:not(.dark) #main-navigation-navbar button:has([class*="bg-amber-400"]),
      html:not(.dark) #main-navigation-navbar button[class*="scale-"],
      html:not(.dark) nav.fixed.bottom-0 button[class*="text-emerald-400"],
      html:not(.dark) nav.fixed.bottom-0 button[class*="text-emerald-500"],
      html:not(.dark) nav.fixed.bottom-0 button.active {
        border: 1.5px solid rgba(5, 150, 105, 0.75) !important;
        background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%) !important;
        border-radius: 14px !important;
        box-shadow: 
          0 3px 12px rgba(16, 185, 129, 0.22),
          inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
        color: #047857 !important;
        font-weight: 800 !important;
        transform: translateY(-1.5px) !important;
      }

      /* إخفاء شارة الخلفية القديمة المنفصلة لتنسيق متكامل ونظيف مع الأيقونات */
      html:not(.dark) #main-navigation-navbar [data-layoutid="activeTabBadge"],
      html:not(.dark) #main-navigation-navbar [layoutid="activeTabBadge"],
      html:not(.dark) #main-navigation-navbar button > div[class*="bg-emerald-800"],
      html:not(.dark) #main-navigation-navbar button > div[class*="bg-amber-400"] {
        display: none !important;
      }

      /* تفاعل التمرير لأزرار الأقسام غير النشطة في الوضع النهاري */
      html:not(.dark) #main-navigation-navbar button:hover,
      html:not(.dark) nav.fixed.bottom-0 button:hover {
        border-color: rgba(16, 185, 129, 0.45) !important;
        background: rgba(16, 185, 129, 0.12) !important;
        color: #064e3b !important;
      }

      /* الأزرار الخضراء والبطاقات الداكنة في الوضع النهاري تحتفظ بنص أبيض ناصع (مع استثناء الأزرار غير النشطة ذات نصوص داكنة أو فئات hover) */
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not([class*="text-amber-950"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-600"],
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not([class*="text-amber-950"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-700"],
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not([class*="text-amber-950"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-800"],
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not([class*="text-amber-950"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="from-emerald-700"],
      html:not(.dark) div[class*="from-emerald-900"],
      html:not(.dark) div[class*="from-emerald-950"],
      html:not(.dark) .bg-emerald-700:not(#main-navigation-navbar *):not([class*="text-emerald-950"]),
      html:not(.dark) .bg-emerald-800:not(#main-navigation-navbar *):not([class*="text-emerald-950"]) {
        color: #ffffff !important;
      }
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-600"] *,
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-700"] *,
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="bg-emerald-800"] *,
      html:not(.dark) button:not(#main-navigation-navbar button):not(nav button):not([class*="text-emerald-950"]):not([class*="text-stone"]):not([class*="text-slate"]):not(#quran-search-mode-toggle button:not([class*="bg-emerald-800"]))[class*="from-emerald-700"] *,
      html:not(.dark) div[class*="from-emerald-900"] *,
      html:not(.dark) div[class*="from-emerald-950"] * {
        color: #ffffff !important;
      }

      /* ========================================================
         أيقونات شريط أقسام التطبيق: معالم وألوان واضحة ومميزة كأيقونات الوصول السريع
         Distinct & Colorful Icon Badges for Navigation Bar (like Quick Access)
         ======================================================== */

      /* الحاوية الدائرية/المربعة للأيقونة داخل زر القسم */
      #main-navigation-navbar button > div.relative {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 3px !important;
        transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
      }

      #main-navigation-navbar button svg {
        width: 17px !important;
        height: 17px !important;
        stroke-width: 2.2 !important;
        transition: transform 0.25s ease !important;
      }

      /* 1. قسم الرئيسية (Home): طابع زمردي مشرق */
      html:not(.dark) #main-navigation-navbar #tab-btn-home > div.relative {
        background-color: #d1fae5 !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-home svg {
        color: #059669 !important;
      }
      html.dark #main-navigation-navbar #tab-btn-home > div.relative {
        background-color: rgba(6, 78, 59, 0.55) !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-home svg {
        color: #34d399 !important;
      }

      /* 2. قسم اطمئن ❤️ (Worship): طابع قرمزي/وردي مميز */
      html:not(.dark) #main-navigation-navbar #tab-btn-worship > div.relative {
        background-color: #ffe4e6 !important;
        border: 1px solid rgba(244, 63, 94, 0.35) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship svg {
        color: #e11d48 !important;
      }
      html.dark #main-navigation-navbar #tab-btn-worship > div.relative {
        background-color: rgba(136, 19, 55, 0.55) !important;
        border: 1px solid rgba(251, 113, 133, 0.4) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-worship svg {
        color: #fb7185 !important;
      }

      /* 3. قسم القرآن (Quran): طابع تيل/أخضر قرآني فخم */
      html:not(.dark) #main-navigation-navbar #tab-btn-quran > div.relative {
        background-color: #ccfbf1 !important;
        border: 1px solid rgba(13, 148, 136, 0.35) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-quran svg {
        color: #0d9488 !important;
      }
      html.dark #main-navigation-navbar #tab-btn-quran > div.relative {
        background-color: rgba(19, 78, 74, 0.55) !important;
        border: 1px solid rgba(45, 212, 191, 0.4) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-quran svg {
        color: #2dd4bf !important;
      }

      /* 4. قسم عامل مساعد (Life): طابع برتقالي/عنبري ملهم */
      html:not(.dark) #main-navigation-navbar #tab-btn-life > div.relative {
        background-color: #ffedd5 !important;
        border: 1px solid rgba(249, 115, 22, 0.35) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-life svg {
        color: #ea580c !important;
      }
      html.dark #main-navigation-navbar #tab-btn-life > div.relative {
        background-color: rgba(124, 45, 18, 0.55) !important;
        border: 1px solid rgba(251, 146, 60, 0.4) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-life svg {
        color: #fb923c !important;
      }

      /* 5. قسم المزيد (More): طابع نيلي/بنفسجي استكشافي */
      html:not(.dark) #main-navigation-navbar #tab-btn-more > div.relative {
        background-color: #ede9fe !important;
        border: 1px solid rgba(139, 92, 246, 0.35) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-more svg {
        color: #7c3aed !important;
      }
      html.dark #main-navigation-navbar #tab-btn-more > div.relative {
        background-color: rgba(76, 29, 149, 0.55) !important;
        border: 1px solid rgba(167, 139, 250, 0.4) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-more svg {
        color: #a78bfa !important;
      }

      /* وضوح أسماء الأقسام أسفل الأيقونة في الوضع النهاري والليلي */
      html:not(.dark) #main-navigation-navbar button span {
        color: #1e293b !important;
        font-weight: 800 !important;
        text-shadow: none !important;
      }
      html.dark #main-navigation-navbar button span {
        color: #e2e8f0 !important;
        font-weight: 700 !important;
      }

      /* تكبير وتألق أيقونة القسم النشط */
      #main-navigation-navbar button[class*="scale-"] > div.relative {
        transform: scale(1.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
      }
      html:not(.dark) #main-navigation-navbar button[class*="scale-"] span {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      html.dark #main-navigation-navbar button[class*="scale-"] span {
        color: #ffffff !important;
        font-weight: 900 !important;
      }

      /* ========================================================
         تحسين وتكثيف رأس الصفحة وحذف التكرار
         Header Simplification & Redundancy Removal
         ======================================================== */
      .theme-switcher-bar,
      header .theme-switcher-bar {
        display: none !important;
      }

      .top-decoration-banner,
      header .top-decoration-banner {
        height: 2px !important;
        opacity: 0.8 !important;
      }

      /* ========================================================
         مشغل تلاوة القرآن الكريم: تصميم رشيق ومريح وألوان سكينة هادئة
         Quran Audio Player: Serene, Compact & Ergonomic Design
         ======================================================== */

      /* 1. الحاوية الرئيسية للمشغل في الوضع النهاري */
      html:not(.dark) #quran-audio-player-modal {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        border-top: 2px solid rgba(16, 185, 129, 0.4) !important;
        border-right: 1px solid rgba(16, 185, 129, 0.2) !important;
        border-left: 1px solid rgba(16, 185, 129, 0.2) !important;
        box-shadow: 0 -10px 40px -4px rgba(6, 46, 36, 0.16) !important;
        color: #0f172a !important;
        max-height: 72vh !important;
      }

      /* 1. الحاوية الرئيسية للمشغل في الوضع الليلي */
      html.dark #quran-audio-player-modal {
        background: linear-gradient(180deg, #091713 0%, #06110e 100%) !important;
        border-top: 2px solid rgba(52, 211, 153, 0.45) !important;
        border-right: 1px solid rgba(52, 211, 153, 0.2) !important;
        border-left: 1px solid rgba(52, 211, 153, 0.2) !important;
        box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.8) !important;
        color: #f8fafc !important;
        max-height: 72vh !important;
      }

      /* رأس المشغل */
      html:not(.dark) #quran-audio-player-modal > div:nth-child(2) {
        border-bottom: 1px solid rgba(16, 185, 129, 0.15) !important;
      }
      html:not(.dark) #quran-audio-player-modal h3 {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html.dark #quran-audio-player-modal h3 {
        color: #34d399 !important;
        font-weight: 800 !important;
      }

      /* بطاقة السورة الحالية */
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/80"],
      html:not(.dark) #quran-audio-player-modal div:has(h2) {
        background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ef 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
      }
      html.dark #quran-audio-player-modal div[class*="bg-stone-900/80"],
      html.dark #quran-audio-player-modal div:has(h2) {
        background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(4, 47, 36, 0.65) 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.25) !important;
      }

      /* عنوان السورة */
      html:not(.dark) #quran-audio-player-modal h2 {
        color: #0f172a !important;
        font-weight: 900 !important;
      }
      html.dark #quran-audio-player-modal h2 {
        color: #ffffff !important;
        font-weight: 900 !important;
      }

      /* اسم القارئ في بطاقة السورة */
      html:not(.dark) #quran-audio-player-modal h2 + p {
        color: #047857 !important;
        font-weight: 800 !important;
      }
      html.dark #quran-audio-player-modal h2 + p {
        color: #34d399 !important;
        font-weight: 800 !important;
      }

      /* بطاقة شريط التقدم */
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/40"]:has(input[type="range"]) {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
      }
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/40"] span {
        color: #047857 !important;
        font-weight: 700 !important;
      }
      html:not(.dark) #quran-audio-player-modal input[type="range"] {
        accent-color: #059669 !important;
        background: #e2e8f0 !important;
      }
      html.dark #quran-audio-player-modal input[type="range"] {
        accent-color: #34d399 !important;
        background: #1e293b !important;
      }

      /* زر التشغيل الرئيسي المريح والمتقن */
      html:not(.dark) #quran-audio-player-modal button[title*="تشغيل"],
      html:not(.dark) #quran-audio-player-modal button[title*="إيقاف مؤقت"] {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
      }
      html:not(.dark) #quran-audio-player-modal button[title*="تشغيل"] *,
      html:not(.dark) #quran-audio-player-modal button[title*="إيقاف مؤقت"] * {
        color: #ffffff !important;
        fill: #ffffff !important;
      }
      html.dark #quran-audio-player-modal button[title*="تشغيل"],
      html.dark #quran-audio-player-modal button[title*="إيقاف مؤقت"] {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #022c22 !important;
        box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
      }
      html.dark #quran-audio-player-modal button[title*="تشغيل"] *,
      html.dark #quran-audio-player-modal button[title*="إيقاف مؤقت"] * {
        color: #022c22 !important;
        fill: #022c22 !important;
      }

      /* بطاقات القراء */
      html:not(.dark) #quran-audio-player-modal label {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html.dark #quran-audio-player-modal label {
        color: #34d399 !important;
        font-weight: 800 !important;
      }

      /* بطاقة القارئ غير النشط */
      html:not(.dark) #quran-audio-player-modal div.grid button {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
      }
      html:not(.dark) #quran-audio-player-modal div.grid button span {
        color: #1e293b !important;
      }
      html.dark #quran-audio-player-modal div.grid button {
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(51, 65, 85, 0.6) !important;
        color: #e2e8f0 !important;
      }
      html.dark #quran-audio-player-modal div.grid button span {
        color: #e2e8f0 !important;
      }

      /* بطاقة القارئ النشط المختار */
      html:not(.dark) #quran-audio-player-modal div.grid button[class*="font-black"],
      html:not(.dark) #quran-audio-player-modal div.grid button:has(svg) {
        background: #d1fae5 !important;
        border: 1.5px solid #059669 !important;
        color: #064e3b !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
      }
      html:not(.dark) #quran-audio-player-modal div.grid button[class*="font-black"] span,
      html:not(.dark) #quran-audio-player-modal div.grid button:has(svg) span {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      html.dark #quran-audio-player-modal div.grid button[class*="font-black"],
      html.dark #quran-audio-player-modal div.grid button:has(svg) {
        background: rgba(6, 78, 59, 0.7) !important;
        border: 1.5px solid #34d399 !important;
        color: #ecfdf5 !important;
      }
      html.dark #quran-audio-player-modal div.grid button[class*="font-black"] span,
      html.dark #quran-audio-player-modal div.grid button:has(svg) span {
        color: #ecfdf5 !important;
        font-weight: 900 !important;
      }

      /* أزرار ومربعات السرعة ومستوى الصوت */
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/50"] {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
      }
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/50"] span {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/50"] button {
        background: #ffffff !important;
        color: #334155 !important;
        border: 1px solid #e2e8f0 !important;
      }
      html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/50"] button[class*="font-black"] {
        background: #059669 !important;
        color: #ffffff !important;
        border-color: #059669 !important;
      }
      html.dark #quran-audio-player-modal div[class*="bg-stone-900/50"] {
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(51, 65, 85, 0.6) !important;
      }
      html.dark #quran-audio-player-modal div[class*="bg-stone-900/50"] span {
        color: #34d399 !important;
        font-weight: 800 !important;
      }

      /* زر متابعة قراءة المصحف أسفل المشغل */
      html:not(.dark) #quran-audio-player-modal button[class*="from-emerald-900"] {
        background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
        border: 1px solid rgba(5, 150, 105, 0.3) !important;
        color: #ffffff !important;
      }
      html:not(.dark) #quran-audio-player-modal button[class*="from-emerald-900"] * {
        color: #ffffff !important;
      }
      html.dark #quran-audio-player-modal button[class*="from-emerald-900"] {
        background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(4, 47, 36, 0.95) 100%) !important;
        border: 1px solid rgba(52, 211, 153, 0.35) !important;
        color: #ffffff !important;
      }
      html.dark #quran-audio-player-modal button[class*="from-emerald-900"] * {
        color: #ffffff !important;
      }

      /* حقول الإدخال والبحث في الوضع النهاري */
      html:not(.dark) input[type="text"],
      html:not(.dark) select,
      html:not(.dark) textarea {
        background: #ffffff !important;
        border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
        color: #063c2f !important;
        box-shadow: inset 0 2px 4px rgba(6, 46, 36, 0.04) !important;
      }
      html:not(.dark) input::placeholder,
      html:not(.dark) textarea::placeholder {
        color: #64748b !important;
      }

      @media (prefers-reduced-motion: reduce) {
        .zadi-cloud-card,
        .zadi-cloud-frame,
        .zadi-cloud-puff,
        .zadi-spinner-outer-ring,
        .zadi-spinner-inner-ring,
        .zadi-spinner-core-emblem,
        .zadi-loader-glow-orb {
          animation: none !important;
        }
      }

      /* ========================================================
         شاشة البداية لتطبيق منارة زادي (Manarat Zadi Splash Screen)
         عرض التصميم المعتمد المكتمل بأبعاده ونسبه الصحيحة وانتقال سلس
         ======================================================== */
      #zadi-initial-loader {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        z-index: 9999999;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #04241B;
        background: radial-gradient(circle at 50% 30%, #0A3D30 0%, #05261E 60%, #031813 100%);
        color: #f8fafc;
        user-select: none;
        overflow: hidden;
        direction: rtl;
        box-sizing: border-box;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        opacity: 1;
        transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        will-change: opacity;
      }

      .zadi-splash-container {
        position: relative;
        width: 100%;
        height: 100%;
        max-width: 520px;
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

      .zadi-splash-art {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        object-fit: contain;
        object-position: center;
        display: block;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
      }
    
      /* ========================================================
         محطة السكينة وتجديد حضور القلب (وقفة التأمل)
         ضمان تباين فائق وألوان متناسقة ومريحة وواضحة جداً
         ======================================================== */
      #azkar-mindfulness-station {
        background: linear-gradient(165deg, #062b22 0%, #031c16 50%, #01120e 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.4) !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(16, 185, 129, 0.15) !important;
        color: #fefce8 !important;
      }
      
      /* بطاقة الاقتباس / وقفة التأمل داخل المحطة */
      #azkar-mindfulness-station .mindfulness-quote-box,
      #azkar-mindfulness-station div[class*="my-5"][class*="text-center"] {
        background: linear-gradient(180deg, rgba(4, 38, 30, 0.92) 0%, rgba(2, 24, 19, 0.96) 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
        border-radius: 1.25rem !important;
      }
      
      /* نص الاقتباس في وقفة التأمل - إزالة أي تأثير ثلاثي الأبعاد أو ظلال */
      #azkar-mindfulness-station .mindfulness-quote-box p,
      #azkar-mindfulness-station div[class*="my-5"][class*="text-center"] p {
        color: #fffbeb !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        filter: none !important;
      }
      
      /* علامات التنصيص */
      #azkar-mindfulness-station .mindfulness-quote-box div,
      #azkar-mindfulness-station div[class*="my-5"][class*="text-center"] div {
        color: #fbbf24 !important;
        opacity: 0.8 !important;
      }

      /* عنوان المحطة */
      #azkar-mindfulness-station h4,
      #azkar-mindfulness-station h4 span {
        color: #fef08a !important;
        text-shadow: none !important;
        filter: none !important;
      }

      /* شارة منتصف الورد */
      #azkar-mindfulness-station span[class*="bg-emerald-800"] {
        background-color: #064e3b !important;
        color: #a7f3d0 !important;
        border-color: rgba(52, 211, 153, 0.4) !important;
      }

      /* النص التوضيحي للتقدم والعدد */
      #azkar-mindfulness-station p[class*="font-medium"] {
        color: #6ee7b7 !important;
        text-shadow: none !important;
        filter: none !important;
      }

      /* دائرة التنفس */
      #azkar-mindfulness-station div[class*="w-20"][class*="h-20"] {
        background-color: rgba(3, 27, 21, 0.95) !important;
        border: 2px solid rgba(251, 191, 36, 0.7) !important;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.25) !important;
      }
      #azkar-mindfulness-station div[class*="w-20"][class*="h-20"] span {
        color: #fef08a !important;
        font-weight: 800 !important;
      }

      /* نص إرشاد التنفس */
      #azkar-mindfulness-station p[class*="text-emerald-200"] span {
        color: #ecfdf5 !important;
        text-shadow: none !important;
        filter: none !important;
        font-weight: 600 !important;
      }

      /* شارة حضور القلب أعلى اليسار */
      #azkar-mindfulness-station div[class*="bg-emerald-900/60"] {
        background-color: rgba(6, 78, 59, 0.8) !important;
        border-color: rgba(251, 191, 36, 0.4) !important;
        color: #fef08a !important;
      }

      /* ========================================================
         بانر منارة زادي والتحديات في صفحة عامل مساعد
         ضمان وضوح فائق للألوان والخطوط والأزرار في الوضعين
         ======================================================== */
      #zadi-helper-hero-banner {
        background: linear-gradient(145deg, #062b22 0%, #0c3629 45%, #031c15 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.65), 0 0 35px -5px rgba(16, 185, 129, 0.2) !important;
        color: #fefce8 !important;
      }

      /* شارة نظام رعاية متكامل أعلى البانر */
      #zadi-helper-hero-banner div[class*="rounded-full"][class*="inline-flex"] {
        background-color: rgba(4, 48, 37, 0.9) !important;
        border: 1px solid rgba(251, 191, 36, 0.5) !important;
      }
      #zadi-helper-hero-banner div[class*="rounded-full"][class*="inline-flex"] span {
        color: #fef08a !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }

      /* عنوان البانر الرئيسي: منارة زادي ✦ انطلاقة لبناء فكر ناضج... */
      #zadi-helper-hero-banner h2 {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        font-weight: 900 !important;
      }
      #zadi-helper-hero-banner h2 span {
        color: #34d399 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
      }

      /* نص الفقرة الترحيبية والتوضيحية */
      #zadi-helper-hero-banner p {
        color: #ecfdf5 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
        font-weight: 600 !important;
        line-height: 1.85 !important;
      }
      #zadi-helper-hero-banner p strong.text-amber-300 {
        color: #fef08a !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
      }
      #zadi-helper-hero-banner p strong.text-emerald-400 {
        color: #6ee7b7 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
      }

      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(4) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > strong:nth-of-type(1) {
        color: #d9b300 !important;
      }
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(4) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > strong:nth-of-type(1) {
        color: #d7b700 !important;
      }
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(4) > div:nth-of-type(2) > div:nth-of-type(3) > div:nth-of-type(1) > strong:nth-of-type(1) {
        color: #cfb000 !important;
      }

      /* زر تصفح أهداف عاداتي (الزر الشفاف/الثانوي) */
      #zadi-helper-hero-banner button[class*="bg-white/10"],
      #zadi-helper-hero-banner button:not([class*="from-amber-500"]) {
        background-color: rgba(6, 78, 59, 0.85) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
      }
      #zadi-helper-hero-banner button[class*="bg-white/10"]:hover,
      #zadi-helper-hero-banner button:not([class*="from-amber-500"]):hover {
        background-color: rgba(16, 185, 129, 0.3) !important;
        border-color: rgba(251, 191, 36, 0.8) !important;
      }
      #zadi-helper-hero-banner button[class*="bg-white/10"] span,
      #zadi-helper-hero-banner button:not([class*="from-amber-500"]) span {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      #zadi-helper-hero-banner button[class*="bg-white/10"] svg,
      #zadi-helper-hero-banner button:not([class*="from-amber-500"]) svg {
        color: #fef08a !important;
      }

      /* زر ابدأ التوازن والسكينة (الزر البرتقالي/الذهبي) */
      #zadi-helper-hero-banner button[class*="from-amber-500"] {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
      }
      #zadi-helper-hero-banner button[class*="from-amber-500"] span {
        color: #1c1917 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      /* ========================================================
         كرت بداية النضوج والخير المستمر في صفحة عامل مساعد
         تحسين الخلفية والخطوط والألوان لراحة فائقة ووضوح تام
         ======================================================== */
      #zadi-helper-maturation-card {
        background: linear-gradient(145deg, #062b22 0%, #0c382b 45%, #031c15 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.65), 0 0 35px -5px rgba(16, 185, 129, 0.2) !important;
        color: #fefce8 !important;
      }
      /* عنوان الكرت: بداية النضوج والخير المستمر ✦ إعمار الأرض... */
      #zadi-helper-maturation-card h3 {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        font-weight: 900 !important;
      }
      #zadi-helper-maturation-card h3 span {
        color: #fef08a !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
      }
      #zadi-helper-maturation-card h3 svg {
        color: #fbbf24 !important;
      }
      /* الفقرة التوجيهية للكرت: يا رفيق الطريق والمحاولة الدائمة... */
      #zadi-helper-maturation-card p {
        color: #f0fdf4 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
        font-weight: 700 !important;
        line-height: 1.85 !important;
        font-size: 0.875rem !important;
      }
      /* شريط وملاحظة النبتة الخضراء: ✦ حتى وإن شعرت يوماً بالنقص... */
      #zadi-helper-maturation-card div[class*="text-[#A6C5AF]"] {
        background: rgba(4, 48, 37, 0.9) !important;
        border: 1px solid rgba(52, 211, 153, 0.45) !important;
        border-radius: 0.85rem !important;
        padding: 0.65rem 1rem !important;
        color: #a7f3d0 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
        line-height: 1.7 !important;
        font-size: 0.8rem !important;
      }
      /* الصندوق الجانبي لنية الخير والعمارة */
      #zadi-helper-maturation-card div[class*="shrink-0"] {
        background: linear-gradient(180deg, rgba(6, 78, 59, 0.85) 0%, rgba(3, 27, 21, 0.95) 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
      }
      #zadi-helper-maturation-card div[class*="shrink-0"] div[class*="text-amber-300"] {
        color: #fef08a !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      #zadi-helper-maturation-card div[class*="shrink-0"] div[class*="text-white"] {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      /* زر الاستماع الصوتي للنية */
      #zadi-helper-maturation-card button {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        color: #1c1917 !important;
        font-weight: 900 !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
        border: none !important;
      }
      #zadi-helper-maturation-card button:hover {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
      }

      /* ========================================================
         نافذة تحديد موضع القراءة في قسم المصحف الشريف
         إصلاح شامل لتباين الألوان والخلفيات والأزرار والخطوط
         ======================================================== */
      #quran-reading-position-modal {
        background: linear-gradient(165deg, #072e24 0%, #0a3a2d 45%, #031c15 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(16, 185, 129, 0.25) !important;
        color: #fefce8 !important;
      }
      /* زر الإغلاق X */
      #quran-reading-position-modal > button.absolute {
        background: rgba(3, 27, 21, 0.85) !important;
        border: 1px solid rgba(251, 191, 36, 0.35) !important;
        color: #fef08a !important;
      }
      #quran-reading-position-modal > button.absolute:hover {
        background: rgba(16, 185, 129, 0.3) !important;
        color: #ffffff !important;
      }
      #quran-reading-position-modal > button.absolute svg {
        color: #fef08a !important;
        stroke: #fef08a !important;
      }
      /* أيقونة المصحف في أعلى النافذة */
      #quran-reading-position-modal div[class*="w-16"][class*="h-16"] {
        background: rgba(3, 27, 21, 0.95) !important;
        border: 2px solid rgba(251, 191, 36, 0.65) !important;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
      }
      #quran-reading-position-modal div[class*="w-16"][class*="h-16"] svg {
        color: #fef08a !important;
        stroke: #fef08a !important;
      }
      /* عنوان النافذة: تحديد موضع القراءة */
      #quran-reading-position-modal h3 {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
        font-size: 1.35rem !important;
      }
      /* النص التوضيحي أسفل العنوان */
      #quran-reading-position-modal p {
        color: #ecfdf5 !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
        line-height: 1.75 !important;
        font-size: 0.85rem !important;
      }
      /* صندوق آخر توقف سابق */
      #quran-reading-position-modal div[class*="bg-stone-950"] {
        background: rgba(3, 27, 21, 0.95) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.4) !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        border-radius: 1rem !important;
      }
      #quran-reading-position-modal div[class*="bg-stone-950"] span,
      #quran-reading-position-modal div[class*="bg-stone-950"] div {
        color: #fef08a !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      #quran-reading-position-modal div[class*="bg-stone-950"] span[class*="text-stone-400"] {
        color: #a7f3d0 !important;
        font-weight: 800 !important;
      }
      /* الزر الأول: قراءة السورة المختارة (الزر الزمردي الرئيسي) */
      #quran-reading-position-modal button[class*="bg-emerald-600"] {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        border: 1.5px solid #34d399 !important;
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45) !important;
        border-radius: 1rem !important;
      }
      #quran-reading-position-modal button[class*="bg-emerald-600"]:hover {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        border-color: #6ee7b7 !important;
      }
      #quran-reading-position-modal button[class*="bg-emerald-600"] *,
      #quran-reading-position-modal button[class*="bg-emerald-600"] span,
      #quran-reading-position-modal button[class*="bg-emerald-600"] svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
      }
      /* الزر الثاني: متابعة القراءة من آخر توقف (الزر الذهبي العنبري) */
      #quran-reading-position-modal button[class*="bg-amber-500"] {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
        border: 1.5px solid #fbbf24 !important;
        box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4) !important;
        border-radius: 1rem !important;
      }
      #quran-reading-position-modal button[class*="bg-amber-500"]:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        border-color: #fde68a !important;
      }
      #quran-reading-position-modal button[class*="bg-amber-500"] *,
      #quran-reading-position-modal button[class*="bg-amber-500"] span,
      #quran-reading-position-modal button[class*="bg-amber-500"] svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
        fill: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
      }
      /* الزر الثالث: البداية من أول المصحف (الزر المحايد) */
      #quran-reading-position-modal button[class*="bg-stone-800"] {
        background: rgba(15, 23, 42, 0.9) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
        border-radius: 1rem !important;
      }
      #quran-reading-position-modal button[class*="bg-stone-800"]:hover {
        background: rgba(30, 41, 59, 0.95) !important;
        border-color: rgba(203, 213, 225, 0.6) !important;
      }
      #quran-reading-position-modal button[class*="bg-stone-800"] *,
      #quran-reading-position-modal button[class*="bg-stone-800"] span {
        color: #f8fafc !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }

      /* نافذة تحديد الورد اليومي في المصحف */
      #quran-daily-ward-modal {
        background: linear-gradient(165deg, #072e24 0%, #0a3a2d 45%, #031c15 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(16, 185, 129, 0.25) !important;
        color: #fefce8 !important;
      }
      #quran-daily-ward-modal h3 {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
      }
      #quran-daily-ward-modal label {
        color: #a7f3d0 !important;
        font-weight: 800 !important;
      }
      #quran-daily-ward-modal input {
        background: rgba(3, 27, 21, 0.9) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
        color: #fef08a !important;
      }
      #quran-daily-ward-modal button {
        color: #ffffff !important;
      }

      /* ========================================================
         شريط تنبيه الأذكار اليومية العائم (أذكار الصباح والمساء والضحى)
         وضوح فائق لكافة النصوص والعناوين والأزرار بلا أي تداخل
         ======================================================== */
      #zadi-azkar-notification-banner {
        background: linear-gradient(145deg, #062b22 0%, #0a3a2d 45%, #031c15 100%) !important;
        border: 2px solid rgba(251, 191, 36, 0.5) !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(16, 185, 129, 0.25) !important;
        color: #fefce8 !important;
      }
      /* أيقونة الذكر */
      #zadi-azkar-notification-banner div[class*="bg-amber-500/10"] {
        background: rgba(3, 27, 21, 0.95) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
      }
      #zadi-azkar-notification-banner div[class*="bg-amber-500/10"] svg {
        color: #fef08a !important;
        stroke: #fef08a !important;
      }
      /* عنوان شريط الأذكار: تذكير الأذكار اليومية */
      #zadi-azkar-notification-banner h4,
      #zadi-azkar-notification-banner h4 span {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      #zadi-azkar-notification-banner h4 svg {
        color: #fbbf24 !important;
      }
      /* نص التنبيه: حان وقت قراءة أذكار الصباح لنيل الحفظ والسكينة... */
      #zadi-azkar-notification-banner p {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
        line-height: 1.6 !important;
      }
      /* اسم الورد أو الذكر المميز داخل النص (مثل: أذكار الصباح) */
      #zadi-azkar-notification-banner p span {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
        text-decoration: underline !important;
        text-decoration-color: #f59e0b !important;
      }
      /* زر الإغلاق X */
      #zadi-azkar-notification-banner button[class*="text-emerald-200"],
      #zadi-azkar-notification-banner button.cursor-pointer svg {
        color: #fef08a !important;
      }
      /* نص التذييل: منارة زادي • الأذكار اليومية */
      #zadi-azkar-notification-banner span[class*="text-emerald-300"] {
        color: #a7f3d0 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      /* زر ابدأ القراءة الآن */
      #zadi-azkar-notification-banner button[class*="bg-amber-500"] {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        border: 1px solid #fbbf24 !important;
        color: #1c1917 !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45) !important;
      }
      #zadi-azkar-notification-banner button[class*="bg-amber-500"] span {
        color: #1c1917 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }
      #zadi-azkar-notification-banner button[class*="bg-amber-500"] svg {
        color: #1c1917 !important;
      }

      /* شريط تنبيه مواقيت الصلاة العائم */
      #zadi-prayer-notification-banner {
        background: linear-gradient(145deg, #062b22 0%, #0a3a2d 45%, #031c15 100%) !important;
        border: 2px solid rgba(251, 191, 36, 0.5) !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(16, 185, 129, 0.25) !important;
        color: #fefce8 !important;
      }
      #zadi-prayer-notification-banner h4 {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      #zadi-prayer-notification-banner p {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      #zadi-prayer-notification-banner span[class*="text-emerald-300"] {
        color: #a7f3d0 !important;
        font-weight: 800 !important;
      }

      /* ========================================================
         زر تحديث الموقع وضبط المواقيت تلقائياً (الرئيسية ومواقيت الصلاة)
         حل نهائي لتباين الزر: منع أي خلفية بيضاء مع خط أبيض إطلاقاً
         ======================================================== */
      #btn-enable-gps-home,
      button#btn-enable-gps-home,
      html:not(.dark) #btn-enable-gps-home,
      html:not(.dark) button#btn-enable-gps-home,
      html.dark #btn-enable-gps-home,
      html.dark button#btn-enable-gps-home {
        background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        background-color: #047857 !important;
        background-image: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #btn-enable-gps-home:hover,
      button#btn-enable-gps-home:hover,
      html:not(.dark) #btn-enable-gps-home:hover,
      html:not(.dark) button#btn-enable-gps-home:hover,
      html.dark #btn-enable-gps-home:hover,
      html.dark button#btn-enable-gps-home:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 50%, #022c22 100%) !important;
        background-color: #059669 !important;
        background-image: linear-gradient(135deg, #059669 0%, #047857 50%, #022c22 100%) !important;
        border-color: #6ee7b7 !important;
        box-shadow: 0 6px 22px rgba(5, 150, 105, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.45) !important;
      }
      #btn-enable-gps-home span,
      #btn-enable-gps-home *,
      html:not(.dark) #btn-enable-gps-home span,
      html:not(.dark) #btn-enable-gps-home *,
      html.dark #btn-enable-gps-home span,
      html.dark #btn-enable-gps-home * {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      #btn-enable-gps-home svg,
      html:not(.dark) #btn-enable-gps-home svg,
      html.dark #btn-enable-gps-home svg {
        color: #fcd34d !important;
        stroke: #fcd34d !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) !important;
      }

      /* زر "عرض المواقيت" المجاور لزر التحديث */
      #btn-enable-gps-home + button,
      html:not(.dark) #btn-enable-gps-home + button {
        background: #ffffff !important;
        background-image: none !important;
        border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
        box-shadow: 0 2px 8px rgba(6, 75, 59, 0.08) !important;
        color: #064e3b !important;
      }
      #btn-enable-gps-home + button:hover,
      html:not(.dark) #btn-enable-gps-home + button:hover {
        background: #f0fdf4 !important;
        border-color: rgba(16, 185, 129, 0.55) !important;
      }
      #btn-enable-gps-home + button *,
      html:not(.dark) #btn-enable-gps-home + button * {
        color: #064e3b !important;
        font-weight: 800 !important;
        text-shadow: none !important;
      }

      /* ========================================================
         كرت / نافذة صلاحية الموقع الجغرافي (Zadi Permission Modal)
         وضوح فائق وتناسق ملكي فخم يمنع أي تداخل للألوان
         ======================================================== */
      #zadi-permission-modal-card{
        background: linear-gradient(165deg, #072e24 0%, #0a3a2d 45%, #031c15 100%) !important;
        border: 2px solid rgba(251, 191, 36, 0.6) !important;
        box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.95), 0 0 35px -5px rgba(16, 185, 129, 0.25) !important;
        color: #fefce8 !important;
      }

      /* أيقونة الصلاحية في الأعلى */
      #zadi-permission-modal-card div[class*="w-16"][class*="h-16"]{
        background: rgba(3, 27, 21, 0.95) !important;
        border: 2px solid rgba(251, 191, 36, 0.65) !important;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.25) !important;
      }
      #zadi-permission-modal-card div[class*="w-16"][class*="h-16"] svg{
        color: #fef08a !important;
        stroke: #fef08a !important;
      }

      /* شارة خصوصيتك في المقام الأول */
      #zadi-permission-modal-card div[class*="rounded-full"][class*="bg-emerald-950"]{
        background: rgba(3, 27, 21, 0.95) !important;
        border: 1.5px solid rgba(52, 211, 153, 0.6) !important;
      }
      #zadi-permission-modal-card div[class*="rounded-full"][class*="bg-emerald-950"] span{
        color: #6ee7b7 !important;
        font-weight: 800 !important;
      }
      #zadi-permission-modal-card div[class*="rounded-full"][class*="bg-emerald-950"] svg{
        color: #34d399 !important;
      }

      /* عنوان النافذة: صلاحية الموقع الجغرافي */
      #zadi-permission-modal-card h3,
      html:not(.dark) #zadi-permission-modal-card h3,
      html.dark #zadi-permission-modal-card h3{
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
        font-size: 1.35rem !important;
      }

      /* نص سبب طلب الصلاحية المظلل في الصندوق الأسود */
      #zadi-permission-modal-card p[class*="bg-black/70"],
      #zadi-permission-modal-card p:not([class*="text-[11px]"]),
      html:not(.dark) #zadi-permission-modal-card p,
      html.dark #zadi-permission-modal-card p{
        background: rgba(3, 27, 21, 0.95) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        line-height: 1.7 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }

      /* صندوق معلومات التأكيد والخيارات اليدوية */
      #zadi-permission-modal-card div[class*="bg-emerald-950/90"]{
        background: rgba(4, 38, 29, 0.95) !important;
        border: 1.5px solid rgba(52, 211, 153, 0.5) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
      }
      #zadi-permission-modal-card div[class*="bg-emerald-950/90"] span,
      html:not(.dark) #zadi-permission-modal-card div[class*="bg-emerald-950/90"] span{
        color: #ecfdf5 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      #zadi-permission-modal-card div[class*="bg-emerald-950/90"] svg{
        color: #34d399 !important;
        stroke: #34d399 !important;
      }

      /* الزر الرئيسي: موافق وتفعيل الآن ✨ (أصفر ذهبي مع نص أسود غامق) */
      #zadi-permission-modal-card button[class*="from-amber-400"],
      html:not(.dark) #zadi-permission-modal-card button[class*="from-amber-400"],
      html.dark #zadi-permission-modal-card button[class*="from-amber-400"]{
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        border: 1.5px solid #fbbf24 !important;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
        color: #1c1917 !important;
      }
      #zadi-permission-modal-card button[class*="from-amber-400"]:hover{
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
      }
      #zadi-permission-modal-card button[class*="from-amber-400"] *,
      #zadi-permission-modal-card button[class*="from-amber-400"] span,
      html:not(.dark) #zadi-permission-modal-card button[class*="from-amber-400"] *{
        color: #1c1917 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      /* الزر الثانوي: إلغاء / استخدام الخيار اليدوي */
      #zadi-permission-modal-card button[class*="bg-stone-800"],
      html:not(.dark) #zadi-permission-modal-card button[class*="bg-stone-800"],
      html.dark #zadi-permission-modal-card button[class*="bg-stone-800"]{
        background: rgba(15, 23, 42, 0.9) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.4) !important;
        color: #f8fafc !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
      }
      #zadi-permission-modal-card button[class*="bg-stone-800"]:hover{
        background: rgba(30, 41, 59, 0.95) !important;
        border-color: rgba(203, 213, 225, 0.6) !important;
        color: #ffffff !important;
      }
      #zadi-permission-modal-card button[class*="bg-stone-800"] *,
      #zadi-permission-modal-card button[class*="bg-stone-800"] span,
      html:not(.dark) #zadi-permission-modal-card button[class*="bg-stone-800"] *{
        color: #f8fafc !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }

      /* زر إغلاق X للنافذة */
      #zadi-permission-modal-card > button.absolute{
        background: rgba(3, 27, 21, 0.85) !important;
        border: 1px solid rgba(251, 191, 36, 0.35) !important;
        color: #fef08a !important;
      }
      #zadi-permission-modal-card > button.absolute svg{
        color: #fef08a !important;
        stroke: #fef08a !important;
      }

      /* كروت فحص الصلاحيات داخل صفحة حالة التطبيق والصلاحيات */
      #app-status-permissions-section div[class*="rounded-xl"][class*="border"] h4 {
        color: #063529 !important;
        font-weight: 900 !important;
      }
      html.dark #app-status-permissions-section div[class*="rounded-xl"][class*="border"] h4 {
        color: #fef08a !important;
      }
      #app-status-permissions-section div[class*="rounded-xl"][class*="border"] p {
        color: #046a4e !important;
        font-weight: 600 !important;
      }
      html.dark #app-status-permissions-section div[class*="rounded-xl"][class*="border"] p {
        color: #cbd5e1 !important;
      }
      #app-status-permissions-section button[class*="bg-amber-500"] {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        border: 1px solid #fbbf24 !important;
        color: #1c1917 !important;
        font-weight: 900 !important;
      }
      #app-status-permissions-section button[class*="bg-amber-500"] * {
        color: #1c1917 !important;
        font-weight: 900 !important;
      }

      /* ========================================================
         إصلاح شامل لتباين الألوان: أزرار التنقل (الأذكار، السبحة، مرفأ الرضا، زاد الطمأنينة)
         High-Contrast Dual-Mode Sub-Navigation Bar Buttons
         ======================================================== */
      #sub-navigation-menu div.flex {
        background: rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
      }
      html.dark #sub-navigation-menu div.flex {
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
      }

      /* الأزرار غير النشطة: أرضية بيضاء ساطعة في النهاري أو داكنة مريحة في الليلي مع حدود وخط عالي التباين */
      #sub-navigation-menu button {
        font-weight: 800 !important;
        letter-spacing: -0.01em !important;
        transition: all 0.25s ease-in-out !important;
      }
      html:not(.dark) #sub-navigation-menu button:not([class*="text-amber-50"]):not([class*="text-white"]) {
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
      }
      html.dark #sub-navigation-menu button:not([class*="text-amber-50"]):not([class*="text-white"]) {
        background: #0f172a !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
      }

      /* زر الأذكار */
      html:not(.dark) #sub-navigation-menu button:nth-child(1):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #022c22 !important;
        border: 1.5px solid #6ee7b7 !important;
      }
      html:not(.dark) #sub-navigation-menu button:nth-child(1):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #059669 !important;
        stroke: #059669 !important;
      }
      html.dark #sub-navigation-menu button:nth-child(1):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #a7f3d0 !important;
        border: 1.5px solid #065f46 !important;
      }
      html.dark #sub-navigation-menu button:nth-child(1):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #34d399 !important;
        stroke: #34d399 !important;
      }

      /* زر السبحة */
      html:not(.dark) #sub-navigation-menu button:nth-child(2):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #3b0764 !important;
        border: 1.5px solid #d8b4fe !important;
      }
      html:not(.dark) #sub-navigation-menu button:nth-child(2):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #7e22ce !important;
        stroke: #7e22ce !important;
      }
      html.dark #sub-navigation-menu button:nth-child(2):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #e9d5ff !important;
        border: 1.5px solid #581c87 !important;
      }
      html.dark #sub-navigation-menu button:nth-child(2):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #c084fc !important;
        stroke: #c084fc !important;
      }

      /* زر مرفأ الرضا */
      html:not(.dark) #sub-navigation-menu button:nth-child(3):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #042f2e !important;
        border: 1.5px solid #5eead4 !important;
      }
      html:not(.dark) #sub-navigation-menu button:nth-child(3):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #0f766e !important;
        stroke: #0f766e !important;
      }
      html.dark #sub-navigation-menu button:nth-child(3):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #99f6e4 !important;
        border: 1.5px solid #115e59 !important;
      }
      html.dark #sub-navigation-menu button:nth-child(3):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #2dd4bf !important;
        stroke: #2dd4bf !important;
      }

      /* زر زاد الطمأنينة */
      html:not(.dark) #sub-navigation-menu button:nth-child(4):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #4c0519 !important;
        border: 1.5px solid #fecdd3 !important;
      }
      html:not(.dark) #sub-navigation-menu button:nth-child(4):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #be123c !important;
        stroke: #be123c !important;
      }
      html.dark #sub-navigation-menu button:nth-child(4):not([class*="text-amber-50"]):not([class*="text-white"]) {
        color: #ffe4e6 !important;
        border: 1.5px solid #881337 !important;
      }
      html.dark #sub-navigation-menu button:nth-child(4):not([class*="text-amber-50"]):not([class*="text-white"]) svg {
        color: #fb7185 !important;
        stroke: #fb7185 !important;
      }

      /* الأزرار النشطة: تدرج مشبع وخط أبيض فائق التباين مع ظل ناعم */
      #sub-navigation-menu button[class*="scale-[1.02]"],
      #sub-navigation-menu button[class*="from-emerald-700"],
      #sub-navigation-menu button[class*="from-emerald-800"],
      #sub-navigation-menu button[class*="from-purple-700"],
      #sub-navigation-menu button[class*="from-purple-800"],
      #sub-navigation-menu button[class*="from-teal-700"],
      #sub-navigation-menu button[class*="from-teal-800"],
      #sub-navigation-menu button[class*="from-rose-600"],
      #sub-navigation-menu button[class*="from-rose-800"] {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
      }
      #sub-navigation-menu button[class*="scale-[1.02]"] span,
      #sub-navigation-menu button[class*="from-emerald-700"] span,
      #sub-navigation-menu button[class*="from-emerald-800"] span,
      #sub-navigation-menu button[class*="from-purple-700"] span,
      #sub-navigation-menu button[class*="from-purple-800"] span,
      #sub-navigation-menu button[class*="from-teal-700"] span,
      #sub-navigation-menu button[class*="from-teal-800"] span,
      #sub-navigation-menu button[class*="from-rose-600"] span,
      #sub-navigation-menu button[class*="from-rose-800"] span {
        color: #ffffff !important;
        font-weight: 900 !important;
      }
      #sub-navigation-menu button[class*="scale-[1.02]"] svg,
      #sub-navigation-menu button[class*="from-emerald-700"] svg,
      #sub-navigation-menu button[class*="from-emerald-800"] svg,
      #sub-navigation-menu button[class*="from-purple-700"] svg,
      #sub-navigation-menu button[class*="from-purple-800"] svg,
      #sub-navigation-menu button[class*="from-teal-700"] svg,
      #sub-navigation-menu button[class*="from-teal-800"] svg,
      #sub-navigation-menu button[class*="from-rose-600"] svg,
      #sub-navigation-menu button[class*="from-rose-800"] svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
      }

      /* ========================================================
         إصلاح شامل لتباين ألوان: قسم زاد الطمأنينة بميزان المشاعر
         High-Contrast Dual-Mode Styling for Zad Al-Tamanina Tab
         ======================================================== */
      /* كرت البانر العلوي لزاد الطمأنينة */
      #zad-al-tamanina-tab > div:first-child {
        background: linear-gradient(135deg, #4c0519 0%, #881337 55%, #0f172a 100%) !important;
        border: 1.5px solid rgba(244, 63, 94, 0.45) !important;
        box-shadow: 0 10px 25px -5px rgba(136, 19, 55, 0.3) !important;
      }
      #zad-al-tamanina-tab > div:first-child h2 span {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
      }
      #zad-al-tamanina-tab > div:first-child p {
        color: #ffe4e6 !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-rose-500/20"] {
        background: rgba(244, 63, 94, 0.3) !important;
        border: 1px solid rgba(254, 205, 211, 0.5) !important;
        color: #ffffff !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-rose-500/20"] span {
        color: #ffffff !important;
        font-weight: 800 !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-rose-500/20"] svg {
        color: #fda4af !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-white/10"] {
        background: rgba(15, 23, 42, 0.5) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-white/10"] span[class*="text-rose-200"] {
        color: #fecdd3 !important;
        font-weight: 800 !important;
      }
      #zad-al-tamanina-tab > div:first-child div[class*="bg-white/10"] span[class*="text-amber-200"] {
        color: #fef08a !important;
        font-weight: 900 !important;
      }

      /* حقل البحث داخل زاد الطمأنينة */
      #zad-al-tamanina-tab input[type="text"] {
        font-weight: 700 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab input[type="text"] {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #cbd5e1 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab input[type="text"]::placeholder {
        color: #64748b !important;
        font-weight: 600 !important;
      }
      html.dark #zad-al-tamanina-tab input[type="text"] {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1.5px solid #475569 !important;
      }
      html.dark #zad-al-tamanina-tab input[type="text"]::placeholder {
        color: #94a3b8 !important;
        font-weight: 600 !important;
      }

      /* أزرار الفلاتر (الكل، تفريج الهموم، شكر السرور) */
      #zad-al-tamanina-tab div.flex button[class*="rounded-xl"] {
        font-weight: 800 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div.flex button[class*="rounded-xl"]:not([class*="bg-rose-600"]) {
        background: #f1f5f9 !important;
        color: #1e293b !important;
        border: 1.5px solid #cbd5e1 !important;
      }
      html.dark #zad-al-tamanina-tab div.flex button[class*="rounded-xl"]:not([class*="bg-rose-600"]) {
        background: #1e293b !important;
        color: #f1f5f9 !important;
        border: 1.5px solid #475569 !important;
      }
      #zad-al-tamanina-tab div.flex button[class*="bg-rose-600"] {
        background: #be123c !important;
        color: #ffffff !important;
        border: 1.5px solid #9f1239 !important;
        font-weight: 900 !important;
      }

      /* شبكة كروت المشاعر والأحوال القلبية */
      #zad-al-tamanina-tab div.grid button {
        font-weight: 800 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div.grid button:not([class*="from-rose-500"]) {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div.grid button:not([class*="from-rose-500"]) span {
        color: #0f172a !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div.grid button:not([class*="from-rose-500"]) {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1.5px solid #334155 !important;
      }
      html.dark #zad-al-tamanina-tab div.grid button:not([class*="from-rose-500"]) span {
        color: #f8fafc !important;
        font-weight: 800 !important;
      }
      /* الكرت المختار النشط */
      html:not(.dark) #zad-al-tamanina-tab div.grid button[class*="from-rose-500"] {
        background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(251, 146, 60, 0.22)) !important;
        border: 2px solid #e11d48 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div.grid button[class*="from-rose-500"] span {
        color: #881337 !important;
        font-weight: 900 !important;
      }
      html.dark #zad-al-tamanina-tab div.grid button[class*="from-rose-500"] {
        background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(251, 146, 60, 0.35)) !important;
        border: 2px solid #fb7185 !important;
      }
      html.dark #zad-al-tamanina-tab div.grid button[class*="from-rose-500"] span {
        color: #ffe4e6 !important;
        font-weight: 900 !important;
      }

      /* كرت التوجيه المعنوي */
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] {
        background: #fff1f2 !important;
        border: 1.5px solid #fecdd3 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3 span {
        color: #881337 !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] p {
        color: #334155 !important;
        font-weight: 700 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] {
        background: rgba(76, 5, 25, 0.4) !important;
        border: 1.5px solid rgba(244, 63, 94, 0.4) !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3 span {
        color: #fecdd3 !important;
        font-weight: 900 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] p {
        color: #cbd5e1 !important;
        font-weight: 700 !important;
      }
      /* زر الاستماع الصوتي للتوجيه */
      #zad-al-tamanina-tab div[class*="from-emerald-900/10"] button {
        background: #e11d48 !important;
        color: #ffffff !important;
        border: 1.5px solid #be123c !important;
        font-weight: 800 !important;
      }
      #zad-al-tamanina-tab div[class*="from-emerald-900/10"] button * {
        color: #ffffff !important;
        stroke: #ffffff !important;
      }

      /* بطاقات الآيات القرآنية الشافية */
      html:not(.dark) #zad-al-tamanina-tab div[class*="bg-amber-500/5"] {
        background: #fffdf5 !important;
        border: 1.5px solid #fde68a !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div[class*="bg-amber-500/5"] p {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="bg-amber-500/5"] {
        background: rgba(19, 29, 43, 0.8) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.4) !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="bg-amber-500/5"] p {
        color: #fef08a !important;
        font-weight: 800 !important;
      }
      /* أزرار نسخ الآية والاستماع */
      html:not(.dark) #zad-al-tamanina-tab div[class*="bg-amber-500/5"] button {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="bg-amber-500/5"] button {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1px solid #475569 !important;
        font-weight: 800 !important;
      }

      /* بطاقات الأذكار الموصى بها وعدادات التكرار */
      html:not(.dark) #zad-al-tamanina-tab div[class*="rounded-2xl"][class*="border"] p,
      html:not(.dark) #zad-al-tamanina-tab div.grid div[class*="rounded-2xl"] p {
        color: #0f172a !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div.grid div[class*="rounded-2xl"] p {
        color: #f8fafc !important;
        font-weight: 800 !important;
      }
      /* زر عداد التكرار لزاد الطمأنينة */
      html:not(.dark) #zad-al-tamanina-tab button[class*="bg-rose-500/10"] {
        background: #ffe4e6 !important;
        color: #9f1239 !important;
        border: 1.5px solid #f43f5e !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab button[class*="bg-rose-500/10"] span {
        color: #9f1239 !important;
        font-weight: 900 !important;
      }
      html.dark #zad-al-tamanina-tab button[class*="bg-rose-500/10"] {
        background: rgba(244, 63, 94, 0.25) !important;
        color: #fecdd3 !important;
        border: 1.5px solid #fb7185 !important;
        font-weight: 900 !important;
      }
      html.dark #zad-al-tamanina-tab button[class*="bg-rose-500/10"] span {
        color: #fecdd3 !important;
        font-weight: 900 !important;
      }

      /* الأدعية المأثورة */
      html:not(.dark) #zad-al-tamanina-tab div.space-y-3 div[class*="bg-stone-50/70"] p {
        color: #0f172a !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div.space-y-3 div[class*="bg-stone-50/70"] p {
        color: #f8fafc !important;
        font-weight: 800 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div.space-y-3 div[class*="bg-stone-50/70"] button {
        background: #ffffff !important;
        color: #064e3b !important;
        border: 1px solid #cbd5e1 !important;
        font-weight: 800 !important;
      }
      html.dark #zad-al-tamanina-tab div.space-y-3 div[class*="bg-stone-50/70"] button {
        background: #1e293b !important;
        color: #a7f3d0 !important;
        border: 1px solid #475569 !important;
        font-weight: 800 !important;
      }

      /* ========================================================
         إصلاح شامل لتباين ألوان: قسم مرفأ الرضا واليقين
         High-Contrast Dual-Mode Styling for Marfa Al-Rida Module
         ======================================================== */
      /* كرت البانر الرئيسي لمرفأ الرضا */
      #marfa-alrida-module > div:first-child {
        background: linear-gradient(135deg, #022c22 0%, #064e3b 55%, #0f172a 100%) !important;
        border: 1.5px solid #059669 !important;
        box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3) !important;
      }
      #marfa-alrida-module > div:first-child h2 {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
      }
      #marfa-alrida-module > div:first-child p {
        color: #f0fdf4 !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
      }
      #marfa-alrida-module > div:first-child div[class*="bg-amber-500/10"] {
        background: rgba(245, 158, 11, 0.25) !important;
        border: 1px solid rgba(251, 191, 36, 0.5) !important;
        color: #fef08a !important;
      }
      #marfa-alrida-module > div:first-child div[class*="bg-amber-500/10"] span {
        color: #fef08a !important;
        font-weight: 800 !important;
      }

      /* أصوات السكينة الطبيعية */
      html:not(.dark) #marfa-alrida-module h3 {
        color: #0f172a !important;
        font-weight: 900 !important;
      }
      html.dark #marfa-alrida-module h3 {
        color: #fef08a !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #marfa-alrida-module p[class*="text-slate-500"] {
        color: #334155 !important;
        font-weight: 700 !important;
      }
      html.dark #marfa-alrida-module p[class*="text-slate-500"] {
        color: #cbd5e1 !important;
        font-weight: 700 !important;
      }
      /* أزرار تفعيل الأصوات غير المفعلة */
      html:not(.dark) #marfa-alrida-module div.grid button[class*="bg-slate-200/60"] {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        font-weight: 800 !important;
      }
      html.dark #marfa-alrida-module div.grid button[class*="bg-slate-200/60"] {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1px solid #475569 !important;
        font-weight: 800 !important;
      }
      /* عناوين عناصر الأصوات */
      html:not(.dark) #marfa-alrida-module div.grid div[class*="rounded-2xl"] span[class*="text-slate-900"] {
        color: #0f172a !important;
        font-weight: 900 !important;
      }
      html.dark #marfa-alrida-module div.grid div[class*="rounded-2xl"] span[class*="text-slate-900"] {
        color: #f8fafc !important;
        font-weight: 900 !important;
      }
      /* نصوص نسبة مستوى الصوت */
      html:not(.dark) #marfa-alrida-module div[class*="text-[9px]"] span {
        color: #1e293b !important;
        font-weight: 800 !important;
      }
      html.dark #marfa-alrida-module div[class*="text-[9px]"] span {
        color: #cbd5e1 !important;
        font-weight: 800 !important;
      }

      /* قسم دفتر يوميات الشكر والامتنان */
      html:not(.dark) #gratitude-journal-section {
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
      }
      html.dark #gratitude-journal-section {
        background: #09121d !important;
        border: 1.5px solid #1e293b !important;
      }
      /* زر عرض سجل نعم ربي */
      html:not(.dark) #gratitude-journal-section button[class*="bg-amber-500/10"] {
        background: #fef3c7 !important;
        color: #78350f !important;
        border: 1.5px solid #fcd34d !important;
        font-weight: 800 !important;
      }
      html.dark #gratitude-journal-section button[class*="bg-amber-500/10"] {
        background: rgba(245, 158, 11, 0.2) !important;
        color: #fde68a !important;
        border: 1.5px solid #b45309 !important;
        font-weight: 800 !important;
      }
      /* حقول إدخال النعم الثلاثة */
      html:not(.dark) #gratitude-journal-section input[type="text"] {
        background: #f8fafc !important;
        color: #0f172a !important;
        border: 1.5px solid #cbd5e1 !important;
        font-weight: 700 !important;
      }
      html:not(.dark) #gratitude-journal-section input[type="text"]::placeholder {
        color: #64748b !important;
        font-weight: 600 !important;
      }
      html.dark #gratitude-journal-section input[type="text"] {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1.5px solid #475569 !important;
        font-weight: 700 !important;
      }
      html.dark #gratitude-journal-section input[type="text"]::placeholder {
        color: #94a3b8 !important;
        font-weight: 600 !important;
      }
      /* ملصقات النعم */
      html:not(.dark) #gratitude-journal-section label {
        color: #0f172a !important;
        font-weight: 800 !important;
      }
      html.dark #gratitude-journal-section label {
        color: #fde68a !important;
        font-weight: 800 !important;
      }
      /* نص الملاحظة التوضيحية أسفل الحقول */
      html:not(.dark) #gratitude-journal-section span[class*="text-slate-400"] {
        color: #334155 !important;
        font-weight: 700 !important;
      }
      html.dark #gratitude-journal-section span[class*="text-slate-400"] {
        color: #cbd5e1 !important;
        font-weight: 700 !important;
      }
      /* زر حفظ يومية الشكر والامتنان */
      #gratitude-journal-section button[class*="from-emerald-600"] {
        background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
        color: #ffffff !important;
        border: 1.5px solid #10b981 !important;
        font-weight: 900 !important;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
      }
      #gratitude-journal-section button[class*="from-emerald-600"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
      }

      /* حقل البحث وفلاتر القصص والعِبر */
      html:not(.dark) #marfa-alrida-module input[type="text"] {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #cbd5e1 !important;
        font-weight: 700 !important;
      }
      html:not(.dark) #marfa-alrida-module input[type="text"]::placeholder {
        color: #64748b !important;
        font-weight: 600 !important;
      }
      html.dark #marfa-alrida-module input[type="text"] {
        background: #1e293b !important;
        color: #f8fafc !important;
        border: 1.5px solid #475569 !important;
        font-weight: 700 !important;
      }
      html.dark #marfa-alrida-module input[type="text"]::placeholder {
        color: #94a3b8 !important;
        font-weight: 600 !important;
      }
      /* أزرار فئات القصص */
      html:not(.dark) #marfa-alrida-module div.flex button[class*="rounded-full"]:not([class*="bg-amber-500"]) {
        background: #f1f5f9 !important;
        color: #1e293b !important;
        border: 1.5px solid #cbd5e1 !important;
        font-weight: 800 !important;
      }
      html.dark #marfa-alrida-module div.flex button[class*="rounded-full"]:not([class*="bg-amber-500"]) {
        background: #1e293b !important;
        color: #f1f5f9 !important;
        border: 1.5px solid #475569 !important;
        font-weight: 800 !important;
      }
      #marfa-alrida-module div.flex button[class*="bg-amber-500"] {
        background: #f59e0b !important;
        color: #000000 !important;
        border: 1.5px solid #d97706 !important;
        font-weight: 900 !important;
      }

      /* شبكة كروت القصص والعِبر (Stories Bento Grid) */
      html:not(.dark) #stories-bento-grid > div {
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #stories-bento-grid > div {
        background: #09121d !important;
        border: 1.5px solid #1e293b !important;
      }
      /* عنوان القصة */
      html:not(.dark) #stories-bento-grid h3 {
        color: #0f172a !important;
        font-weight: 900 !important;
      }
      html.dark #stories-bento-grid h3 {
        color: #f8fafc !important;
        font-weight: 900 !important;
      }
      /* ملخص القصة */
      html:not(.dark) #stories-bento-grid p[class*="leading-relaxed"] {
        color: #1e293b !important;
        font-weight: 600 !important;
        line-height: 1.8 !important;
      }
      html.dark #stories-bento-grid p[class*="leading-relaxed"] {
        color: #cbd5e1 !important;
        font-weight: 600 !important;
        line-height: 1.8 !important;
      }
      /* صندوق الآية المقتبسة للقصة */
      html:not(.dark) #stories-bento-grid div[class*="bg-slate-50"] {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
      }
      html:not(.dark) #stories-bento-grid div[class*="bg-slate-50"] span {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html.dark #stories-bento-grid div[class*="bg-slate-50"] {
        background: #132238 !important;
        border: 1px solid #1e293b !important;
      }
      html.dark #stories-bento-grid div[class*="bg-slate-50"] span {
        color: #fde68a !important;
        font-weight: 800 !important;
      }
      /* زر "تأمل وابحث عن العِبرة كاملة" */
      html:not(.dark) #stories-bento-grid button[class*="bg-slate-100"] {
        background: #064e3b !important;
        color: #ffffff !important;
        border: 1.5px solid #065f46 !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 6px rgba(6, 78, 59, 0.25) !important;
      }
      html:not(.dark) #stories-bento-grid button[class*="bg-slate-100"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
      }
      html.dark #stories-bento-grid button[class*="bg-slate-100"] {
        background: #1e293b !important;
        color: #fde68a !important;
        border: 1.5px solid #334155 !important;
        font-weight: 800 !important;
      }
      html.dark #stories-bento-grid button[class*="bg-slate-100"] * {
        color: #fde68a !important;
        stroke: #fde68a !important;
      }

      /* نافذة القصة المنبثقة التفصيلية (Story Modal) */
      html:not(.dark) #marfa-story-modal > div:last-child {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #cbd5e1 !important;
      }
      html.dark #marfa-story-modal > div:last-child {
        background: #09121d !important;
        color: #f8fafc !important;
        border: 1.5px solid #1e293b !important;
      }
      html:not(.dark) #marfa-story-modal h3 {
        color: #0f172a !important;
        font-weight: 900 !important;
      }
      html.dark #marfa-story-modal h3 {
        color: #fef08a !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #marfa-story-modal div[class*="text-[12px]"] p {
        color: #0f172a !important;
        font-weight: 600 !important;
        line-height: 2 !important;
      }
      html.dark #marfa-story-modal div[class*="text-[12px]"] p {
        color: #f1f5f9 !important;
        font-weight: 600 !important;
        line-height: 2 !important;
      }
      /* صندوق العِبرة واليقين */
      html:not(.dark) #marfa-story-modal div[class*="border-r-4"] {
        background: #ecfdf5 !important;
        border-right: 4px solid #059669 !important;
      }
      html:not(.dark) #marfa-story-modal div[class*="border-r-4"] p {
        color: #064e3b !important;
        font-weight: 800 !important;
      }
      html.dark #marfa-story-modal div[class*="border-r-4"] {
        background: rgba(6, 78, 59, 0.3) !important;
        border-right: 4px solid #10b981 !important;
      }
      html.dark #marfa-story-modal div[class*="border-r-4"] p {
        color: #a7f3d0 !important;
        font-weight: 800 !important;
      }
      /* صندوق السلوان من كلام المنان */
      html:not(.dark) #marfa-story-modal div[class*="border-dashed"] {
        background: #fffbeb !important;
        border: 1.5px dashed #f59e0b !important;
      }
      html:not(.dark) #marfa-story-modal div[class*="border-dashed"] p {
        color: #78350f !important;
        font-weight: 800 !important;
      }
      html.dark #marfa-story-modal div[class*="border-dashed"] {
        background: rgba(245, 158, 11, 0.12) !important;
        border: 1.5px dashed #d97706 !important;
      }
      html.dark #marfa-story-modal div[class*="border-dashed"] p {
        color: #fef08a !important;
        font-weight: 800 !important;
      }
      /* زر "الْحَمْدُ للهِ (شكر النعمة ورضا بالقدر)" */
      #marfa-story-modal button[class*="from-amber-500"] {
        background: linear-gradient(135deg, #d97706 0%, #059669 50%, #d97706 100%) !important;
        color: #ffffff !important;
        border: 1.5px solid #f59e0b !important;
        font-weight: 900 !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45) !important;
      }
      #marfa-story-modal button[class*="from-amber-500"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
      }

      /* الشريط الجانبي لسجل الشكر والامتنان */
      html:not(.dark) #gratitude-history-sidebar > div:last-child {
        background: #ffffff !important;
        border-right: 1.5px solid #cbd5e1 !important;
      }
      html.dark #gratitude-history-sidebar > div:last-child {
        background: #09121d !important;
        border-right: 1.5px solid #1e293b !important;
      }

      /* ========================================================
         أزرار التبديل بين فهرس السور والبحث بالكلمة في المصحف
         Dual-Mode High-Contrast Quran Search & Surah Index Toggle
         ======================================================== */
      #quran-search-mode-toggle {
        background: rgba(254, 243, 199, 0.75) !important;
        border: 1.5px solid rgba(180, 83, 9, 0.25) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
      }
      html.dark #quran-search-mode-toggle {
        background: rgba(6, 78, 59, 0.45) !important;
        border: 1.5px solid rgba(52, 211, 153, 0.3) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
      }

      /* الأزرار غير النشطة: لون خط داكن شديد الوضوح في النهاري ومضيء في الليلي ومستحيل أن يكون أبيض على خلفية فاتحة */
      html:not(.dark) #quran-search-mode-toggle button:not([class*="bg-emerald-800"]),
      html:not(.dark) #btn-quran-word-search:not([class*="bg-emerald-800"]),
      html:not(.dark) #btn-quran-surahs-index:not([class*="bg-emerald-800"]) {
        color: #063529 !important;
        background: transparent !important;
        font-weight: 900 !important;
        opacity: 1 !important;
      }
      html:not(.dark) #quran-search-mode-toggle button:not([class*="bg-emerald-800"]):hover,
      html:not(.dark) #btn-quran-word-search:not([class*="bg-emerald-800"]):hover,
      html:not(.dark) #btn-quran-surahs-index:not([class*="bg-emerald-800"]):hover {
        background: rgba(16, 185, 129, 0.18) !important;
        color: #022c22 !important;
      }
      html.dark #quran-search-mode-toggle button:not([class*="bg-emerald-800"]),
      html.dark #btn-quran-word-search:not([class*="bg-emerald-800"]),
      html.dark #btn-quran-surahs-index:not([class*="bg-emerald-800"]) {
        color: #fef08a !important;
        background: transparent !important;
        font-weight: 900 !important;
        opacity: 1 !important;
      }
      html.dark #quran-search-mode-toggle button:not([class*="bg-emerald-800"]):hover,
      html.dark #btn-quran-word-search:not([class*="bg-emerald-800"]):hover,
      html.dark #btn-quran-surahs-index:not([class*="bg-emerald-800"]):hover {
        background: rgba(5, 150, 105, 0.28) !important;
        color: #ffffff !important;
      }

      /* الزر النشط المختار: خلفية زمردية داكنة مع خط أبيض مشرق فائق التباين وظل بارز */
      #quran-search-mode-toggle button[class*="bg-emerald-800"],
      #btn-quran-word-search[class*="bg-emerald-800"],
      #btn-quran-surahs-index[class*="bg-emerald-800"] {
        background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        box-shadow: 0 4px 12px rgba(6, 78, 59, 0.45) !important;
        border: 1.5px solid #34d399 !important;
      }
      #quran-search-mode-toggle button[class*="bg-emerald-800"] *,
      #btn-quran-word-search[class*="bg-emerald-800"] *,
      #btn-quran-surahs-index[class*="bg-emerald-800"] * {
        color: #ffffff !important;
        font-weight: 900 !important;
      }

      /* ========================================================
         نافذة تفعيل إشعارات الأذان والذكر: خلفية معتمة تماماً وتباين فائق
         Solid 100% Opaque Notification Permission Modal (Zero Bleed-Through)
         ======================================================== */
      #zadi-notification-modal-backdrop,
      div.fixed.inset-0:has(#zadi-notification-permission-modal),
      div.fixed.inset-0:has(#zadi-notification-permission-modal) {
        background: rgba(0, 0, 0, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
      }

      #zadi-notification-permission-modal{
        background: #061f18 !important;
        background-color: #061f18 !important;
        opacity: 1 !important;
        border: 2px solid #f59e0b !important;
        border-radius: 1.5rem !important;
        box-shadow: 0 25px 60px -5px rgba(0, 0, 0, 0.95), 0 0 35px rgba(6, 78, 59, 0.6) !important;
      }

      #zadi-notification-permission-modal h3{
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 1.25rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
      }

      #zadi-notification-permission-modal p{
        color: #f0fdf4 !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }

      /* بطاقات الميزات الثلاث الداخلية */
      #zadi-notification-permission-modal div[class*="bg-stone-950"]{
        background: #0b2b22 !important;
        background-color: #0b2b22 !important;
        border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
        border-radius: 1rem !important;
      }

      #zadi-notification-permission-modal h4{
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 0.88rem !important;
      }

      #zadi-notification-permission-modal div[class*="bg-stone-950"] p{
        color: #e2e8f0 !important;
        font-weight: 600 !important;
        line-height: 1.6 !important;
      }

      /* زر "سماح بتفعيل التنبيهات 🔔" */
      #zadi-notification-permission-modal button[class*="bg-amber-500"]{
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        color: #000000 !important;
        font-weight: 900 !important;
        font-size: 0.95rem !important;
        border: 1.5px solid #fbbf24 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5) !important;
      }
      #zadi-notification-permission-modal button[class*="bg-amber-500"] *{
        color: #000000 !important;
        font-weight: 900 !important;
      }

      /* زر "سأقوم بذلك لاحقاً" */
      #zadi-notification-permission-modal button:not([class*="bg-amber-500"]){
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        border-radius: 0.75rem !important;
        font-weight: 800 !important;
      }


      /* ========================================================
         زر العودة لقسم المزيد (فائق الوضوح والتباين في كافة الأوضاع)
         High-Contrast 'Back to More' Buttons across all subviews
         ======================================================== */
      .btn-back-to-more,
      button.btn-back-to-more,
      #btn-back-to-more,
      html:not(.dark) .btn-back-to-more,
      html:not(.dark) button.btn-back-to-more,
      html.dark .btn-back-to-more,
      html.dark button.btn-back-to-more {
        background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        background-color: #047857 !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        transition: all 0.2s ease-in-out !important;
      }
      .btn-back-to-more:hover,
      button.btn-back-to-more:hover,
      #btn-back-to-more:hover,
      html:not(.dark) .btn-back-to-more:hover,
      html.dark .btn-back-to-more:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 50%, #022c22 100%) !important;
        border-color: #6ee7b7 !important;
        box-shadow: 0 6px 18px rgba(5, 150, 105, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
      }
      .btn-back-to-more *,
      button.btn-back-to-more *,
      #btn-back-to-more * {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }
      .btn-back-to-more span:first-child,
      button.btn-back-to-more span:first-child,
      .btn-back-to-more svg,
      button.btn-back-to-more svg {
        color: #fcd34d !important;
        stroke: #fcd34d !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
      }

      /* ========================================================
         زر تحديد الموقع تلقائياً (الرئيسية ومواقيت الصلاة)
         Auto-Detect Location / GPS High-Contrast Styling
         ======================================================== */
      #btn-gps-auto-locate,
      button#btn-gps-auto-locate,
      button[title*="تحديد موقعي بدقة"],
      html:not(.dark) #btn-gps-auto-locate,
      html:not(.dark) button#btn-gps-auto-locate,
      html:not(.dark) button[title*="تحديد موقعي بدقة"],
      html.dark #btn-gps-auto-locate,
      html.dark button#btn-gps-auto-locate,
      html.dark button[title*="تحديد موقعي بدقة"] {
        background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        background-color: #047857 !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #btn-gps-auto-locate:hover,
      button#btn-gps-auto-locate:hover,
      button[title*="تحديد موقعي بدقة"]:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 50%, #022c22 100%) !important;
        border-color: #6ee7b7 !important;
        box-shadow: 0 6px 22px rgba(5, 150, 105, 0.6) !important;
      }
      #btn-gps-auto-locate *,
      button#btn-gps-auto-locate *,
      button[title*="تحديد موقعي بدقة"] * {
        color: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      #btn-gps-auto-locate svg,
      button#btn-gps-auto-locate svg,
      button[title*="تحديد موقعي بدقة"] svg {
        color: #fcd34d !important;
        stroke: #fcd34d !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) !important;
      }

      /* ========================================================
         زر البحث بالكلمة في المصحف وفهرس السور
         Quran Word Search & Surahs Index High-Contrast Buttons
         ======================================================== */
      #btn-quran-word-search,
      #btn-quran-surahs-index {
        transition: all 0.25s ease-in-out !important;
      }
      /* عندما يكون زر البحث بالكلمة نشطاً */
      #btn-quran-word-search[class*="bg-emerald-800"],
      #btn-quran-surahs-index[class*="bg-emerald-800"],
      html:not(.dark) #btn-quran-word-search[class*="bg-emerald-800"],
      html:not(.dark) #btn-quran-surahs-index[class*="bg-emerald-800"],
      html.dark #btn-quran-word-search[class*="bg-emerald-800"],
      html.dark #btn-quran-surahs-index[class*="bg-emerald-800"] {
        background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        background-color: #047857 !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
      }
      /* عندما يكون زر البحث بالكلمة غير نشط */
      html:not(.dark) #btn-quran-word-search:not([class*="bg-emerald-800"]),
      html:not(.dark) #btn-quran-surahs-index:not([class*="bg-emerald-800"]) {
        background: #ffffff !important;
        border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
        color: #044e3b !important;
        font-weight: 800 !important;
      }
      html:not(.dark) #btn-quran-word-search:not([class*="bg-emerald-800"]):hover,
      html:not(.dark) #btn-quran-surahs-index:not([class*="bg-emerald-800"]):hover {
        background: #f0fdf4 !important;
        border-color: #10b981 !important;
        color: #022c22 !important;
      }
      html.dark #btn-quran-word-search:not([class*="bg-emerald-800"]),
      html.dark #btn-quran-surahs-index:not([class*="bg-emerald-800"]) {
        background: #0d1e16 !important;
        border: 1.5px solid rgba(52, 211, 153, 0.35) !important;
        color: #fef08a !important;
        font-weight: 800 !important;
      }
      html.dark #btn-quran-word-search:not([class*="bg-emerald-800"]):hover,
      html.dark #btn-quran-surahs-index:not([class*="bg-emerald-800"]):hover {
        background: #132a20 !important;
        border-color: #34d399 !important;
        color: #ffffff !important;
      }
      /* زر الإرسال "بحث" في نموذج البحث القرآني */
      form:has(#btn-quran-word-search-submit) button[type="submit"],
      form button[type="submit"]:has(span:not(*:has(*))) {
        background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%) !important;
        background-color: #047857 !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
      }

      /* ========================================================
         نافذة تفعيل إشعارات الأذان والذكر: خلفية معتمة تماماً وتباين فائق
         Solid 100% Opaque Notification Modal (Zero Transparency)
         ======================================================== */
      #zadi-notification-modal-backdrop,
      div.fixed.inset-0:has(#zadi-notification-permission-modal) {
        background: rgba(0, 0, 0, 0.92) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
      }
      #zadi-notification-permission-modal {
        background: #041f17 !important;
        background-color: #041f17 !important;
        opacity: 1 !important;
        border: 2.5px solid #fbbf24 !important;
        border-radius: 1.5rem !important;
        box-shadow: 0 25px 70px -5px rgba(0, 0, 0, 0.98), 0 0 35px rgba(16, 185, 129, 0.4) !important;
        color: #fefce8 !important;
      }
      #zadi-notification-permission-modal h3 {
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 1.35rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
      }
      #zadi-notification-permission-modal p {
        color: #f0fdf4 !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      }
      /* بطاقات الميزات الداخلية */
      #zadi-notification-permission-modal div[class*="bg-stone-950"],
      #zadi-notification-permission-modal div[class*="bg-[#031b14]"] {
        background: #031b14 !important;
        background-color: #031b14 !important;
        opacity: 1 !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        border-radius: 1rem !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
      }
      #zadi-notification-permission-modal h4 {
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 0.85rem !important;
      }
      #zadi-notification-permission-modal div[class*="bg-stone-950"] p,
      #zadi-notification-permission-modal div[class*="bg-[#031b14]"] p {
        color: #ffffff !important;
        font-weight: 700 !important;
        line-height: 1.6 !important;
      }
      /* زر التفعيل: أصفر ذهبي ساطع بنص أسود داكن عالي التباين */
      #zadi-notification-permission-modal button[class*="bg-amber-500"] {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        background-color: #f59e0b !important;
        border: 1.5px solid #fbbf24 !important;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
        color: #1c1917 !important;
        font-weight: 900 !important;
      }
      #zadi-notification-permission-modal button[class*="bg-amber-500"] * {
        color: #1c1917 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }
      /* زر الإلغاء */
      #zadi-notification-permission-modal button:not([class*="bg-amber-500"]) {
        background: rgba(15, 23, 42, 0.9) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.4) !important;
        color: #f8fafc !important;
        font-weight: 800 !important;
      }

      /* ========================================================
         أزرار شريط التبويبات الفرعية (الأذكار، السبحة، مرفأ الرضا، زاد الطمأنينة)
         High-Contrast Sub-Navigation Tab Buttons
         ======================================================== */
      #subnav-btn-azkar,
      #subnav-btn-sibha,
      #subnav-btn-marfa,
      #subnav-btn-zad {
        letter-spacing: -0.01em !important;
        font-weight: 900 !important;
      }
      /* زر الأذكار غير النشط */
      html:not(.dark) #subnav-btn-azkar:not([class*="scale-[1.02]"]) {
        background: #ffffff !important;
        color: #064e3b !important;
        border: 1.5px solid #059669 !important;
      }
      html:not(.dark) #subnav-btn-azkar:not([class*="scale-[1.02]"]) * {
        color: #064e3b !important;
        stroke: #059669 !important;
        font-weight: 900 !important;
      }
      html.dark #subnav-btn-azkar:not([class*="scale-[1.02]"]) {
        background: #0b2920 !important;
        color: #ecfdf5 !important;
        border: 1.5px solid #10b981 !important;
      }
      html.dark #subnav-btn-azkar:not([class*="scale-[1.02]"]) * {
        color: #ecfdf5 !important;
        stroke: #34d399 !important;
        font-weight: 900 !important;
      }
      /* زر السبحة غير النشط */
      html:not(.dark) #subnav-btn-sibha:not([class*="scale-[1.02]"]) {
        background: #ffffff !important;
        color: #581c87 !important;
        border: 1.5px solid #9333ea !important;
      }
      html:not(.dark) #subnav-btn-sibha:not([class*="scale-[1.02]"]) * {
        color: #581c87 !important;
        stroke: #7e22ce !important;
        font-weight: 900 !important;
      }
      html.dark #subnav-btn-sibha:not([class*="scale-[1.02]"]) {
        background: #210b38 !important;
        color: #f3e8ff !important;
        border: 1.5px solid #a855f7 !important;
      }
      html.dark #subnav-btn-sibha:not([class*="scale-[1.02]"]) * {
        color: #f3e8ff !important;
        stroke: #c084fc !important;
        font-weight: 900 !important;
      }
      /* زر مرفأ الرضا غير النشط */
      html:not(.dark) #subnav-btn-marfa:not([class*="scale-[1.02]"]) {
        background: #ffffff !important;
        color: #134e4a !important;
        border: 1.5px solid #0d9488 !important;
      }
      html:not(.dark) #subnav-btn-marfa:not([class*="scale-[1.02]"]) * {
        color: #134e4a !important;
        stroke: #0f766e !important;
        font-weight: 900 !important;
      }
      html.dark #subnav-btn-marfa:not([class*="scale-[1.02]"]) {
        background: #042a27 !important;
        color: #ccfbf1 !important;
        border: 1.5px solid #14b8a6 !important;
      }
      html.dark #subnav-btn-marfa:not([class*="scale-[1.02]"]) * {
        color: #ccfbf1 !important;
        stroke: #2dd4bf !important;
        font-weight: 900 !important;
      }
      /* زر زاد الطمأنينة غير النشط */
      html:not(.dark) #subnav-btn-zad:not([class*="scale-[1.02]"]) {
        background: #ffffff !important;
        color: #881337 !important;
        border: 1.5px solid #e11d48 !important;
      }
      html:not(.dark) #subnav-btn-zad:not([class*="scale-[1.02]"]) * {
        color: #881337 !important;
        stroke: #be123c !important;
        font-weight: 900 !important;
      }
      html.dark #subnav-btn-zad:not([class*="scale-[1.02]"]) {
        background: #2b0612 !important;
        color: #ffe4e6 !important;
        border: 1.5px solid #f43f5e !important;
      }
      html.dark #subnav-btn-zad:not([class*="scale-[1.02]"]) * {
        color: #ffe4e6 !important;
        stroke: #fb7185 !important;
        font-weight: 900 !important;
      }
    

      /* ========================================================
         إصلاح تباين أزرار قسم اطمئن (الأذكار، السبحة، مرفأ الرضا، زاد الطمأنينة)
         High-Contrast Dual-Mode Sub-Navigation Bar Buttons Fix
         منع أي خلفية بيضاء مع خط أبيض إطلاقاً عند الوقوف على القسم أو تنشيطه
         ======================================================== */
      
      /* 1. الأزرار النشطة في شريط التبويبات الفرعي لقسم اطمئن */
      #subnav-btn-azkar[class*="scale-"],
      #subnav-btn-azkar.active,
      html:not(.dark) #subnav-btn-azkar[class*="scale-"],
      html.dark #subnav-btn-azkar[class*="scale-"] {
        background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%) !important;
        background-color: #047857 !important;
        background-image: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%) !important;
        border: 2px solid #34d399 !important;
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #subnav-btn-azkar[class*="scale-"] *,
      html:not(.dark) #subnav-btn-azkar[class*="scale-"] *,
      html.dark #subnav-btn-azkar[class*="scale-"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      #subnav-btn-sibha[class*="scale-"],
      #subnav-btn-sibha.active,
      html:not(.dark) #subnav-btn-sibha[class*="scale-"],
      html.dark #subnav-btn-sibha[class*="scale-"] {
        background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #581c87 100%) !important;
        background-color: #581c87 !important;
        background-image: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #581c87 100%) !important;
        border: 2px solid #c084fc !important;
        box-shadow: 0 4px 16px rgba(109, 40, 217, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #subnav-btn-sibha[class*="scale-"] *,
      html:not(.dark) #subnav-btn-sibha[class*="scale-"] *,
      html.dark #subnav-btn-sibha[class*="scale-"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      #subnav-btn-marfa[class*="scale-"],
      #subnav-btn-marfa.active,
      html:not(.dark) #subnav-btn-marfa[class*="scale-"],
      html.dark #subnav-btn-marfa[class*="scale-"] {
        background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #115e59 100%) !important;
        background-color: #0f766e !important;
        background-image: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #115e59 100%) !important;
        border: 2px solid #2dd4bf !important;
        box-shadow: 0 4px 16px rgba(15, 118, 110, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #subnav-btn-marfa[class*="scale-"] *,
      html:not(.dark) #subnav-btn-marfa[class*="scale-"] *,
      html.dark #subnav-btn-marfa[class*="scale-"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      #subnav-btn-zad[class*="scale-"],
      #subnav-btn-zad.active,
      html:not(.dark) #subnav-btn-zad[class*="scale-"],
      html.dark #subnav-btn-zad[class*="scale-"] {
        background: linear-gradient(135deg, #881337 0%, #be123c 50%, #9f1239 100%) !important;
        background-color: #be123c !important;
        background-image: linear-gradient(135deg, #881337 0%, #be123c 50%, #9f1239 100%) !important;
        border: 2px solid #fb7185 !important;
        box-shadow: 0 4px 16px rgba(190, 18, 60, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
      }
      #subnav-btn-zad[class*="scale-"] *,
      html:not(.dark) #subnav-btn-zad[class*="scale-"] *,
      html.dark #subnav-btn-zad[class*="scale-"] * {
        color: #ffffff !important;
        stroke: #ffffff !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      /* 2. الأزرار غير النشطة عند التمرير (Hover) - تباين فائق يمنع الخط الأبيض تماماً */
      html:not(.dark) #subnav-btn-azkar:not([class*="scale-"]):hover {
        background: #ecfdf5 !important;
        border-color: #059669 !important;
        color: #064e3b !important;
      }
      html:not(.dark) #subnav-btn-azkar:not([class*="scale-"]):hover * {
        color: #064e3b !important;
        stroke: #059669 !important;
      }
      html:not(.dark) #subnav-btn-sibha:not([class*="scale-"]):hover {
        background: #f5f3ff !important;
        border-color: #9333ea !important;
        color: #581c87 !important;
      }
      html:not(.dark) #subnav-btn-sibha:not([class*="scale-"]):hover * {
        color: #581c87 !important;
        stroke: #7e22ce !important;
      }
      html:not(.dark) #subnav-btn-marfa:not([class*="scale-"]):hover {
        background: #f0fdfa !important;
        border-color: #0d9488 !important;
        color: #134e4a !important;
      }
      html:not(.dark) #subnav-btn-marfa:not([class*="scale-"]):hover * {
        color: #134e4a !important;
        stroke: #0f766e !important;
      }
      html:not(.dark) #subnav-btn-zad:not([class*="scale-"]):hover {
        background: #fff1f2 !important;
        border-color: #e11d48 !important;
        color: #881337 !important;
      }
      html:not(.dark) #subnav-btn-zad:not([class*="scale-"]):hover * {
        color: #881337 !important;
        stroke: #be123c !important;
      }

      /* 3. زر قسم اطمئن في شريط الملاحة السفلي (#tab-btn-worship) */
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]),
      html:not(.dark) #main-navigation-navbar #tab-btn-worship[class*="scale-"],
      html:not(.dark) #main-navigation-navbar #tab-btn-worship.active {
        background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%) !important;
        border: 1.5px solid #e11d48 !important;
        box-shadow: 0 3px 12px rgba(225, 29, 72, 0.22) !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]) span,
      html:not(.dark) #main-navigation-navbar #tab-btn-worship[class*="scale-"] span {
        color: #881337 !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]) svg,
      html:not(.dark) #main-navigation-navbar #tab-btn-worship[class*="scale-"] svg {
        color: #e11d48 !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:hover {
        background: #fff1f2 !important;
        border-color: #f43f5e !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:hover span {
        color: #881337 !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #main-navigation-navbar #tab-btn-worship:hover svg {
        color: #e11d48 !important;
      }

      html.dark #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]),
      html.dark #main-navigation-navbar #tab-btn-worship[class*="scale-"],
      html.dark #main-navigation-navbar #tab-btn-worship.active {
        background: linear-gradient(180deg, #4c0519 0%, #881337 100%) !important;
        border: 1.5px solid #fb7185 !important;
        box-shadow: 0 3px 12px rgba(251, 113, 133, 0.35) !important;
      }
      html.dark #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]) span,
      html.dark #main-navigation-navbar #tab-btn-worship[class*="scale-"] span {
        color: #ffe4e6 !important;
        font-weight: 900 !important;
      }
      html.dark #main-navigation-navbar #tab-btn-worship:has([class*="scale-110"]) svg,
      html.dark #main-navigation-navbar #tab-btn-worship[class*="scale-"] svg {
        color: #fb7185 !important;
      }

      /* ========================================================
         إصلاح شامل لتباين مربع خلفية الحالة النشطة في زاد الطمأنينة مع الخطوط التي بداخلها
         High-Contrast Zad Al-Tamanina Active State Box & Inner Typography
         ======================================================== */
      
      /* 1. مربع الحالة النشطة في البانر العلوي لزاد الطمأنينة */
      #zad-active-mood-box,
      #zad-al-tamanina-tab > div:first-child div[class*="min-w-[200px]"],
      #zad-al-tamanina-tab > div:first-child div:has(> span[class*="animate-bounce"]),
      html:not(.dark) #zad-active-mood-box,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child div[class*="min-w-[200px]"],
      html:not(.dark) #zad-al-tamanina-tab > div:first-child div:has(> span[class*="animate-bounce"]),
      html.dark #zad-active-mood-box,
      html.dark #zad-al-tamanina-tab > div:first-child div[class*="min-w-[200px]"],
      html.dark #zad-al-tamanina-tab > div:first-child div:has(> span[class*="animate-bounce"]) {
        background: linear-gradient(145deg, #180510 0%, #2e081d 55%, #180510 100%) !important;
        background-color: #180510 !important;
        border: 2px solid #fb7185 !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
        padding: 1rem 1.25rem !important;
      }
      
      /* الخطوط داخل مربع الحالة النشطة */
      #zad-active-mood-box span:nth-child(2),
      #zad-al-tamanina-tab > div:first-child div[class*="min-w-[200px]"] span:nth-child(2),
      #zad-al-tamanina-tab > div:first-child div:has(> span[class*="animate-bounce"]) span:nth-child(2),
      html:not(.dark) #zad-active-mood-box span:nth-child(2),
      html.dark #zad-active-mood-box span:nth-child(2) {
        color: #fecdd3 !important;
        font-weight: 900 !important;
        font-size: 13px !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
        letter-spacing: -0.01em !important;
      }
      
      #zad-active-mood-box span:nth-child(3),
      #zad-al-tamanina-tab > div:first-child div[class*="min-w-[200px]"] span:nth-child(3),
      #zad-al-tamanina-tab > div:first-child div:has(> span[class*="animate-bounce"]) span:nth-child(3),
      html:not(.dark) #zad-active-mood-box span:nth-child(3),
      html.dark #zad-active-mood-box span:nth-child(3) {
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 16px !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
        letter-spacing: -0.01em !important;
      }

      /* 2. أزرار الحالات الشعورية النشطة في شبكة الاختيار */
      .zad-mood-btn-active,
      #zad-al-tamanina-tab button[class*="scale-[1.04]"],
      html:not(.dark) .zad-mood-btn-active,
      html:not(.dark) #zad-al-tamanina-tab button[class*="scale-[1.04]"] {
        background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%) !important;
        background-color: #ffe4e6 !important;
        border: 2.5px solid #e11d48 !important;
        box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3) !important;
        color: #881337 !important;
        transform: scale(1.04) !important;
      }
      .zad-mood-btn-active *,
      #zad-al-tamanina-tab button[class*="scale-[1.04]"] *,
      html:not(.dark) .zad-mood-btn-active *,
      html:not(.dark) #zad-al-tamanina-tab button[class*="scale-[1.04]"] * {
        color: #881337 !important;
        font-weight: 900 !important;
      }

      html.dark .zad-mood-btn-active,
      html.dark #zad-al-tamanina-tab button[class*="scale-[1.04]"] {
        background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #2e081d 100%) !important;
        background-color: #881337 !important;
        border: 2.5px solid #fb7185 !important;
        box-shadow: 0 4px 18px rgba(244, 63, 94, 0.45) !important;
        color: #fef08a !important;
        transform: scale(1.04) !important;
      }
      html.dark .zad-mood-btn-active *,
      html.dark #zad-al-tamanina-tab button[class*="scale-[1.04]"] * {
        color: #fef08a !important;
        font-weight: 900 !important;
      }

      /* 3. كرت التوجيه المعنوي للحالة النشطة */
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] {
        background: #ffffff !important;
        border: 1.5px solid #f43f5e !important;
        box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08) !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3,
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3 * {
        color: #881337 !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zad-al-tamanina-tab div[class*="from-emerald-900/10"] p {
        color: #475569 !important;
        font-weight: 700 !important;
      }

      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] {
        background: linear-gradient(135deg, #1f0b14 0%, #2e081d 100%) !important;
        border: 1.5px solid #fb7185 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3,
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] h3 * {
        color: #fef08a !important;
        font-weight: 900 !important;
      }
      html.dark #zad-al-tamanina-tab div[class*="from-emerald-900/10"] p {
        color: #cbd5e1 !important;
        font-weight: 700 !important;
      }


      /* ========================================================
         إصلاحات التباين والوضوح الفائق للكروت الخمسة
         1. كرت تجديد وقفة التأمل (محطة السكينة وتجديد النية)
         2. نافذة الوردة العائمة لتجديد النية
         3. مؤشر سرعة الاستجابة والانتباه
         4. مربع إتمام الدعاء والإنجاز
         5. كرت تحميل وتخصيص تجديد النية
         ======================================================== */
      /* 1. كرت وقفة التأمل ومحطة السكينة (منع أي بياض على بياض وضمان وضوح فائق) */
      #azkar-mindfulness-station,
      div[id="azkar-mindfulness-station"] {
        background: linear-gradient(165deg, #052a20 0%, #031c15 50%, #01120e 100%) !important;
        border: 2px solid #f59e0b !important;
        box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.75), 0 0 30px rgba(16, 185, 129, 0.2) !important;
        color: #fffdf5 !important;
      }
      /* Focus Mode selector 3: عنوان محطة السكينة */
      div#azkar-mindfulness-station > div:nth-of-type(3) > div:nth-of-type(2) > span:nth-of-type(1),
      #azkar-mindfulness-station h4 span:first-child {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
      }
      /* بطاقة الاقتباس / وقفة التأمل داخل المحطة */
      html:not(.dark) #azkar-mindfulness-station .mindfulness-quote-box,
      html:not(.dark) #azkar-mindfulness-station div[class*="mindfulness-quote-box"],
      html:not(.dark) #azkar-mindfulness-station div[class*="my-5"][class*="text-center"],
      html:not(.dark) #azkar-mindfulness-station div:nth-of-type(5) {
        background: linear-gradient(180deg, #fefce8 0%, #fef3c7 100%) !important;
        background-color: #fefce8 !important;
        border: 2.5px solid #d97706 !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 6px 20px rgba(217, 119, 6, 0.2) !important;
      }
      /* Focus Mode selector 1: نص الاقتباس داخل وقفة التأمل في الوضع الفاتح */
      html:not(.dark) div#azkar-mindfulness-station > div:nth-of-type(5) > p:nth-of-type(1),
      html:not(.dark) #azkar-mindfulness-station .mindfulness-quote-box p,
      html:not(.dark) #azkar-mindfulness-station div[class*="mindfulness-quote-box"] p,
      html:not(.dark) #azkar-mindfulness-station div[class*="my-5"][class*="text-center"] p {
        color: #49007e !important;
        font-weight: 900 !important;
        font-size: 1.15rem !important;
        text-shadow: none !important;
      }
      html:not(.dark) #azkar-mindfulness-station .mindfulness-quote-box div,
      html:not(.dark) #azkar-mindfulness-station div[class*="mindfulness-quote-box"] div {
        color: #b45309 !important;
        opacity: 1 !important;
      }
      /* الوضع الداكن لبطاقة الاقتباس */
      html.dark #azkar-mindfulness-station .mindfulness-quote-box,
      html.dark #azkar-mindfulness-station div[class*="mindfulness-quote-box"],
      html.dark #azkar-mindfulness-station div[class*="my-5"][class*="text-center"],
      html.dark #azkar-mindfulness-station div:nth-of-type(5) {
        background: linear-gradient(180deg, #032b20 0%, #011c15 100%) !important;
        background-color: #032b20 !important;
        border: 2px solid #f59e0b !important;
        border-radius: 1.25rem !important;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
      }
      html.dark div#azkar-mindfulness-station > div:nth-of-type(5) > p:nth-of-type(1),
      html.dark #azkar-mindfulness-station .mindfulness-quote-box p,
      html.dark #azkar-mindfulness-station div[class*="mindfulness-quote-box"] p,
      html.dark #azkar-mindfulness-station div[class*="my-5"][class*="text-center"] p {
        color: #fffbeb !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
      }
      html.dark #azkar-mindfulness-station .mindfulness-quote-box div,
      html.dark #azkar-mindfulness-station div[class*="mindfulness-quote-box"] div {
        color: #fbbf24 !important;
        opacity: 1 !important;
      }
      #azkar-mindfulness-station div[class*="w-20"][class*="h-20"] {
        background-color: #021a13 !important;
        border: 2.5px solid #f59e0b !important;
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.35) !important;
      }
      #azkar-mindfulness-station div[class*="w-20"][class*="h-20"] span {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }

      /* 2. نافذة الوردة العائمة لتجديد النية - تصميم عصري جذاب وتباين عالي معزز للتحفيز (#global-niyyah-fab) */
      #global-niyyah-modal-wrapper,
      div.fixed.z-\[120\] {
        z-index: 999999 !important;
        background-color: rgba(4, 20, 15, 0.75) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
      }
      
      /* بطاقة المودال الرئيسية في الوضع النهاري - خلفية عاجية ملكية دافئة وإطار ذهبي براق */
      html:not(.dark) #global-niyyah-modal-wrapper div[class*="rounded-[2.8rem]"],
      html:not(.dark) #global-niyyah-modal-wrapper div[class*="rounded-[2.5rem]"],
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2.8rem]"],
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2.5rem]"] {
        background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 45%, #F8F4EA 100%) !important;
        background-color: #FFFFFF !important;
        border: 2px solid #f59e0b !important;
        border-radius: 2.2rem !important;
        box-shadow: 
          0 25px 60px -12px rgba(6, 78, 59, 0.28), 
          0 0 35px rgba(245, 158, 11, 0.22),
          inset 0 1px 3px rgba(255, 255, 255, 0.95) !important;
        opacity: 1 !important;
      }

      /* بطاقة المودال الرئيسية في الوضع الليلي - خلفية زمردية إسلامية عميقة وإطار ذهبي مشع */
      html.dark #global-niyyah-modal-wrapper div[class*="rounded-[2.8rem]"],
      html.dark #global-niyyah-modal-wrapper div[class*="rounded-[2.5rem]"],
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2.8rem]"],
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2.5rem]"] {
        background: linear-gradient(175deg, #09281f 0%, #051913 55%, #020c09 100%) !important;
        background-color: #09281f !important;
        border: 2px solid #f59e0b !important;
        border-radius: 2.2rem !important;
        box-shadow: 
          0 25px 60px -12px rgba(0, 0, 0, 0.92), 
          0 0 40px rgba(245, 158, 11, 0.35),
          inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
        opacity: 1 !important;
      }

      /* إخفاء الفقاعات الشفافة التي تشوش على بطاقة المودال */
      #global-niyyah-modal-wrapper div[class*="pointer-events-none"][class*="rounded-full"],
      div.fixed.z-\[120\] div[class*="pointer-events-none"][class*="rounded-full"] {
        display: none !important;
      }

      /* عنوان السحابة داخل المودال */
      html:not(.dark) #global-niyyah-modal-wrapper span[class*="text-emerald-950"],
      html:not(.dark) div.fixed.z-\[120\] span[class*="text-emerald-950"] {
        color: #064e3b !important;
        font-weight: 900 !important;
        font-size: 1.05rem !important;
        letter-spacing: 0.3px !important;
      }
      html.dark #global-niyyah-modal-wrapper span[class*="text-emerald-950"],
      html.dark div.fixed.z-\[120\] span[class*="text-emerald-950"] {
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 1.05rem !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
      }

      /* مربع العبارة والنية داخل المودال في الوضع النهاري - فخامة وتحفيز عالي */
      html:not(.dark) #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"],
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] {
        background: linear-gradient(180deg, #FFFDF8 0%, #FEF9EE 50%, #FAF2DE 100%) !important;
        border: 2px solid #f59e0b !important;
        border-radius: 1.6rem !important;
        box-shadow: 
          0 8px 24px -4px rgba(217, 119, 6, 0.15),
          inset 0 1px 3px rgba(255, 255, 255, 0.95) !important;
      }
      html:not(.dark) #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"] p,
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] p {
        color: #064e3b !important;
        font-weight: 900 !important;
        font-size: 1.3rem !important;
        line-height: 2.1 !important;
        text-shadow: none !important;
      }
      html:not(.dark) #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"] span,
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] span {
        color: #1e293b !important;
        font-weight: 800 !important;
        text-shadow: none !important;
      }

      /* مربع العبارة والنية داخل المودال في الوضع الليلي */
      html.dark #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"],
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2rem]"] {
        background: linear-gradient(180deg, #093023 0%, #051d15 100%) !important;
        border: 2px solid #f59e0b !important;
        border-radius: 1.6rem !important;
        box-shadow: 
          inset 0 2px 8px rgba(0, 0, 0, 0.6), 
          0 8px 24px rgba(245, 158, 11, 0.25) !important;
      }
      html.dark #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"] p,
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2rem]"] p {
        color: #fffdf5 !important;
        font-weight: 900 !important;
        font-size: 1.3rem !important;
        line-height: 2.1 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
      }
      html.dark #global-niyyah-modal-wrapper div[class*="rounded-[2rem]"] span,
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2rem]"] span {
        color: #e2e8f0 !important;
        font-weight: 800 !important;
      }

      /* وسم منارة زادي ✦ سحابة النية داخل المودال */
      html:not(.dark) #global-niyyah-modal-wrapper span[class*="font-mono"],
      html:not(.dark) div.fixed.z-\[120\] span[class*="font-mono"] {
        background-color: rgba(245, 158, 11, 0.2) !important;
        color: #78350f !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        font-weight: 900 !important;
      }
      html.dark #global-niyyah-modal-wrapper span[class*="font-mono"],
      html.dark div.fixed.z-\[120\] span[class*="font-mono"] {
        background-color: rgba(245, 158, 11, 0.25) !important;
        color: #fef08a !important;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
        font-weight: 900 !important;
      }

      /* 3. مؤشر سرعة الاستجابة والانتباه */
      #zadi-speed-indicator-overlay {
        background-color: #ffffff !important;
        border: 2.5px solid #059669 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
      }
      html:not(.dark) #zadi-speed-indicator-overlay h5 {
        color: #064e3b !important;
        font-weight: 900 !important;
        font-size: 1rem !important;
      }
      html:not(.dark) #zadi-speed-indicator-overlay div[class*="font-mono"] {
        color: #047857 !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zadi-speed-indicator-overlay p,
      html:not(.dark) #zadi-speed-indicator-overlay p span {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zadi-speed-indicator-overlay div[class*="pt-2"] {
        color: #065f46 !important;
        font-weight: 900 !important;
      }
      html.dark #zadi-speed-indicator-overlay {
        background: linear-gradient(145deg, #062e22 0%, #021a13 100%) !important;
        border: 2.5px solid #34d399 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
      }
      html.dark #zadi-speed-indicator-overlay h5 {
        color: #fef08a !important;
        font-weight: 900 !important;
        font-size: 1rem !important;
      }
      html.dark #zadi-speed-indicator-overlay div[class*="font-mono"] {
        color: #a7f3d0 !important;
        font-weight: 900 !important;
      }
      html.dark #zadi-speed-indicator-overlay p,
      html.dark #zadi-speed-indicator-overlay p span {
        color: #ffffff !important;
        font-weight: 800 !important;
      }
      html.dark #zadi-speed-indicator-overlay div[class*="pt-2"] {
        color: #fef08a !important;
        font-weight: 900 !important;
      }

      /* 4. المربع الذي يظهر عند الانتهاء من دعاء أو إنجاز */
      html:not(.dark) #azkar-completion-toast-box,
      html:not(.dark) div[id="azkar-completion-toast-box"] {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border: 2.5px solid #059669 !important;
        box-shadow: 0 16px 40px -4px rgba(5, 150, 105, 0.3) !important;
        color: #064e3b !important;
      }
      html:not(.dark) #azkar-completion-toast-box h5 {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #azkar-completion-toast-box p {
        color: #334155 !important;
        font-weight: 800 !important;
      }
      html.dark #azkar-completion-toast-box,
      html.dark div[id="azkar-completion-toast-box"] {
        background: linear-gradient(135deg, #064e3b 0%, #022c22 100%) !important;
        border: 2px solid #f59e0b !important;
        box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.35) !important;
        color: #fffdf5 !important;
      }
      html.dark #azkar-completion-toast-box h5 {
        color: #fef08a !important;
        font-weight: 900 !important;
      }
      html.dark #azkar-completion-toast-box p {
        color: #ffffff !important;
        font-weight: 700 !important;
      }
      /* توست الإنجاز العام ZadiGlobalToastHost */
      #zadi-global-toast-host div[role="alert"] {
        border-width: 2px !important;
        border-style: solid !important;
      }
      html:not(.dark) #zadi-global-toast-host div[role="alert"] {
        background-color: #ffffff !important;
        border-color: #059669 !important;
        box-shadow: 0 16px 40px -4px rgba(5, 150, 105, 0.3) !important;
      }
      html:not(.dark) #zadi-global-toast-host div[role="alert"] p {
        color: #064e3b !important;
        text-shadow: none !important;
        font-weight: 900 !important;
      }
      html:not(.dark) #zadi-global-toast-host div[role="alert"] button {
        color: #064e3b !important;
      }
      html.dark #zadi-global-toast-host div[role="alert"] {
        background-color: #062b20 !important;
        border-color: #34d399 !important;
        box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.8), 0 0 25px rgba(52, 211, 153, 0.4) !important;
      }
      html.dark #zadi-global-toast-host div[role="alert"] p {
        color: #ffffff !important;
        font-weight: 800 !important;
      }

      /* 5. كرت ونافذة تحميل تجديد النية */
      #zadi-niyyah-modal-overlay > div {
        background-color: #faf8f5 !important;
        border: 2.5px solid #d97706 !important;
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5) !important;
      }
      #zadi-niyyah-modal-overlay span,
      #zadi-niyyah-modal-overlay button,
      #zadi-niyyah-modal-overlay label {
        font-weight: 800 !important;
      }
    
      /* =========================================================================
         إصلاح تباين وألوان قالب التواصل والمقترحات الأزرق (Contact & Suggestions Hero Banner)
         ========================================================================= */
      #contact-hero-banner,
      div[id="contact-hero-banner"],
      #contact-suggestions-dashboard > div:first-child[class*="from-indigo-900"],
      div[class*="from-indigo-900"][class*="via-indigo-800"] {
        background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 50%, #0f172a 100%) !important;
        border: 2px solid rgba(129, 140, 248, 0.5) !important;
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
      }

      /* شارة التطبيق غير الربحي أعلى القالب */
      html:not(.dark) #contact-hero-banner div[class*="rounded-full"],
      html.dark #contact-hero-banner div[class*="rounded-full"],
      #contact-hero-banner div[class*="rounded-full"] {
        background: rgba(254, 240, 138, 0.15) !important;
        border: 1px solid rgba(253, 224, 71, 0.5) !important;
      }

      html:not(.dark) #contact-hero-banner div[class*="rounded-full"] span,
      html.dark #contact-hero-banner div[class*="rounded-full"] span,
      #contact-hero-banner div[class*="rounded-full"] span {
        color: #fef08a !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }

      html:not(.dark) #contact-hero-banner div[class*="rounded-full"] svg,
      html.dark #contact-hero-banner div[class*="rounded-full"] svg,
      #contact-hero-banner div[class*="rounded-full"] svg {
        color: #fde047 !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
      }

      /* العنوان الرئيسي: شاركنا الأثر • كن عوناً وزاداً للخير */
      html:not(.dark) #contact-hero-banner h1,
      html.dark #contact-hero-banner h1,
      #contact-hero-banner h1,
      #contact-hero-title {
        color: #00ffbc !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        letter-spacing: -0.02em !important;
      }

      /* الفقرة النصية التعريفية: منارة زادي مشروع وقفي تطوعي... */
      html:not(.dark) #contact-hero-banner p,
      html.dark #contact-hero-banner p,
      #contact-hero-banner p,
      #contact-hero-desc {
        color: #f1f5f9 !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        line-height: 1.85 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
      }

      /* زر تليجرام مباشر */
      #contact-hero-banner button[class*="bg-sky-600"],
      #contact-hero-banner #btn-contact-telegram {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
        border: 1.5px solid #7dd3fc !important;
        box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45) !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-sky-600"] span,
      html.dark #contact-hero-banner button[class*="bg-sky-600"] span,
      html:not(.dark) #contact-hero-banner #btn-contact-telegram span,
      html.dark #contact-hero-banner #btn-contact-telegram span {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-sky-600"] svg,
      html.dark #contact-hero-banner button[class*="bg-sky-600"] svg,
      html:not(.dark) #contact-hero-banner #btn-contact-telegram svg,
      html.dark #contact-hero-banner #btn-contact-telegram svg {
        color: #e0f2fe !important;
      }

      /* زر البريد الإلكتروني manaratzadi@gmail.com */
      #contact-hero-banner button[class*="bg-white/10"],
      #contact-hero-banner #btn-contact-email {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-white/10"] span,
      html.dark #contact-hero-banner button[class*="bg-white/10"] span,
      html:not(.dark) #contact-hero-banner #btn-contact-email span,
      html.dark #contact-hero-banner #btn-contact-email span {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-white/10"] svg,
      html.dark #contact-hero-banner button[class*="bg-white/10"] svg,
      html:not(.dark) #contact-hero-banner #btn-contact-email svg,
      html.dark #contact-hero-banner #btn-contact-email svg {
        color: #fde047 !important;
      }

      /* زر نشر التطبيق */
      #contact-hero-banner button[class*="bg-amber-500"],
      #contact-hero-banner #btn-contact-share {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        border: 1.5px solid #fef08a !important;
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5) !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-amber-500"] span,
      html.dark #contact-hero-banner button[class*="bg-amber-500"] span,
      html:not(.dark) #contact-hero-banner #btn-contact-share span,
      html.dark #contact-hero-banner #btn-contact-share span {
        color: #0f172a !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      html:not(.dark) #contact-hero-banner button[class*="bg-amber-500"] svg,
      html.dark #contact-hero-banner button[class*="bg-amber-500"] svg,
      html:not(.dark) #contact-hero-banner #btn-contact-share svg,
      html.dark #contact-hero-banner #btn-contact-share svg {
        color: #0f172a !important;
      }

    
      /* =========================================================================
         المرحلة 1: تصليح تباين شريط التاريخ وبطاقة الصلاة القادمة بالرئيسية
         (Step 1: Scoped Contrast Fix for Home Date Ribbon & Next Prayer Details)
         ========================================================================= */

      /* 1. شريط التاريخ والتقويم التفاعلي (منع ظهور الخط الأبيض على الخلفية الفاتحة) */
      html:not(.dark) #home-header-date-badge,
      html:not(.dark) .home-date-ribbon {
        background: #FAF8F2 !important;
        border: 1px solid rgba(16, 120, 80, 0.28) !important;
      }

      html:not(.dark) #home-header-date-badge .home-date-single-line,
      html:not(.dark) #home-header-date-badge .home-date-single-line span,
      html:not(.dark) .home-date-ribbon .home-date-single-line,
      html:not(.dark) .home-date-ribbon .home-date-single-line span {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      html:not(.dark) #home-header-date-badge .home-date-single-line svg,
      html:not(.dark) .home-date-ribbon .home-date-single-line svg {
        color: #047857 !important;
      }

      html.dark #home-header-date-badge .home-date-single-line span,
      html.dark .home-date-ribbon .home-date-single-line span {
        color: #fef08a !important;
        font-weight: 900 !important;
      }

      html.dark #home-header-date-badge .home-date-single-line svg,
      html.dark .home-date-ribbon .home-date-single-line svg {
        color: #fde047 !important;
      }

      /* 2. صندوق وقت الأذان (وقت الأذان 11:24 ص) داخل بطاقة الصلاة القادمة */
      html:not(.dark) div[class*="bg-[#F3EEDF]"],
      html:not(.dark) div[class*="bg-[#F4EFE0]"] {
        background: #F4EFE0 !important;
        border: 1px solid rgba(16, 120, 80, 0.25) !important;
      }

      html:not(.dark) div[class*="bg-[#F3EEDF]"] span,
      html:not(.dark) div[class*="bg-[#F4EFE0]"] span {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      /* 3. كبسولة مؤقت العد التنازلي للأذان (01:51:32) */
      html:not(.dark) span[class*="bg-amber-500/15"],
      html:not(.dark) span[class*="bg-amber-500/20"] {
        background-color: #FEF3C7 !important;
        color: #92400e !important;
        font-weight: 900 !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        text-shadow: none !important;
      }

      html.dark span[class*="bg-amber-500/15"],
      html.dark span[class*="bg-amber-500/20"] {
        color: #fbbf24 !important;
        font-weight: 900 !important;
      }

      /* 4. شارة سحابة النية المصغرة بجانب عمارة اليوم */
      html:not(.dark) div[class*="rounded-"][class*="bg-[#F3EEDF]"] span,
      html:not(.dark) span[class*="bg-amber-100"] {
        color: #92400e !important;
        font-weight: 800 !important;
      }

    
      /* =========================================================================
         المرحلة 2: تصليح تباين كبسولات الطقس وترويسة المساعد وسحابة النية
         (Step 2: Scoped Contrast Fix for Prayer Weather Capsules & Assistant Header)
         ========================================================================= */

      /* 1. كبسولات الطقس في كروت مواقيت الصلاة (الصورة 1: الفجر، الظهر، العصر) */
      div[title*="الطقس المتوقع"],
      html:not(.dark) div[title*="الطقس المتوقع"],
      html.dark div[title*="الطقس المتوقع"] {
        background: linear-gradient(135deg, #064e3b 0%, #04382a 100%) !important;
        border: 1px solid rgba(254, 240, 138, 0.45) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
      }

      .prayer-weather-capsule,
      div[title*="الطقس المتوقع"],
      html:not(.dark) .prayer-weather-capsule,
      html:not(.dark) div[title*="الطقس المتوقع"],
      html.dark .prayer-weather-capsule,
      html.dark div[title*="الطقس المتوقع"] {
        background: linear-gradient(135deg, #064e3b 0%, #04382a 100%) !important;
        border: 1.5px solid rgba(254, 240, 138, 0.5) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
      }

      .prayer-weather-capsule span,
      .prayer-weather-capsule *,
      div[title*="الطقس المتوقع"] span,
      div[title*="الطقس المتوقع"] *,
      html:not(.dark) .prayer-weather-capsule span,
      html:not(.dark) .prayer-weather-capsule *,
      html:not(.dark) div[title*="الطقس المتوقع"] span,
      html:not(.dark) div[title*="الطقس المتوقع"] *,
      html.dark .prayer-weather-capsule span,
      html.dark .prayer-weather-capsule *,
      html.dark div[title*="الطقس المتوقع"] span,
      html.dark div[title*="الطقس المتوقع"] * {
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;
        font-weight: 800 !important;
        text-shadow: none !important; /* إزالة تأثير الـ 3D والظلال المتداخلة تماماً */
      }

      div[title*="الطقس المتوقع"] svg,
      html:not(.dark) div[title*="الطقس المتوقع"] svg,
      html.dark div[title*="الطقس المتوقع"] svg {
        color: #FDE047 !important; /* أيقونات شمس وقمر ذهبية ساطعة */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
      }

      /* 2. ترويسة المساعد اليومي الخضراء الداكنة (الصورة 2) */
      #spiritual-chat-card > div:first-child,
      div:has(> #spiritual-chat-card) > div:first-child {
        background: linear-gradient(135deg, #064e3b 0%, #042d22 100%) !important;
        border-bottom: 1.5px solid rgba(253, 224, 71, 0.35) !important;
      }

      #spiritual-chat-card > div:first-child h3,
      #spiritual-chat-card > div:first-child h3 span,
      html:not(.dark) #spiritual-chat-card > div:first-child h3,
      html:not(.dark) #spiritual-chat-card > div:first-child h3 span,
      html.dark #spiritual-chat-card > div:first-child h3,
      html.dark #spiritual-chat-card > div:first-child h3 span {
        color: #FFFFFF !important; /* عنوان ناصع أبيض نقي */
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
      }

      #spiritual-chat-card > div:first-child span:not(h3 *),
      html:not(.dark) #spiritual-chat-card > div:first-child span:not(h3 *),
      html.dark #spiritual-chat-card > div:first-child span:not(h3 *) {
        color: #FEF08A !important; /* نص توجيه إيماني وتخطيط ذكي ذهبي ساطع */
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
      }

      #spiritual-chat-card > div:first-child h3 svg,
      html:not(.dark) #spiritual-chat-card > div:first-child h3 svg,
      html.dark #spiritual-chat-card > div:first-child h3 svg {
        color: #FDE047 !important;
      }

      /* زر محادثة جديدة في ترويسة المساعد */
      #spiritual-chat-card > div:first-child button {
        background: rgba(6, 78, 59, 0.7) !important;
        border: 1px solid rgba(254, 240, 138, 0.3) !important;
      }

      #spiritual-chat-card > div:first-child button span,
      #spiritual-chat-card > div:first-child button svg {
        color: #FEF08A !important;
      }

      /* 3. نصوص بطاقة سحابة النية وزر التأمل (الصورة 3) */
      div[title*="تأمل سحابة تجديد النية"] span[class*="text-emerald-950"],
      html:not(.dark) div[title*="تأمل سحابة تجديد النية"] span[class*="text-emerald-950"] {
        color: #064e3b !important;
        font-weight: 900 !important;
      }

      div[title*="تأمل سحابة تجديد النية"] div[class*="bg-emerald-700"] span,
      div[title*="تأمل سحابة تجديد النية"] div[class*="bg-emerald-800"] span {
        color: #FFFFFF !important;
        font-weight: 800 !important;
      }

    
      /* =========================================================================
         Focus Mode Selected Element Styles
         ========================================================================= */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#zad-al-tamanina-tab:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > p:nth-of-type(1),
      #zad-al-tamanina-tab > div:first-child p,
      #zad-al-tamanina-tab > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > p:nth-of-type(1) {
        color: #93ff00 !important;
      }

      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#zad-al-tamanina-tab:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button:nth-of-type(1),
      #zad-al-tamanina-tab > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button:nth-of-type(1),
      #zad-al-tamanina-tab > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button:nth-of-type(1) * {
        color: #ffffff !important;
      }

    
      /* Focus Mode: Contact Hero Title */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(3) > div#contact-suggestions-dashboard:nth-of-type(1) > div#contact-hero-banner:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > h1#contact-hero-title:nth-of-type(1),
      #contact-hero-title,
      #contact-hero-banner h1 {
        color: #00ffbc !important;
      }

    
      /* Focus Mode: Quran Selected Button Span */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(3) > button:nth-of-type(2) > span:nth-of-type(1),
      #quran-root-container > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(3) > button:nth-of-type(2) > span:nth-of-type(1),
      #quran-root-container > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(3) > button:nth-of-type(2) span {
        color: #fdff00 !important;
      }

    
      /* =========================================================================
         إصلاح تباين كافة البطاقات والبانرات الداكنة في الوضع النهاري (أقل استهلاك توكن)
         (Permanent Scoped High-Contrast for all Dark Hero Cards in Light Mode)
         ========================================================================= */

      /* 1. العناوين داخل البانرات الداكنة (مرفأ الرضا، زاد الطمأنينة، بداية النضوج، أهدافي وجدولي) */
      html:not(.dark) div[class*="from-emerald-950"] h1,
      html:not(.dark) div[class*="from-emerald-950"] h2,
      html:not(.dark) div[class*="from-emerald-950"] h3,
      html:not(.dark) div[class*="from-emerald-900"] h1,
      html:not(.dark) div[class*="from-emerald-900"] h2,
      html:not(.dark) div[class*="from-emerald-900"] h3,
      html:not(.dark) div[class*="from-rose-900"] h1,
      html:not(.dark) div[class*="from-rose-900"] h2,
      html:not(.dark) div[class*="from-rose-900"] h3,
      html:not(.dark) div[class*="from-[#12241a]"] h1,
      html:not(.dark) div[class*="from-[#12241a]"] h2,
      html:not(.dark) div[class*="from-[#12241a]"] h3,
      html:not(.dark) #marfa-alrida-module > div:first-child h2,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child h2 {
        color: #fef08a !important; /* عناوين ذهبية متوهجة نقية وعالية الوضوح */
        font-weight: 900 !important;
      }

      /* 2. الفقرات والشروحات النصية داخل البانرات الداكنة */
      html:not(.dark) div[class*="from-emerald-950"] p,
      html:not(.dark) div[class*="from-emerald-900"] p,
      html:not(.dark) div[class*="from-rose-900"] p,
      html:not(.dark) div[class*="from-[#12241a]"] p,
      html:not(.dark) #marfa-alrida-module > div:first-child p,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child p:not([style*="93ff00"]),
      html:not(.dark) div[class*="text-amber-50"][class*="bg-gradient-"] p,
      html:not(.dark) div[class*="text-white"][class*="bg-gradient-"] p {
        color: #f1f5f9 !important; /* نصوص بيضاء كريمية واضحة ومريحة */
        font-weight: 700 !important;
      }

      /* 3. العبارات المميزة وكلمات التوكيد داخل البانرات الداكنة */
      html:not(.dark) div[class*="from-emerald-950"] strong,
      html:not(.dark) div[class*="from-emerald-900"] strong,
      html:not(.dark) div[class*="from-[#12241a]"] strong,
      html:not(.dark) #marfa-alrida-module > div:first-child strong,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child strong {
        color: #fde047 !important; /* عبارات مميزة ذهبية */
        font-weight: 900 !important;
      }

    
      /* =========================================================================
         حماية وتثبيت نصوص وعناوين كافة البانرات الداكنة في الوضع النهاري
         (Universal Bright High-Contrast for all Dark Hero Cards in Light Mode)
         ========================================================================= */
      html:not(.dark) div[class*="from-emerald-"] h1,
      html:not(.dark) div[class*="from-emerald-"] h2,
      html:not(.dark) div[class*="from-emerald-"] h3,
      html:not(.dark) div[class*="from-rose-"] h1,
      html:not(.dark) div[class*="from-rose-"] h2,
      html:not(.dark) div[class*="from-rose-"] h3,
      html:not(.dark) div[class*="from-[#"] h1,
      html:not(.dark) div[class*="from-[#"] h2,
      html:not(.dark) div[class*="from-[#"] h3,
      html:not(.dark) #marfa-alrida-module > div:first-child h2,
      html:not(.dark) #marfa-alrida-module > div:first-child h3,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child h2 {
        color: #fef08a !important; /* عناوين ذهبية متوهجة فائقة التباين والوضوح */
        font-weight: 900 !important;
      }

      html:not(.dark) div[class*="from-emerald-"] p:not([class*="bg-white"] *):not([class*="bg-stone-50"] *):not(button *),
      html:not(.dark) div[class*="from-rose-"] p:not([class*="bg-white"] *):not([class*="bg-stone-50"] *):not(button *):not([style*="93ff00"]),
      html:not(.dark) div[class*="from-[#"] p:not([class*="bg-white"] *):not([class*="bg-stone-50"] *):not(button *),
      html:not(.dark) #marfa-alrida-module > div:first-child p,
      html:not(.dark) #zad-al-tamanina-tab > div:first-child p:not([class*="bg-white"] *):not([style*="93ff00"]),
      html:not(.dark) div[class*="from-[#12241a]"] div[class*="text-[#A6C5AF]"] {
        color: #f1f5f9 !important; /* نصوص بيضاء نقية ساطعة وسهلة القراءة */
        font-weight: 700 !important;
      }

      html:not(.dark) div[class*="from-"] strong,
      html:not(.dark) #marfa-alrida-module strong {
        color: #fde047 !important; /* كلمات التوكيد الذهبية */
        font-weight: 900 !important;
      }

    
      /* Focus Mode: Quran Resume Header Elements */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > h2:nth-of-type(1) > span:nth-of-type(1),
      #quran-root-container div[class*="from-emerald-"] h2 > span {
        color: #000000 !important;
      }

      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > h2:nth-of-type(1) > svg:nth-of-type(1),
      #quran-root-container div[class*="from-emerald-"] h2 > svg {
        color: #95ff00 !important;
        background-color: #009a2a !important;
      }

      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > span:nth-of-type(1),
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > span:nth-of-type(1),
      #quran-root-container div[class*="from-emerald-"] div:has(> h2) > span {
        color: #690909 !important;
      }

    
      /* ========================================================
         تحسين تباين كروت ونوافذ عامل مساعد ومنبهات الصلاة
         High-Contrast & Clean Typography for Assistant & Prayer Alerts
         ======================================================== */
      div.fixed.z-50 div[class*="max-h-"] h2,
      div.fixed.z-50 div[class*="max-h-"] h3,
      div.fixed.z-50 div[class*="max-h-"] h4 {
        text-shadow: none !important;
      }
      html:not(.dark) div.fixed.z-50 div[class*="max-h-"] {
        background-color: #ffffff !important;
        color: #0f172a !important;
      }
      html:not(.dark) div.fixed.z-50 div[class*="max-h-"] h3,
      html:not(.dark) div.fixed.z-50 div[class*="max-h-"] h4 {
        color: #064e3b !important;
      }
      html:not(.dark) div.fixed.z-50 div[class*="max-h-"] p {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        color: #334155 !important;
      }
      html:not(.dark) div.fixed.z-50 div[class*="max-h-"] p[class*="font-mono"] {
        background: transparent !important;
        border: none !important;
      }
      html.dark div.fixed.z-50 div[class*="max-h-"] {
        background-color: #091813 !important;
        border-color: rgba(52, 211, 153, 0.25) !important;
        color: #f8fafc !important;
      }
      html.dark div.fixed.z-50 div[class*="max-h-"] h3,
      html.dark div.fixed.z-50 div[class*="max-h-"] h4 {
        color: #fef3c7 !important;
      }
      html.dark div.fixed.z-50 div[class*="max-h-"] p {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        color: #cbd5e1 !important;
      }

      /* ========================================================
         بطاقة تجديد النية الموسعة: وضوح نصوص العبارة والوصف 100%
         ======================================================== */
      html:not(.dark) div[class*="rounded-[2.8rem]"] div[class*="rounded-[2rem]"],
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] {
        background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%) !important;
        border: 2px solid #f59e0b !important;
      }
      html:not(.dark) div[class*="rounded-[2.8rem]"] div[class*="rounded-[2rem]"] p.font-serif,
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] p.font-serif {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }
      html:not(.dark) div[class*="rounded-[2.8rem]"] div[class*="rounded-[2rem]"] span,
      html:not(.dark) div.fixed.z-\[120\] div[class*="rounded-[2rem]"] span {
        color: #1e293b !important;
        text-shadow: none !important;
      }
      html.dark div[class*="rounded-[2.8rem]"] div[class*="rounded-[2rem]"] p.font-serif,
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2rem]"] p.font-serif {
        color: #fef3c7 !important;
      }
      html.dark div[class*="rounded-[2.8rem]"] div[class*="rounded-[2rem]"] span,
      html.dark div.fixed.z-\[120\] div[class*="rounded-[2rem]"] span {
        color: #f1f5f9 !important;
      }

      /* ========================================================
         صندوق عبارة تجديد النية في جميع التبويبات (الرئيسية وغيرها)
         خلفية عاجية دافئة وخط أميري عريض داكن واضح وضوح الشمس
         ======================================================== */
      html:not(.dark) div[class*="rounded-[2rem]"] {
        background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%) !important;
        border: 2px solid #f59e0b !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
      }
      html:not(.dark) div[class*="rounded-[2rem]"] p.font-serif {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }
      html:not(.dark) div[class*="rounded-[2rem]"] span {
        color: #1e293b !important;
        text-shadow: none !important;
      }
      html.dark div[class*="rounded-[2rem]"] {
        background: linear-gradient(180deg, #07261c 0%, #031711 100%) !important;
        border: 2px solid #f59e0b !important;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(245, 158, 11, 0.2) !important;
      }
      html.dark div[class*="rounded-[2rem]"] p.font-serif {
        color: #fef3c7 !important;
        font-weight: 900 !important;
      }
      html.dark div[class*="rounded-[2rem]"] span {
        color: #cbd5e1 !important;
      }

      /* ========================================================
         إصلاح الوضع الليلي للمصحف الشريف (Dark Mode Mushaf Precision Fix)
         وضوح فائق ومريح للعين 100% دون المساس بالوضع النهاري إطلاقاً
         ======================================================== */
      /* 1. خلفية شاشة القراءة الكاملة عند تفعيل الوضع الليلي */
      html.dark body.quran-immersive,
      html.dark div.fixed.inset-0.z-40.overflow-y-auto {
        background: #04120d !important;
        background-color: #04120d !important;
        color: #fef3c7 !important;
      }

      /* 2. شريط التنقل العلوي للمصحف في الوضع الليلي */
      html.dark #mushaf-top-navigation-bar,
      html.dark div.fixed.top-0.left-0.right-0.z-50[class*="backdrop-blur"] {
        background: rgba(4, 18, 13, 0.96) !important;
        background-color: rgba(4, 18, 13, 0.96) !important;
        border-bottom: 1px solid rgba(52, 211, 153, 0.25) !important;
        color: #fef3c7 !important;
      }
      html.dark #mushaf-top-navigation-bar button,
      html.dark #mushaf-top-navigation-bar button span,
      html.dark div.fixed.top-0.left-0.right-0.z-50 button,
      html.dark div.fixed.top-0.left-0.right-0.z-50 button span {
        color: #fef3c7 !important;
      }
      html.dark #mushaf-top-navigation-bar button:hover,
      html.dark div.fixed.top-0.left-0.right-0.z-50 button:hover {
        background: rgba(16, 185, 129, 0.2) !important;
        color: #ffffff !important;
      }

      /* 3. بطاقة صفحة المصحف في الوضع الليلي (Dark Mushaf Page Card) */
      html.dark div[class*="max-w-[660px]"][class*="rounded-"] {
        background: #071c14 !important;
        background-color: #071c14 !important;
        border-color: rgba(245, 158, 11, 0.3) !important;
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 78, 59, 0.35) !important;
      }

      /* 4. إطار الزخرفة الدقيق لصفحة المصحف */
      html.dark div[class*="max-w-[660px]"] div[class*="border-dashed"] {
        border-color: rgba(245, 158, 11, 0.25) !important;
      }

      /* 5. شارة اسم السورة وعدد الآيات في الوضع الليلي */
      html.dark div[class*="max-w-[660px]"] div.relative.inline-flex.rounded-full {
        background: #04140e !important;
        background-color: #04140e !important;
        border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
      }
      html.dark div[class*="max-w-[660px]"] div.relative.inline-flex.rounded-full span {
        color: #fef3c7 !important;
      }
      html.dark div[class*="max-w-[660px]"] div.relative.inline-flex.rounded-full span.font-serif {
        color: #fef3c7 !important;
        font-weight: 900 !important;
      }
      html.dark div[class*="max-w-[660px]"] div.relative.inline-flex.rounded-full span[class*="opacity-60"] {
        color: #6ee7b7 !important;
        background: rgba(16, 185, 129, 0.2) !important;
        opacity: 1 !important;
      }

      /* 6. البسملة الشريفة في الوضع الليلي */
      html.dark div[class*="max-w-[660px]"] div.font-serif[class*="text-center"] {
        color: #fef3c7 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      }

      /* 7. نص آيات القرآن الكريم في الوضع الليلي: أبيض عاجي ذهبي ناصع ومريح للعين 100% */
      html.dark div[class*="max-w-[660px]"] div[class*="select-text"],
      html.dark div[class*="max-w-[660px]"] [id^="ayah-container-"],
      html.dark div[class*="max-w-[660px]"] [id^="ayah-container-"] > span,
      html.dark div[class*="max-w-[660px]"] [id^="ayah-container-"] span.cursor-pointer,
      html.dark div[class*="max-w-[660px]"] [id^="ayah-container-"] span[class*="cursor-pointer"] {
        color: #fffdf5 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
      }

      /* 8. أقواس أرقام الآيات ﴿١﴾ باللون الذهبي اللامع */
      html.dark div[class*="max-w-[660px]"] [id^="ayah-container-"] > span:last-child {
        color: #fbbf24 !important;
        font-weight: 900 !important;
        text-shadow: 0 0 6px rgba(251, 191, 36, 0.3) !important;
      }

      /* 9. شريط التنقل السفلي للمصحف في الوضع الليلي */
      html.dark #mushaf-bottom-navigation-bar {
        background: rgba(4, 18, 13, 0.96) !important;
        background-color: rgba(4, 18, 13, 0.96) !important;
        border-top: 1px solid rgba(52, 211, 153, 0.25) !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8) !important;
      }
      html.dark #mushaf-bottom-navigation-bar button {
        background: rgba(13, 42, 32, 0.85) !important;
        border: 1px solid rgba(52, 211, 153, 0.3) !important;
        color: #fef3c7 !important;
      }
      html.dark #mushaf-bottom-navigation-bar button:hover {
        background: rgba(22, 65, 50, 0.95) !important;
        border-color: rgba(245, 158, 11, 0.5) !important;
        color: #ffffff !important;
      }
      html.dark #mushaf-bottom-navigation-bar button span {
        color: #fef3c7 !important;
        font-weight: 800 !important;
      }
      html.dark #mushaf-bottom-navigation-bar button:disabled {
        opacity: 0.35 !important;
      }

      /* Focus Mode styles applied to home-header-date-badge date spans */
      #home-header-date-badge > div:nth-of-type(2) > span:nth-of-type(1),
      #home-header-date-badge .home-date-single-line > span:nth-of-type(1),
      div#root > div > div > main > div > div > div > div#home-header-date-badge > div:nth-of-type(2) > span:nth-of-type(1) {
        color: #007233 !important;
      }
      #home-header-date-badge > div:nth-of-type(2) > span:nth-of-type(2),
      #home-header-date-badge .home-date-single-line > span:nth-of-type(2),
      div#root > div > div > main > div > div > div > div#home-header-date-badge > div:nth-of-type(2) > span:nth-of-type(2) {
        color: #531616 !important;
      }

      /* Focus Mode: Azkar section progress card text color */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(3) > div#azkar-section:nth-of-type(1) > div#progress-card:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
      #azkar-section #progress-card > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1) {
        color: #c19c00 !important;
      }

      /* Focus Mode: Azkar section progress percentage color */
      div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(3) > div#azkar-section:nth-of-type(1) > div#progress-card:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(2) > span:nth-of-type(1),
      #azkar-section #progress-card > div:nth-of-type(1) > div:nth-of-type(2) > span:nth-of-type(1) {
        color: #00c793 !important;
      }

      /* ========================================================
         بطاقة مؤقت ومواقيت الصلاة الرئيسية (Hero Card)
         خلفية زمردية إسلامية داكنة فخمة وعالية التباين تمنع الشفافية
         ======================================================== */
      #prayer-times-hero-card,
      #prayer-times-widget > div:nth-child(3),
      #prayer-times-widget div[class*="border-b-4 border-b-amber-400"] {
        background: linear-gradient(145deg, #072a20 0%, #0d3b2e 50%, #041711 100%) !important;
        background-color: #072a20 !important;
        border: 1.5px solid rgba(52, 211, 153, 0.4) !important;
        border-bottom: 4px solid #f59e0b !important;
        box-shadow: 0 20px 50px -10px rgba(4, 25, 17, 0.6), 0 0 30px rgba(16, 185, 129, 0.2) !important;
        color: #ffffff !important;
        opacity: 1 !important;
      }

      /* نص الموقع (الخبر، السعودية) */
      #prayer-times-hero-card div:has(> svg):first-child span,
      #prayer-times-widget div[class*="border-b-amber-400"] div:has(> svg):first-child span {
        color: #fde047 !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
      }
      #prayer-times-hero-card svg[class*="text-amber"],
      #prayer-times-widget div[class*="border-b-amber-400"] svg[class*="text-amber"] {
        color: #facc15 !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) !important;
      }

      /* نص التاريخ الهجري والميلادي */
      #prayer-times-hero-card div[class*="border-b"] span,
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="border-b"] span {
        color: #fef3c7 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
      }

      /* عنوان "الصلاة القادمة:" */
      #prayer-times-hero-card div:has(> span:contains("الصلاة القادمة")),
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="text-amber-200/90"] {
        color: #a7f3d0 !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
      }
      #prayer-times-hero-card span[class*="bg-amber-400"],
      #prayer-times-widget div[class*="border-b-amber-400"] span[class*="bg-amber-400"] {
        background-color: #f59e0b !important;
        color: #064e3b !important;
        font-weight: 900 !important;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
      }

      /* أرقام العد التنازلي الكبيرة (03 : 09 : 45) - ذهبي وهاج عالي التباين */
      #prayer-times-hero-card div[class*="font-mono"][class*="text-amber-300"],
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="font-mono"] {
        color: #fde047 !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(250, 204, 21, 0.35) !important;
      }

      /* كبسولة "نحن الآن في وقت صلاة: الظهر (11:24)" */
      #prayer-times-hero-card div[class*="bg-emerald-950/50"],
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="bg-emerald-950/50"] {
        background-color: rgba(6, 40, 30, 0.85) !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
      }
      #prayer-times-hero-card div[class*="bg-emerald-950/50"] span,
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="bg-emerald-950/50"] span {
        color: #ffffff !important;
        font-weight: 800 !important;
      }
      #prayer-times-hero-card div[class*="bg-emerald-950/50"] span[class*="text-amber-300"],
      #prayer-times-widget div[class*="border-b-amber-400"] div[class*="bg-emerald-950/50"] span[class*="text-amber-300"] {
        color: #fde047 !important;
        font-weight: 900 !important;
      }

      /* =========================================================================
         بطاقة متابعة القراءة (Quran Resume Card) - وضع نهاري وليلي فائق التباين
         ========================================================================= */
      #quran-resume-title,
      #quran-resume-title *,
      #quran-resume-title span {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      html.dark #quran-resume-title,
      html.dark #quran-resume-title *,
      html.dark #quran-resume-title span {
        color: #fde047 !important;
        font-weight: 900 !important;
      }
      #quran-resume-subtitle,
      #quran-resume-subtitle *,
      #quran-resume-subtitle span {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }
      html.dark #quran-resume-subtitle,
      html.dark #quran-resume-subtitle *,
      html.dark #quran-resume-subtitle span {
        color: #fde047 !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
      }
      #quran-resume-button,
      #quran-resume-button *,
      #quran-resume-button span,
      #quran-resume-button svg {
        color: #064e3b !important;
        font-weight: 900 !important;
      }
      #quran-resume-badge {
        color: #064e3b !important;
        border-color: rgba(6, 78, 59, 0.4) !important;
        background-color: rgba(6, 78, 59, 0.12) !important;
        font-weight: 800 !important;
      }
      html.dark #quran-resume-badge {
        color: #fde047 !important;
        border-color: rgba(245, 158, 11, 0.4) !important;
        background-color: rgba(6, 78, 59, 0.6) !important;
      }
      /* Focus Mode rules removed to prevent unintended style leaks */

      /* =========================================================================
         بطاقتا متابعة القراءة ومتابعة الاستماع - تباين فائق وألوان واضحة ومريحة للعين
         (Quran Reading & Listening Resume Cards - High Contrast & Optimal Typography)
         ========================================================================= */

      /* ----- 1. الوضع النهاري (Light Mode) ----- */
      html:not(.dark) #quran-reading-resume-card,
      html:not(.dark) #quran-listening-resume-card {
        background-color: #fbf9f2 !important;
        background: linear-gradient(135deg, #ffffff 0%, #fefcf5 50%, #f5efe1 100%) !important;
        border: 1.5px solid rgba(180, 140, 60, 0.45) !important;
        box-shadow: 0 4px 18px -2px rgba(6, 78, 59, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
      }

      /* أيقونة القراءة في الوضع النهاري */
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-icon {
        background-color: #fef3c7 !important;
        border: 1.5px solid #fde047 !important;
        color: #854d0e !important;
      }

      /* شارة متابعة القراءة في الوضع النهاري */
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-badge {
        background-color: #ecfdf5 !important;
        border: 1px solid rgba(16, 185, 129, 0.4) !important;
        color: #065f46 !important;
        font-weight: 800 !important;
      }

      /* نسبة الإنجاز في الوضع النهاري */
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-progress {
        color: #92400e !important;
        font-weight: 800 !important;
      }

      /* عنوان السورة والآية والصفحة في الوضع النهاري */
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-title {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      /* أزرار متابعة القراءة في الوضع النهاري */
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-btn-primary {
        background: linear-gradient(135deg, #065f46 0%, #064e3b 100%) !important;
        color: #ffffff !important;
        border: 1px solid #04382c !important;
        box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25) !important;
      }
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-btn-primary *,
      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-btn-primary svg {
        color: #ffffff !important;
      }

      html:not(.dark) #quran-reading-resume-card #quran-reading-resume-btn-secondary {
        background-color: #f1f5f9 !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #0f172a !important;
        font-weight: 700 !important;
      }

      /* بطاقة الاستماع في الوضع النهاري */
      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-icon {
        background-color: #fef3c7 !important;
        border: 1.5px solid #fde047 !important;
        color: #b45309 !important;
      }
      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-icon svg {
        color: #b45309 !important;
      }

      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-badge {
        background-color: #fef3c7 !important;
        border: 1px solid rgba(245, 158, 11, 0.5) !important;
        color: #92400e !important;
        font-weight: 800 !important;
      }

      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-title {
        color: #064e3b !important;
        font-weight: 900 !important;
        text-shadow: none !important;
      }

      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-subtitle {
        color: #334155 !important;
        font-weight: 700 !important;
      }

      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-btn-primary {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
        color: #ffffff !important;
        border: 1px solid #92400e !important;
        box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3) !important;
      }
      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-btn-primary *,
      html:not(.dark) #quran-listening-resume-card #quran-listening-resume-btn-primary svg {
        color: #ffffff !important;
      }

      /* ----- 2. الوضع الليلي (Dark Mode) ----- */
      html.dark #quran-reading-resume-card,
      html.dark #quran-listening-resume-card {
        background-color: #07261d !important;
        background: linear-gradient(135deg, #072c21 0%, #052119 50%, #031711 100%) !important;
        border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
        box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(251, 191, 36, 0.2) !important;
      }

      /* أيقونة القراءة في الوضع الليلي */
      html.dark #quran-reading-resume-card #quran-reading-resume-icon {
        background-color: rgba(245, 158, 11, 0.18) !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        color: #fde047 !important;
      }

      /* شارة متابعة القراءة في الوضع الليلي */
      html.dark #quran-reading-resume-card #quran-reading-resume-badge {
        background-color: rgba(245, 158, 11, 0.18) !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        color: #fde047 !important;
        font-weight: 800 !important;
      }

      /* نسبة الإنجاز في الوضع الليلي */
      html.dark #quran-reading-resume-card #quran-reading-resume-progress {
        color: #fde047 !important;
        font-weight: 700 !important;
      }

      /* عنوان السورة في الوضع الليلي */
      html.dark #quran-reading-resume-card #quran-reading-resume-title {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
      }

      /* أزرار متابعة القراءة في الوضع الليلي */
      html.dark #quran-reading-resume-card #quran-reading-resume-btn-primary {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        color: #064e3b !important;
        border: 1px solid #fef08a !important;
        box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35) !important;
      }
      html.dark #quran-reading-resume-card #quran-reading-resume-btn-primary *,
      html.dark #quran-reading-resume-card #quran-reading-resume-btn-primary svg {
        color: #064e3b !important;
        font-weight: 900 !important;
      }

      html.dark #quran-reading-resume-card #quran-reading-resume-btn-secondary {
        background-color: rgba(4, 28, 22, 0.85) !important;
        border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
        color: #fef3c7 !important;
        font-weight: 700 !important;
      }

      /* بطاقة الاستماع في الوضع الليلي */
      html.dark #quran-listening-resume-card #quran-listening-resume-icon {
        background-color: rgba(245, 158, 11, 0.18) !important;
        border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
        color: #fde047 !important;
      }
      html.dark #quran-listening-resume-card #quran-listening-resume-icon svg {
        color: #fde047 !important;
      }

      html.dark #quran-listening-resume-card #quran-listening-resume-badge {
        background-color: rgba(245, 158, 11, 0.18) !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        color: #fde047 !important;
        font-weight: 800 !important;
      }

      html.dark #quran-listening-resume-card #quran-listening-resume-title {
        color: #fef08a !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
      }

      html.dark #quran-listening-resume-card #quran-listening-resume-subtitle {
        color: #cbd5e1 !important;
        font-weight: 700 !important;
      }

      html.dark #quran-listening-resume-card #quran-listening-resume-btn-primary {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        color: #064e3b !important;
        border: 1px solid #fef08a !important;
        box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35) !important;
      }
      html.dark #quran-listening-resume-card #quran-listening-resume-btn-primary *,
      html.dark #quran-listening-resume-card #quran-listening-resume-btn-primary svg {
        color: #064e3b !important;
        font-weight: 900 !important;
      }

    
      /* =========================================================================
         حاوية شبكة سور القرآن الكريم - التمرير الداخلي الحقيقي (Internal Scroll)
         ========================================================================= */
      #surahs-grid {
        max-height: 460px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
      }
      @media (max-width: 640px) {
        #surahs-grid {
          max-height: 380px !important;
        }
      }

/* =========================================================================
   مفكرتي السريعة - محرك التمرير السلس باللمس وشريط التمرير الزمردي المرئي
   ========================================================================= */
#zadi-quick-notes-feed,
.zadi-touch-scroll {
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: #059669 rgba(0, 0, 0, 0.08) !important;
}
#zadi-quick-notes-feed::-webkit-scrollbar,
.zadi-touch-scroll::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
#zadi-quick-notes-feed::-webkit-scrollbar-track,
.zadi-touch-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04) !important;
  border-radius: 9999px !important;
}
html.dark #zadi-quick-notes-feed::-webkit-scrollbar-track,
html.dark .zadi-touch-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04) !important;
}
#zadi-quick-notes-feed::-webkit-scrollbar-thumb,
.zadi-touch-scroll::-webkit-scrollbar-thumb {
  background: #059669 !important;
  border-radius: 9999px !important;
}
html.dark #zadi-quick-notes-feed::-webkit-scrollbar-thumb,
html.dark .zadi-touch-scroll::-webkit-scrollbar-thumb {
  background: #10b981 !important;
}

/* ========================================================
   UNIFIED ZADI BACK BUTTON (.btn-zadi-back)
   توحيد وثبات زر الرجوع باللون العنبري الذهبي الملكي والخط الأبيض الناصع مع سهم متوهج
   ثابت وموحد في الوضعين النهاري والليلي لثبات الإدراك البصري
   ======================================================== */
.btn-zadi-back,
button.btn-zadi-back,
html:not(.dark) .btn-zadi-back,
html:not(.dark) button.btn-zadi-back,
html.dark .btn-zadi-back,
html.dark button.btn-zadi-back {
  background-color: #92400e !important;
  background-image: linear-gradient(135deg, #b45309 0%, #92400e 50%, #78350f 100%) !important;
  color: #ffffff !important;
  border: 2.5px solid #f59e0b !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-zadi-back:hover,
button.btn-zadi-back:hover,
html:not(.dark) .btn-zadi-back:hover,
html:not(.dark) button.btn-zadi-back:hover,
html.dark .btn-zadi-back:hover,
html.dark button.btn-zadi-back:hover {
  background-color: #b45309 !important;
  background-image: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%) !important;
  border-color: #fcd34d !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
}
.btn-zadi-back:active,
button.btn-zadi-back:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4) !important;
}
.btn-zadi-back span,
.btn-zadi-back span:first-child,
html:not(.dark) .btn-zadi-back span:first-child,
html.dark .btn-zadi-back span:first-child {
  color: #ffffff !important;
  font-weight: 900 !important;
}
/* السهم الذهبي العنبري المشرق المتوهج - محمي بحصانة تامة لمنع أي لون أخضر نهائياً */
.btn-zadi-back .zadi-back-arrow,
.btn-zadi-back span.zadi-back-arrow,
.btn-zadi-back span:last-child,
.btn-zadi-back svg,
.btn-zadi-back svg.zadi-back-arrow,
html:not(.dark) .btn-zadi-back .zadi-back-arrow,
html:not(.dark) .btn-zadi-back span.zadi-back-arrow,
html:not(.dark) .btn-zadi-back span:last-child,
html:not(.dark) .btn-zadi-back svg,
html.dark .btn-zadi-back .zadi-back-arrow,
html.dark .btn-zadi-back span.zadi-back-arrow,
html.dark .btn-zadi-back span:last-child,
html.dark .btn-zadi-back svg {
  color: #fcd34d !important;
  stroke: #fcd34d !important;
  fill: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) !important;
}

/* ========================================================
   ZADI SMART APP DOWNLOAD BANNER (.zadi-smart-app-banner)
   تناسق بصري فخم ومريح للعين في الوضعين النهاري والليلي
   ======================================================== */
#zadi-smart-app-banner {
  background-color: #ffffff !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f2 100%) !important;
  color: #142e25 !important;
  border-bottom: 1px solid rgba(6, 75, 59, 0.12) !important;
  box-shadow: 0 2px 10px rgba(6, 75, 59, 0.06) !important;
}
html.dark #zadi-smart-app-banner {
  background-color: #08211b !important;
  background: linear-gradient(180deg, #0d2b24 0%, #08211b 100%) !important;
  color: #ecfdf5 !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* زر التحميل في شريط التطبيق - تباين ناصع وفائق الوضوح */
#zadi-smart-banner-install-link,
a#zadi-smart-banner-install-link {
  background-color: #059669 !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #34d399 !important;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
#zadi-smart-banner-install-link:hover,
a#zadi-smart-banner-install-link:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
}
#zadi-smart-banner-install-link span,
#zadi-smart-banner-install-link svg,
#zadi-smart-banner-install-link *,
html.dark #zadi-smart-banner-install-link span,
html.dark #zadi-smart-banner-install-link svg,
html.dark #zadi-smart-banner-install-link * {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* ========================================================
   بطاقة نمط التركيز الفردي للأذكار (#azkar-focus-card)
   تطابق تام ومريح مع بطاقات نمط القائمة المريحة
   ======================================================== */
#azkar-focus-card,
div#azkar-focus-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease !important;
}

html:not(.dark) #azkar-focus-card {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #e7e5e4 !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05) !important;
  color: #1c1917 !important;
}

html:not(.dark) #azkar-focus-card[class*="border-amber-400"],
html:not(.dark) #azkar-focus-card[class*="bg-[#FFFBEB]"] {
  background-color: #FFFBEB !important;
  background: #FFFBEB !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 4px 18px -2px rgba(245, 158, 11, 0.15) !important;
  color: #451a03 !important;
}

html.dark #azkar-focus-card {
  background-color: #0d1622 !important;
  background: #0d1622 !important;
  border: 1px solid #1d2b3c !important;
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.5) !important;
  color: #f1f5f9 !important;
}

html.dark #azkar-focus-card[class*="border-amber-400"] {
  background-color: #1a1405 !important;
  background: #1a1405 !important;
  border: 2px solid rgba(251, 191, 36, 0.8) !important;
  box-shadow: 0 6px 24px -4px rgba(251, 191, 36, 0.12) !important;
  color: #fef3c7 !important;
}

/* نصوص الذكر داخل بطاقة التركيز */
html:not(.dark) #azkar-focus-card p {
  color: #1c1917 !important;
  text-shadow: none !important;
}

html.dark #azkar-focus-card p {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

html:not(.dark) #azkar-focus-card h4 {
  color: #064e3b !important;
  text-shadow: none !important;
}

html.dark #azkar-focus-card h4 {
  color: #fef08a !important;
  text-shadow: none !important;
}

/* ========================================================
   حركة انزلاق ناعمة لبطاقة الأذكار عند التمرير والتبديل
   Subtle Card Slide-in Animation on Swipe & Navigation
   ======================================================== */
@keyframes azkarSlideInNext {
  0% {
    opacity: 0.55;
    transform: translate3d(24px, 0, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes azkarSlideInPrev {
  0% {
    opacity: 0.55;
    transform: translate3d(-24px, 0, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.azkar-slide-in-next {
  animation: azkarSlideInNext 0.26s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: transform, opacity;
}

.azkar-slide-in-prev {
  animation: azkarSlideInPrev 0.26s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .azkar-slide-in-next,
  .azkar-slide-in-prev {
    animation: none !important;
  }
}

/* ========================================================
   تحسين سرعة واستجابة التنقل بين الأقسام (Instant Tab Navigation)
   عزل شريط التنقل لمنع إعادة رسم الصفحة وتسريع الاستجابة اللمسية
   ======================================================== */
#main-navigation-navbar {
  contain: layout style;
}

#main-navigation-navbar button {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

#sub-navigation-menu {
  contain: content;
}

/* ========================================================
   تحسين وتنسيق نافذة تخصيص وضع القراءة والخطوط في المصحف
   (Quran Reading Customization Modal Theme & Perfect Contrast)
   ======================================================== */
#quran-reading-settings-modal {
  font-family: inherit;
  color-scheme: light;
}

html.dark #quran-reading-settings-modal {
  color-scheme: dark;
}

/* في الوضع النهاري / الفاتح */
html:not(.dark) #quran-reading-settings-modal {
  background-color: #FAF7EE !important;
  color: #142E25 !important;
  border-color: #E2D9BC !important;
}

html:not(.dark) #quran-reading-settings-modal select {
  background-color: #FFFFFF !important;
  color: #1C3224 !important;
  border: 1.5px solid #D6CCA8 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html:not(.dark) #quran-reading-settings-modal select option {
  background-color: #FFFFFF !important;
  color: #1C3224 !important;
}

/* في الوضع الليلي */
html.dark #quran-reading-settings-modal {
  background-color: #0A1611 !important;
  color: #FDFBF7 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

html.dark #quran-reading-settings-modal select {
  background-color: #0F221A !important;
  color: #FEF3C7 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html.dark #quran-reading-settings-modal select option {
  background-color: #0F221A !important;
  color: #FEF3C7 !important;
}

/* إخفاء زر النية العائم (الوردة/النبتة العائمة) تلقائياً عند فتح المصحف الشريف لمنع التشتيت البصري */
body:has(#quran-niyyah-pill-btn) #global-niyyah-fab,
body:has(#mushaf-bottom-navigation-bar) #global-niyyah-fab,
body:has([title*="وقفة تأمّل وتجديد النية 🌸"]) #global-niyyah-fab,
body:has([title*="تجديد النية واستحضار الإخلاص 🌸"]) #global-niyyah-fab,
body:has([id^="ayah-container-"]) #global-niyyah-fab {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ========================================================
   تحسين تباين وألوان تبويبات نافذة خيارات الآية (الخيارات - التفسير - الترجمة - الإعراب)
   Flawless High-Contrast Styling for Ayah Action Tabs
   ======================================================== */
#quran-ayah-modal-tabs {
  background-color: rgba(245, 245, 240, 0.75) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.dark #quran-ayah-modal-tabs {
  background-color: rgba(15, 23, 19, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#quran-ayah-modal-tabs button {
  transition: all 0.2s ease-in-out !important;
  border-radius: 0.75rem !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.75rem !important;
}

/* في الوضع النهاري - التبويب غير النشط */
html:not(.dark) #quran-ayah-modal-tabs button:not([data-active="true"]) {
  background-color: #E8E3D5 !important;
  color: #382E24 !important;
  border: 1px solid #D5CEBD !important;
  font-weight: 700 !important;
}

html:not(.dark) #quran-ayah-modal-tabs button:not([data-active="true"]):hover {
  background-color: #DED7C7 !important;
  color: #1F1914 !important;
  border-color: #C7BDA7 !important;
}

html:not(.dark) #quran-ayah-modal-tabs button:not([data-active="true"]) svg {
  color: #2D6A4F !important;
  stroke: #2D6A4F !important;
  opacity: 0.85 !important;
}

/* في الوضع النهاري - التبويب النشط (زمردي ملكي فخم بنص عاجي فاقع الوضوح وأيقونة ذهبية) */
html:not(.dark) #quran-ayah-modal-tabs button[data-active="true"] {
  background: linear-gradient(135deg, #134E39 0%, #0D3B2B 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #1A6349 !important;
  box-shadow: 0 3px 10px rgba(13, 59, 43, 0.3) !important;
  font-weight: 900 !important;
}

html:not(.dark) #quran-ayah-modal-tabs button[data-active="true"] span {
  color: #FFFFFF !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html:not(.dark) #quran-ayah-modal-tabs button[data-active="true"] svg {
  color: #FBBF24 !important;
  stroke: #FBBF24 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) !important;
}

/* في الوضع الليلي - التبويب غير النشط */
html.dark #quran-ayah-modal-tabs button:not([data-active="true"]) {
  background-color: #14241B !important;
  color: #D1D5DB !important;
  border: 1px solid #1E382A !important;
  font-weight: 700 !important;
}

html.dark #quran-ayah-modal-tabs button:not([data-active="true"]):hover {
  background-color: #1B3125 !important;
  color: #F9FAFB !important;
  border-color: #2A4D3A !important;
}

html.dark #quran-ayah-modal-tabs button:not([data-active="true"]) svg {
  color: #34D399 !important;
  stroke: #34D399 !important;
  opacity: 0.85 !important;
}

/* في الوضع الليلي - التبويب النشط (ذهبي متوهج دافئ بنص داكن فاقع الوضوح) */
html.dark #quran-ayah-modal-tabs button[data-active="true"] {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #0B1410 !important;
  border: 1.5px solid #FCD34D !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4) !important;
  font-weight: 900 !important;
}

html.dark #quran-ayah-modal-tabs button[data-active="true"] span {
  color: #0B1410 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

html.dark #quran-ayah-modal-tabs button[data-active="true"] svg {
  color: #0B1410 !important;
  stroke: #0B1410 !important;
  opacity: 1 !important;
}

/* Focus Mode: Applied style changes to the selected element */
div#root:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > main:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div#quran-root-container:nth-of-type(1) > div:nth-of-type(1) > button:nth-of-type(1) > span:nth-of-type(1),
#quran-root-container > div:nth-of-type(1) > button:nth-of-type(1) > span:nth-of-type(1),
#quran-root-container > div:first-child > button:first-child > span:first-child {
  color: #fff018 !important;
}



/* =========================================================================
   PHASE 1: TARGETED REFINEMENT & HIGH-PRIORITY DUAL CONTRAST SYSTEM
   ========================================================================= */

/* 1. إصلاح شريط التاريخ والتقويم التفاعلي بالرئيسية (#home-header-date-badge) */
html:not(.dark) #home-header-date-badge,
html:not(.dark) .home-date-ribbon {
  background: #FAF8F2 !important;
  border: 1.5px solid rgba(5, 150, 105, 0.28) !important;
}
html:not(.dark) #home-header-date-badge .home-date-content > div:first-child span:last-child {
  color: #064e3b !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}
html:not(.dark) #home-header-date-badge .home-date-content > div:last-child span:last-child {
  color: #44403c !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
html.dark #home-header-date-badge .home-date-content > div:first-child span:last-child {
  color: #fde68a !important;
  font-weight: 900 !important;
}
html.dark #home-header-date-badge .home-date-content > div:last-child span:last-child {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}

/* 2. صندوق «صوت الأذان: مفعّل 🕌» داخل بطاقة المواقيت الخضراء (#prayer-times-hero-card) */
#prayer-times-hero-card .rounded-2xl,
#prayer-times-widget div[class*="border-b-amber-400"] .rounded-2xl {
  background: rgba(3, 24, 18, 0.88) !important;
  border: 1.5px solid rgba(52, 211, 153, 0.35) !important;
  color: #ffffff !important;
}
#prayer-times-hero-card .rounded-2xl p,
#prayer-times-hero-card .rounded-2xl span:not([style*="color"]) {
  color: #ffffff !important;
}

/* 3. شارة «قائمة الآن» في كروت مواقيت الصلاة */
html:not(.dark) span.bg-emerald-950,
html:not(.dark) .bg-emerald-950.text-amber-300,
html:not(.dark) [class*="bg-emerald-950"][class*="text-amber-300"] {
  background-color: #044e3a !important;
  color: #fde047 !important;
  font-weight: 900 !important;
}

/* 4. شريط مشغل القرآن السفلي العائم (#quran-audio-player-bottom-bar) وبطاقات التلاوة الداكنة */
#quran-audio-player-bottom-bar,
#quran-audio-player-bottom-bar * {
  color: #fef3c7 !important;
}
#quran-audio-player-bottom-bar span[class*="bg-"] {
  background-color: #f59e0b !important;
  color: #022c22 !important;
}
html:not(.dark) #quran-reading-resume-card,
html:not(.dark) #quran-reading-resume-card * {
  color: #ffffff !important;
}
html:not(.dark) #quran-reading-resume-card span.text-amber-300,
html:not(.dark) #quran-reading-resume-card .text-amber-300 {
  color: #fde047 !important;
}

/* 5. نافذة مشغل القرآن (#quran-audio-player-modal) في الوضع النهاري */
html:not(.dark) #quran-audio-player-modal {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
  border-top: 2px solid #059669 !important;
  color: #0f172a !important;
}
html:not(.dark) #quran-audio-player-modal h3 {
  color: #064e3b !important;
}
html:not(.dark) #quran-audio-player-modal button[title*="إيقاف التلاوة"],
html:not(.dark) #quran-audio-player-modal button[class*="bg-rose-950"] {
  background-color: #ffe4e6 !important;
  border: 1.5px solid #fda4af !important;
  color: #be123c !important;
}
html:not(.dark) #quran-audio-player-modal button[title*="إيقاف التلاوة"] *,
html:not(.dark) #quran-audio-player-modal button[class*="bg-rose-950"] * {
  color: #be123c !important;
}
html:not(.dark) #quran-audio-player-modal button[title*="تصغير"],
html:not(.dark) #quran-audio-player-modal button[class*="bg-stone-800"] {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}
html:not(.dark) #quran-audio-player-modal button[title*="تصغير"] *,
html:not(.dark) #quran-audio-player-modal button[class*="bg-stone-800"] * {
  color: #0f172a !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"],
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/80"] {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] h5,
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] span.text-amber-300,
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/80"] span.text-amber-400 {
  color: #064e3b !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button * {
  color: #1e293b !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button[class*="bg-stone-800"],
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button[class*="font-black"] {
  background-color: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button[class*="bg-stone-800"] *,
html:not(.dark) #quran-audio-player-modal div[class*="bg-stone-900/60"] button[class*="font-black"] * {
  color: #ffffff !important;
}

/* 6. خلايا اليوم النشط في التقويم التفاعلي (الهجري والميلادي) */
#hijri-calendar-card button.scale-102,
#hijri-calendar-card button[class*="bg-emerald-900"],
#hijri-calendar-card button[class*="bg-[#152e20]"],
html:not(.dark) #hijri-calendar-card button.scale-102,
html.dark #hijri-calendar-card button.scale-102 {
  background: linear-gradient(135deg, #065f46 0%, #044e3a 100%) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 4px 12px rgba(4, 78, 58, 0.35) !important;
}
#hijri-calendar-card button.scale-102 span:first-child,
#hijri-calendar-card button[class*="bg-emerald-900"] span:first-child,
html:not(.dark) #hijri-calendar-card button.scale-102 span:first-child {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}
#hijri-calendar-card button.scale-102 span:nth-child(2),
#hijri-calendar-card button[class*="bg-emerald-900"] span:nth-child(2),
html:not(.dark) #hijri-calendar-card button.scale-102 span:nth-child(2) {
  color: #fde68a !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* 7. ضبط زر المساعد الصوتي العائم فوق شريط التنقل على اليسار */
#global-voice-assistant-fab {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.35) !important;
}
#global-voice-assistant-fab svg {
  width: 20px !important;
  height: 20px !important;
}
