/* ============================================
   BAYNAT DESIGN SYSTEM - Unified CSS (RTL Ready & Mobile Optimized)
   Clean Version - Removed Unused Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* CSS Variables */
:root {
  /* Brand Colors */
  --brand: #7c5c2e;
  --brand-dark: #5a4120;
  --brand-light: #b8943a;
  --brand-soft: #fbf4e6;

  /* Neutral Colors */
  --bg: #fcfaf6;
  --card: #ffffff;
  --text: #111827;
  --text-muted: #5d646d;
  --border: rgba(17, 24, 39, 0.12);

  /* Spacing */
  --radius: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.05);
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.12);

  /* Typography */
  --font-primary: 'Tajawal', system-ui, sans-serif;
  --font-secondary: 'Cairo', system-ui, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  direction: rtl;
  text-align: right;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 380px at 85% -10%, rgba(124, 92, 46, 0.14), transparent 60%),
    radial-gradient(800px 360px at 10% 0%, rgba(90, 65, 32, 0.10), transparent 55%);
}
/* ============================================
   HEADER - تكبير الشعار
   ============================================ */

.header-brand {
  text-align: center;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 148px !important;
  height: 148px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--card));
  border: 2px solid rgba(124, 92, 46, 0.1);
  box-shadow: var(--shadow-sm);
}

.brand-logo img {
  width: 128px !important;
  height: 128px !important;
  object-fit: contain;
}

.brand-title {
  font-size: 2.5rem !important;
  font-weight: 900;
  color: var(--brand-dark);
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
}

/* للموبايل */
@media (max-width: 768px) {
  .brand-logo {
    width: 80px !important;
    height: 80px !important;
  }
  
  .brand-logo img {
    width: 64px !important;
    height: 64px !important;
  }
  
  .brand-title {
    font-size: 1.8rem !important;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .brand-logo {
    width: 64px !important;
    height: 64px !important;
  }
  
  .brand-logo img {
    width: 52px !important;
    height: 52px !important;
  }
  
  .brand-title {
    font-size: 1.5rem !important;
  }
}
/* ============================================
   HEADER - SITE HEADER (الهيدر الجديد)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(252, 250, 246, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(17, 24, 39, 0.04);
  padding: var(--space-4) 0;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Brand Section */
.header-brand {
  text-align: center;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-soft), var(--card));
  border: 2px solid rgba(124, 92, 46, 0.1);
}

.brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

/* Navigation */
.main-nav {
  width: 100%;
  max-width: 800px;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus {
  text-decoration: none;
  color: var(--brand);
  background: rgba(124, 92, 46, 0.06);
  border-color: rgba(124, 92, 46, 0.15);
}

.nav-pill.active {
  background: var(--brand);
  color: var(--card);
  border-color: var(--brand);
  font-weight: 800;
}

.nav-pill.active:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-3);
}

.main-content {
  padding: var(--space-4) 0;
}

/* ============================================
   PANELS & CARDS
   ============================================ */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.panel-header {
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(251, 244, 230, 0.70), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--border);
}

.panel-body {
  padding: var(--space-4);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-image {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.card-image-contain {
  height: 175px;
  object-fit: contain;
  width: 100%;
  background: #fff;
}

.card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 800;
  font-family: var(--font-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-secondary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 92, 46, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 46, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--brand-dark);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Action Buttons */
.btn-action {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: var(--font-secondary);
}

.btn-action:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: rgba(124, 92, 46, 0.08);
}

/* ============================================
   PILLS & BADGES
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 46, 0.18);
  background: rgba(124, 92, 46, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  font-family: var(--font-secondary);
}

.pill.active {
  background: var(--brand-light);
  color: #111;
  border-color: var(--brand-light);
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-secondary);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(124, 92, 46, 0.15);
}

.form-group {
  margin-bottom: var(--space-3);
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-secondary);
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(124, 92, 46, 0.15);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.search-options {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.col {
  flex: 1 1 0;
  min-width: 0;
}

.col-sm-6 {
  flex: 0 0 calc(50% - var(--space-3));
  max-width: calc(50% - var(--space-3));
}

.col-lg-4 {
  flex: 0 0 calc(33.333% - var(--space-3));
  max-width: calc(33.333% - var(--space-3));
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-brand { color: var(--brand-dark); }
.text-muted { color: var(--text-muted); }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-auto { margin-top: auto; }

.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   QURAN PAGE SPECIFIC
   ============================================ */
.quran-tabs {
  display: flex;
  background: var(--brand-soft);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.quran-tab {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text);
  position: relative;
  border: none;
  background: transparent;
  font-family: var(--font-secondary);
  font-size: 1rem;
}

.quran-tab:hover {
  background: rgba(124, 92, 46, 0.08);
}

.quran-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark);
}

