/* ============================================================
   غِنديات – الملف الرئيسي للأنماط
   Islamic Luxury Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;600;700;800&display=swap');

/* ── المتغيرات ── */
:root {
  /* الذهبي المطفي – الهوية البصرية الجديدة */
  --gold-primary:    #C5A059;
  --gold-light:      #D4B578;
  --gold-lighter:    #E8D0A0;
  --gold-dark:       #9E7A3A;
  --gold-shine:      #F0DFB0;
  --gold-gradient:   linear-gradient(135deg, #9E7A3A 0%, #C5A059 40%, #E8D0A0 60%, #C5A059 100%);

  /* البني الداكن – اللون الأساسي الجديد */
  --brown-dark:      #3D2B1F;
  --brown-primary:   #2A1A0E;
  --brown-medium:    #5C3D24;
  --brown-light:     #7A5535;
  --brown-lighter:   #C8A96E;

  /* الكريمي – خلفية البطاقات */
  --cream-primary:   #FBF6EE;
  --cream-dark:      #F0E8D8;
  --cream-darker:    #E8D8C0;
  --cream-card:      #FFFFFF;

  /* الأخضر الزيتوني – ثانوي */
  --olive-primary:   #5C6B2C;
  --olive-dark:      #3D4A1F;
  --olive-light:     #7A8A40;
  --olive-lighter:   #A8B870;
  --olive-pale:      #E8F0D0;

  /* الأبيض والنصي */
  --white:           #FFFFFF;
  --text-dark:       #2A1A0E;
  --text-medium:     #5C3D24;
  --text-light:      #7A5535;
  --text-muted:      #9E7A3A;

  /* الظلال */
  --shadow-sm:       0 2px 10px rgba(61,43,31,.12);
  --shadow-md:       0 6px 24px rgba(61,43,31,.18);
  --shadow-lg:       0 12px 48px rgba(61,43,31,.25);
  --shadow-gold:     0 4px 24px rgba(197,160,89,.35);
  --shadow-gold-lg:  0 8px 48px rgba(197,160,89,.45);

  /* الأبعاد */
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --radius-xl:       40px;
  --radius-full:     9999px;

  /* الانتقالات */
  --transition:      all .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .5s cubic-bezier(.4,0,.2,1);

  /* ارتفاع شريط التنقل */
  --nav-h:           80px;
}

/* ── إعادة الضبط ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Cairo', 'Amiri', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--cream-primary);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ── شريط التمرير ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--brown-light));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── الطباعة ── */
h1, h2, h3, h4, h5 {
  font-family: 'Amiri', 'Scheherazade New', serif;
  color: var(--brown-dark);
  line-height: 1.4;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.2rem); }

p { font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-medium); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   المكونات المشتركة
   ============================================================ */

/* ── زخرفة البسملة / الفاصل الزخرفي ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px auto;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: var(--gold-gradient);
}
.ornament span {
  color: var(--gold-primary);
  font-size: 1.6rem;
  font-family: 'Scheherazade New', serif;
}

/* ── فاصل ذهبي ── */
.gold-divider {
  width: 120px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 16px auto;
  border-radius: var(--radius-full);
  position: relative;
}
.gold-divider::before,
.gold-divider::after {
  content: '❖';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 0.8rem;
}
.gold-divider::before { right: -20px; }
.gold-divider::after  { left: -20px; }

/* ── رأس القسم ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-label {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--brown-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-gold);
}
.section-header h2 {
  margin-bottom: 16px;
  position: relative;
}
.section-header p { max-width: 600px; margin: 0 auto; }

/* ── الأزرار ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gold-gradient);
  color: var(--brown-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}
.btn-secondary:hover {
  background: var(--gold-primary);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--brown-dark);
  color: var(--gold-lighter);
  box-shadow: var(--shadow-md);
}
.btn-dark:hover {
  background: var(--brown-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-olive {
  background: var(--olive-primary);
  color: var(--cream-primary);
  box-shadow: var(--shadow-md);
}
.btn-olive:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 48px; font-size: 1.15rem; }

/* ── الشارات ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-gold   { background: var(--gold-gradient); color: var(--brown-dark); }
.badge-olive  { background: var(--olive-pale); color: var(--olive-dark); border: 1px solid var(--olive-lighter); }
.badge-brown  { background: var(--brown-dark); color: var(--gold-lighter); }
.badge-cream  { background: var(--cream-dark); color: var(--brown-primary); border: 1px solid var(--gold-lighter); }

/* ── البطاقة ── */
.card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(197,160,89,.2);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197,160,89,.5);
}
.card-body { padding: 28px; }

