:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16,185,129,0.15);
  --emerald-glow2: rgba(16,185,129,0.08);
  --teal: #14b8a6;
  --teal-light: #5eead4;

  --bg: #ffffff;
  --bg2: #f8fafb;
  --bg3: #f0f4f6;
  --card: #ffffff;
  --card2: #f5f8f7;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(16,185,129,0.2);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --text4: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-emerald: 0 8px 32px rgba(16,185,129,0.2);
  --header-h: 68px;
  --nav-h: 64px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xl: 28px;
}

[data-theme="dark"] {
  --bg: #0a0f0e;
  --bg2: #0f1512;
  --bg3: #141c18;
  --card: #111a16;
  --card2: #1a2520;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(16,185,129,0.25);
  --text: #f0fdf9;
  --text2: #ccfbef;
  --text3: #6ee7b7;
  --text4: #34d399;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-emerald: 0 8px 32px rgba(16,185,129,0.25);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Alexandria', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  padding-top: var(--header-h);
  padding-bottom: var(--nav-h);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--emerald); border-radius: 99px; }


/* ============================================
   MAIN CONTENT
============================================ */
.main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px 20px;
}

/* ============================================
   SECTION TITLES
============================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--emerald);
  border-radius: 99px;
}

.see-all {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.see-all:hover { background: var(--emerald-glow); }

/* ============================================
   SECTION 1 — PRAYER CARD
============================================ */
.prayer-hero {
  background: linear-gradient(135deg, #065f46 0%, #047857 40%, #059669 70%, #10b981 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-emerald);
  animation: slideDown 0.6s ease both;
}

.prayer-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.prayer-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.prayer-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.prayer-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  position: relative;
}

.prayer-name {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  position: relative;
}

.prayer-actual-time {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  position: relative;
}

.prayer-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.countdown-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
  border: 1px solid rgba(255,255,255,0.2);
}

.countdown-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
}

.countdown-sep {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-top: -8px;
}

.prayer-mosq-icon {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 80px;
  opacity: 0.07;
  line-height: 1;
}

/* ============================================
   PRAYER TIMES ROW
============================================ */
.prayers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.prayer-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.prayer-mini.active-prayer {
  border-color: var(--emerald);
  background: var(--emerald-glow);
}

.prayer-mini.active-prayer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--emerald);
}

.prayer-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border2);
}

.prayer-mini-name {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 500;
}

.prayer-mini-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.prayer-mini.active-prayer .prayer-mini-name,
.prayer-mini.active-prayer .prayer-mini-time { color: var(--emerald); }

/* ============================================
   SECTION 2 — AZKAR & ADIYA CARDS
============================================ */
.double-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.3s ease both;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-emerald);
  border-color: var(--border2);
}

.feature-card:hover::before { opacity: 1; }

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-glow), var(--emerald-glow2));
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-card-icon { transform: scale(1.1) rotate(-5deg); }

.feature-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.feature-card-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.feature-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: auto;
  transition: transform 0.2s;
}

.feature-card:hover .feature-card-arrow { transform: translateX(-4px); }

/* ============================================
   SECTION 3 — DUA CARD
============================================ */
.dua-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.dua-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.dua-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, transform 0.5s;
}

.dua-text.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.dua-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.dua-source {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 14px;
  transition: opacity 0.5s;
}

.dua-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dua-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  transition: all 0.3s;
}

.dua-dot.active {
  background: var(--emerald);
  width: 20px;
}

/* ============================================
   SECTION 4 — QUICK SERVICES
============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.5s ease both;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border2);
  background: var(--emerald-glow2);
}

.service-icon {
  font-size: 28px;
  line-height: 1;
}

.service-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}


.videos-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.7s ease both;
}

.videos-scroll::-webkit-scrollbar { display: none; }

.video-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
}

.video-thumb {
  position: relative;
  height: 120px;
  background: #000;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.video-card:hover .video-thumb img { opacity: 1; }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-circle {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111;
  transition: transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-card:hover .play-circle { transform: scale(1.1); }

.video-info {
  padding: 10px 12px;
}

.video-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-channel {
  font-size: 11px;
  color: var(--text3);
}

/* ============================================
   MODAL VIDEO
============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.video-modal-inner {
  width: 100%;
  max-width: 640px;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

.video-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: none;
  background: #000;
}
/* ===== SCHOLARS BAR ===== */

