/* =============== */
/* 🎨 متغيرات الثيمات - ألوان هادئة ومناسبة */
/* =============== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-soft: #f1f5f9;
  
  /* النصوص */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* الحدود والفواصل */
  --border-color: #e2e8f0;
  --border-soft: #f1f5f9;

 
  --accent-color: #4a6fa5;
  --accent-hover: #3a5a80;
  --accent-soft: #dbeafe;
  

  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  --header-bg: #ffffff;
  --footer-bg: #f8fafc;
  
  /* شريط القواعد */
  --scrolling-bar-bg: #eff6ff;
  --scrolling-text: #1e40af;
  
  /* حالات الصعوبة */
  --difficulty-easy: #22c55e;
  --difficulty-medium: #f59e0b;
  --difficulty-hard: #ef4444;
  --difficulty-expert: #8b5cf6;
}

[data-theme="dark"] {
  /* الخلفيات الداكنة */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-soft: #334155;
  
  /* النصوص الفاتحة */
  --text-primary: #f1f5f9;  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* الحدود الداكنة */
  --border-color: #334155;
  --border-soft: #475569;
  
  /* الألوان الرئيسية - درجات زرقاء فاتحة */
  --accent-color: #6a99cc;
  --accent-hover: #8ab4f8;
  --accent-soft: #1e3a5f;
  
  /* البطاقات والمكونات */
  --card-bg: #1e293b;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.3);
  
  /* الهيدر والفوتر */
  --header-bg: #1e293b;
  --footer-bg: #0f172a;
  
  /* شريط القواعد */
  --scrolling-bar-bg: #1e3a5f;
  --scrolling-text: #93c5fd;
  
  /* حالات الصعوبة - ألوان أفتح للوضع الليلي */
  --difficulty-easy: #4ade80;
  --difficulty-medium: #fbbf24;
  --difficulty-hard: #f87171;
  --difficulty-expert: #a78bfa;
}

/* =============== */
/* ⚙️ الإعدادات العامة */
/* =============== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* إخفاء شريط التمرير للصفحة بأكملها */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE و Edge القديم */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge الجديد */
}
/* =============== */
/* 📐 تخطيط الصفحة - هوامش ذكية */
/* =============== */

body > main,
#main-content {
  flex: 1;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* هوامش للشاشات الكبيرة والمتوسطة */
@media (min-width: 769px) {
  body > header,
  body > main,
  body > footer {
    padding-left: 1%;
    padding-right: 1%;
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* ملء الشاشة للجوال */
@media (max-width: 768px) {
  body > header,
  body > main,
  body > footer {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
  }
}

/* =============== */
/* 🔝 الهيدر *//* =============== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* أزرار الهيدر */
#menu-toggle,#theme-toggle,
#search-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.3rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

#menu-toggle:hover,
#theme-toggle:hover,
#search-toggle:hover {
  background-color: var(--bg-soft);
}

#menu-toggle:active,
#theme-toggle:active,
#search-toggle:active {
  transform: scale(0.95);
}

#menu-toggle i,
#theme-toggle i,
#search-toggle i {
  pointer-events: none;
}
/* الشعار */
#site-logo {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 1rem;
}

#site-logo i {
  font-size: 1.4rem;
}

