/* ============================================
   Live Holy Cities - Main Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables / Design System
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #0a1f1a;
  --bg-secondary: #0d2b23;
  --bg-card: #112920;
  --bg-card-hover: #153028;
  --accent-green: #00c896;
  --accent-green-dark: #00a87e;
  --accent-green-light: #00e6aa;
  --text-primary: #ffffff;
  --text-muted: #a0b8b0;
  --text-muted-dark: #7a9a90;
  --nav-bg: #0d2b23;
  --donate-btn: #8b1a2a;
  --donate-btn-hover: #a02035;
  --border-color: rgba(0, 200, 150, 0.2);
  --border-color-light: rgba(0, 200, 150, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-green: 0 4px 20px rgba(0, 200, 150, 0.15);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* Light Mode Variables */
body.light-mode {
  --bg-primary: #f5f9f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f5f3;
  --text-primary: #1a2f2a;
  --text-muted: #5a7068;
  --text-muted-dark: #7a9a90;
  --nav-bg: #ffffff;
  --border-color: rgba(0, 150, 100, 0.15);
  --border-color-light: rgba(0, 150, 100, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-green: 0 4px 20px rgba(0, 200, 150, 0.1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* Selection */
::selection {
  background: var(--accent-green);
  color: var(--bg-primary);
}

/* Links */
a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green-light);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

.text-muted {
  color: var(--text-muted);
}

.text-green {
  color: var(--accent-green);
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  color: var(--accent-green);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  color: var(--accent-green);
  margin-bottom: 0;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-green);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  justify-content: center;
  justify-items: center;
}

.grid-2 > * {
  max-width: 400px;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  justify-content: center;
  justify-items: center;
}

.grid-3 > * {
  max-width: 380px;
  width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  justify-content: center;
  justify-items: center;
}

.grid-4 > * {
  max-width: 300px;
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-green-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-donate {
  background: var(--donate-btn);
  color: var(--text-primary);
}

.btn-donate:hover {
  background: var(--donate-btn-hover);
  transform: translateY(-2px);
}

.btn-live {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  padding: 0.5rem 1.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 15px rgba(220, 38, 38, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 -2px 10px rgba(0, 0, 0, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(220, 38, 38, 0.4),
      0 0 10px rgba(220, 38, 38, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 -2px 10px rgba(0, 0, 0, 0.2) inset;
  }
  50% {
    box-shadow:
      0 4px 25px rgba(220, 38, 38, 0.6),
      0 0 20px rgba(220, 38, 38, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset,
      0 -2px 10px rgba(0, 0, 0, 0.2) inset;
  }
}

@keyframes liveGlowGreen {
  0%, 100% {
    box-shadow: 
      0 2px 8px rgba(0, 53, 40, 0.3),
      0 0 8px rgba(0, 200, 150, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 
      0 2px 12px rgba(0, 200, 150, 0.5),
      0 0 15px rgba(0, 200, 150, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  }
}

.btn-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(145deg, rgba(255, 100, 100, 0.8), rgba(220, 38, 38, 0.2), rgba(255, 100, 100, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

.btn-live:hover {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 30px rgba(220, 38, 38, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 -2px 10px rgba(0, 0, 0, 0.2) inset;
}

.btn-live:active {
  transform: translateY(-1px) scale(0.98);
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8), 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    box-shadow: 0 0 12px rgba(74, 222, 128, 1), 0 0 8px 2px rgba(74, 222, 128, 0.5);
  }
}

.live-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.4);
  animation: livePulse 2s ease-out infinite;
}

.live-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  animation: livePulse 2s ease-out infinite 0.5s;
}

@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.btn-outline-donate {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--donate-btn);
}

.btn-outline-donate:hover {
  background: var(--donate-btn);
}

.btn-pill {
  border-radius: var(--radius-full);
  padding: var(--spacing-md) var(--spacing-xl);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: 1.1rem;
}

/* Premium Hero Button */
.btn-hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent-green) 0%, #00e6b8 50%, var(--accent-green) 100%);
  background-size: 200% 200%;
  color: var(--bg-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 
    0 4px 15px rgba(0, 200, 150, 0.4),
    0 8px 30px rgba(0, 200, 150, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: gradientShift 3s ease infinite;
  transition: all 0.3s ease;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(0, 200, 150, 0.5),
    0 12px 40px rgba(0, 200, 150, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background-position: 100% 0;
  color: var(--bg-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-hero:hover i {
  transform: scale(1.2);
}

/* Ensure button text stays readable */
.btn-hero,
.btn-hero:hover {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Pulse glow animation for hero button */
.btn-hero-pulse {
  animation: gradientShift 3s ease infinite, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(0, 200, 150, 0.4),
      0 8px 30px rgba(0, 200, 150, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(0, 200, 150, 0.6),
      0 8px 40px rgba(0, 200, 150, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.85rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   Header / Navbar
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color-light);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-logo i {
  color: var(--accent-green);
  font-size: 1.5rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.nav-logo-icon {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.nav-toggle-icon {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--accent-green);
}

.nav-link.active {
  color: var(--accent-green);
}

/* Dropdown Navigation */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: rgba(0, 200, 150, 0.1);
  color: var(--accent-green);
}

.nav-dropdown-link.active {
  color: var(--accent-green);
  background: rgba(0, 200, 150, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.dark-mode-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color-light);
}

.dark-mode-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.25rem;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
}

.mobile-menu-toggle.active {
  background: var(--accent-green);
  color: var(--bg-primary);
  border-color: var(--accent-green);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 0;
  z-index: 1000;
  transition: left var(--transition-smooth);
  overflow: hidden;
  padding: 0;
}

.mobile-nav.active {
  left: 0;
  display: flex;
}

/* Mobile Nav Action Buttons - Fixed at Top */
.mobile-nav-actions {
  display: flex;
  gap: 6px;
  padding: calc(70px + 0.5rem) 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-color-light);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  z-index: 1001;
}

.mobile-nav-actions .btn-mobile-action {
  flex: 1;
  padding: 0.5rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  min-height: auto;
  height: auto;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-actions .btn-live:not(.khutbah-btn-mobile) {
  background: linear-gradient(145deg, rgba(0, 200, 150, 0.9) 0%, rgba(0, 150, 120, 0.9) 100%) !important;
  border: 1px solid rgba(0, 200, 150, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: var(--text-primary) !important;
}

.mobile-nav-actions .btn-live:not(.khutbah-btn-mobile):hover {
  background: linear-gradient(145deg, rgba(0, 220, 170, 0.95) 0%, rgba(0, 170, 140, 0.95) 100%) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.mobile-nav-actions .btn-live:not(.khutbah-btn-mobile) i {
  font-size: 0.8rem;
}

.mobile-nav-actions .btn-live:not(.khutbah-btn-mobile) span {
  font-size: 0.7rem;
}

.mobile-nav-actions .btn-live:not(.khutbah-btn-mobile) .live-pulse {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: none;
}

@media (min-width: 600px) {
  .mobile-nav-actions .btn-live:not(.khutbah-btn-mobile) .live-pulse {
    display: inline-block;
  }
}

.khutbah-btn-mobile {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.85) 0%, rgba(200, 0, 0, 0.85) 100%) !important;
  border: 2px solid rgba(255, 0, 0, 0.7) !important;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: var(--text-primary) !important;
}

.khutbah-btn-mobile:hover {
  background: linear-gradient(145deg, rgba(255, 50, 50, 0.9) 0%, rgba(220, 0, 0, 0.9) 100%) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.khutbah-btn-mobile i {
  font-size: 0.8rem;
  color: #ff0000;
  animation: blink 1s infinite;
}

.khutbah-btn-mobile .khutbah-btn-text {
  animation: blink 1s infinite, glowPulse 1s infinite;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Mobile Nav Menu - Scrollable Area */
.mobile-nav-menu {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 0;
}

.mobile-nav .nav-link {
  padding: 0.75rem var(--spacing-lg);
  border-radius: 0;
  background: transparent;
  display: block;
  transition: all var(--transition-fast);
  border-left: 4px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color-light);
}

.mobile-nav-menu .nav-link {
  padding: 0.75rem var(--spacing-lg);
}

.mobile-nav .nav-link:hover {
  background: rgba(0, 200, 150, 0.08);
  border-left-color: var(--accent-green);
  padding-left: calc(var(--spacing-lg) + var(--spacing-sm));
}

.mobile-nav .nav-link.active {
  background: rgba(0, 200, 150, 0.08);
  border-left-color: var(--accent-green);
  color: var(--accent-green);
}

/* Mobile Dropdown - Cleaner Design */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
}

.mobile-nav-item > .nav-link {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  border-bottom: 1px solid var(--border-color-light);
  border-left: 4px solid transparent;
  padding: 0.75rem var(--spacing-lg);
  margin: 0;
}

.mobile-nav-item > .nav-link:hover {
  background: rgba(0, 200, 150, 0.08);
  border-left-color: var(--accent-green);
}

.mobile-dropdown-toggle {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--text-muted);
}

.mobile-nav-item.expanded > .nav-link .mobile-dropdown-toggle {
  transform: rotate(180deg);
  color: var(--accent-green);
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  transition: max-height var(--transition-smooth);
  border-bottom: none;
  background: rgba(0, 0, 0, 0.3);
}

.mobile-nav-item.expanded .mobile-dropdown {
  max-height: 500px;
  display: flex;
  padding: 0;
}

.mobile-dropdown-link {
  padding: 0.65rem var(--spacing-lg) 0.65rem calc(var(--spacing-lg) + 24px);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 0;
  background: transparent;
  transition: all var(--transition-fast);
  border-left: 4px solid transparent;
  margin: 0;
  border-bottom: 1px solid rgba(0, 200, 150, 0.05);
}

.mobile-dropdown-link:hover {
  color: var(--accent-green);
  background: rgba(0, 200, 150, 0.08);
  border-left-color: var(--accent-green);
  padding-left: calc(var(--spacing-lg) + 24px + var(--spacing-sm));
}

.mobile-dropdown-link.active {
  color: var(--accent-green);
  background: rgba(0, 200, 150, 0.08);
  border-left-color: var(--accent-green);
  font-weight: 600;
}

/* Mobile Nav Khutbah Button */
.mobile-nav .btn-live:has(.khutbah-btn-text) {
  display: flex !important;
  width: calc(100% - 1rem);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  margin: 0.75rem 0.5rem;
  border: 2px solid rgba(255, 0, 0, 0.6);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.7) 0%, rgba(200, 0, 0, 0.6) 100%);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav .btn-live:has(.khutbah-btn-text):hover {
  background: linear-gradient(145deg, rgba(255, 50, 50, 0.8) 0%, rgba(220, 20, 20, 0.75) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-color: rgba(255, 100, 100, 0.8);
}

.mobile-nav .btn-live:has(.khutbah-btn-text) i {
  font-size: 1.1rem;
  color: #fff;
  animation: blink 1s infinite;
}

.mobile-nav .btn-live:has(.khutbah-btn-text) .khutbah-btn-text {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: blink 1s infinite, glowPulse 1s infinite;
}

/* Mobile Nav LIVE Button */
.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) {
  display: flex !important;
  width: calc(100% - 1rem);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  margin: 0.75rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #005540 0%, #00a377 100%);
  border: 1px solid #004634 !important;
  box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ff0000 !important;
  animation: liveGlowGreen 2s ease-in-out infinite;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)):hover {
  background: linear-gradient(145deg, #00d9a3 0%, rgba(0, 180, 140, 0.95) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  border-color: #00d9a3 !important;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) i {
  font-size: 1rem;
  color: #ff0000 !important;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) .live-pulse {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) .live-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.4);
  animation: livePulse 2s ease-out infinite;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) .live-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  animation: livePulse 2s ease-out infinite 0.5s;
}

.mobile-nav .btn-live:not(:has(.khutbah-btn-text)) span:not(.live-pulse) {
  display: block;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-3xl) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 80, 50, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero h1 {
  color: var(--accent-green);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 20px rgba(0, 200, 150, 0.3);
}

.hero p {
  color: var(--text-primary);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto var(--spacing-xl);
  opacity: 0.95;
}

/* ============================================
   Streams Section
   ============================================ */

/* Streams Grid - 3 cards per row, centered */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: var(--spacing-lg);
  justify-content: center;
  justify-items: center;
}

/* Stream Sections */
.streams-section {
  margin-bottom: var(--spacing-3xl);
}

.streams-section:last-child {
  margin-bottom: 0;
}

.streams-section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color-light);
}

.streams-section-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-green) 0%, #00e6b8 100%);
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

.streams-section-title {
  color: var(--accent-green);
  font-size: 1.5rem;
  margin-bottom: 0;
}

.streams-section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  margin-left: auto;
}

.stream-card {
  background: linear-gradient(145deg, rgba(0, 80, 50, 0.95), rgba(0, 50, 30, 0.98));
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.stream-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(0, 230, 170, 0.16) 0%, transparent 55%),
    radial-gradient(90% 70% at 80% 30%, rgba(0, 200, 150, 0.12) 0%, transparent 60%);
  opacity: 0.9;
}

