* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #060919;
    --bg-card: rgba(18, 24, 49, 0.6);
    --bg-card-hover: rgba(28, 36, 73, 0.8);
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --text-pure: #FFFFFF;
    --text-muted: #94A3B8;
    --text-desc: #CBD5E1;
    --border-color: rgba(212, 175, 55, 0.2);
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: 'Plus Jakarta Sans', 'Amiri', serif;
    line-height: 1.8;
    overflow-x: hidden;
}

.container-custom {
    max-width: 2500px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-header {
    text-align: center;
    padding: 80px 24px 50px;
    background: radial-gradient(ellipse at top, #0f1530 0%, var(--bg-main) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.main-title {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 15px;
}

.main-title span {
    color: var(--gold);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-section {
    text-align: center;
    padding: 60px 0;
    max-width: 750px;
    margin: 0 auto;
}

.quran-avatar {
    font-family: 'Amiri', serif;
    font-size: 70px;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 15px;
}

.hero-section h2 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-desc);
}

.features-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h3 {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.accent-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.feat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: right;
    transition: all 0.3s ease;
}

.feat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.feat-card h4 {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.feat-card p {
    font-size: 0.95rem;
    color: var(--text-desc);
}

.info-section {
    padding: 40px 0;
    
}

.info-glass {
    background: rgba(18, 24, 49, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
 
}

.info-glass h3 {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.info-glass p {
    font-size: 1.05rem;
    color: var(--text-desc);
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: justify;
    text-align-last: center;
}

.quote-box {
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    padding-top: 25px;
}

.quote-box p {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.quote-box span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dhikr-box {
    background: #0c1126;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    margin: 60px auto;
    max-width: 450px;

}

.dhikr-box h4 {
    color: var(--text-pure);
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 140px;
    height: 140px;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
}

#count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: var(--text-pure);
    font-weight: 700;
}

#tasbihBtn {
    background: linear-gradient(135deg, #E5C158 0%, #B8860B 100%);
    color: #060919;
    border: none;
    padding: 16px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Amiri', serif;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

#tasbihBtn:active {
    transform: scale(0.96);
}

#resetBtn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

#resetBtn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
}

.download-section {
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: 24px;
    text-align: center;
    margin-bottom: 80px;
}

.download-section h3 {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.warning {
    color: #CBD5E1;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 35px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-btn {
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Amiri', serif;
}

.btn-primary {
    background: linear-gradient(135deg, #E5C158 0%, #B8860B 100%);
    color: #060919;
}

.btn-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

.main-footer {
    text-align: center;
    padding: 40px 24px;
    background: #03050e;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
    color: var(--text-desc);
}

.main-footer p {
    font-family: 'Amiri', serif;
    margin-bottom: 8px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .quran-avatar{
      font-family: 'Amiri', serif;
    font-size: 50px;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 15px;
 }


}
@media (max-width: 768px) {
    .info-section,.download-section,.dhikr-scoped-wrapper{
         width: 315px !important;
    border-radius: 12px;
    box-sizing: border-box;

}
}
body, html {
    width: 100%;
    height: auto; 
    background-color: #0b0b0b;
}

/* الهيرو سكشن ثابت الارتفاع لضمان ظهور العناصر التي بالأسفل فوراً */
.hiro-section {
    position: relative;
    width: 100%;
    min-height:610px ; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 10px;
}

/* حل مشكلة الفيديو ليظهر بالكامل وبأبعاده الأصلية في الخلفية */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/* التجاوب التلقائي التام مع الشاشات الصغيرة والموبايل */
@media (max-width: 700px) {
    .hiro-section {
        height: 550px;
        width: 700;
    }
}
/* ===== تأثيرات إضافية ممتازة لضبط الصفحة ===== */

/* 1. مؤشر القراءة المتطور */
#scrollProgress {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to left, #D4AF37, #E5C158);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* 2. تأثير الوهج النابض خلف البسملة */
.quran-avatar {
    position: relative;
    z-index: 1;
}
.quran-avatar::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

/* 3. تأثيرات تفاعلية حركية عند تمرير الماوس على الأزرار */
#tasbihBtn, .modern-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
}

#tasbihBtn:hover, .btn-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4) !important;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1) !important;
}
/* تنسيق زر المشاركة الذكي أسفل الدائرة */
.dhikr-share-container {
    text-align: center;
    margin: 15px 0;
}

.dhikr-share-btn {
    background-color: #f0f4f8;
    color: #2980b9;
    border: 1px dashed #3498db;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.dhikr-share-btn:hover {
    background-color: #e1f5fe;
    transform: translateY(-1px);
}

/* تنسيق إضافي لزر التصفير لتمييزه */
.dhikr-reset-danger-btn {
    background-color: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fed7d7;
    margin-top: 15px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.dhikr-reset-danger-btn:hover {
    background-color: #fed7d7;
}
/* =======================================================
   قالب فيديو القرآن الكريم - تصميم بلوري أزرق ملكي
   ======================================================= */

.quran-video-card {
    background: #0e1624; /* لون كروت الميزات الأزرق الداكن العميق في صورتك */
    border: 1px solid rgba(212, 175, 55, 0.15); /* حدود ناعمة تعكس إضاءة شاشتك */
    border-radius: 12px; /* زوايا منحنية متناسقة بالملي مع موقعك والهاتف */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    max-width: 820px; 
    margin: 35px auto; 
    overflow: hidden; /* لقطع أطراف الفيديو لتتبع نفس انحناء الكارد */
    padding: 0;
    font-family: inherit;
    direction: rtl; 
    transition: all 0.3s ease;
}

.quran-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.quran-video-header {
    padding: 22px 25px;
    background: linear-gradient(to bottom, #121c2e, #0e1624);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.quran-badge {
    background: rgba(212, 175, 55, 0.08);
    color: #e5c158; /* اللون الذهبي الفاخر المعتمد في صورتك */
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

.quran-video-title {
    color: #ffffff; /* نص أبيض ناصع مطابق للميزات */
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

.quran-video-wrapper {
    width: 100%;
    background-color: #050a12;
    line-height: 0;
}

.quran-video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 480px; 
    display: block;
    object-fit: contain;
}

.quran-video-footer {
    padding: 25px;
    background: #0a101b; /* أغمق بقليل ليعطي عزل وعمق واقعي */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.quran-intro-title {
    color: #e5c158; /* ذهبي معتق وجميل جداً */
    font-size: 17px;
    margin: 0 0 12px 0;
    font-weight: bold;
    text-align: right;
}

.quran-description {
    color: #a4b3c6; /* رمادي مائل للزرقة الخفيفة لتوفير أقصى راحة للعين */
    font-size: 14.5px;
    margin: 0;
    line-height: 1.75; 
    text-align: justify; /* محاذاة السطور الشبيهة بالمصاحف الفخمة */
}

@media (max-width: 768px) {

.quran-video-card{
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    border-radius: 12px;
    box-sizing: border-box;
}
.quran-video-card video{
    width: 100%;
    height: auto;
    display: block;
}
.quran-video-header,.quran-video-footer{
    padding: 16px !important;
}
}
















body {
    background: #000;
    font-family: 'Cairo', sans-serif;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

/* تعديل الحاوية الأب لتصبح مطاطية ومحمية من الخروج عن الشاشة */
.inheritance-box {
    background: linear-gradient(135deg, #0A0F2B 0%, #000 100%);
    border: 2px solid #B8860B;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin: 40px auto;
    width: 100%;            /* ملء الشاشة على الموبايل */
    max-width: 850px;       /* حد أقصى فخم على اللاب توب */
    box-shadow: 0 0 50px rgba(184,134,11,0.4);
    box-sizing: border-box;
}

.icon-cartoon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 20px rgba(184,134,11,0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.inheritance-box h3 {
    color: #B8860B;
    font-size: 34px;
    margin: 10px 0;
    font-family: 'Amiri', serif;
}

.sub {
    color: #999;
    font-size: 16px;
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    color: #B8860B;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: right;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    border: 2px solid #B8860B;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.heirs-section h4 {
    color: #DAA520;
    text-align: right;
    margin: 30px 0 15px;
    border-bottom: 2px solid #B8860B;
    padding-bottom: 8px;
    font-size: 20px;
}

/* شبكة الورثة الفخمة: 4 أعمدة على الشاشات الكبيرة */
.heirs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.heir-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 10px;
    transition: 0.3s;
}

.heir-item:hover {
    border-color: #B8860B;
    transform: translateY(-3px);
}

.heir-item label {
    display: block;
    color: #DAA520;
    font-size: 14px;
    margin-bottom: 8px;
    height: 40px;
    font-weight: 600;
}

.heir-item input {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

.calc-btn {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
    transition: all 0.3s;
    box-sizing: border-box;
}

.calc-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(218,165,32,0.7);
}

/* بوكس النتيجة: تم تنظيفه تماماً وجعله مرناً يملأ المساحة المتاحة بنظافة */
.result-box {
    margin-top: 35px;
    background: #0a0a0a;
    border: 2px solid #B8860B;
    border-radius: 18px;
    padding: 30px;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.result-box h4 {
    color: #B8860B;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 17px;
}

.result-row:last-child {
    border: none;
    font-weight: 700;
    color: #B8860B;
    font-size: 20px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #B8860B;
}

.note {
    color: #666;
    font-size: 13px;
    margin-top: 25px;
}

/* ==========================================================================
   التحكم الذكي والتجاوب السلس مع الشاشات (تنسيق نظيف وتلقائي)
   ========================================================================== */
@media (max-width: 800px) {
    /* تحويل الشبكة لعمودين فقط على شاشات التابلت والموبايل العريض */
    .heirs-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .inheritance-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    /* تحويل الشبكة لعمود واحد مريح على شاشات الموبايل الصغيرة لمنع انضغاط الخانات */
    .heirs-grid { 
        grid-template-columns: 1fr; 
    }
    .inheritance-box h3 {
        font-size: 26px;
    }
    .result-row {
        font-size: 15px;
    }
}



/* ========== الزكاة دهبي × أسود ========== */
.zakat-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FFD700, #B8860B, #FFD700, transparent);
  margin: 80px 0 50px 0;
  box-shadow: 0 0 25px rgba(255,215,0,0.6);
}

/* تحويل الحاوية لمرونة كاملة تعتمد على النسبة المئوية */
.zakat-container {
  width: 100%;             /* تملأ الشاشة بالكامل على الموبايل */
  max-width: 720px;        /* الحد الأقصى الفخم على اللاب توب */
  margin: 0 auto 80px auto;/* التوسيط في المنتصف */
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  border: 3px solid #B8860B;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 0 60px rgba(184,134,11,0.4), inset 0 0 30px rgba(255,215,0,0.1);
  box-sizing: border-box;  /* تمنع خروج الحاوية عند إضافة البادينج */
}

.zakat-header {
  text-align: center;
  margin-bottom: 35px;
}

.zakat-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 25px rgba(255,215,0,0.7));
  animation: goldGlow 3s ease-in-out infinite;
}

@keyframes goldGlow {
 0%, 100% { filter: drop-shadow(0 0 25px rgba(255,215,0,0.7)); }
 50% { filter: drop-shadow(0 0 40px rgba(255,215,0,1)); }
}

.zakat-header h2 {
  color: #FFD700;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.zakat-header p {
  color: #ccc;
  font-size: 15px;
}

/* شبكة أنواع الزكاة: 5 أزرار بجانب بعضها على الكمبيوتر */
.zakat-types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 35px;
}

.zakat-types button {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #FFD700;
  border: 2px solid #444;
  padding: 16px 8px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Cairo', sans-serif;
}

.zakat-types button:hover {
  border-color: #B8860B;
  transform: translateY(-3px);
}

.zakat-types button.active {
  background: linear-gradient(135deg, #B8860B, #8B6914);
  color: #000;
  border-color: #FFD700;
  box-shadow: 0 0 30px rgba(255,215,0,0.8);
}

#zakat-form-container .form-group {
  margin-bottom: 22px;
}

#zakat-form-container label {
  display: block;
  margin-bottom: 10px;
  color: #FFD700;
  font-weight: 700;
  font-size: 16px;
}

#zakat-form-container input, 
#zakat-form-container select {
  width: 100%;
  padding: 15px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-family: 'Cairo', sans-serif;
  box-sizing: border-box;
}

#zakat-form-container input:focus {
  outline: none;
  border-color: #B8860B;
  box-shadow: 0 0 15px rgba(184,134,11,0.6);
}

.zakat-calc-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #000;
  border: none;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 15px;
  font-family: 'Cairo', sans-serif;
  transition: 0.3s;
  box-sizing: border-box;
}

.zakat-calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255,215,0,0.5);
}