/* ── النقوش ── */
.islamic-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(197,160,89,.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(45,106,79,.1) 0%, transparent 50%);
}

/* ── خلفية الزخرفة الإسلامية ── */
.pattern-bg {
  position: relative;
}
.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 L55 25 L55 35 L30 55 L5 35 L5 25Z' fill='none' stroke='rgba(197,160,89,0.14)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='rgba(197,160,89,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   شريط التنقل
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(42, 26, 14, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid rgba(197,160,89,.35);
  box-shadow: 0 3px 24px rgba(0,0,0,.3);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(42, 26, 14, 1);
  box-shadow: 0 6px 36px rgba(0,0,0,.4);
  border-bottom-color: rgba(197,160,89,.7);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  border: 2px solid var(--gold-lighter);
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text .brand-name,
.nav-logo-text .brand {
  font-family: 'Scheherazade New', 'Amiri', serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}
.nav-logo-text .brand-name { color: #FFFFFF !important; }
/* كلمة غنديات بالأبيض الصلب – الهوية البصرية */
.brand-ghan { color: #FFFFFF !important; }
.brand-dyat { color: var(--gold-light); }
/* فوتر */
.fbrand-w { color: #FFFFFF !important; }
.fbrand-g { color: var(--gold-light); }
.nav-logo-text .brand-sub {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.93rem;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  left: 50%;
  height: 2.5px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 0 8px rgba(197,160,89,.5);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active { background: rgba(197,160,89,.15); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 8px; left: 8px; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(197,160,89,.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1.5px solid rgba(197,160,89,.4);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* شريط الإعلانات */
.announcements-bar {
  background: linear-gradient(90deg, #2A1A0E 0%, #3D2B1F 30%, #5C3D24 50%, #3D2B1F 70%, #2A1A0E 100%);
  color: var(--gold-shine);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  position: fixed;
  top: var(--nav-h);
  right: 0; left: 0;
  z-index: 999;
  overflow: hidden;
}
.announcements-bar .ticker {
  display: inline-flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
}
.announcements-bar .ticker-item {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcements-bar .ticker-item i { color: var(--gold-shine); text-shadow: 0 0 10px rgba(197,160,89,.6); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   قسم الهيرو / البانر الرئيسي
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 44px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(155deg,
    #2A1A0E 0%,
    #3D2B1F 35%,
    #4A3020 65%,
    #2A1A0E 100%
  );
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(197,160,89,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 55%;
  height: 85%;
  background: radial-gradient(ellipse, rgba(45,106,79,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* كاروسيل البانرات */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(28,10,0,.82) 0%,
    rgba(45,20,0,.65) 50%,
    rgba(27,67,50,.4) 100%
  );
}
.carousel-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  width: 32px;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(197,160,89,.7);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text { color: var(--cream-primary); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,160,89,.25);
  border: 1.5px solid rgba(197,160,89,.7);
  backdrop-filter: blur(12px);
  color: var(--gold-lighter);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(197,160,89,.3);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-badge i { color: var(--gold-light); filter: drop-shadow(0 0 6px rgba(197,160,89,.8)); }
.hero-title {
  font-family: 'Scheherazade New', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.3;
  color: var(--cream-primary);
  text-shadow: 0 3px 24px rgba(0,0,0,.5), 0 1px 0 rgba(0,0,0,.3);
  margin-bottom: 8px;
}
.hero-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(197,160,89,.5));
}
.hero-tagline {
  font-family: 'Amiri', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-lighter);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 2;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(197,160,89,.5);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
}
.stat-card:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(197,160,89,.85);
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(197,160,89,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.stat-card .stat-icon {
  font-size: 2.2rem;
  color: var(--gold-shine);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(197,160,89,.7));
}
.stat-card .stat-number {
  font-family: 'Scheherazade New', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-shine);
  display: block;
  line-height: 1;
  text-shadow: 0 0 20px rgba(197,160,89,.5);
}
.stat-card .stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,.9);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   الأقسام العامة
   ============================================================ */
.section {
  padding: 96px 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream-primary) 100%);
}
.section-dark {
  background: linear-gradient(160deg, #2A1A0E 0%, #3D2B1F 50%, #2A1A0E 100%);
  color: var(--cream-primary);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--gold-shine); }
.section-dark p { color: rgba(255,255,255,.88); }
.section-olive {
  background: linear-gradient(160deg, var(--olive-dark) 0%, var(--olive-primary) 100%);
  color: var(--cream-primary);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   بطاقة البرنامج
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.program-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(197,160,89,.2);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold-lg);
  border-color: rgba(197,160,89,.6);
}
.program-card-header {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-primary));
  position: relative;
  text-align: center;
  border-bottom: 2px solid rgba(197,160,89,.25);
}
.program-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 30%; left: 30%;
  height: 2px;
  background: var(--gold-gradient);
}
.program-emoji {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
.program-card-header h4 {
  font-size: 1.1rem;
  color: var(--brown-dark);
  line-height: 1.5;
}
.program-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-card-body p { font-size: 0.9rem; flex: 1; }
.program-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================================================
   بطاقة الشيخ
   ============================================================ */
.sheikhs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.sheikh-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(197,160,89,.2);
  transition: var(--transition);
  text-align: center;
}
.sheikh-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(197,160,89,.5);
  border-color: var(--gold-primary);
}
.sheikh-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #2A1A0E, #5C3D24);
  position: relative;
  overflow: hidden;
}
.sheikh-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.sheikh-card:hover .sheikh-card-image img { transform: scale(1.05); }
.sheikh-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold-lighter);
  opacity: .6;
}
.sheikh-card-body { padding: 24px; }
.sheikh-name {
  font-family: 'Scheherazade New', serif;
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.sheikh-speciality {
  font-size: 0.88rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.sheikh-bio { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.sheikh-recitations-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--olive-pale);
  color: var(--olive-dark);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ============================================================
   مشغّل التلاوة
   ============================================================ */
.recitation-player {
  background: linear-gradient(135deg, #2A1A0E, #3D2B1F);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(197,160,89,.3);
  transition: var(--transition);
}
.recitation-player:hover { border-color: rgba(197,160,89,.7); box-shadow: 0 8px 40px rgba(197,160,89,.3); }
.player-btn {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: var(--brown-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.player-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-gold-lg); }
.player-info { flex: 1; }
.player-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-lighter);
  margin-bottom: 4px;
}
.player-sub { font-size: 0.8rem; color: rgba(255,255,255,.6); }
.player-progress {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width .1s linear;
}
.player-time { font-size: 0.78rem; color: rgba(255,255,255,.5); white-space: nowrap; }

/* ============================================================
   الشهادات
   ============================================================ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.certificate-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(197,160,89,.3);
  transition: var(--transition);
  position: relative;
}
.certificate-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--gold-gradient);
}
.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold-lg);
  border-color: var(--gold-primary);
}
.certificate-preview {
  height: 180px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: var(--gold-primary);
}
.certificate-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.certificate-body { padding: 24px; }
.certificate-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.certificate-title {
  font-size: 1.15rem;
  font-family: 'Scheherazade New', serif;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

/* ============================================================
   لوحة التحكم
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #F0EBE0;
}

/* الشريط الجانبي */
.admin-sidebar {
  background: linear-gradient(180deg, var(--brown-dark) 0%, #2A1A00 100%);
  padding: 0;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.2);
}
.sidebar-logo {
  padding: 28px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(197,160,89,.15);
  background: rgba(0,0,0,.1);
}
.sidebar-logo img {
  width: 70px; height: 70px;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 2px solid rgba(197,160,89,.4);
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(197,160,89,.2);
}
.sidebar-logo .logo-name {
  font-family: 'Scheherazade New', serif;
  font-size: 1.2rem;
  color: var(--gold-lighter);
  font-weight: 700;
}
.sidebar-logo .logo-sub {
  font-size: 0.75rem;
  color: rgba(197,160,89,.7);
  margin-top: 4px;
}
.sidebar-section-title {
  padding: 16px 24px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(197,160,89,.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.sidebar-nav { flex: 1; padding: 8px; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  width: 100%;
  text-align: right;
  position: relative;
  overflow: hidden;
}
.sidebar-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,.05));
  opacity: 0;
  transition: var(--transition);
}
.sidebar-nav-item:hover {
  background: rgba(197,160,89,.08);
  color: var(--gold-lighter);
}
.sidebar-nav-item:hover::before { opacity: 1; }
.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(197,160,89,.2), rgba(197,160,89,.1));
  color: var(--gold-shine);
  border: 1px solid rgba(197,160,89,.3);
  box-shadow: 0 2px 12px rgba(197,160,89,.1);
}
.sidebar-nav-item .nav-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-nav-item.active .nav-icon {
  background: rgba(197,160,89,.2);
  color: var(--gold-primary);
}
.sidebar-nav-item .nav-badge {
  margin-right: auto;
  margin-left: 0;
  background: var(--gold-primary);
  color: var(--brown-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 8px;
  border-top: 1px solid rgba(197,160,89,.1);
}

/* المحتوى الرئيسي */
.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}
.admin-header {
  background: rgba(254,250,242,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197,160,89,.2);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.admin-header-right { display: flex; align-items: center; gap: 16px; }
.admin-page-title {
  font-family: 'Scheherazade New', serif;
  font-size: 1.4rem;
  color: var(--brown-dark);
  font-weight: 700;
}
.admin-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-header-left { display: flex; align-items: center; gap: 12px; }
.admin-topbar-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  border: 1px solid rgba(197,160,89,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-medium);
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}
.admin-topbar-btn:hover {
  background: var(--gold-lighter);
  color: var(--brown-dark);
}
.admin-topbar-btn .badge-dot {
  position: absolute;
  top: 6px; left: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E74C3C;
  border: 2px solid var(--cream-primary);
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--cream-dark);
  border: 1px solid rgba(197,160,89,.2);
  cursor: pointer;
  transition: var(--transition);
}
.admin-user:hover { background: var(--gold-lighter); }
.admin-user-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--brown-dark);
  font-weight: 700;
}
.admin-user-name { font-size: 0.88rem; font-weight: 700; color: var(--brown-dark); }