/* Fullscreen mode */
.stream-card:fullscreen {
  max-width: 100%;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.stream-card:fullscreen .stream-embed {
  flex: 1;
  padding-top: 0;
  height: 100%;
}

.stream-card:fullscreen .stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stream-card:fullscreen .stream-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.stream-card:fullscreen .stream-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

/* Webkit fullscreen */
.stream-card:-webkit-full-screen {
  max-width: 100%;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.stream-card:-webkit-full-screen .stream-embed {
  flex: 1;
  padding-top: 0;
  height: 100%;
}

.stream-card:-webkit-full-screen .stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stream-card:-webkit-full-screen .stream-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.stream-card:-webkit-full-screen .stream-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .stream-header {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .live-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  
  .fullscreen-btn {
    padding: 2px 6px;
    font-size: 0.75rem;
  }
  
  .stream-info {
    padding: var(--spacing-sm);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .stream-title {
    font-size: 0.9rem;
  }
  
  .stream-meta {
    font-size: 0.6rem;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .stream-card {
    border-radius: var(--radius-md);
  }
  
  .stream-header {
    padding: 2px 4px;
  }
  
  .live-badge {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
  
  .fullscreen-btn {
    padding: 1px 4px;
    font-size: 0.65rem;
  }
  
  .stream-title {
    font-size: 0.8rem;
  }
  
  .stream-meta {
    font-size: 0.55rem;
    flex-direction: column;
    gap: 2px;
  }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-badge .live-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--accent-green);
  flex-shrink: 0;
}

.live-badge .live-text {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-badge .live-text i {
  font-size: 0.55rem;
  color: #ef4444;
  animation: pulse 1.6s infinite;
}

.fullscreen-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.85rem;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stream-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: rgba(20, 30, 28, 0.9);
}

.stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.stream-content {
  padding: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.stream-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 4px;
  line-height: 1.3;
}

.stream-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.stream-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.stream-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  transition: all var(--transition-fast);
}

.stream-meta span:hover {
  background: transparent;
  border-color: transparent;
}

.stream-meta i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.stream-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stream-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.85rem;
}

.stream-location i {
  color: rgba(255, 255, 255, 0.55);
}

.stream-logo {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

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

/* Mobile Menu Animations */
@keyframes slideInFromLeft {
  from {
    left: -100%;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  from {
    left: 0;
    opacity: 1;
  }
  to {
    left: -100%;
    opacity: 0;
  }
}

/* Khutbah Button Blinking Animation */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.3;
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6);
  }
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 
      0 0 5px rgba(255, 0, 0, 0.3),
      0 0 10px rgba(255, 0, 0, 0.2),
      inset 0 0 5px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 
      0 0 15px rgba(255, 0, 0, 0.6),
      0 0 25px rgba(255, 0, 0, 0.4),
      inset 0 0 10px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.8);
  }
}