.zakat-result {
  margin-top: 35px;
  padding: 30px;
  background: rgba(184,134,11,0.1);
  border: 3px solid #B8860B;
  border-radius: 18px;
  display: none;
  box-sizing: border-box;
}

.zakat-result.show {
  display: block;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-title {
  color: #FFD700;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 15px;
  text-align: center;
}

#zakat-result-text {
  font-size: 18px;
  line-height: 2.2;
  color: #fff;
  text-align: center;
}

.reset-btn {
  width: 100%;
  padding: 14px;
  background: #333;
  color: #FFD700;
  border: 2px solid #B8860B;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 25px;
  font-family: 'Cairo', sans-serif;
  box-sizing: border-box;
}

/* ==========================================================================
   التحكم المرن واللعب على الـ Width الذكي للموبايل والتابلت
   ========================================================================== */
@media (max-width: 768px) {
  /* تقسيم أزرار أنواع الزكاة لـ 3 أعمدة بدلاً من انضغاط الكلمات */
  .zakat-types { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
  }
  /* تقليل البادينج الداخلي لتوفير مساحة مريحة على الهاتف */
  .zakat-container { 
    padding: 25px 15px; 
  }
  .zakat-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  /* تقسيم الأزرار لعمودين على الهواتف الصغيرة جداً لضمان القراءة بوضوح */
  .zakat-types { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .zakat-calc-btn {
    font-size: 17px;
    padding: 15px;
  }
  #zakat-result-text {
    font-size: 15px;
    line-height: 1.8;
  }
}