.admin-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* إحصائيات لوحة التحكم */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(197,160,89,.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--gold-gradient);
  border-radius: 0 0 0 60px;
  opacity: .1;
}
.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(197,160,89,.4);
}
.stat-icon-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-gold   { background: linear-gradient(135deg, rgba(197,160,89,.13), rgba(197,160,89,.27)); color: var(--gold-dark); }
.stat-icon-brown  { background: linear-gradient(135deg, #4A320022, #4A320044); color: var(--brown-primary); }
.stat-icon-olive  { background: linear-gradient(135deg, #5C6B2C22, #5C6B2C44); color: var(--olive-primary); }
.stat-icon-green  { background: linear-gradient(135deg, #2E7D3222, #2E7D3244); color: #2E7D32; }
.stat-info { flex: 1; }
.stat-info .stat-value {
  font-family: 'Scheherazade New', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-info .stat-label { font-size: 0.85rem; color: var(--text-muted); }
.stat-info .stat-change {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}
.stat-change.up { color: #2E7D32; }
.stat-change.down { color: #C62828; }

/* الجداول */
.admin-table-wrap {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197,160,89,.15);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(197,160,89,.1);
  flex-wrap: wrap;
}
.table-toolbar h3 {
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin: 0;
}
.table-toolbar-actions { display: flex; gap: 10px; align-items: center; }
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-dark);
  border: 1px solid rgba(197,160,89,.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.admin-search input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  width: 200px;
}
.admin-search i { color: var(--text-muted); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table thead tr {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-primary));
  border-bottom: 2px solid rgba(197,160,89,.2);
}
.admin-table th {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--brown-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(197,160,89,.08);
  color: var(--text-medium);
  vertical-align: middle;
}
.admin-table tbody tr { transition: var(--transition); }
.admin-table tbody tr:hover { background: rgba(197,160,89,.04); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 6px; }
.action-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}
.action-edit   { background: #E8F4FD; color: #1565C0; }
.action-delete { background: #FDEDED; color: #C62828; }
.action-view   { background: #E8F5E9; color: #2E7D32; }
.action-audio  { background: #FFF3E0; color: #E65100; }
.action-btn:hover { transform: scale(1.1); opacity: .85; }

/* حالة الفراغ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state p { font-size: 1rem; }

/* ── المودالات ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,15,0,.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(197,160,89,.3);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.85) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 2px solid rgba(197,160,89,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #FFF3D0, #FFFBF0);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.modal-header h3 {
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.modal-header h3 i { color: var(--gold-primary); }
.modal-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--cream-darker);
  border: 1.5px solid rgba(197,160,89,.3);
  color: var(--text-medium);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close:hover { background: #FDEDED; color: #C62828; border-color: #C62828; }
.modal-body { padding: 28px; }
.modal-footer {
  padding: 20px 28px;
  border-top: 1.5px solid rgba(197,160,89,.2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #FFF3D0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: sticky;
  bottom: 0;
}

/* ── نماذج الإدخال ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.span-2 { grid-column: span 2; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-primary);
}
.form-group label span { color: #C62828; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(197,160,89,.3);
  border-radius: var(--radius-sm);
  background: #FFFBF0;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(197,160,89,.18);
  background: var(--white);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* منطقة الرفع */
.upload-zone {
  border: 2px dashed rgba(197,160,89,.45);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: #FFF3D0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold-primary);
  background: rgba(197,160,89,.1);
  box-shadow: 0 0 0 4px rgba(197,160,89,.1);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  font-size: 2.4rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}
.upload-zone h4 {
  font-size: 1rem;
  color: var(--brown-primary);
  margin-bottom: 6px;
}
.upload-zone p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* نبذة الصورة */
.image-preview-box {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid rgba(197,160,89,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(197,160,89,.4);
  margin-bottom: 12px;
}
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; }

/* ── التبديل (Switch) ── */
.switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.switch {
  position: relative;
  width: 48px; height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(197,160,89,.2);
  border-radius: var(--radius-full);
  border: 1px solid rgba(197,160,89,.3);
  transition: var(--transition);
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  right: 3px; top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
input:checked + .switch-slider { background: var(--gold-gradient); border-color: var(--gold-primary); }
input:checked + .switch-slider::before {
  right: calc(100% - 23px);
  background: var(--brown-dark);
}

/* ── الإشعارات ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}
.toast {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197,160,89,.2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: toastIn .4s cubic-bezier(.34,1.56,.64,1);
  border-right: 4px solid var(--gold-primary);
}
.toast.success { border-right-color: #2E7D32; }
.toast.error   { border-right-color: #C62828; }
.toast.warning { border-right-color: #E65100; }
.toast i { font-size: 1.2rem; }
.toast.success i { color: #2E7D32; }
.toast.error i   { color: #C62828; }
.toast.warning i { color: #E65100; }
.toast-msg { font-size: 0.9rem; color: var(--text-dark); font-weight: 600; }
@keyframes toastIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── تحميل (Loader) ── */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(197,160,89,.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── شارة الحالة ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}
.status-active   { background: #E8F5E9; color: #2E7D32; }
.status-inactive { background: #FAFAFA; color: #757575; }
.status-pending  { background: #FFF3E0; color: #E65100; }
.status-published{ background: #E3F2FD; color: #1565C0; }

/* ============================================================
   الفوتر
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #2A1A0E 0%, #1A0D08 100%);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
  border-top: 3px solid rgba(197,160,89,.4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand .footer-logo img {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 2px solid rgba(197,160,89,.3);
}
.footer-brand .footer-logo-text .name {
  font-family: 'Scheherazade New', serif;
  font-size: 1.2rem;
  color: var(--gold-lighter);
  font-weight: 700;
}
.footer-brand .footer-logo-text .sub { font-size: 0.72rem; color: rgba(197,160,89,.7); }
.footer-brand p { font-size: 0.9rem; line-height: 1.9; }
.footer-col h5 {
  font-family: 'Scheherazade New', serif;
  font-size: 1.1rem;
  color: var(--gold-lighter);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 2px;
  background: var(--gold-gradient);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-lighter); padding-right: 4px; }
.footer-col ul li a i { color: var(--gold-primary); font-size: 0.75rem; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(197,160,89,.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--gold-gradient);
  color: var(--brown-dark);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(197,160,89,.2);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: var(--gold-primary); }

/* ── العنصر العائم ── */
.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.1) translateY(-3px); }
.float-wa   { background: #25D366; color: #fff; }
.float-tg   { background: #229ED9; color: #fff; }

/* ============================================================
   التجاوب مع الأجهزة
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    right: -300px;
    z-index: 900;
    transition: right .3s ease;
    height: 100%;
  }
  .admin-sidebar.open { right: 0; }
  .admin-header .sidebar-toggle { display: flex; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    right: 0; left: 0;
    background: rgba(42,26,14,.99);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197,160,89,.2);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
  .admin-search input { width: 140px; }
  .admin-content { padding: 20px; }
}
@media (max-width: 480px) {
  :root { --nav-h: 68px; }
  .hero-stats { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .sheikhs-grid { grid-template-columns: 1fr; }
  .certificates-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .modal { border-radius: var(--radius-lg); }
  .admin-stat-card { padding: 18px; }
}

/* ── دعم شريط الإعلانات في موضعه الجديد ── */
.announcements-bar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1001;
  transition: transform .4s ease;
}
.navbar {
  top: 44px; /* ارتفاع شريط الإعلانات */
}

/* ── قسم الخريطة الإسلامية ── */
.islamic-section-intro {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream-primary) 100%);
  padding: 64px 0;
  position: relative;
}

/* ── عنصر القارئ (ريدر card) ── */
.reader-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1.5px solid rgba(197,160,89,.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.reader-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}
.reader-card.active {
  background: linear-gradient(135deg, var(--gold-lighter), var(--cream-dark));
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}
.reader-avatar {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin: 0 auto 12px;
  box-shadow: var(--shadow-gold);
}
.reader-name {
  font-family: 'Scheherazade New', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
}
.reader-rawi {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ── بطاقة الإجازة المُصدَّرة ── */
.ijaza-card {
  background: linear-gradient(135deg, var(--cream-primary) 0%, var(--cream-dark) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold-lg);
}
.ijaza-card::before {
  content: '﷽';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  font-family: 'Scheherazade New', serif;
  font-size: 1.5rem;
  color: var(--gold-primary);
  background: var(--cream-primary);
  padding: 0 16px;
}
.ijaza-header {
  font-family: 'Scheherazade New', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--brown-dark);
  margin: 24px 0 16px;
  line-height: 1.6;
}

/* ── التلاوة الجارية (playing) ── */
.rec-row {
  display: grid;
  grid-template-columns: 32px 1fr 80px auto 60px;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(197,160,89,.08);
  cursor: pointer;
  transition: var(--transition);
}
.rec-row:last-child { border-bottom: none; }
.rec-row:hover { background: rgba(197,160,89,.05); }
.rec-row.playing {
  background: linear-gradient(90deg, rgba(197,160,89,.08), transparent);
  border-right: 3px solid var(--gold-primary);
}
.rec-num {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
}
.rec-row.playing .rec-num { color: var(--gold-primary); }
.rec-row-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 2px;
}
.rec-row-rawi { font-size: .78rem; color: var(--text-muted); }
.rec-riwaya-tag {
  font-size: .74rem;
  background: var(--olive-pale);
  color: var(--olive-dark);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  white-space: nowrap;
}
.rec-play-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  color: var(--brown-dark);
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  flex-shrink: 0;
}
.rec-row:hover .rec-play-icon { transform: scale(1.1); }
.rec-row.playing .rec-play-icon { background: linear-gradient(135deg,#C5A059,#9E7A3A); }
.rec-duration { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ── المشغّل الثابت (Global Player) ── */
.global-player {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(90deg, var(--brown-dark), var(--brown-primary));
  border-top: 1px solid rgba(197,160,89,.25);
  z-index: 800;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.global-player.visible { transform: translateY(0); }
.player-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.player-artwork {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.player-track { min-width: 120px; flex: 1; }
.track-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-lighter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-sub {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── Modal / نافذة منبثقة ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197,160,89,.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(197,160,89,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--cream-card);
  z-index: 1;
}
.modal-header h3 {
  font-size: 1.2rem;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header h3 i { color: var(--gold-primary); }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid rgba(197,160,89,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: #FDEDED; color: #C62828; }
.modal-body { padding: 28px; }
.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(197,160,89,.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── نموذج إدارة ── */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-form-grid .span-2 { grid-column: span 2; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brown-primary);
  margin-bottom: 6px;
}
.form-label .req { color: #C62828; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(197,160,89,.22);
  border-radius: var(--radius-md);
  background: var(--cream-primary);
  color: var(--text-dark);
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197,160,89,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── طباعة ── */
@media print {
  .navbar, .floating-contact, .site-footer, .admin-sidebar, .admin-header, .announcements-bar { display: none !important; }
  .hero { min-height: auto; padding-top: 0; }
  body { background: white; }
}