.khutbah-btn-text {
  color: #ff0000;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: blink 1s infinite;
}

.btn-live .khutbah-btn-text {
  display: inline-block;
  animation: blink 1s infinite, glowPulse 1s infinite;
}

.btn-live .khutbah-btn-text::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1s infinite;
}

.btn-live:has(.khutbah-btn-text) {
  border: 2px solid rgba(255, 0, 0, 0.4);
  animation: borderGlow 1.5s ease-in-out infinite;
}

.btn-live:has(.khutbah-btn-text) i {
  animation: blink 1s infinite;
}

/* ============================================
   Features Section
   ============================================ */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  background: rgba(0, 200, 150, 0.1);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   Blog Section
   ============================================ */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
}

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

.blog-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-secondary);
  overflow: hidden;
}

.blog-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-thumbnail img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--accent-green);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.blog-body {
  padding: var(--spacing-lg);
}

.blog-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.blog-title a {
  color: var(--text-primary);
}

.blog-title a:hover {
  color: var(--accent-green);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-date {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.read-more {
  color: var(--accent-green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.read-more:hover {
  gap: var(--spacing-sm);
}

/* ============================================
   Qari Section (Quran Reciters)
   ============================================ */
.qari-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.qari-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--text-primary);
}

.qari-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.qari-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  border: 3px solid var(--accent-green);
}

.qari-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qari-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.qari-placeholder i {
  font-size: 4rem;
}

.qari-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.qari-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.qari-count i {
  color: var(--accent-green);
}

/* Qari Videos Page */
.qari-videos-page {
  padding-top: var(--spacing-xl);
}

.qari-header {
  margin-bottom: var(--spacing-2xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-green);
}

.qari-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
}