:root {
  --cyber-bg-gradient: linear-gradient(145deg, #090d16, #111827);
  --cyber-surface: #111827;
  --cyber-surface-hover: #162238;
  --cyber-neon-blue: #ffaa00; /* تم تحويله لذهبي ليناسب الثيم الجديد */
  --cyber-neon-purple: #9d00ff; 
  --cyber-neon-gold: #ffaa00; 
  --cyber-neon-red: #ff2a2a;
  --cyber-text-primary: #f8fafc;
  --cyber-text-secondary: #64748b;
  --cyber-border-neon: rgba(255, 170, 0, 0.08); /* تحويل البوردر للذهبي */
}

/* الكارد الأم الخارق - حجم صغير ومنظم */
.cyber-beast-container {
    background: var(--cyber-bg-gradient) !important;
    border: 1px solid var(--cyber-border-neon) !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 350px !important; 
    margin: 60px auto !important; 
    padding: 22px 18px !important; 
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cyber-beast-container:hover {
    background: var(--cyber-surface-hover) !important;
    border-color: rgba(255, 170, 0, 0.3) !important; /* توهج ذهبي */
    box-shadow: 0 40px 80px -20px rgba(255, 170, 0, 0.15), 0 0 25px rgba(255, 170, 0, 0.1) !important;
    transform: translateY(-4px) !important;
}

/* خط النيون السحري العلوي */
.cyber-beast-glow-line {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, var(--cyber-neon-gold), var(--cyber-neon-purple), transparent) !important;
    animation: cyberGlowAnim 3.5s linear infinite !important;
    z-index: 2 !important;
}

@keyframes cyberGlowAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* الحفاظ على السلايدر لتقليب الصور بوضعه الأصلي المستقر */
.cyber-beast-viewport { width: 100% !important; overflow: hidden !important; position: relative; z-index: 1; }
.cyber-beast-track { display: flex !important; width: 600% !important; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important; }
.cyber-beast-slide { width: 16.666% !important; display: flex !important; flex-direction: column !important; align-items: center !important; padding: 0 6px !important; box-sizing: border-box !important; }

/* إطار الصورة الشفاف للسلايدر الصغير */
.cyber-beast-img-holder {
    width: 100% !important;
    height: 175px !important; 
    background: transparent !important; 
    border: none !important; 
    overflow: visible !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    box-shadow: none !important;
    margin-top: 5px !important;
}

.cyber-beast-img-holder img {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: fill !important; 
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6)) !important; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cyber-beast-container:hover .cyber-beast-img-holder img {
    transform: scale(1.03) !important; 
    filter: drop-shadow(0 20px 30px rgba(255, 170, 0, 0.25)) !important; 
}