.quran-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
}

.quran-content {
  padding: var(--space-5);
}

.quran-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.quran-tab-content.active {
  display: block;
}

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

/* Surah Grid */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.surah-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.90);
  padding: var(--space-4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.surah-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}

.surah-number {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--brand);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-secondary);
}

.surah-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
  font-family: var(--font-primary);
}

.surah-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Surah Display */
.surah-display {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.surah-header {
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(251, 244, 230, 0.70), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.surah-title {
  font-size: 2.2rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 800;
}

.surah-meta {
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

.bismillah {
  font-size: 1.5rem;
  color: var(--brand-light);
  font-family: var(--font-primary);
}

.surah-text {
  padding: var(--space-5);
  font-size: 1.6rem;
  line-height: 2.4;
  color: var(--text);
  font-family: var(--font-primary);
  text-align: center;
}

.ayah {
  display: inline;
  position: relative;
}

.ayah-number {
  font-size: 0.85rem;
  color: var(--brand);
  margin: 0 0.5rem;
  position: relative;
  top: -0.5rem;
  font-family: var(--font-secondary);
  font-weight: 600;
}

/* Results */
.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-light);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.result-surah {
  font-weight: 700;
  color: var(--brand-dark);
}

.result-ayah {
  color: var(--brand);
  font-size: 0.9rem;
}

.result-text {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--text);
  font-family: var(--font-primary);
}

mark.highlight {
  background: rgba(184, 148, 58, 0.15);
  border-radius: 3px;
}

/* Controls */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Input Group */
.input-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.input-group .form-control {
  flex: 1;
  min-width: 200px;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  font-weight: 700;
  font-family: var(--font-secondary);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Loading */
.loading {
  text-align: center;
  padding: var(--space-6);
  color: var(--brand);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-3);
}

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

/* Alert */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--brand-soft);
  color: var(--text);
}

.alert-info {
  background: rgba(124, 92, 46, 0.08);
  border-color: rgba(124, 92, 46, 0.2);
}

/* ============================================
   HISN MUSLIM SPECIFIC
   ============================================ */
.doors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .doors-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

.door-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.door-card:hover {
  border-color: var(--brand-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.door-title {
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-family: var(--font-secondary);
}

.door-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.zikr-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid var(--border);
  margin-bottom: var(--space-3);
  transition: all 0.3s ease;
}

.zikr-card:hover {
  box-shadow: var(--shadow-sm);
}

.zikr-text {
  font-size: 1.4rem;
  line-height: 2.2;
  text-align: center;
  color: var(--text);
  font-family: var(--font-primary);
  margin-bottom: var(--space-3);
}

.zikr-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.zikr-repeat {
  font-size: 0.875rem;
  color: var(--brand);
  background: rgba(124, 92, 46, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-secondary);
}

.zikr-reference {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

audio.player {
  width: 100%;
  margin: var(--space-3) 0;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  padding: var(--space-2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, rgba(251, 244, 230, 0.6), rgba(255, 255, 255, 0.9));
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: var(--space-5) 0;
  margin-top: var(--space-6);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-3);
}

.footer-title {
  font-weight: 800;
  font-family: var(--font-secondary);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--brand-light);
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 3px;
}