.qari-large-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-green);
  flex-shrink: 0;
}

.qari-large-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qari-placeholder-large {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.qari-placeholder-large i {
  font-size: 3rem;
}

.qari-profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-green);
}

.video-total {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.video-total i {
  color: var(--accent-green);
}

/* Videos Grid - 4 per row */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
}

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

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background var(--transition-fast);
}

.video-thumbnail:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay i {
  font-size: 3rem;
  color: var(--accent-green);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.play-overlay:hover i {
  opacity: 1;
}

.video-info {
  padding: var(--spacing-md);
}

.video-title {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
  color: var(--text-primary);
}

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

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-video-info {
  padding: var(--spacing-lg);
}

.modal-video-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

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

@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .qari-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .qari-profile {
    flex-direction: column;
    text-align: center;
  }
}

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

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

/* ============================================
   Islamic Content Pages
   ============================================ */
.content-page {
  padding: var(--spacing-2xl) 0;
}

.content-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.content-header h1 {
  color: var(--accent-green);
}

.content-search {
  max-width: 500px;
  margin: var(--spacing-xl) auto;
}

.search-box {
  display: flex;
  gap: var(--spacing-sm);
}

.search-input {
  flex: 1;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-green);
}

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

/* Content Cards */
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.content-card-header {
  padding: var(--spacing-lg);
  background: rgba(0, 200, 150, 0.05);
  border-bottom: 1px solid var(--border-color-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.content-card-header:hover {
  background: rgba(0, 200, 150, 0.1);
}

.content-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.content-card-toggle {
  color: var(--accent-green);
  transition: transform var(--transition-fast);
}

.content-card.expanded .content-card-toggle {
  transform: rotate(180deg);
}

.content-card-body {
  padding: var(--spacing-lg);
  display: none;
}

.content-card.expanded .content-card-body {
  display: block;
}

.content-arabic {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--accent-green);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(0, 200, 150, 0.05);
  border-radius: var(--radius-md);
}

.content-transliteration {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  border-left: 3px solid var(--accent-green);
}

.content-translation {
  margin-bottom: var(--spacing-md);
}

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

.content-count {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--accent-green);
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
}

