

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


:root {
  --primary: #1a5f3f;
  --primary-light: #2d8a5e;
  --primary-dark: #0d3d26;
  --secondary: #d4a843;
  --secondary-light: #e8c567;
  --gold: #c9a84c;
  --gold-light: #f0d78c;
  --bg: #f8f9f5;
  --bg-card: #ffffff;
  --bg-dark: #0f1f14;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --text-muted: #6b7280;
  --border: #e2e8e0;
  --shadow: rgba(26, 95, 63, 0.12);
  --shadow-lg: rgba(26, 95, 63, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
  --font-body: 'Cairo', sans-serif;
  --font-quran: 'Amiri', serif;
  --font-title: 'Scheherazade New', serif;
}


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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--secondary-light); }
  50% { box-shadow: 0 0 20px var(--secondary-light), 0 0 40px var(--gold); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade { animation: fadeIn 0.6s ease-out; }
.animate-left { animation: fadeInLeft 0.6s ease-out; }
.animate-right { animation: fadeInRight 0.6s ease-out; }
.animate-scale { animation: scaleIn 0.5s ease-out; }


.main-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.4);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-date {
  font-size: 0.85rem;
  opacity: 0.85;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
}

.nav-link:hover, .nav-link.active {
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.nav-link.active {
  background: rgba(212, 168, 67, 0.3);
  border-bottom: 2px solid var(--secondary);
}


.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-light);
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.85);
}

.hero-verse {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: inline-block;
  max-width: 600px;
  margin: 1rem auto;
}

.hero-verse p {
  font-family: var(--font-quran);
  font-size: 1.3rem;
  line-height: 2;
  color: var(--gold-light);
}

.hero-verse .verse-ref {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--gold));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.audio-player-region {
  margin-top: 1rem;
}

.audio-player {
  width: 100%;
  max-width: 100%;
  border-radius: 0.75rem;
  background: #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-green {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}


.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

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


.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }


.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 1rem;
}


.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: white; }


.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}


.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26, 95, 63, 0.1);
}

.search-box button {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--primary-dark);
}


.select-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.select-box select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
}

.select-box select:focus {
  outline: none;
  border-color: var(--primary-light);
}


.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.surah-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.surah-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  transform: scaleY(0);
  transition: var(--transition);
}

.surah-card:hover::before { transform: scaleY(1); }
.surah-card:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--primary-light);
}

.surah-number {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.surah-info { flex: 1; }
.surah-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}
.surah-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.surah-name-ar {
  font-family: var(--font-quran);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}


.quran-viewer {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  margin-top: 2rem;
}

.surah-header {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  color: white;
}

.surah-header h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.surah-header p { opacity: 0.85; }

.verse-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.verse-item:hover {
  background: rgba(26, 95, 63, 0.02);
}

.verse-text {
  font-family: var(--font-quran);
  font-size: 1.6rem;
  line-height: 2.2;
  color: var(--text);
  text-align: justify;
  margin-bottom: 1rem;
}

.verse-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0.3rem;
  vertical-align: middle;
}

.verse-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.verse-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
}

.verse-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.verse-btn.playing {
  background: var(--primary);
  color: white;
  animation: pulse 1.5s infinite;
}

.verse-btn.tafsir-btn {
  border-color: var(--secondary);
  color: var(--gold);
}

.verse-btn.tafsir-btn:hover {
  background: var(--secondary);
  color: var(--bg-dark);
}


.tafsir-panel {
  background: linear-gradient(135deg, #faf8f0, #f5f0e0);
  border: 1px solid var(--secondary-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.tafsir-panel h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tafsir-panel p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-light);
}


.audio-player-container {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  color: white;
  position: sticky;
  bottom: 20px;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.audio-info .reciter-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--bg-dark);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

.audio-btn.small {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  color: white;
  box-shadow: none;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 1rem 0;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  border-radius: 3px;
  transition: width 0.1s linear;
}


.prayer-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.prayer-location {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.prayer-location h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.prayer-location .date-display {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prayer-time-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.prayer-time-item:hover {
  background: rgba(26, 95, 63, 0.03);
  border-color: var(--primary-light);
}

.prayer-time-item.current {
  background: linear-gradient(135deg, rgba(26, 95, 63, 0.08), rgba(26, 95, 63, 0.03));
  border-color: var(--primary);
  border-width: 2px;
}

.prayer-name {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prayer-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.prayer-name span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.prayer-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

/* ===== Tasbeeh ===== */
.tasbeeh-container {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.tasbeeh-display {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tasbeeh-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

.counter-display {
  font-size: 6rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  font-family: 'Courier New', monospace;
}

.counter-label {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.tasbeeh-button {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--gold));
  color: var(--bg-dark);
  font-size: 3rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.4);
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tasbeeh-button::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.tasbeeh-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.5);
}

.tasbeeh-button:active {
  transform: scale(0.95);
}

.tasbeeh-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}


.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.name-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.name-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}

.name-card:hover::before { transform: scaleX(1); }
.name-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
  border-color: var(--primary-light);
}

.name-ar {
  font-family: var(--font-quran);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.name-desc {
  display: none;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.name-card:hover .name-desc {
  display: block;
  animation: fadeIn 0.3s ease-out;
}


.main-footer {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.footer-section p, .footer-section a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 2;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold-light);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}


@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
  .main-nav { flex-wrap: wrap; gap: 0.3rem; padding: 0.3rem; }
  .nav-link { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 2.5rem 1rem; }
  .counter-display { font-size: 4rem; }
  .tasbeeh-button { width: 160px; height: 160px; font-size: 2.5rem; }
  .surah-grid { grid-template-columns: 1fr; }
  .names-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .verse-text { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.6rem; }
  .counter-display { font-size: 3rem; }
  .tasbeeh-button { width: 140px; height: 140px; font-size: 2rem; }
  .prayer-time-item { flex-direction: column; text-align: center; gap: 0.5rem; }
  .names-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.6rem; }
  .name-card { padding: 1rem 0.5rem; }
  .name-ar { font-size: 1.3rem; }
  .name-meaning { font-size: 0.75rem; }
}


@media (max-width: 360px) {
  .nav-link { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
  .hero h1 { font-size: 1.5rem; }
  .counter-display { font-size: 2.5rem; }
  .tasbeeh-button { width: 120px; height: 120px; font-size: 1.8rem; }
}


.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  margin-right: 0.75rem;
}


.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top.show { display: flex; }


.islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20L20 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.bismillah {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin: 1.5rem 0;
}


.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--shadow-lg);
  z-index: 9999;
  animation: fadeInLeft 0.3s ease-out;
  display: none;
}

.notification.show { display: block; }