.scholars-bar-wrap,
.scroll-bar-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.scholar-nav {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.scholar-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border2);
}

.scholars-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;          /* Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.scholars-bar::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

.scholar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;                 /* مهم — عشان الصور ماتتضغطش */
  text-decoration: none;
  cursor: pointer;
  padding: 45px 6px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  transition: all 0.25s ease;
}

.scholar-profile:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.scholar-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(16, 185, 129, 0.25);
  background: #e2e8f0;            /* fallback لو الصورة مجاتش */
}

.scholar-name {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* Dark Mode */
[data-theme="dark"] .scholar-profile {
  background: #111a16;
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .scholar-profile:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .scholar-name {
  color: #ccfbef;
}

[data-theme="dark"] .scholar-image {
  border-color: rgba(16, 185, 129, 0.3);
}

/* ===== SECTION HEAD (المشترك) ===== */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #10b981;
  border-radius: 99px;
}

.see-all {
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.07);
  transition: background 0.2s;
}

.see-all:hover {
  background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .section-title {
  color: #f0fdf9;
}


.page-main {
  max-width: 900px;
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - 220px);
}

.page-hero {
  margin-bottom: 22px;
}

.page-hero .prayer-name {
  font-size: 30px;
}

.page-hero-text {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  position: relative;
  max-width: 560px;
}

.page-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-glow2), transparent 58%);
  pointer-events: none;
}

.page-panel > * {
  position: relative;
}

.service-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 18px;
  text-align: center;
}

.service-text {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.9;
}

.prayer-times-container,
.ramadan-container,
.eid-container {
  width: 100%;
}

.prayer-times-header {
  text-align: center;
  margin-bottom: 18px;
}

.prayer-times-header h1 {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.prayer-subtitle {
  color: var(--text3);
  font-size: 14px;
  margin-bottom: 14px;
}

.next-prayer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
}