/* Asma-ul-Husna Grid */
.asma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.asma-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
}

.asma-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.asma-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  background: var(--accent-green);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.asma-arabic {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  color: var(--accent-green);
  margin-bottom: var(--spacing-sm);
}

.asma-transliteration {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.asma-meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color-light);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.footer-logo i {
  color: var(--accent-green);
  font-size: 1.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--accent-green);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-green);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color-light);
}

.social-link:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
  border-color: var(--accent-green);
}

.qr-section {
  text-align: center;
}

.qr-image {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color-light);
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.copy-link-btn {
  font-size: 0.8rem;
  padding: var(--spacing-xs) var(--spacing-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.developer-credit a {
  color: var(--accent-green);
}

/* ============================================
   Tools Page
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color-light);
  text-align: center;
}

.tool-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  background: rgba(0, 200, 150, 0.1);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 1.5rem;
}

.tool-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.tool-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

/* Hijri Date Display */
.hijri-date {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  border: 1px solid var(--border-color-light);
  margin-bottom: var(--spacing-xl);
}

.hijri-date-value {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--accent-green);
}

/* ============================================
   Static Pages (About, Contact, etc.)
   ============================================ */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--container-padding);
}

.static-page h1 {
  color: var(--accent-green);
  margin-bottom: var(--spacing-xl);
}

.static-page p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl);
}

.error-content h1 {
  font-size: 6rem;
  color: var(--accent-green);
  margin-bottom: var(--spacing-md);
}

