
        /* الأساسيات وإلغاء التحديد الأزرق */
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }
        *:focus { outline: none !important; }
        
        button, .cat-btn, .counter-circle {
            user-select: none;
            -webkit-user-select: none;
        }

        :root {
            --primary: #1A3A5F;
            --secondary: #D4AF37;
            --bg-app: #F0F4F8;
            --card-white: #FFFFFF;
            --text-main: #333;
        }

        body {
            margin: 0;
            background: #E2E8EF; /* خلفية الصفحة الخارجية */
            font-family: 'Cairo', sans-serif;
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }

        .app-container {
            background: var(--bg-app);
            width: 100%;
            max-width: 414px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* الهيدر الثابت */
        .fixed-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border-radius: 0 0 25px 25px;
        }

        .top-bar {
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar h2 {
            margin: 0;
            color: var(--primary);
            font-size: 1.2rem;
            font-weight: 800;
        }

        .back-home-btn {
            background: var(--bg-app);
            border: none;
            padding: 8px 15px;
            border-radius: 12px;
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
            font-size: 0.85rem;
        }

        .hasanat-badge {
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
        }

        /* شريط التصنيفات */
        .categories-bar {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            padding: 10px 15px 15px;
            scrollbar-width: none;
        }
        .categories-bar::-webkit-scrollbar { display: none; }

        .cat-btn {
            background: white;
            border: 1.5px solid #eee;
            border-radius: 15px;
            padding: 8px 20px;
            color: var(--text-main);
            font-weight: 700;
            white-space: nowrap;
            transition: 0.3s;
            cursor: pointer;
            font-family: 'Cairo';
            font-size: 0.9rem;
        }

        .cat-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 4px 10px rgba(26,58,95,0.2);
        }

        /* قائمة الأذكار */
        .azkar-list {
            padding: 20px 15px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex: 1;
        }

        .zekr-card {
            background: white;
            border-radius: 25px;
            padding: 20px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.03);
            border-right: 6px solid #6c93c1;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .zekr-text {
            font-size: 1.15rem;
            line-height: 1.8;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 15px;
            text-align: justify;
        }

        .zekr-bless {
            font-size: 0.9rem;
            color: #666;
            background: #f9f9f9;
            padding: 10px;
            border-radius: 15px;
            margin-bottom: 15px;
            line-height: 1.5;
        }

/* تعديل حاوية التذييل لتجعل الزر يأخذ العرض الكامل */
.card-footer {
    display: flex;
    flex-direction: column; /* تغيير الاتجاه ليكون عمودي */
    align-items: center;
    gap: 10px; /* مسافة بين نص التكرار والزر */
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* تعديل الزر ليكون عريضاً (Full Width) */
.counter-circle {
    width: 100%; /* جعل الزر يملأ عرض الكرت */
    height: 50px; /* تقليل الارتفاع قليلاً ليناسب العرض */
    border-radius: 15px; /* تغيير الحواف لتكون مستطيلة دائرية بدلاً من دائرة كاملة */
    background: #345882;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    transition: all 0.2s;
}

/* تأثير الضغط للزر العريض */
.counter-circle:active {
    transform: scale(0.98); /* تصغير بسيط جداً عند الضغط */
    background: var(--primary); /* اختياري: تغيير اللون عند الضغط */
}
        .counter-circle.zero { background: #4CAF50; box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3); }

        /* مودال النهاية */
        #done-modal {
            position: fixed;
            inset: 0;
            background: rgba(255, 255, 255, 0.95);
            z-index: 2000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
        }

        body {
            margin: 0;
            background: var(--bg-app); /* توحيد لون الخلفية */
            font-family: 'Cairo', sans-serif;
            min-height: 100vh;
        }

        .app-container {
            background: var(--bg-app);
            width: 100%;
            max-width: 100%; /* إزالة الحد الأقصى لملء الشاشة بالكامل */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            /* لو ضفت قائمة سفلية (Bottom Nav) في الصفحة دي مستقبلاً، سيب الـ padding-bottom ده */
            padding-bottom: 100px; 
        }

        /* تنسيق الشاشات الكبيرة (الكمبيوتر والتابلت) */
        @media (min-width: 768px) {
            .app-container {
                padding-left: 5%;
                padding-right: 5%;
            }
            
            .azkar-list {
                display: grid;
                /* تقسيم كروت الأذكار لشبكة متجاوبة عشان متكونش ممطوطة بزيادة */
                grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
                gap: 20px;
            }
        }