.next-prayer-text,
.next-prayer-name,
.next-prayer .countdown {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.next-prayer-name,
.next-prayer .countdown {
  color: var(--emerald);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.prayer-time-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.prayer-time-card:hover,
.prayer-time-card.active {
  transform: translateY(-3px);
  border-color: var(--border2);
  background: var(--emerald-glow2);
  box-shadow: var(--shadow-emerald);
}

.prayer-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  font-size: 25px;
  margin-bottom: 10px;
}

.prayer-icon i {
  display: none;
}

.prayer-time-card[data-prayer="fajr"] .prayer-icon::before { content: '🌅'; }
.prayer-time-card[data-prayer="sunrise"] .prayer-icon::before { content: '☀️'; }
.prayer-time-card[data-prayer="dhuhr"] .prayer-icon::before { content: '🕌'; }
.prayer-time-card[data-prayer="asr"] .prayer-icon::before { content: '🌤️'; }
.prayer-time-card[data-prayer="maghrib"] .prayer-icon::before { content: '🌆'; }
.prayer-time-card[data-prayer="isha"] .prayer-icon::before { content: '🌙'; }

.prayer-time-card .prayer-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.prayer-time {
  color: var(--emerald);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prayer-time .time-value {
  font-size: 22px;
  font-weight: 800;
}

.prayer-time .time-period {
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
}

.countdown-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.countdown-container h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-container .countdown-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.countdown-number {
  color: var(--emerald);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-container .countdown-label {
  color: var(--text3);
  font-size: 12px;
  margin-top: 6px;
}

.ramadan-date-info,
.eid-date-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.hijri-date,
.gregorian-date {
  background: var(--emerald-glow2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  padding: 12px;
  text-align: center;
}

.ramadan-grid,
.eid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ramadan-card,
.eid-card,
.ramadan-section,
.eid-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.ramadan-card h3,
.eid-card h3,
.ramadan-section h2,
.eid-section h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 10px;
}

.ramadan-card h3 i,
.eid-card h3 i,
.ramadan-section h2 i,
.eid-section h2 i {
  display: none;
}

.ramadan-card p,
.eid-card p,
.ramadan-section p,
.eid-section p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.9;
}

.ramadan-section p + p,
.eid-section p + p {
  margin-top: 10px;
}

@media (min-width: 900px) {
  .page-main {
    max-width: 960px;
    min-height: calc(100vh - var(--header-h) - 220px);
  }
}

@media (max-width: 700px) {
  .next-prayer,
  .ramadan-date-info,
  .eid-date-info {
    grid-template-columns: 1fr;
  }

  .prayer-times-grid,
  .ramadan-grid,
  .eid-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-panel,
  .countdown-container {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .page-hero .prayer-name {
    font-size: 24px;
  }

  .countdown-number {
    font-size: 24px;
  }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse { animation: pulse 2s infinite; }

/* ============================================
   SECTION SPACING
============================================ */
.section { margin-bottom: 28px; }

/* ============================================
   RESPONSIVE
============================================ */
@media (min-width: 600px) {
  .main { padding: 24px 24px; }
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .double-cards { gap: 16px; }
  .feature-card { padding: 26px 22px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .main { padding: 32px 32px; max-width: 800px; }
  .prayers-row { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================
   DARK MODE SPECIFIC
============================================ */
[data-theme="dark"] .prayer-hero {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #065f46 70%, #047857 100%);
}

[data-theme="dark"] .prophet-img {
  background: linear-gradient(135deg, #022c22, #064e3b);
}


/* =========================================================
   ABBAD PAGE — FUTURISTIC QURAN AUDIO PLAYER
   Page-specific overrides
   ========================================================= */

.scholar-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.futuristic-audio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}

.modern-player,
.modern-surah-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, var(--emerald-glow), transparent 35%),
    var(--card);
  box-shadow: var(--shadow-lg);
}

.modern-player {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modern-player::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, var(--emerald-glow2) 50%, transparent 100%);
  opacity: .7;
}

.player-top,
.waveform,
.modern-progress,
.modern-controls {
  position: relative;
  z-index: 1;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.player-heading {
  min-width: 0;
}

.player-eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.player-heading h1 {
  color: var(--text);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.player-status {
  display: block;
  color: var(--text3);
  font-size: 11px;
  margin-top: 5px;
}

.player-badge {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  box-shadow: 0 0 28px var(--emerald-glow);
}

.waveform {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0 14px;
  direction: ltr;
}

.waveform span {
  width: 4px;
  height: var(--h);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--emerald-dark), var(--emerald-light));
  opacity: .68;
  transform-origin: center;
  animation: waveformPulse 1.8s ease-in-out infinite;
}

.waveform span:nth-child(3n) { animation-delay: -.35s; }
.waveform span:nth-child(4n) { animation-delay: -.7s; }
.waveform span:nth-child(5n) { animation-delay: -1s; }

@keyframes waveformPulse {
  0%, 100% { transform: scaleY(.78); opacity: .52; }
  50% { transform: scaleY(1); opacity: .95; }
}

.modern-progress {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.modern-progress span {
  color: var(--text3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.modern-progress span:last-child {
  text-align: left;
  direction: ltr;
}

.modern-progress input[type="range"] {
  width: 100%;
  height: 5px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.modern-controls {
  width: min(100%, 570px);
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--card2) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.modern-control-btn {
  width: 100%;
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--text2);
  background: transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  font-size: 16px;
}

.modern-control-btn:hover {
  transform: translateY(-2px);
  color: var(--emerald);
  background: var(--emerald-glow);
}

.modern-play {
  min-height: 62px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  box-shadow: 0 10px 28px rgba(16,185,129,.25);
  font-size: 19px;
}

.modern-play:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  box-shadow: 0 14px 34px rgba(16,185,129,.34);
}

.modern-surah-panel {
  min-height: 360px;
  padding: 22px;
}

.surah-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.surah-panel-head h2 {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  margin: 0;
}

.surah-count {
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.surah-search {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg2);
  color: var(--text3);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.surah-search:focus-within {
  border-color: var(--emerald);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--emerald-glow);
}

.surah-search i {
  color: var(--emerald);
  font-size: 14px;
}

.surah-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.surah-search input::placeholder {
  color: var(--text4);
}

.surah-search kbd {
  min-width: 24px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text4);
  background: var(--card);
  font: 10px/1 inherit;
  text-align: center;
}

.surah-results {
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  margin: 4px 2px 10px;
}

.modern-surah-panel ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 520px;
  overflow-y: auto;
  padding: 2px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald) transparent;
}

.modern-surah-panel li {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text2);
  background: var(--bg2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.modern-surah-panel li::before {
  content: attr(data-surah-number);
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text3);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.modern-surah-panel li:hover,
.modern-surah-panel li.active,
.modern-surah-panel li[aria-current="true"] {
  transform: translateY(-1px);
  color: var(--emerald);
  background: var(--emerald-glow2);
  border-color: var(--border2);
}

.modern-surah-panel li:hover::before,
.modern-surah-panel li.active::before,
.modern-surah-panel li[aria-current="true"]::before {
  color: #fff;
  background: var(--emerald);
  border-color: var(--emerald);
}

.modern-surah-panel li[hidden] {
  display: none;
}

.empty-surah-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--text3);
  text-align: center;
}

.empty-surah-state i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--emerald);
  background: var(--emerald-glow);
}