/* بادج نيون فخم ومنسق */
.cyber-beast-badge {
    position: absolute !important;
    top: -5px !important;
    right: 5px !important;
    background: linear-gradient(135deg, var(--cyber-neon-gold) 0%, #ff6600 100%) !important;
    color: #05070c !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    z-index: 5 !important;
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.3) !important;
}

/* تنسيق النصوص والميتا */
.cyber-beast-meta { 
    width: 100% !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 8px !important; 
}

.cyber-beast-title {
    color: var(--cyber-text-primary) !important;
    font-size: 0.92rem !important; 
    font-weight: 600 !important;
    line-height: 1.5 !important;
    height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 18px 0 0 0 !important; 
    text-align: center !important;
}

/* التقييمات الرقمية - الرقم فوق والنجوم تحت */
.cyber-beast-rating { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 4px !important; 
    margin-top: 10px !important; 
}
.cyber-beast-rate-num { color: var(--cyber-neon-gold) !important; font-size: 0.85rem !important; font-weight: 700 !important; }
.cyber-beast-stars { color: var(--cyber-neon-gold) !important; font-size: 0.85rem !important; letter-spacing: 1px !important; }

/* لوحة الأسعار المودرن المدمجة باللون الذهبي */
.cyber-beast-price-panel {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    margin-top: 0 !important; 
}
.cyber-beast-price-now { color: var(--cyber-neon-gold) !important; font-size: 1.2rem !important; font-weight: 800 !important; text-shadow: 0 0 8px rgba(255, 170, 0, 0.2) !important; }
.cyber-beast-price-was { color: var(--cyber-text-secondary) !important; font-size: 0.8rem !important; text-decoration: line-through !important; opacity: 0.5 !important; }