.footer-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-2);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.footer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-light);
}

.footer-card a,
.footer-card span {
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-dark);
  display: block;
  font-family: var(--font-secondary);
}

.footer-card a:hover {
  color: var(--brand);
}

.footer-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
}

.footer-bottom {
  background: var(--brand-soft);
  font-size: 0.9rem;
  color: var(--brand-dark);
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .site-header {
    padding: var(--space-3) 0;
  }
  
  .site-header .container {
    gap: var(--space-3);
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  
  .brand-logo img {
    width: 28px;
    height: 28px;
  }
  
  .brand-title {
    font-size: 1.35rem;
  }
  
  .nav-list {
    gap: var(--space-2);
  }
  
  .nav-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .col-sm-6,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .quran-tabs {
    flex-direction: column;
  }
  
  .quran-tab {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
  }
  
  .surah-grid {
    grid-template-columns: 1fr;
  }
  
  .surah-text {
    font-size: 1.3rem;
    line-height: 2;
    padding: var(--space-3);
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group .form-control {
    min-width: 100%;
  }
  
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ============================================
   FOOTER COMPACT - نسخة مضغوطة
   ============================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0 0;
  margin-top: var(--space-6);
}

.footer-title {
  font-weight: 800;
  font-family: var(--font-secondary);
  margin-bottom: var(--space-2);
  color: var(--brand-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* روابط مضغوطة - بدون قائمة */
.footer-links.compact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.footer-links.compact a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: rgba(124, 92, 46, 0.06);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-links.compact a:hover {
  color: var(--brand-dark);
  background: rgba(124, 92, 46, 0.12);
  border-color: rgba(124, 92, 46, 0.2);
  transform: translateY(-1px);
}

/* باقي الفوتر */
.footer-brand {
  padding-left: var(--space-2);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.made-in-saudi {
  font-size: 0.75rem;
  background: rgba(124, 92, 46, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--brand-dark);
  font-weight: 600;
}

.counter-simple {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin: var(--space-4) auto;
  max-width: 280px;
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  background: var(--brand-soft);
  font-size: 0.8rem;
  color: var(--brand-dark);
  border-top: 1px solid var(--border);
  padding: var(--space-2) 0;
  text-align: center;
  margin-top: var(--space-4);
}
/* ============================================
   VISITOR COUNTER - عداد الزوار المضغوط
   ============================================ */

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-4) auto;
  box-shadow: var(--shadow-sm);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-num {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}
/* تأكد من وجود هذه الأنماط في app.css */
.quran-tabs {
  display: flex;
  background: var(--brand-soft);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.quran-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  font-family: var(--font-secondary);
}

.quran-tab.active {
  background: var(--card);
  color: var(--brand-dark);
}

.quran-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.quran-tab-content.active {
  display: block;
}

/* للنتائج */
.result-card {
  animation: fadeIn 0.3s ease both;
}

/* Hero Section - إضافة بسيطة */
.hero-section {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-5);
  background: linear-gradient(180deg, rgba(251, 244, 230, 0.6), transparent);
  border-radius: var(--radius);
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  .visitor-counter {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
  
  .stat-num {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .stat-divider {
    height: 25px;
  }
}
/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .footer-links.compact {
    gap: 0.5rem;
  }
  
  .footer-links.compact a {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  
  .footer-title {
    font-size: 0.85rem;
    margin-bottom: var(--space-2);
  }
}
@media (max-width: 480px) {
  :root {
    --space-1: 0.4rem;
    --space-2: 0.6rem;
    --space-3: 0.8rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
  }
  
  .container {
    padding-inline: var(--space-2);
  }
  
  .panel-body,
  .quran-content {
    padding: var(--space-3);
  }
  
  .brand-title {
    font-size: 1.25rem;
  }
  
  .nav-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .surah-title {
    font-size: 1.6rem;
  }
  
  .result-text {
    font-size: 1.1rem;
  }
  
  .surah-text {
    font-size: 1.25rem;
    line-height: 1.9;
  }
}