.error-content p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .streams-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .stream-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .navbar {
    flex-wrap: nowrap;
    gap: var(--spacing-md);
  }
  
  .nav-logo {
    font-size: 1rem;
    flex: 1;
    min-width: 0;
  }
  
  .nav-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
  }
  
  .nav-actions {
    flex-shrink: 0;
    gap: var(--spacing-sm);
    display: flex;
    align-items: center;
  }
  
  .btn-live {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
  
  .live-btn-text {
    display: none;
  }
  
  /* Mobile Khutbah Button - Show Icon Only */
  .nav-actions .btn-live:has(.khutbah-btn-text) {
    padding: 0.5rem;
    border-width: 1px;
    min-width: 44px;
  }
  
  .nav-actions .btn-live:has(.khutbah-btn-text) i {
    font-size: 1.2rem;
    margin: 0;
  }
  
  .nav-actions .btn-live:has(.khutbah-btn-text) .khutbah-btn-text {
    display: none;
  }
  
  .hero {
    min-height: 450px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .content-arabic {
    font-size: 1.5rem;
  }
  
  .asma-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
  
  .nav-actions {
    gap: var(--spacing-sm);
  }
  
  .donate-btn-text {
    display: none;
  }
  
  .error-content h1 {
    font-size: 4rem;
  }
  
  /* Mobile Menu Refinements for Small Screens */
  .mobile-nav {
    padding-top: calc(60px + var(--spacing-md));
  }
  
  .mobile-nav-actions {
    padding: calc(60px + 0.4rem) 0.4rem 0.4rem;
    gap: 5px;
  }
  
  .mobile-nav-actions .btn-mobile-action {
    padding: 0.4rem 0.3rem;
    font-size: 0.65rem;
    letter-spacing: 0.8px;
  }
  
  .mobile-nav-actions .btn-mobile-action i {
    font-size: 0.7rem;
  }
  
  .mobile-nav-actions .btn-mobile-action span {
    display: none;
  }
  
  .mobile-nav-menu .nav-link {
    padding: 0.6rem var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .mobile-dropdown-link {
    padding: 0.55rem var(--spacing-md) 0.55rem calc(var(--spacing-md) + 16px);
    font-size: 0.85rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color-light);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--accent-green);
}

.toast.error {
  border-color: #dc2626;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   View Toggle & Content Grid Styles
   ============================================ */

/* Content Controls */
.content-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.content-controls .search-box {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  gap: var(--spacing-xs);
  background: var(--bg-card);
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-light);
}

.view-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.view-btn:hover {
  color: var(--accent-green);
  background: rgba(0, 200, 150, 0.1);
}

.view-btn.active {
  color: var(--accent-green);
  background: rgba(0, 200, 150, 0.15);
}

/* Content Grid - Grid View */
.content-grid[data-view-mode="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.content-grid[data-view-mode="grid"] .content-card {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.content-grid[data-view-mode="grid"] .content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.content-grid[data-view-mode="grid"] .content-card-body {
  display: block;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.content-grid[data-view-mode="grid"] .content-card-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}

.content-grid[data-view-mode="grid"] .content-card-toggle {
  display: none;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.card-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 150, 0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.card-btn:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
}

/* Asma card actions */
.asma-card .card-actions {
  justify-content: center;
  margin-top: var(--spacing-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.asma-card:hover .card-actions {
  opacity: 1;
}

/* Content Grid - List View */
.content-grid[data-view-mode="list"] {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.content-grid[data-view-mode="list"] .content-card {
  cursor: default;
}

.content-grid[data-view-mode="list"] .content-card-body {
  display: none;
}

.content-grid[data-view-mode="list"] .content-card.expanded .content-card-body {
  display: block;
}

.content-grid[data-view-mode="list"] .content-card-toggle {
  display: block;
}

/* Asma Grid Grid View */
.content-grid[data-view-mode="grid"] .asma-card {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  padding: var(--spacing-lg);
  text-align: center;
}

.content-grid[data-view-mode="grid"] .asma-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.content-grid[data-view-mode="grid"] .asma-meaning {
  display: none;
}

/* Asma Grid List View */
.content-grid[data-view-mode="list"] .asma-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
}

.content-grid[data-view-mode="list"] .asma-number {
  flex-shrink: 0;
}

.content-grid[data-view-mode="list"] .asma-arabic {
  font-size: 1.5rem;
  min-width: 80px;
}

.content-grid[data-view-mode="list"] .asma-transliteration {
  min-width: 120px;
}

.content-grid[data-view-mode="list"] .asma-meaning {
  display: block;
  flex: 1;
}

/* ============================================
   Popup Modal Styles
   ============================================ */

.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.popup-modal.active {
  display: flex;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.popup-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  background: rgba(0, 200, 150, 0.1);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: rgba(0, 200, 150, 0.2);
  color: var(--accent-green);
}

.popup-header {
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.popup-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-green);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.popup-body {
  padding: var(--spacing-xl);
}

.popup-arabic {
  font-family: var(--font-arabic);
  font-size: 2rem;
  line-height: 2;
  text-align: right;
  direction: rtl;
  color: var(--accent-green);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(0, 200, 150, 0.05);
  border-radius: var(--radius-lg);
}

.popup-transliteration {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.popup-translation {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.popup-meaning {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.popup-reference {
  font-size: 0.9rem;
  color: var(--accent-green);
  margin-bottom: var(--spacing-md);
}

.popup-count {
  display: inline-block;
  background: rgba(0, 200, 150, 0.15);
  color: var(--accent-green);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.popup-benefit {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(0, 200, 150, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-green);
}

.popup-footer {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--border-color-light);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.popup-footer .btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .content-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .content-controls .search-box {
    max-width: 100%;
  }
  
  .view-toggle {
    justify-content: center;
  }
  
  .content-grid[data-view-mode="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .popup-content {
    margin: var(--spacing-md);
    max-height: 85vh;
  }
  
  .popup-arabic {
    font-size: 1.5rem;
  }
  
  .popup-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .content-grid[data-view-mode="grid"] {
    grid-template-columns: 1fr;
  }
  
  .popup-footer {
    flex-direction: column;
  }
  
  .popup-footer .btn {
    justify-content: center;
  }
}

/* ============================================
   COLLAPSIBLE STREAM CARDS - NEW DESIGN
   ============================================ */

.streams-grid-collapsible {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-header {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 200, 150, 0.3);
}

@media (max-width: 1200px) {
  .streams-grid-collapsible {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .streams-grid-collapsible {
    grid-template-columns: 1fr;
  }
}

/* Main Card Container */
.stream-card-collapsible {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stream-card-collapsible:hover {
  transform: translateY(-4px);
}

/* Inner Glassmorphism Card */
.stream-card-inner {
  background: linear-gradient(145deg, rgba(0, 200, 150, 0.12) 0%, rgba(0, 150, 120, 0.12) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 200, 150, 0.1) inset;
  transition: all 0.3s ease;
}

.stream-card-collapsible:hover .stream-card-inner {
  border-color: rgba(0, 200, 150, 0.4);
  box-shadow: 0 8px 40px rgba(0, 200, 150, 0.1), 0 0 0 1px rgba(0, 200, 150, 0.15) inset;
}

/* Card Header */
.stream-card-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stream-card-badge-new {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Signal Icon */
.signal-icon-new {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.2) 0%, rgba(0, 150, 120, 0.2) 100%);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 50%;
  color: #6ee7b7;
}

.signal-icon-new svg {
  width: 20px;
  height: 20px;
}

/* LIVE Badge */
.live-badge-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot-new {
  width: 8px;
  height: 8px;
  background: #fa2222;
  border-radius: 50%;
  animation: livePulseNew 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px #f87171;
}

@keyframes livePulseNew {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.live-text-new {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f71212;
  text-transform: uppercase;
}

/* Action Buttons */
.stream-card-actions-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-fullscreen-btn-new,
.stream-play-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 150, 0.15);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stream-fullscreen-btn-new:hover,
.stream-play-btn:hover {
  background: rgba(0, 200, 150, 0.25);
  border-color: rgba(0, 200, 150, 0.5);
  transform: scale(1.05);
}

.stream-fullscreen-btn-new svg,
.stream-play-btn svg {
  width: 16px;
  height: 16px;
}

/* Card Content */
.stream-card-content-new {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stream-card-title-new {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin: 0;
}

.stream-card-subtitle-new {
  font-size: 0.9rem;
  color: #6ee7b7;
  font-family: var(--font-arabic);
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.stream-card-desc-new {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}

/* Video Container - Hidden by default */
.stream-card-video-container {
  overflow: hidden;
  border-radius: 12px;
  animation: slideDownNew 0.3s ease;
}

@keyframes slideDownNew {
  from { 
    opacity: 0; 
    max-height: 0;
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    max-height: 500px;
    transform: translateY(0); 
  }
}

.video-wrapper-new {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper-new iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Card Footer */
.stream-card-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  margin-top: auto;
}

.stream-card-meta-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dot-separator-new {
  opacity: 0.5;
}

.stream-card-location-new {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #6ee7b7;
  font-weight: 500;
}