/* كبسولة نبض الاستعجال */
.cyber-beast-urgency {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(255, 42, 42, 0.03) !important;
    border: 1px dashed rgba(255, 42, 42, 0.15) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    margin-top: 0 !important; 
}
.cyber-beast-pulse { 
    width: 6px !important; height: 6px !important; 
    background-color: var(--cyber-neon-red) !important; 
    border-radius: 50% !important; 
    box-shadow: 0 0 8px var(--cyber-neon-red) !important;
}
.cyber-beast-urgency span { color: var(--cyber-neon-red) !important; font-size: 0.72rem !important; font-weight: 600 !important; }

/* زر الشراء بالتدرج الذهبي البني الفخم */
.cyber-beast-btn {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important; 
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 11px 0 !important;
    border-radius: 100px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease !important;
    margin-top: 0 !important; 
}
.cyber-beast-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* أسهم التقليب المظبوطة بدقة */
.cyber-beast-arrow {
    position: absolute !important;
    top: calc(50% + 6px) !important; 
    transform: translateY(-50%) !important;
    background: rgba(17, 24, 39, 0.8) !important;
    border: 1px solid rgba(255, 170, 0, 0.2) !important; 
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10 !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cyber-beast-arrow:hover {
    background: var(--cyber-neon-gold) !important;
    border-color: var(--cyber-neon-gold) !important;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.5) !important;
}

.cyber-beast-prev { right: 6px !important; }
.cyber-beast-next { left: 6px !important; }

.cyber-chevron-right, .cyber-chevron-left {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 2px solid var(--cyber-text-primary) !important;
    border-top: 2px solid var(--cyber-text-primary) !important;
    transition: border-color 0.2s ease !important;
}
.cyber-chevron-right { transform: rotate(45deg) !important; }
.cyber-chevron-left { transform: rotate(-135deg) !important; }

.cyber-beast-arrow:hover .cyber-chevron-right,
.cyber-beast-arrow:hover .cyber-chevron-left {
    border-color: #05070c !important;
}

/* الكبسولات السفلية المضيئة للتقليب */
.cyber-beast-indicators { display: flex !important; justify-content: center !important; gap: 5px !important; margin-top: 14px !important; }
.cyber-beast-dot { width: 5px !important; height: 5px !important; background-color: var(--cyber-text-secondary) !important; border-radius: 50% !important; cursor: pointer; opacity: 0.3 !important; transition: all 0.3s ease !important; }
.cyber-beast-dot.cyber-beast-dot-active { background-color: var(--cyber-neon-gold) !important; width: 16px !important; border-radius: 3px !important; opacity: 1 !important; box-shadow: 0 0 8px var(--cyber-neon-gold) !important; }

@media (max-width: 380px) {
    .cyber-beast-container { padding: 16px 14px !important; }
    .cyber-beast-img-holder { height: 155px !important; }
}

/* عزل كامل للمساحة دون فرض أي لون خلفية محيط */
.quiz-scoped-wrapper {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: transparent; /* يأخذ خلفية موقعك تلقائياً */
}

.quiz-scoped-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 400; /* خط متناسق واضح وعصري */
    letter-spacing: -0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* كارد العرض الرئيسي - تصميم زجاجي عصري مدمج مع موقعك */
.quiz-scoped-wrapper .quiz-card-container {
    background: rgba(15, 15, 15, 0.75); /* تأثير زجاجي شفاف فاخر */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2); /* إطار ذهبي نحيف للغاية */
    border-radius: 24px; /* زوايا دائرية مرنة وحديثة */
    width: 100%;
    max-width: 600px; /* زيادة عرض الكارد ليتناسب مع الخطوط الأكبر */
    padding: 40px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* منع التداخل والظهور العشوائي للأسئلة */
.quiz-scoped-wrapper .quiz-zone-hidden { 
    display: none !important; 
}