.empty-surah-state strong {
  color: var(--text);
  font-size: 13px;
}

.empty-surah-state span {
  font-size: 10px;
}
.aboutme {
  margin: 10px auto;
  width: 90%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  gap: 10px;
}
.aboutme .my_photo{
  border-radius: 10%;
  width: 200px;
  height: 200px;
}
.aboutme .my_photo img {
  width: 100%; 
  border-radius: 10%;
}
.aboutme .info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  text-align: center;
}
.aboutme .info p span a {
  text-decoration: solid;
  color: #0000be;
  transition: .3s ease;
}
.aboutme .info p span a:hover {
  color: #0000e4;
}
.aboutme .contact_me {
  background: var(--bg3);
  border-radius: 10%;
  display: flex;
}
.aboutme .contact_me a {
  padding: 10px;
  transition: 0.3s ease;
}
.aboutme .contact_me a:hover {
  scale: 1.1;
}
.aboutme .contact_me img {
  width: 50px;
  height: 50px;
}
.aboutme-icon {
  position: fixed;
  right: 10px;
  bottom: 75px;
  border-radius: 50%;
  background-color: var(--bg3);
  border: 2px solid var(--border2);
  transition: 0.3s ease;
}
.aboutme-icon:hover {
  scale: 1.1;
}
.aboutme-icon i{
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 820px) {
  .futuristic-audio-layout {
    grid-template-columns: 1fr;
  }

  .modern-surah-panel ul {
    max-height: 460px;
  }
}