/* =============== */
/* 🔍 طبقة البحث */
/* =============== */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.search-container {
  background: var(--card-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.search-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.8rem;
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  padding: 0.5rem;
  font-family: inherit;
  direction: rtl;
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

#search-close:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-right: 3px solid transparent;
}
.search-result-item:hover,
.search-result-item.active {
  background-color: var(--bg-soft);
  border-right-color: var(--accent-color);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.search-result-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* =============== */
/* 🎮 قسم الألعاب - شريط الأيقونات الأفقي */
/* =============== */

.content-section {
  padding: 1.5rem 0;
  overflow: visible !important;
}

.section-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0 1rem;
  overflow: visible !important;
  position: relative;
  z-index: 5;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 5;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 5;
}

/* شريط الألعاب - أيقونات فقط */
.games-icon-bar {
  display: flex;
  gap: 0.75rem;
  
  /* مساحة كبيرة جداً في الأسفل لظهور التلميح */
  padding: 2rem 1rem 4rem 1rem;
  
  overflow-x: auto;
  overflow-y: visible !important;
  
  scroll-snap-type: x mandatory;  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
  min-height: 100px;
  
  clip-path: none !important;
  position: relative;
  z-index: 1;
}

.games-icon-bar::-webkit-scrollbar {
  display: none;
}

.game-icon-item {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
  position: relative;
  flex-direction: column;
  padding: 0.5rem;
  z-index: 2;
}

.game-icon-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.game-icon-item:hover {
  width: 80px;
  height: 80px;
  background: var(--accent-soft);
  border-color: var(--accent-color);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--card-shadow-hover);
  z-index: 10;
}
.game-icon-item:hover i {
  transform: scale(1.1);
  font-size: 1.8rem;
}

/* تلميح الأيقونة - يظهر خارج الحاوية */
.game-icon-item::after {
  content: attr(title);
  
  /* تغيير إلى fixed للخروج من قيود الحاوية */
  position: fixed;
  
  /* سيتم ضبط الموقع بواسطة JavaScript */
  bottom: auto;
  left: 50%;
  transform: translate(-50%, 100%);
  
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  
  /* مهم جداً للخروج من أي حاوية */
  clip-path: none !important;
  overflow: visible !important;
}

.game-icon-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* =============== */
/* 📚 قسم الدروس - بطاقات عمودية */
/* =============== */

.lessons-vertical-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.lesson-v-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.lesson-v-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lesson-v-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow-hover);
  transform: translateX(-2px);
}

.lesson-v-card:hover::before {
  opacity: 1;
}

/* أيقونة الدرس */
.lesson-v-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lesson-v-card:hover .lesson-v-icon {
  transform: scale(1.05);
}

/* ألوان الأيقونات حسب المستوى */
.lesson-v-card.beginner .lesson-v-icon { background: var(--difficulty-easy); }
.lesson-v-card.intermediate .lesson-v-icon { background: var(--difficulty-medium); }
.lesson-v-card.advanced .lesson-v-icon { background: var(--difficulty-hard); }
.lesson-v-card.complex .lesson-v-icon { background: var(--difficulty-expert); }

/* محتوى الدرس */
.lesson-v-content {
  flex: 1;  min-width: 0;
}

.lesson-v-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lesson-v-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* شارة الصعوبة */
.lesson-v-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  flex-shrink: 0;
}
.lesson-v-card.beginner .lesson-v-badge { background: var(--difficulty-easy); }
.lesson-v-card.intermediate .lesson-v-badge { background: var(--difficulty-medium); }
.lesson-v-card.advanced .lesson-v-badge { background: var(--difficulty-hard); }
.lesson-v-card.complex .lesson-v-badge { background: var(--difficulty-expert); }

/* =============== */
/* ✏️ قسم التمارين - نفس تصميم الدروس */
/* =============== */

/* يمكن إعادة استخدام .lessons-vertical-cards و .lesson-v-card */
/* مع تغيير بسيط للألوان إذا أردت تمييزها */

.exercises-vertical-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

/* =============== */
/* 📋 القائمة الجانبية */
/* =============== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: var(--card-bg);
  border-left: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

#sidebar-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-item {
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background: var(--bg-soft);
}

.menu-item i {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}
#sidebar-nav h3{
  border-bottom: 1px solid black;
}


/* =============== */
/* 🔻 الفوتر */
/* =============== */

footer {
  background: var(--footer-bg);
  padding: 2rem 0 1.5rem 0;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  width: 100%;
  margin-top: 0;
}

#static-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.footer-link:hover {
  color: var(--accent-color);
  background: var(--bg-soft);
}
#social-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

#social-icons a {  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
}