/* العنوان الرئيسي الفخم */
.quiz-scoped-wrapper .quiz-main-title {
    color: #d4af37;
    font-size: 28px; /* تكبير العنوان */
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* لوحة أعلى نتيجة */
.quiz-scoped-wrapper .quiz-stats-board {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.quiz-scoped-wrapper .stat-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(212, 175, 55, 0.9);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 15px; /* تكبير خط أعلى نتيجة */
    font-weight: 500;
}

/* شبكة أزرار الأقسام */
.quiz-scoped-wrapper .quiz-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* الأزرار الأربعة الرئيسية */
.quiz-scoped-wrapper .quiz-btn {
    background-color: rgba(25, 25, 25, 0.6);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 15px; /* زيادة مساحة الضغط */
    font-size: 17px; /* تكبير نصوص أزرار الأقسام */
    border-radius: 14px;
    cursor: pointer;
    font-weight: 500;
}

/* تأثيرات النيون الزجاجية للأقسام */
.quiz-scoped-wrapper .neon-gold { border-color: rgba(212, 175, 55, 0.35); color: #d4af37; }
.quiz-scoped-wrapper .neon-gold:hover { background: rgba(212, 175, 55, 0.12); color: #fff; border-color: #d4af37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }

.quiz-scoped-wrapper .neon-cyan { border-color: rgba(0, 240, 255, 0.35); color: #00f0ff; }
.quiz-scoped-wrapper .neon-cyan:hover { background: rgba(0, 240, 255, 0.12); color: #fff; border-color: #00f0ff; box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }

.quiz-scoped-wrapper .neon-purple { border-color: rgba(189, 0, 255, 0.35); color: #bd00ff; }
.quiz-scoped-wrapper .neon-purple:hover { background: rgba(189, 0, 255, 0.12); color: #fff; border-color: #bd00ff; box-shadow: 0 0 20px rgba(189, 0, 255, 0.3); }

.quiz-scoped-wrapper .neon-green { border-color: rgba(57, 255, 20, 0.35); color: #39ff14; }
.quiz-scoped-wrapper .neon-green:hover { background: rgba(57, 255, 20, 0.12); color: #fff; border-color: #39ff14; box-shadow: 0 0 20px rgba(57, 255, 20, 0.3); }

/* منطقة اللعب */
#quiz-game-zone, #quiz-result-zone {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-scoped-wrapper .quiz-zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: #aaa;
    font-size: 15px; /* تكبير نص رأس الصفحة */
}

/* العداد التنازلي الدائري */
.quiz-scoped-wrapper .quiz-timer {
    width: 44px;
    height: 44px;
    line-height: 42px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    color: #00f0ff;
    font-size: 16px;
    font-weight: bold;
}
.quiz-scoped-wrapper .quiz-timer.time-warning {
    border-color: rgba(255, 49, 49, 0.7);
    color: #ff3131;
    animation: neon-pulse-red 0.6s infinite alternate;
}

@keyframes neon-pulse-red {
    from { box-shadow: 0 0 2px rgba(255, 49, 49, 0.1); }
    to { box-shadow: 0 0 12px rgba(255, 49, 49, 0.4); }
}

/* بطاقات مستوى الصعوبة */
.quiz-scoped-wrapper .diff-tag { padding: 4px 12px; border-radius: 30px; font-size: 13px; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); font-weight: 500; }
.quiz-scoped-wrapper .diff-easy { color: #39ff14; border-color: rgba(57, 255, 20, 0.35); background: rgba(57, 255, 20, 0.04); }
.quiz-scoped-wrapper .diff-medium { color: #00f0ff; border-color: rgba(0, 240, 255, 0.35); background: rgba(0, 240, 255, 0.04); }
.quiz-scoped-wrapper .diff-hard { color: #ff3131; border-color: rgba(255, 49, 49, 0.35); background: rgba(255, 49, 49, 0.04); }

/* خط الكتابة للسؤال */
.quiz-scoped-wrapper #quiz-question-text { 
    color: #fff; 
    margin-bottom: 25px; 
    font-size: 21px; /* تكبير خط السؤال بشكل واضح ومريح جداً */
    line-height: 1.6;
    font-weight: 500;
    direction: rtl; 
    text-align: center;
}

.quiz-scoped-wrapper .quiz-options-vertical { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }

/* أزرار الخيارات المفصلة */
.quiz-scoped-wrapper .quiz-opt-btn {
    background: rgba(255, 255, 255, 0.02);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 22px; /* زيادة سماكة أزرار الخيارات */
    text-align: right;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px; /* تكبير نصوص الخيارات لسهولة الاختيار والقرأة */
    direction: rtl;
    font-weight: 400;
}
.quiz-scoped-wrapper .quiz-opt-btn:hover:not([disabled]) {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

/* وميض ناعم ومودرن عند إظهار الإجابات */
.quiz-scoped-wrapper .quiz-opt-btn.correct-glow {
    background: rgba(57, 255, 20, 0.05) !important;
    border-color: rgba(57, 255, 20, 0.6) !important;
    color: #39ff14 !important;
    font-weight: 500;
}
.quiz-scoped-wrapper .quiz-opt-btn.wrong-glow {
    background: rgba(255, 49, 49, 0.05) !important;
    border-color: rgba(255, 49, 49, 0.6) !important;
    color: #ff3131 !important;
    font-weight: 500;
}

/* زر التحكم السفلي */
.quiz-scoped-wrapper .quiz-action-btn {
    background: #d4af37; 
    color: #000; 
    border: none; 
    padding: 16px;
    font-size: 17px; /* تكبير زر التالي */
    font-weight: 600; 
    border-radius: 12px; 
    cursor: pointer; 
    width: 100%;
}
.quiz-scoped-wrapper .quiz-action-btn:disabled { background: rgba(255,255,255,0.03); color: #555; border: 1px solid rgba(255,255,255,0.01); cursor: not-allowed; }

/* شاشة النتيجة */
.quiz-scoped-wrapper .result-title { color: #d4af37; margin-bottom: 12px; font-size: 24px; font-weight: 600; }
.quiz-scoped-wrapper .result-score { color: #b0b0b0; font-size: 18px; margin-bottom: 12px; }
.quiz-scoped-wrapper #quiz-final-score { color: #39ff14; font-size: 32px; font-weight: 600; }

/* زر الرستة السفلي */
.quiz-scoped-wrapper .quiz-footer-reset-zone {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.quiz-scoped-wrapper .quiz-clear-data-btn {
    background: transparent;
    color: rgba(255, 49, 49, 0.6);
    border: 1px solid rgba(255, 49, 49, 0.25);
    padding: 10px 22px;
    font-size: 13px; /* تكبير نسبي لزر الرستة */
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
}
.quiz-scoped-wrapper .quiz-clear-data-btn:hover {
    color: #ff3131;
    border-color: rgba(255, 49, 49, 0.5);
    background: rgba(255, 49, 49, 0.04);
}
/* =======================================================
   🌟 أكواد التوافقية الشاملة مع جميع الشاشات والهواتف 🌟
   ======================================================= */

/* الشاشات المتوسطة والأجهزة اللوحية (Tablets) */
@media screen and (max-width: 768px) {
    .quiz-scoped-wrapper .quiz-card-container {
        max-width: 90%; /* جعل الكارد يأخذ مساحة مرنة من الشاشة */
        padding: 30px 20px; /* تقليل الفراغات الداخلية */
    }
    
    .quiz-scoped-wrapper .quiz-main-title {
        font-size: 24px; /* تصغير نسبي للعنوان الرئيسي */
    }

    .quiz-scoped-wrapper #quiz-question-text {
        font-size: 19px; /* ضبط حجم خط السؤال */
    }
}

/* الشاشات الصغيرة جداً والهواتف الذكية (Smartphones) */
@media screen and (max-width: 480px) {
    .quiz-scoped-wrapper {
        padding: 12px; /* تقليل الحواف الخارجية المحيطة بالصفحة */
    }

    .quiz-scoped-wrapper .quiz-card-container {
        max-width: 100%; /* جعل الكارد يملأ الشاشة بالكامل بشكل شيك */
        padding: 25px 15px; /* تضييق المساحات داخل الكارد */
        border-radius: 16px; /* جعل زوايا الكارد أنعم على الموبايل */
    }

    .quiz-scoped-wrapper .quiz-main-title {
        font-size: 22px; /* تصغير العنوان ليناسب شاشات الموبايل الضيقة */
        margin-bottom: 8px;
    }

    /* ❗ تحويل شبكة الأزرار الأربعة إلى ترتيب عمودي تحت بعضها لسهولة اللمس ❗ */
    .quiz-scoped-wrapper .quiz-categories-grid {
        grid-template-columns: 1fr; /* إلغاء النظام المزدوج وجعله عموداً واحداً */
        gap: 12px; /* مسافة مريحة بين الأزرار */
    }

    .quiz-scoped-wrapper .quiz-btn {
        padding: 16px 12px; /* ضبط حجم أزرار الأقسام لسهولة الضغط بالإصبع */
        font-size: 15px; /* حجم خط مناسب للأزرار */
    }

    .quiz-scoped-wrapper #quiz-question-text {
        font-size: 17px; /* تصغير خط السؤال لئلا يأخذ أسطر كثيرة */
        margin-bottom: 20px;
    }

    .quiz-scoped-wrapper .quiz-opt-btn {
        padding: 14px 16px; /* ضبط حجم أزرار خيارات الإجابة */
        font-size: 15px; /* حجم خط خيارات الإجابة مريح جداً للعين */
    }

    .quiz-scoped-wrapper .quiz-action-btn {
        padding: 14px; /* حجم زر (السؤال التالي) */
        font-size: 15px;
    }

    .quiz-scoped-wrapper .stat-box {
        font-size: 13px; /* تصغير خط لوحة أعلى نتيجة */
        padding: 5px 12px;
    }
}

/* الأزرار البيضاوية الفخمة المطابقة لصورتك */
.dhikr-box .dhikr-secondary-btn {
    display: block; width: 100%; max-width: 280px; margin: 12px auto; padding: 14px;
    font-size: 16px; font-weight: 500; color: #d4af37; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 30px; cursor: pointer; transition: all 0.3s ease;
}
.dhikr-box .dhikr-secondary-btn:hover { background: rgba(212, 175, 55, 0.1); border-color: #d4af37; }

/* أزرار الأذكار المضافة بداخل القائمة المنسدلة */
#my-favorites-buttons-zone { width: 100%; max-width: 280px; margin: 10px auto; display: flex; flex-direction: column; gap: 10px; }
.dhikr-box .fav-zone-hidden { display: none !important; }

.dhikr-box .custom-added-zekr-btn {
    width: 100%; padding: 12px 18px; background: rgba(0, 240, 255, 0.03); border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff; font-size: 15px; font-weight: 500; border-radius: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}
.dhikr-box .custom-added-zekr-btn:hover { background: rgba(0, 240, 255, 0.08); border-color: #00f0ff; }
.dhikr-box .zekr-badge-count { background: rgba(255, 255, 255, 0.08); color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 12px; }

/* 🔒 فئة السحر البرمجي لإخفاء الكارد الثاني تماماً لحين استدعائه 🔒 */
.slide-scoped-wrapper .fav-card-hidden, 
.dhikr-scoped-wrapper .fav-card-hidden {
    display: none !important;
}

/* 🌟 تصميم زرار العودة المودرن الشيك جداً المضاف حديثاً 🌟 */
.dhikr-box .dhikr-back-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 5px auto;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    color: #8e93a3; /* لون رمادي هادئ ومودرن */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dhikr-box .dhikr-back-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.dhikr-box #tasbihBtn, .dhikr-box #favTasbihBtn { margin-bottom: 8px; }
.dhikr-box #resetBtn, .dhikr-box #favResetBtn { margin-top: 15px; background: transparent; border: none; color: #555c6d; cursor: pointer; font-size: 14px; }
.dhikr-box #resetBtn:hover, .dhikr-box #favResetBtn:hover { color: #ff3131; }
/* =======================================================
   🌟 تنسيق الدائرة والرقم النيوني لكارد الذكر المفضل المنفصل 🌟
   ======================================================= */

/* جعل حاوية الدائرة نسبية ليتوسطها الرقم بالملي */
#custom-fav-card .circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;

    
}

/* ضبط لون الدائرة الـ SVG الخلفية والمتحركة بلمسة زرقاء نيوني فخمة */
#custom-fav-card .progress-ring-bg {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.05); /* إطار خلفي خافت جداً */
    stroke-width: 6px;
}

#custom-fav-card #favProgressCircle {
    fill: transparent;
    stroke: #00f0ff; /* لون تعبئة العداد أزرق نيوني ساحر */
    stroke-width: 6px;
    stroke-linecap: round;
    transform: rotate(-90deg); /* تدوير بدء العداد من الأعلى */
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5)); /* توهج نيون ناعم لخط الدائرة */
    transition: stroke-dashoffset 0.3s ease;
}

/* 🎯 روعة وضع وتكثير الرقم في نص الدائرة تماماً 🎯 */
#custom-fav-card #fav-count {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-pure);
    font-weight: 500;
}

/* تنسيق زر التسبيح البيضاوي الخاص بالذكر المفضل (أزرق نيوني فخم ومطفي) */
#custom-fav-card #favTasbihBtn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 20px auto 12px auto;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #00f0ff; /* خط أزرق */
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.35); /* إطار أزرق نيوني رفيع جداً */
    border-radius: 30px; /* تصميم بيضاوي مطابق لصورتك الأصلي */
    cursor: pointer;
    font-family: inherit;
}
#custom-fav-card #favTasbihBtn:hover {
    background: #00f0ff;
    color: #000000;
    font-weight: bold;
}

@import url(https://fonts.googleapis.com/css2?family=Amiri:wght@700&family=Cairo:wght@400;600&display=swap);
.quran-badge,.quran-video-title,.quran-intro-title{
    font-family: 'Plus Jakarta Sans', 'Amiri', serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}