@media (max-width: 560px) {
  .scholar-page {
    width: min(100% - 20px, 1040px);
    padding-top: 16px;
  }

  .modern-player {
    min-height: 330px;
    padding: 20px 14px;
    border-radius: 22px;
  }

  .modern-surah-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .player-top {
    margin-bottom: 20px;
  }

  .player-badge {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .waveform {
    height: 62px;
    gap: 3px;
  }

  .waveform span {
    width: 3px;
  }

  .modern-controls {
    padding: 7px;
    gap: 5px;
    border-radius: 16px;
  }

  .modern-control-btn {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
  }

  .modern-play {
    min-height: 54px;
  }

  .modern-surah-panel ul {
    grid-template-columns: 1fr;
    max-height: 430px;
  }
}


/* =========================================================
   ============  صفحات القرّاء — واجهة Glass خفيفة  ============
   كل الكلاسات بادئة بـ gl- (من هنا لآخر الملف)
========================================================= */
/* =========================================================
   صفحة القارئ — نسخة خفيفة
   بدون blur ولا خلفية متحركة، وبأقل قدر من الانيميشن
   (الحركة الوحيدة: دوران القرص أثناء التشغيل + انتقالات hover بسيطة)
   كل الكلاسات بادئة بـ gl- عشان ما تتعارض مع components.css
========================================================= */

.gl-page {
  --gl-inner: var(--emerald-glow2);

  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  gap: 20px;
}

/* ---------- كارت عام ---------- */
.gl-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* ---------- بطاقة القارئ ---------- */
.gl-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--emerald-glow2), var(--card) 60%);
}

.gl-hero-photo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.gl-hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  display: block;
}

.gl-hero-text { min-width: 0; }

.gl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.gl-hero h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.gl-hero p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text3);
}

/* ---------- اختيار نوع التلاوة ---------- */
.gl-tabs-wrap { padding: 16px 18px; }

.gl-tabs-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  margin-bottom: 12px;
}

.gl-tabs-label i { color: var(--emerald); }

.gl-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: var(--gl-inner);
  border: 1px solid var(--border2);
}

.gl-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  width: calc(50% - 7px);
  border-radius: 12px;
  background: var(--emerald);
  transition: transform 0.25s ease;
}

.gl-tabs[data-active="1"] .gl-tab-indicator {
  transform: translateX(calc(-100% - 4px));
}

.gl-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}

.gl-tab small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}

.gl-tab.active { color: #fff; }
.gl-tab:not(.active):hover { color: var(--emerald); }
.gl-tab i { font-size: 17px; }

/* ---------- التخطيط ---------- */
.gl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

/* ---------- المشغل ---------- */
.gl-player {
  padding: 26px 22px 22px;
  text-align: center;
}

.gl-disc-stage {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.gl-disc {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.gl-disc img {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  /* الدوران على الصورة فقط (transform) = خفيف على المعالج */
  animation: glSpin 12s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.gl-player.is-playing .gl-disc img { animation-play-state: running; }

@keyframes glSpin { to { transform: rotate(360deg); } }

.gl-now-surah {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.gl-now-sub {
  margin: 4px 0 18px;
  font-size: 12px;
  color: var(--text3);
  min-height: 18px;
}

/* شريط التقدم */
.gl-progress {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  direction: ltr;
  margin-bottom: 18px;
}

.gl-progress span {
  font-size: 11px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
}

.gl-progress input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  cursor: pointer;
  outline: none;
  background: linear-gradient(to right, var(--emerald) var(--p, 0%), var(--bg3) var(--p, 0%));
}

.gl-progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--emerald);
}

.gl-progress input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--emerald);
}

/* أزرار التحكم */
.gl-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  background: var(--gl-inner);
  border: 1px solid var(--border2);
}

.gl-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--text2);
  background: var(--card);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.gl-btn:hover {
  color: var(--emerald);
  background: var(--emerald-glow);
  border-color: var(--border2);
}

.gl-btn.active {
  color: #fff;
  background: var(--emerald);
  border-color: var(--emerald);
}

.gl-btn-play {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 22px;
  color: #fff;
  border: 0;
  background: var(--emerald);
}

.gl-btn-play:hover {
  color: #fff;
  background: var(--emerald-dark);
}

.gl-btn-play:active { transform: scale(0.95); }

/* ---------- قائمة السور ---------- */
.gl-surahs { padding: 20px; }