#social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

#copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============== */
/* 📱 تحسينات الجوال */
/* =============== */

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.3rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .content-section {
    padding: 1.25rem 0;
  }
  
  /* شريط الألعاب - أيقونات أصغر */
  .game-icon-item {
    width: 56px;
    height: 56px;
  }
  
  .game-icon-item:hover {
    width: 72px;
    height: 72px;
  }
  
  .game-icon-item i {
    font-size: 1.3rem;
  }
  
  .game-icon-item:hover i {
    font-size: 1.6rem;  }
  
  /* بطاقات الدروس - محتوى مضغوط */
  .lesson-v-card {
    padding: 0.875rem 1rem;
  }
  
  .lesson-v-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .lesson-v-content h3 {
    font-size: 1rem;
  }
  
  .lesson-v-content p {
    font-size: 0.85rem;
  }
  
  .lesson-v-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }
  
  /* القائمة الجانبية أصغر */
  .sidebar {
    width: 240px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.6rem 0;
  }
  
  #menu-toggle,
  #theme-toggle,
  #search-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  #site-logo {
    font-size: 1.1rem;
    margin: 0 0.5rem;
  }
    .content-section {
    padding: 1rem 0;
  }
  
  /* شريط الألعاب - أيقونات مدمجة */
  .games-icon-bar {
    gap: 0.5rem;
    padding: 0.75rem 0;
    min-height: 70px;
  }
  
  .game-icon-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  
  .game-icon-item:hover {
    width: 65px;
    height: 65px;
  }
  
  .game-icon-item i {
    font-size: 1.2rem;
  }
  
  .game-icon-item:hover i {
    font-size: 1.4rem;
  }
  
  /* بطاقات الدروس - أبسط */
  .lessons-vertical-cards,
  .exercises-vertical-cards {
    padding: 0;
  }
  
  .lesson-v-card {
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .lesson-v-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  
  .lesson-v-content h3 {
    font-size: 0.95rem;  }
  
  .lesson-v-content p {
    font-size: 0.8rem;
  }
  
  .lesson-v-badge {
    display: none; /* إخفاء الشارة في الشاشات الصغيرة جداً */
  }
  
  footer {
    padding: 1.5rem 0 1rem 0;
  }
}

/* =============== */
/* ♿ تحسينات الوصولية */
/* =============== */
/* تركيز لوحة المفاتيح */
button:focus,
[tabindex="0"]:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============== */
/* 🧹 أدوات مساعدة */
/* =============== */

.error-box {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.error-box h2 {
  color: var(--difficulty-hard);
  margin-bottom: 0.5rem;}

.error-box button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.error-box button:hover {
  background: var(--accent-hover);
}

[hidden], .hidden {
  display: none !important;
}

/* تحسينات التمرير */
/* =============== */
/* 🔼 زر العودة للأعلى */
/* =============== */

/* 🔼 زر العودة للأعلى */
#back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ========================================
   🔄 الترقيم الموحد - دوائر + عرض ذكي
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0 15px;
  direction: ltr; /* للأرقام فقط */
}

.pagination__btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
  border-radius: 50%; /* ✅ دائرة */
  background: var(--card-bg);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pagination__btn:hover:not(.active):not(:disabled) {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.05);
}

.pagination__btn.active {
  background: var(--accent-color);
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination__ellipsis {  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pagination__nav {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.pagination__nav-btn {
  padding: 8px 20px;
  border: 2px solid var(--accent-color);
  border-radius: 25px;
  background: var(--card-bg);
  color: var(--accent-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination__nav-btn:hover:not(:disabled) {
  background: var(--accent-color);
  color: #fff;
}

.pagination__nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__counter {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* للشاشات الصغيرة جداً */
@media (max-width: 360px) {
  .pagination__btn,  .pagination__ellipsis {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

@keyframes highlight {
  0%, 100% { background: transparent; }
  30% { background: rgba(52, 152, 219, 0.15); }
}