/* ===== article.php page styles ===== */
.single-article { max-width: 850px; margin: 0 auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 48px; box-shadow: 0 8px 32px rgba(0,0,0,0.04); }
.article-header { border-bottom: 2px solid #f1f5f9; padding-bottom: 32px; margin-bottom: 32px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 20px; color: #4f46e5; text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.article-cat-badge { display: inline-block; background: #eef2ff; color: #4f46e5; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.article-header h1 { margin: 0 0 20px; color: #0f172a; font-size: 36px; line-height: 1.3; font-weight: 800; }
.article-info { display: flex; gap: 24px; color: #64748b; font-size: 14px; justify-content: center; font-weight: 600; }
.article-body { font-size: 18px; line-height: 2; color: #334155; }
.article-body h2 { margin: 40px 0 20px; color: #0f172a; font-size: 26px; font-weight: 800; }
.article-body h3 { margin: 32px 0 16px; color: #0f172a; font-size: 22px; font-weight: 700; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 20px 0; padding-right: 28px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { margin: 28px 0; padding: 20px 28px; background: #eef2ff; border-right: 4px solid #4f46e5; border-radius: 10px; color: #3730a3; font-style: italic; }
.article-footer { margin-top: 40px; padding-top: 28px; border-top: 2px solid #f1f5f9; text-align: center; }
@media (max-width: 768px) { .single-article { padding: 24px; } .article-header h1 { font-size: 26px; } }


/* ===== articles.php page styles ===== */
/* ═══ التصنيفات ═══ */
.articles-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; justify-content: center; }
.cat-btn { padding: 10px 22px; border: 1px solid #e2e8f0; background: #ffffff; color: #475467; border-radius: 25px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.cat-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.cat-btn.active { background: #4f46e5; color: #ffffff; border-color: #4f46e5; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

/* ═══ شبكة المقالات ═══ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px; text-decoration: none; color: inherit; transition: all 0.3s ease; position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 4px; background: #4f46e5; opacity: 0; transition: opacity 0.3s; }
.article-card:hover { border-color: #c7d2fe; box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1); transform: translateY(-6px); }
.article-card:hover::before { opacity: 1; }

.article-cat { display: inline-block; background: #eef2ff; color: #4f46e5; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 16px; align-self: flex-start; }
.article-card h3 { margin: 0 0 12px; color: #0f172a; font-size: 20px; line-height: 1.4; font-weight: 800; }
.article-card p { margin: 0 0 20px; color: #64748b; font-size: 14px; line-height: 1.7; flex-grow: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 13px; font-weight: 600; padding-top: 16px; border-top: 1px solid #f1f5f9; }


/* ===== athkar.php page styles ===== */
.athkar-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.athkar-tab { padding: 10px 20px; border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.athkar-tab:hover { background: #f2f4f7; }
.athkar-tab.active { background: #334155; color: #fff; border-color: #334155; }

.athkar-category { max-width: 900px; margin: 0 auto; }
.category-header { text-align: center; margin-bottom: 24px; }
.category-header h2 { color: #0f172a; margin: 0 0 6px; font-size: 24px; }
.category-time { color: #64748b; font-size: 14px; margin: 0; }

.athkar-list { display: flex; flex-direction: column; gap: 16px; }
.athkar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 24px; transition: all 0.2s; }
.athkar-card:hover { box-shadow: 0 4px 12px rgba(15,23,42,0.06); }
.athkar-card.completed { background: #f0fdf4; border-color: #86efac; }

/* ✅ ستايل العنوان (تمت إضافته) */
.athkar-title { font-size: 20px; font-weight: 800; color: #334155; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; text-align: center; }

.athkar-text { font-size: 18px; line-height: 2.1; color: #0f172a; margin: 0 0 12px; font-family: 'Traditional Arabic', 'Scheherazade New', serif; text-align: center; direction: rtl; }
.athkar-virtue { font-size: 13px; color: #78716c; margin: 0 0 16px; padding: 8px 12px; background: #fef9c3; border-right: 3px solid #facc15; border-radius: 6px; text-align: center; }

.athkar-counter-box { display: flex; justify-content: center; }
.athkar-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 40px; background: #334155; color: #fff; border: none; border-radius: 12px; cursor: pointer; transition: all 0.15s; font-family: inherit; min-width: 140px; }
.athkar-btn:hover { background: #1e293b; }
.athkar-btn:active { transform: scale(0.97); }
.athkar-btn.completed { background: #067647; cursor: default; }
.counter-num { font-size: 26px; font-weight: 800; line-height: 1; }
.counter-label { font-size: 11px; opacity: 0.85; }


/* ===== faqs.php page styles ===== */
.faq-hero { padding: 34px 0 38px; }
.faq-eyebrow { margin: 0 0 8px; color: #d9b867; font-weight: 800; }
.faq-search { display: flex; gap: 9px; max-width: 720px; margin: 24px auto 0; padding: 7px; background: #fff; border: 1px solid #d9e6df; border-radius: 16px; box-shadow: 0 12px 35px rgba(10,58,46,.09); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 15px; font: inherit; background: transparent; }
.faq-search button, .faq-actions button { border: 0; border-radius: 11px; padding: 10px 17px; color: #fff; background: #0d5b49; font: inherit; font-weight: 800; cursor: pointer; }
.user-question-form{display:grid;gap:10px;max-width:720px;margin:18px auto 0;padding:18px;border:1px solid #d9e6df;border-radius:18px;background:rgba(255,255,255,.96);text-align:start;box-shadow:0 12px 35px rgba(10,58,46,.07)}
.faq-user-question-section{padding:22px;border:1px solid #dbe8df;border-radius:22px;background:linear-gradient(135deg,#f4f8f2,#fffaf0);box-shadow:0 14px 38px rgba(10,58,46,.06)}.faq-user-question-section .faq-section-heading{align-items:start}.faq-special-badge{display:inline-flex;margin-bottom:8px;padding:5px 12px;border-radius:99px;background:#0d5b49;color:#fff;font-size:12px;font-weight:800}.faq-user-question-section .faq-section-heading h2{font-size:24px}.faq-user-question-section .faq-question-card{background:rgba(255,255,255,.88)}.faq-user-question-empty{color:#718078}.faq-ask-form{margin:18px auto 0}.faq-ask-form h2{margin:0;color:#104a3b;font-size:19px}
.user-question-form h2{margin:0;color:#104a3b;font-size:19px}.user-question-form p{margin:0;color:#68786e;font-size:14px;line-height:1.8}.user-question-form textarea{width:100%;min-height:100px;padding:12px 14px;border:1px solid #d9e6df;border-radius:12px;background:#fff;font:inherit;resize:vertical}.user-question-form button{justify-self:start;border:0;border-radius:11px;padding:11px 18px;background:#0d5b49;color:white;font:inherit;font-weight:800;cursor:pointer}.user-question-form button:disabled{opacity:.65}.user-question-feedback{min-height:1.4em;color:#104a3b;font-size:14px;line-height:1.7}
.faq-hub { max-width: 1120px; }
.faq-list-section { margin: 0 0 34px; }
.faq-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 15px; }
.faq-section-heading h2, .faq-detail-card h2 { margin: 0; color: #173b30; }
.faq-section-heading p { margin: 5px 0 0; color: #718078; }
.faq-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.faq-category-card, .faq-question-card { display: flex; align-items: center; gap: 14px; padding: 17px; background: #fff; border: 1px solid #e2ebe6; border-radius: 15px; color: #173b30; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.faq-category-card:hover, .faq-question-card:hover { transform: translateY(-2px); border-color: #a8c9b8; box-shadow: 0 10px 25px rgba(15,60,45,.08); }
.faq-category-card > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.faq-category-card small, .faq-question-card small { color: #7b8981; }
.faq-category-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; background: #eef5ef; color: #0d5b49; font-size: 22px; }
.faq-arrow { color: #8ba295; }
.faq-question-list { display: grid; gap: 9px; }
.faq-question-card { justify-content: space-between; }
.faq-featured-badge { padding: 5px 9px; border-radius: 999px; background: #fbf4df; color: #80621a; font-size: 12px; white-space: nowrap; }
.faq-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #718078; }
.faq-breadcrumb a { color: #0d5b49; text-decoration: none; }
.faq-detail-card { padding: clamp(20px,4vw,42px); background: #fff; border: 1px solid #e2ebe6; border-radius: 20px; box-shadow: 0 12px 35px rgba(10,58,46,.06); }
.faq-detail-meta { display: flex; gap: 8px; margin-bottom: 14px; color: #0d5b49; font-weight: 700; }
.faq-detail-answer { margin-top: 21px; color: #374b41; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.faq-source { margin-top: 25px; padding: 17px 19px; border-right: 3px solid #d9b867; border-radius: 10px; background: #f7f8f4; }
.faq-source h3 { margin: 0 0 8px; font-size: 15px; color: #173b30; }
.faq-source p { margin: 0; color: #58675f; line-height: 1.8; }
.faq-review-date { margin-top: 18px; color: #7b8981; font-size: 13px; }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1ee; }
.faq-actions button { padding: 8px 12px; font-size: 13px; }
.faq-actions button[data-faq-share] { background: #eef5ef; color: #0d5b49; }
.faq-actions button[data-faq-helpful="no"] { background: #f1f3f1; color: #53645a; }
.faq-feedback { color: #0d5b49; font-size: 13px; }
@media(max-width:650px) { .faq-category-grid { grid-template-columns: 1fr; } .faq-search { margin-top: 18px; } .faq-section-heading { align-items: start; } .faq-actions { align-items: start; }.user-question-form{padding:15px}.user-question-form button{width:100%} }
.faq-category { margin-bottom: 32px; }
.faq-cat-title { color: #0f172a; font-size: 22px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #eff6ff; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s; }
.faq-item[open] { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(23,92,211,0.08); }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; color: #0f172a; font-size: 16px; list-style: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #eff6ff; color: #175cd3; border-radius: 50%; font-weight: 700; font-size: 18px; transition: all 0.2s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: #175cd3; color: #fff; }
.faq-answer { padding: 0 20px 20px 60px; color: #334155; line-height: 1.9; font-size: 15px; }
.faq-answer p { margin: 0 0 12px; }
@media (max-width: 600px) { .faq-answer { padding: 0 20px 20px 20px; } }


/* ===== hijri-calendar.php page styles ===== */
/* ═══ التنقل ═══ */
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; background: #fff; padding: 16px 20px; border-radius: 14px; border: 1px solid #e2e8f0; }
.cal-nav-btn { padding: 10px 18px; background: #334155; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.cal-nav-btn:hover { background: #1e293b; }
.cal-selectors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-selectors select { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; cursor: pointer; color: #0f172a; }
.cal-today-btn { padding: 10px 18px; background: #f8fafc; color: #334155; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid #e2e8f0; }
.cal-today-btn:hover { background: #f1f5f9; }

/* ═══ عنوان الشهر ═══ */
.month-title { text-align: center; margin-bottom: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.month-title h2 { margin: 0 0 6px; color: #0f172a; font-size: 26px; font-weight: 800; }
.month-title p { margin: 0; color: #64748b; font-size: 16px; font-weight: 600; }

/* ═══ الرزنامة ═══ */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 32px; }
.cal-header { text-align: center; font-weight: 700; color: #64748b; font-size: 13px; padding: 12px 4px; background: #f8fafc; border-radius: 8px; }
.cal-header-friday { color: #334155; background: #e2e8f0; }
.cal-day { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 6px; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; transition: all 0.2s; }
.cal-day:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cal-day.cal-empty { background: transparent; border: none; }
.cal-day.cal-today { border-color: #334155; border-width: 2px; background: #f8fafc; }
.cal-day.cal-today::before { content: 'اليوم'; position: absolute; top: -8px; right: 8px; background: #334155; color: #fff; font-size: 9px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.cal-day.cal-friday { background: #f8fafc; }
.cal-day.cal-event { background: #fefce8; border-color: #facc15; }
.cal-greg-day { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; }
.cal-hijri-day { font-size: 12px; color: #64748b; margin-top: 6px; text-align: center; line-height: 1.4; }
.cal-event-icon { font-size: 20px; margin-top: 6px; }

/* ═══ المناسبات ═══ */
.month-events-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; }
.month-events-box h3 { margin: 0 0 20px; color: #0f172a; font-size: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; }
.month-events-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.month-events-list li { display: flex; align-items: center; gap: 16px; padding: 16px; background: #f8fafc; border-radius: 12px; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; padding: 8px 12px; background: #334155; color: #fff; border-radius: 10px; }
.event-g-day { font-size: 24px; font-weight: 800; line-height: 1; }
.event-g-month { font-size: 11px; margin-top: 2px; }
.event-content strong { display: block; color: #0f172a; margin-bottom: 4px; font-size: 16px; }
.event-content p { margin: 0; color: #64748b; font-size: 13px; }

/* ═══ الموبايل ═══ */
@media (max-width: 700px) {
    .calendar-grid { gap: 4px; }
    .cal-day { min-height: 75px; padding: 8px 2px; }
    .cal-greg-day { font-size: 20px; }
    .cal-hijri-day { font-size: 9px; margin-top: 3px; }
    .cal-event-icon { font-size: 14px; margin-top: 3px; }
    .cal-header { font-size: 10px; padding: 8px 2px; }
    .month-title h2 { font-size: 20px; }
    .month-title p { font-size: 14px; }
    .cal-nav-btn, .cal-today-btn { padding: 8px 12px; font-size: 12px; }
    .cal-selectors { width: 100%; justify-content: center; }
}


/* ===== names.php page styles ===== */
.names-search-wrapper { display: flex; justify-content: center; margin-top: 20px; }
.names-search-input { width: 100%; max-width: 500px; padding: 14px 20px; border: 1px solid #d0d5dd; border-radius: 12px; font-size: 16px; font-family: inherit; background: #fff; transition: all 0.2s; text-align: center; }
.names-search-input:focus { outline: none; border-color: #175cd3; box-shadow: 0 0 0 3px rgba(23,92,211,0.15); }
.names-count { text-align: center; margin-top: 12px; color: #64748b; font-size: 14px; }

.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.name-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px 20px 20px; transition: all 0.2s; }
.name-card:hover { border-color: #93c5fd; box-shadow: 0 6px 20px rgba(23,92,211,0.08); transform: translateY(-2px); }
.name-card.read { background: #f0fdf4; border-color: #86efac; }
.name-card.read .name-read-btn { background: #067647; cursor: default; }

.name-number { position: absolute; top: 10px; left: 12px; width: 32px; height: 32px; background: #175cd3; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.name-card.read .name-number { background: #067647; }

.name-title { font-size: 28px; color: #175cd3; margin: 8px 0 12px; text-align: center; font-family: 'Traditional Arabic', 'Scheherazade New', serif; font-weight: 700; }
.name-card.read .name-title { color: #067647; }

.name-meaning { font-size: 15px; color: #334155; margin: 0 0 12px; text-align: center; font-weight: 600; line-height: 1.6; }

.name-explain { font-size: 13px; color: #64748b; line-height: 1.8; margin: 0 0 16px; padding: 10px 12px; background: #f9fafb; border-radius: 8px; border-right: 3px solid #175cd3; }

.name-card.read .name-explain { background: #f0fdf4; border-right-color: #067647; }

.name-read-btn { display: block; width: 100%; padding: 10px; background: #175cd3; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit; transition: all 0.2s; }
.name-read-btn:hover { background: #1849a9; }

.no-results { text-align: center; padding: 40px; color: #94a3b8; font-size: 16px; }


/* ===== quran.php page styles ===== */
.quran-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.surah-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: inherit; transition: all 0.2s; }
.surah-card:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.surah-number { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #334155; color: white; border-radius: 50%; font-weight: 700; flex-shrink: 0; }
.surah-info b { display: block; font-size: 16px; color: #0f172a; margin-bottom: 2px; }
.surah-info small { color: #64748b; font-size: 12px; }


/* ===== surah.php page styles ===== */
/* ═══ Hero ═══ */
.surah-hero { text-align: center; }
.surah-breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.surah-breadcrumb a { color: #334155; text-decoration: none; }
.surah-breadcrumb a:hover { text-decoration: underline; }
.surah-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; color: #64748b; font-size: 14px; }

/* ═══ التنقل بين السور ═══ */
.surah-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.surah-nav-bottom { margin-top: 32px; margin-bottom: 0; }
.nav-btn { padding: 10px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #334155; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.nav-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.nav-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.nav-btn-center { background: #334155; color: #fff; border-color: #334155; }
.nav-btn-center:hover { background: #1e293b; }

/* ═══ بطاقة الصوت ═══ */
.audio-card { max-width: 900px; margin: 0 auto 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.audio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.audio-info { display: flex; align-items: center; gap: 14px; }
.audio-icon { font-size: 32px; }
.audio-info h3 { margin: 0 0 4px; color: #0f172a; font-size: 18px; }
.audio-current-reciter { margin: 0; color: #64748b; font-size: 13px; }
.btn-print { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 16px; transition: all 0.2s; }
.btn-print:hover { background: #f1f5f9; }

/* ═══ القراء ═══ */
.reciters-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.reciters-label { margin: 0 0 10px; color: #64748b; font-size: 13px; font-weight: 600; }
.reciters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.reciter-chip { display: flex; flex-direction: column; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: #334155; transition: all 0.2s; }
.reciter-chip:hover { background: #f1f5f9; border-color: #cbd5e1; }
.reciter-chip.active { background: #334155; border-color: #334155; color: #fff; }
.reciter-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.reciter-country { font-size: 11px; opacity: 0.7; }

/* ═══ التنقل بين الصفحات ═══ */
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; background: #f8fafc; padding: 12px 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.page-selector { display: flex; align-items: center; gap: 8px; }
.page-selector label { font-size: 14px; font-weight: 600; color: #334155; }
.page-selector select { padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; cursor: pointer; }

/* ═══ صفحة المصحف ═══ */
.mushaf-image { width: 100%; max-width: 600px; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); background-color: #fff; }

/* ═══ الطباعة ═══ */
@media print {
    .audio-card, .page-nav, .surah-nav, .surah-hero .surah-breadcrumb, .intro { display: none !important; }
    .mushaf-image { box-shadow: none; border: none; }
    body { background: #fff; }
}

/* ═══ الموبايل ═══ */
@media (max-width: 600px) {
    .audio-header { flex-direction: column; }
    .reciters-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-btn { padding: 8px 14px; font-size: 13px; }
    .page-nav { flex-direction: column; align-items: stretch; }
}


/* ===== tools.php page styles ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.tool-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px; box-shadow: 0 4px 12px rgba(15,23,42,0.04); }
.tool-card h2 { margin: 0 0 8px; color: #0f172a; font-size: 20px; }
.tool-desc { color: #64748b; font-size: 14px; margin: 0 0 20px; }

.tool-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tool-tab { flex: 1; padding: 10px; border: 1px solid #d0d5dd; background: #f9fafb; color: #344054; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; transition: all 0.2s; }
.tool-tab.active { background: #175cd3; color: #fff; border-color: #175cd3; }

.tool-inputs label { display: flex; flex-direction: column; gap: 6px; }
.tool-inputs span { font-weight: 600; color: #334155; font-size: 14px; }
.tool-inputs input, .tool-inputs select { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit; }
.hijri-inputs-row { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; }

.tool-result { margin-top: 20px; padding: 20px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; }
.tool-result h3 { margin: 0 0 8px; color: #0369a1; font-size: 14px; }
.result-text { font-size: 18px; color: #0f172a; font-weight: 700; margin: 0; line-height: 1.6; }
.result-big { font-size: 24px; color: #175cd3; }
.tool-note { font-size: 12px; color: #64748b; margin: 12px 0 0; line-height: 1.6; }

@media (max-width: 700px) { .tools-grid { grid-template-columns: 1fr; } }


/* ===== zakat.php page styles ===== */
.zakat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.zakat-tab { padding: 10px 20px; border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; transition: all 0.2s; }
.zakat-tab:hover { background: #f2f4f7; }
.zakat-tab.active { background: #175cd3; color: #fff; border-color: #175cd3; }

.zakat-content { display: none; max-width: 700px; margin: 0 auto; }
.zakat-content.active { display: block; }

.zakat-info { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.zakat-info h3 { margin: 0 0 12px; color: #0369a1; font-size: 18px; }
.zakat-info p { margin: 0 0 8px; color: #334155; line-height: 1.8; font-size: 15px; }
.zakat-info ul, .zakat-info ol { margin: 8px 0 0; padding-right: 24px; color: #334155; }
.zakat-info li { margin-bottom: 6px; line-height: 1.7; }

.zakat-calculator { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.zakat-calculator label { display: flex; flex-direction: column; gap: 6px; }
.zakat-calculator span { font-weight: 600; color: #334155; font-size: 14px; }
.zakat-calculator input, .zakat-calculator select { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit; }
.zakat-calculator input:focus, .zakat-calculator select:focus { outline: none; border-color: #175cd3; box-shadow: 0 0 0 3px rgba(23,92,211,0.1); }
.calc-btn { width: 100%; margin-top: 8px; }

.result-box { background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 12px; padding: 20px; text-align: center; margin-top: 12px; }
.result-box p { margin: 0 0 8px; color: #065f46; font-weight: 600; }
.result-box h2 { margin: 8px 0; color: #047857; font-size: 32px; font-weight: 800; }
.result-box h3 { margin: 4px 0; color: #047857; font-size: 20px; }
.result-note { font-size: 13px; color: #64748b !important; margin-top: 12px !important; font-weight: 400 !important; }

.zakat-disclaimer { max-width: 700px; margin: 32px auto 0; background: #fefce8; border: 1px solid #facc15; border-radius: 12px; padding: 16px 20px; }
.zakat-disclaimer p { margin: 0; color: #713f12; font-size: 14px; line-height: 1.8; }