.gl-surahs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.gl-surahs-head h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.gl-chip {
  font-size: 10px;
  font-weight: 800;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* ملاحظة التسجيل */
.gl-note {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text2);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gl-note.show { display: flex; }
.gl-note i { color: #f59e0b; font-size: 15px; }

.gl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.gl-search:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.gl-search i { color: var(--emerald); }

.gl-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.gl-search input::placeholder { color: var(--text4); }

.gl-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald) transparent;
  /* المتصفح مايرسمش العناصر اللي برا الشاشة */
  contain: content;
}

.gl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  content-visibility: auto;
  contain-intrinsic-size: auto 46px;
}

.gl-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--text3);
  background: var(--card);
  border: 1px solid var(--border);
}

.gl-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gl-item:hover:not(.locked),
.gl-item.active {
  color: var(--emerald);
  background: var(--emerald-glow2);
  border-color: var(--border2);
}

.gl-item:hover:not(.locked) .gl-num,
.gl-item.active .gl-num {
  color: #fff;
  background: var(--emerald);
  border-color: var(--emerald);
}

/* السور المقفلة */
.gl-item.locked {
  cursor: not-allowed;
  opacity: 0.6;
  border-style: dashed;
}

.gl-lock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  border-radius: 99px;
  padding: 3px 7px;
  white-space: nowrap;
}

[data-theme="dark"] .gl-lock { color: #fbbf24; }

.gl-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 36px 10px;
  color: var(--text3);
  font-size: 13px;
  text-align: center;
}

.gl-empty i { font-size: 26px; color: var(--emerald); }

/* ---------- Toast ---------- */
.gl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 24px);
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gl-toast i { color: #f59e0b; }
.gl-toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 900px) {
  .gl-toast { bottom: 28px; }
}

/* ---------- موبايل ---------- */
@media (max-width: 860px) {
  .gl-layout { grid-template-columns: 1fr; }
  .gl-list { max-height: 420px; }
}

@media (max-width: 560px) {
  .gl-page { width: calc(100% - 20px); padding-top: 14px; gap: 14px; }
  .gl-card { border-radius: 20px; }
  .gl-hero { flex-direction: column; text-align: center; padding: 18px 16px; gap: 12px; }
  .gl-hero-photo { width: 88px; height: 88px; flex-basis: 88px; }
  .gl-player { padding: 20px 14px 16px; }
  .gl-disc-stage { width: 160px; height: 160px; }
  .gl-disc { width: 148px; height: 148px; }
  .gl-disc img { width: 134px; height: 134px; }
  .gl-surahs { padding: 16px 14px; }
  .gl-list { grid-template-columns: 1fr; }
  .gl-controls { gap: 8px; padding: 8px 10px; }
  .gl-btn { width: 42px; height: 42px; }
  .gl-btn-play { width: 58px; height: 58px; }
  .gl-tab { font-size: 13px; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .gl-disc img { animation: none; }
  .gl-tab-indicator, .gl-toast { transition: none; }
}

/* =========================================================
   هيدر + شريط التنقل السفلي — ستايل جلاس
   (blur خفيف 12px على عنصرين ثابتين بس)
   بادئة "body" هنا عشان الأولوية تبقى أعلى من components.css
========================================================= */

body .header,
body .header.scrolled,
body .bottom-nav {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body .header,
html[data-theme="dark"] body .header.scrolled,
html[data-theme="dark"] body .bottom-nav {
  background: rgba(17, 26, 22, 0.78);
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .header,
body .header.scrolled {
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

body .bottom-nav { border-radius: 22px; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body .header,
  body .header.scrolled,
  body .bottom-nav {
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    background-color: rgba(255, 255, 255, 0.6);
  }

  html[data-theme="dark"] body .header,
  html[data-theme="dark"] body .header.scrolled,
  html[data-theme="dark"] body .bottom-nav {
    background-color: rgba(17, 26, 22, 0.6);
  }
}

/* العنصر النشط في الشريط السفلي (border شفاف عشان مفيش قفزة في الحجم) */
.bottom-nav .nav-item { border: 1px solid transparent; }

.bottom-nav .nav-item.active {
  background: var(--emerald-glow);
  border-color: var(--border2);
}