/* ============================================================
   WEMUSLIM — styles.css
   Complete stylesheet for WeMuslim Islamic Platform
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --primary:        #1FAB89;
  --primary-light:  #2ec4a0;
  --primary-dark:   #178a6e;
  --primary-glow:   rgba(31,171,137,0.25);
  --primary-soft:   rgba(31,171,137,0.10);
  --gold:           #F4C430;
  --gold-dark:      #c9981b;
  --gold-glow:      rgba(244,196,48,0.25);

  /* Light Theme (default) */
  --bg:             #f4f7fb;
  --bg2:            #eaeff6;
  --bg3:            #dde5ef;
  --bg4:            #d0dcea;
  --card:           rgba(255,255,255,0.95);
  --card-hover:     rgba(245,248,252,0.98);
  --card-border:    rgba(31,171,137,0.20);
  --text:           #0d1520;
  --text2:          #3d5c78;
  --text3:          #7fa0bb;
  --glass:          rgba(255,255,255,0.55);
  --glass-border:   rgba(31,171,137,0.12);
  --shadow:         0 8px 40px rgba(0,0,0,0.10);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.08);
  --nav-bg:         rgba(244,247,251,0.96);
  --overlay:        rgba(0,0,0,0.5);

  /* Layout */
  --sidebar-w:      260px;
  --topbar-h:       62px;
  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  /* Typography */
  --font-body:      'Outfit', sans-serif;
  --font-arabic:    'Amiri', serif;
  --font-display:   'Outfit', sans-serif;

  /* Transitions */
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:all 0.18s ease;
  --transition-slow:all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg:             #0a0f16;
  --bg2:            #111820;
  --bg3:            #18222e;
  --bg4:            #1e2c3a;
  --card:           rgba(17,24,32,0.90);
  --card-hover:     rgba(22,31,42,0.95);
  --card-border:    rgba(31,171,137,0.15);
  --text:           #e2ecf6;
  --text2:          #7da0bb;
  --text3:          #3d5f78;
  --glass:          rgba(255,255,255,0.04);
  --glass-border:   rgba(255,255,255,0.07);
  --shadow:         0 8px 40px rgba(0,0,0,0.5);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.35);
  --nav-bg:         rgba(10,15,22,0.96);
  --overlay:        rgba(0,0,0,0.7);
}

/* Light theme explicit (for when JS sets data-theme="light") */
[data-theme="light"] {
  --bg:             #f4f7fb;
  --bg2:            #eaeff6;
  --bg3:            #dde5ef;
  --bg4:            #d0dcea;
  --card:           rgba(255,255,255,0.95);
  --card-hover:     rgba(245,248,252,0.98);
  --card-border:    rgba(31,171,137,0.20);
  --text:           #0d1520;
  --text2:          #3d5c78;
  --text3:          #7fa0bb;
  --glass:          rgba(255,255,255,0.55);
  --glass-border:   rgba(31,171,137,0.12);
  --shadow:         0 8px 40px rgba(0,0,0,0.10);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.08);
  --nav-bg:         rgba(244,247,251,0.96);
  --overlay:        rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Selection */
::selection { background: var(--primary-glow); color: var(--primary); }

/* ============================================================
   3. BACKGROUND DECORATION
   ============================================================ */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(31,171,137,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(244,196,48,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(31,171,137,0.05) 0%, transparent 50%);
}

.bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231FAB89' fill-opacity='0.025'%3E%3Cpath d='M40 0L48 24H74L52 38L60 62L40 48L20 62L28 38L6 24H32Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

/* ============================================================
   4. APP LAYOUT
   ============================================================ */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   5. SIDEBAR (Desktop)
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--nav-bg);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: var(--transition-slow);
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 12px var(--primary-glow);
}

.logo-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-text span {
  font-size: 10.5px;
  color: var(--text3);
  letter-spacing: 0.4px;
  font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--text3);
  text-transform: uppercase;
  padding: 18px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 18px;
  margin: 2px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
  position: relative;
}

.nav-item:hover {
  background: var(--glass);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(31,171,137,0.20), rgba(31,171,137,0.07));
  color: var(--primary);
  border-color: rgba(31,171,137,0.25);
  box-shadow: 0 0 20px rgba(31,171,137,0.08);
}

.nav-item .nav-icon {
  font-size: 19px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
  width: 100%;
}

.theme-toggle-btn:hover { color: var(--text); }

/* Toggle Switch */
.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--bg3);
  border-radius: var(--radius-full);
  position: relative;
  margin-left: auto;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-track.on { background: var(--primary); }

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-track.on .toggle-thumb {
  transform: translateX(16px);
}

/* ============================================================
   6. MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-w));
}

/* ============================================================
   7. TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--topbar-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-greeting {
  font-size: 13px;
  color: var(--text2);
}

.topbar-greeting strong { color: var(--primary); font-weight: 700; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.topbar-location:hover { color: var(--primary); border-color: rgba(31,171,137,0.3); }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  color: var(--text2);
  transition: var(--transition-fast);
  position: relative;
}

.icon-btn:hover { color: var(--primary); border-color: rgba(31,171,137,0.3); }

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid var(--bg);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ============================================================
   8. PAGES
   ============================================================ */
.page-content {
  flex: 1;
  padding: 30px;
  padding-bottom: 80px;
  overflow-x: hidden;
  min-width: 0;
}

.page {
  display: none;
  animation: pageFadeIn 0.4s cubic-bezier(0.4,0,0.2,1);
}

.page.active { display: block; }

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

/* Page Header */
.page-header { margin-bottom: 28px; }

.page-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text2);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card-body { padding: 24px; }

.card:hover {
  border-color: rgba(31,171,137,0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card.no-hover:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--card-border);
}

/* ============================================================
   10. GRID LAYOUTS
   ============================================================ */
.grid { display: grid; gap: 18px; width: 100%; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   11. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid transparent;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text2);
}

.btn-ghost:hover { color: var(--text); background: var(--bg3); }

.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Store Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-body);
  text-decoration: none;
}

.store-btn:hover {
  border-color: var(--primary);
  background: rgba(31,171,137,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.store-btn .store-icon { font-size: 28px; }

.store-btn-text small {
  display: block;
  font-size: 10px;
  color: var(--text2);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.store-btn-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ============================================================
   12. HERO PRAYER CARD
   ============================================================ */
.hero-prayer-card {
  background: linear-gradient(135deg, #1FAB89 0%, #14876c 45%, #0c5a47 100%);
  border-radius: var(--radius-xl);
  padding: 22px 28px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(31,171,137,0.40);
  margin-bottom: 22px;
}

.hero-prayer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M60 0L72 36H110L80 58L92 94L60 72L28 94L40 58L10 36H48Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-prayer-card::after {
  content: '🕌';
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-size: 160px;
  opacity: 0.06;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}

.hero-prayer-name {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-prayer-time {
  font-size: 52px;
  font-weight: 200;
  color: #fff;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 14px;
}

.hero-prayer-time sub {
  font-size: 22px;
  font-weight: 400;
  opacity: 0.6;
  vertical-align: middle;
  letter-spacing: 0;
}

.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}

.hero-countdown strong {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}

.hero-location-chip {
  position: absolute;
  top: 28px;
  right: 28px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   13. PRAYER PILLS
   ============================================================ */
.prayer-pills-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.prayer-pills-track::-webkit-scrollbar { display: none; }

.prayer-pill {
  flex-shrink: 0;
  min-width: 88px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.prayer-pill:hover { border-color: var(--primary-dark); }

.prayer-pill.current {
  background: linear-gradient(135deg, rgba(31,171,137,0.22), rgba(31,171,137,0.08));
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(31,171,137,0.2);
}

.prayer-pill-icon { font-size: 16px; }
.prayer-pill-name { font-size: 11px; color: var(--text2); font-weight: 600; }
.prayer-pill-time { font-size: 15px; font-weight: 700; color: var(--text); }
.prayer-pill.current .prayer-pill-name { color: var(--primary); }
.prayer-pill.current .prayer-pill-time { color: var(--primary); }

/* ============================================================
   14. QUICK CARDS
   ============================================================ */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.quick-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31,171,137,0.14);
}

.quick-card:active { transform: translateY(-1px); }

.quick-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.qci-quran  { background: linear-gradient(135deg,rgba(31,171,137,0.25),rgba(31,171,137,0.07)); }
.qci-qibla  { background: linear-gradient(135deg,rgba(244,196,48,0.25),rgba(244,196,48,0.07)); }
.qci-azkar  { background: linear-gradient(135deg,rgba(100,140,255,0.25),rgba(100,140,255,0.07)); }
.qci-tasbih { background: linear-gradient(135deg,rgba(255,100,130,0.25),rgba(255,100,130,0.07)); }

.quick-card-label { font-size: 13px; font-weight: 700; color: var(--text); }
.quick-card-sub   { font-size: 11px; color: var(--text2); }

/* ============================================================
   15. HADITH CARD
   ============================================================ */
.hadith-card {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}

.hadith-card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 22px;
  font-size: 110px;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.hadith-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hadith-text {
  font-family: var(--font-arabic);
  font-size: 19px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 12px;
}

.hadith-source { font-size: 12px; color: var(--text2); }

/* ============================================================
   16. APP SCREENSHOTS SECTION (Carousel)
   ============================================================ */
.screenshots-section {
  padding: 22px 0;
  margin-bottom: 22px;
}

.screenshots-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.screenshots-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.screenshots-header p {
  font-size: 13.5px;
  color: var(--text2);
  margin-top: 4px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Carousel Track */
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  width: 100%;
}

.screenshot-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 4px 2px;
}

/* Phone mockup */
.phone-mockup {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg3);
  border: 2px solid var(--glass-border);
  border-radius: 32px;
  padding: 14px 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  display: block;
  width: 50px;
  height: 6px;
  background: var(--bg4);
  border-radius: 3px;
  margin: 0 auto 12px;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Placeholder screen content */
.screen-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
  position: relative;
  overflow: hidden;
}

.screen-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(31,171,137,0.08) 0%, transparent 60%);
}

.screen-placeholder-icon {
  font-size: 40px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.screen-placeholder-label {
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.screen-img-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31,171,137,0.15);
  border: 1px solid rgba(31,171,137,0.3);
  border-radius: 6px;
  font-size: 9px;
  color: var(--primary);
  padding: 3px 8px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Screenshot info panel */
.screenshot-info {
  flex: 1;
  padding: 10px 0;
}

.screenshot-info .slide-num {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.screenshot-info h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.screenshot-info p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 18px;
}

.screenshot-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screenshot-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}

.screenshot-feature::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31,171,137,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg3);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--glass-border);
}

.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
  border-color: var(--primary);
}

/* ============================================================
   17. WHY CHOOSE US
   ============================================================ */
.why-section { margin-bottom: 22px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-soft);
  transition: var(--transition);
}

.why-card:hover::before {
  width: 130px;
  height: 130px;
  top: -40px;
  right: -40px;
}

.why-card:hover {
  border-color: rgba(31,171,137,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(31,171,137,0.2), rgba(31,171,137,0.05));
  box-shadow: 0 0 20px rgba(31,171,137,0.1);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.why-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
}

/* ============================================================
   18. TESTIMONIALS
   ============================================================ */
.testimonials-section { margin-bottom: 22px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card:hover {
  border-color: rgba(31,171,137,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.testimonial-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.author-location {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

/* ============================================================
   19. STATS BANNER
   ============================================================ */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: linear-gradient(135deg, rgba(31,171,137,0.12), rgba(31,171,137,0.04));
  border: 1px solid rgba(31,171,137,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 22px;
  width: 100%;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}

/* ============================================================
   20. DOWNLOAD SECTION
   ============================================================ */
.download-section {
  background: linear-gradient(135deg, #1FAB89 0%, #0c5a47 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 0L60 30H90L68 46L76 76L50 60L24 76L32 46L10 30H40Z'/%3E%3C/g%3E%3C/svg%3E");
}

.download-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
}

.download-text { flex: 1; }

.download-section h2 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.download-section p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-body);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.store-btn-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.store-btn-white .store-icon { font-size: 26px; }
.store-btn-white .store-btn-text small { font-size: 10px; color: rgba(255,255,255,0.7); }
.store-btn-white .store-btn-text strong { font-size: 16px; }

.download-phone-art {
  font-size: 100px;
  opacity: 0.25;
  transform: rotate(-10deg);
}

/* ============================================================
   21. PRAYER TIMES TABLE
   ============================================================ */
.prayer-table-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
}

.prayer-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg2);
}

.prayer-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14.5px;
  color: var(--text);
}

.prayer-table tr:last-child td { border-bottom: none; }

.prayer-row-current td { color: var(--primary); font-weight: 700; }

.prayer-row-current td:first-child {
  position: relative;
  padding-left: 38px;
}

.prayer-row-current td:first-child::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); box-shadow: 0 0 8px var(--primary); }
  50%       { opacity: 0.5; transform: translateY(-50%) scale(1.6); box-shadow: 0 0 16px var(--primary); }
}

.prayer-icon { font-size: 18px; margin-right: 10px; vertical-align: middle; }

/* ============================================================
   22. LOCATION CARD
   ============================================================ */
.location-detect-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(31,171,137,0.10), rgba(31,171,137,0.03));
  border: 1px solid rgba(31,171,137,0.20);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.location-detect-card .loc-icon { font-size: 30px; flex-shrink: 0; }
.location-detect-card h3 { font-size: 17px; font-weight: 700; }
.location-detect-card p { font-size: 12.5px; color: var(--text2); margin-top: 3px; }

.detect-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
  white-space: nowrap;
}

.detect-btn:hover {
  background: var(--primary-light);
  transform: scale(1.04);
}

/* ============================================================
   23. QURAN SECTION
   ============================================================ */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

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

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.select-input {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.select-input:focus { border-color: var(--primary); }

.surah-list { display: flex; flex-direction: column; gap: 8px; }

.surah-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.surah-item:hover {
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(31,171,137,0.07), transparent);
}

.surah-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31,171,137,0.18), rgba(31,171,137,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.surah-info { flex: 1; min-width: 0; }

.surah-name-en {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surah-meta { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

.surah-name-ar {
  font-family: var(--font-arabic);
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.play-btn:hover { background: var(--primary-light); transform: scale(1.1); }

/* ============================================================
   24. QIBLA COMPASS
   ============================================================ */
.qibla-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.compass-outer {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--bg3), var(--bg2), var(--bg3), var(--bg2), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 2px var(--card-border), 0 0 60px rgba(31,171,137,0.15), inset 0 0 60px rgba(0,0,0,0.25);
}

.compass-inner {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg2) 55%, var(--bg3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.3);
}

.compass-labels {
  position: absolute;
  inset: 0;
}

.compass-dir {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  color: var(--text3);
  transform: translate(-50%, -50%);
}

.compass-dir.N { top: 18px; left: 50%; color: var(--primary); font-size: 15px; }
.compass-dir.S { bottom: 5px; left: 50%; transform: translate(-50%, 50%); }
.compass-dir.E { right: 8px; top: 50%; transform: translate(50%, -50%); }
.compass-dir.W { left: 8px; top: 50%; transform: translate(-50%, -50%); }

.compass-needle-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.34,1.56,0.64,1);
}

.needle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.kaaba-marker {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 18px var(--gold-glow);
}

.needle-shaft-top {
  width: 3px;
  height: 72px;
  background: linear-gradient(to bottom, rgba(31,171,137,0.9), transparent);
  border-radius: 2px;
}

.compass-center-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  position: relative;
  z-index: 2;
}

.needle-shaft-bottom {
  width: 3px;
  height: 56px;
  background: linear-gradient(to top, rgba(100,100,100,0.4), transparent);
  border-radius: 2px;
}

.qibla-degree-display {
  text-align: center;
}

.qibla-degree-num {
  font-size: 62px;
  font-weight: 200;
  color: var(--primary);
  letter-spacing: -3px;
  line-height: 1;
}

.qibla-degree-num sup { font-size: 24px; font-weight: 400; }
.qibla-sublabel { font-size: 13.5px; color: var(--text2); margin-top: 8px; }

.qibla-distance-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 14px;
  color: var(--text2);
  margin-top: 14px;
}

.qibla-distance-chip strong { color: var(--text); font-size: 17px; font-weight: 800; }

/* ============================================================
   25. AZKAR & TASBIH
   ============================================================ */
.tab-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--bg2);
  padding: 6px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.tab-pill {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  transition: var(--transition-fast);
  user-select: none;
}

.tab-pill.active { background: var(--primary); color: #fff; }
.tab-pill:not(.active):hover { color: var(--text); }

.azkar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.azkar-card:hover { border-color: var(--primary-dark); }

.azkar-arabic {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--text);
  line-height: 2;
  text-align: right;
  direction: rtl;
  margin-bottom: 14px;
}

.azkar-translation {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.azkar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.azkar-source { font-size: 12px; color: var(--primary); flex: 1; font-weight: 500; }

.azkar-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Tasbih */
.tasbih-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.phrase-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.phrase-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--card-border);
  background: var(--card);
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.phrase-chip:hover, .phrase-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(31,171,137,0.08);
}

.tasbih-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: radial-gradient(circle, rgba(31,171,137,0.10), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s;
  box-shadow: 0 0 40px rgba(31,171,137,0.22);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.tasbih-ring:active { transform: scale(0.94); }
.tasbih-ring.goal-reached { border-color: var(--gold); box-shadow: 0 0 40px var(--gold-glow); }

.tasbih-count-num {
  font-size: 66px;
  font-weight: 200;
  color: var(--primary);
  line-height: 1;
}

.tasbih-goal-label { font-size: 14px; color: var(--text2); }
.tasbih-ring.goal-reached .tasbih-count-num { color: var(--gold); }

.tasbih-phrase-display {
  font-family: var(--font-arabic);
  font-size: 28px;
  color: var(--text);
  text-align: center;
}

.tasbih-translit { font-size: 14px; color: var(--text2); text-align: center; margin-top: -14px; }

.tasbih-controls { display: flex; gap: 12px; }

.tasbih-stat { text-align: center; }
.tasbih-stat .big-num { font-size: 32px; font-weight: 300; color: var(--primary); }
.tasbih-stat .stat-sub { font-size: 12px; color: var(--text2); }

/* Ripple */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(31,171,137,0.35);
  animation: ripple-out 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  from { width: 0; height: 0; opacity: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); }
  to   { width: 220px; height: 220px; opacity: 0; top: 50%; left: 50%; transform: translate(-50%,-50%); }
}

/* ============================================================
   26. SETTINGS PAGE
   ============================================================ */
.settings-group { margin-bottom: 32px; }

.settings-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.settings-row:hover { border-color: var(--primary-dark); }

.settings-row-icon { font-size: 22px; flex-shrink: 0; }
.settings-row-body { flex: 1; min-width: 0; }
.settings-row-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.settings-row-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ============================================================
   27. AUDIO PLAYER (Fixed bar)
   ============================================================ */
.audio-player {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 28px;
  display: none;
  align-items: center;
  gap: 18px;
  z-index: 180;
  transition: left 0.3s ease;
}

.audio-player.visible { display: flex; }

.audio-info { flex: 0 0 200px; min-width: 0; }
.audio-track-name { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-track-sub  { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

.audio-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}

.ac-btn:hover { color: var(--primary); }

.ac-btn.main-play {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-size: 17px;
}

.ac-btn.main-play:hover { background: var(--primary-light); }

.audio-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-time { font-size: 11.5px; color: var(--text2); white-space: nowrap; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  transition: width 0.1s linear;
}

.audio-close {
  font-size: 16px;
  cursor: pointer;
  color: var(--text3);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.audio-close:hover { color: var(--text); }

/* ============================================================
   28. MOBILE BOTTOM NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-items {
  display: flex;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--text3);
  font-size: 9.5px;
  font-weight: 600;
  transition: var(--transition-fast);
  background: none;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}

.mobile-nav-item .mn-icon {
  font-size: 23px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active .mn-icon { transform: translateY(-3px); }

/* ============================================================
   29. MOBILE HEADER
   ============================================================ */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mobile-logo strong { font-size: 17px; font-weight: 800; color: var(--primary); }

.mobile-header-right { display: flex; gap: 8px; }

/* ============================================================
   30. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand .footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand .footer-logo strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 300px;
}

.footer-store-btns { display: flex; flex-direction: column; gap: 10px; }

.footer-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-body);
  width: fit-content;
}

.footer-store-btn:hover { border-color: var(--primary); background: rgba(31,171,137,0.08); }
.footer-store-btn .fs-icon { font-size: 20px; }
.footer-store-btn small { display: block; font-size: 9.5px; color: var(--text2); }
.footer-store-btn strong { display: block; font-size: 13.5px; font-weight: 700; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 12.5px; color: var(--text3); }

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: var(--text3);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================================
   31. LEGAL PAGES (Terms & Privacy)
   ============================================================ */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  padding: 48px 0 36px;
  margin-bottom: 10px;
}

.legal-header .legal-icon { font-size: 56px; margin-bottom: 18px; }

.legal-header h1 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-header .legal-meta {
  font-size: 13.5px;
  color: var(--text2);
}

.legal-header .legal-meta strong { color: var(--primary); }

.legal-toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.legal-toc h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.legal-toc ol li a {
  font-size: 13.5px;
  color: var(--text2);
  text-decoration: none;
  transition: var(--transition-fast);
}

.legal-toc ol li a:hover { color: var(--primary); }

.legal-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.legal-section:hover { border-color: rgba(31,171,137,0.2); }

.legal-section h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.legal-section h2 .section-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(31,171,137,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 14px;
}

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

.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }

.legal-section li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-section strong { color: var(--text); font-weight: 600; }

.legal-section h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 10px;
}

.legal-highlight {
  background: rgba(31,171,137,0.08);
  border: 1px solid rgba(31,171,137,0.2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
}

.legal-highlight p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}

.legal-contact-card {
  background: linear-gradient(135deg, rgba(31,171,137,0.12), rgba(31,171,137,0.04));
  border: 1px solid rgba(31,171,137,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}

.legal-contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.legal-contact-card p { font-size: 13.5px; color: var(--text2); margin-bottom: 16px; }
.legal-contact-card a { color: var(--primary); font-weight: 600; }

/* ============================================================
   32. UTILITY CLASSES
   ============================================================ */
.flex               { display: flex; }
.flex-col           { flex-direction: column; }
.items-center       { align-items: center; }
.justify-between    { justify-content: space-between; }
.justify-center     { justify-content: center; }
.gap-8              { gap: 8px; }
.gap-12             { gap: 12px; }
.gap-16             { gap: 16px; }
.gap-20             { gap: 20px; }
.flex-1             { flex: 1; }
.text-center        { text-align: center; }
.text-primary       { color: var(--primary); }
.text-muted         { color: var(--text2); }
.text-sm            { font-size: 13px; }
.text-xs            { font-size: 11.5px; }
.font-bold          { font-weight: 700; }
.font-extrabold     { font-weight: 900; }
.w-full             { width: 100%; }
.mb-8               { margin-bottom: 8px; }
.mb-12              { margin-bottom: 12px; }
.mb-16              { margin-bottom: 16px; }
.mb-20              { margin-bottom: 20px; }
.mb-24              { margin-bottom: 24px; }
.mb-32              { margin-bottom: 32px; }
.mt-16              { margin-top: 16px; }
.mt-20              { margin-top: 20px; }
.divider            { height: 1px; background: var(--glass-border); margin: 20px 0; }
.badge              { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 700; }
.badge-primary      { background: rgba(31,171,137,0.18); color: var(--primary); }
.badge-gold         { background: rgba(244,196,48,0.18); color: var(--gold); }

/* ============================================================
   33. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   34. LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================================
   35. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Large Desktop (1440px+) --- */
@media (min-width: 1440px) {
  .page-content { padding: 36px 48px; }
  .why-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Medium Desktop (1024px – 1279px) --- */
@media (max-width: 1279px) {
  :root { --sidebar-w: 230px; }
  .grid-4         { grid-template-columns: repeat(2, 1fr); }
  .quick-cards    { grid-template-columns: repeat(4, 1fr); }
  .stats-banner   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
}

/* --- Tablet (768px – 1023px) --- */
@media (max-width: 1023px) {
  .sidebar        { display: none; }
  .main-content   { margin-left: 0; }
  .topbar         { display: none; }
  .mobile-header  { display: flex; }
  .mobile-nav     { display: block; }
  .audio-player   { left: 0; bottom: 64px; padding: 10px 18px; }
  .page-content   { padding: 20px 20px 100px; }
  .page-title     { font-size: 23px; }
  .grid-3         { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner   { padding: 0 24px; }
  .stats-banner   { grid-template-columns: repeat(2, 1fr); }
  .download-content { flex-direction: column; text-align: center; }
  .store-buttons  { justify-content: center; }
  .legal-toc ol   { grid-template-columns: 1fr; }
}

/* --- Mobile (max 767px) --- */
@media (max-width: 767px) {
  .page-content          { padding: 16px 14px 95px; }
  .page-title            { font-size: 21px; }
  .hero-prayer-card      { padding: 24px 22px 22px; border-radius: var(--radius-lg); }
  .hero-prayer-name      { font-size: 30px; }
  .hero-prayer-time      { font-size: 54px; letter-spacing: -2px; }
  .hero-location-chip    { top: 18px; right: 18px; font-size: 11px; padding: 5px 10px; }
  .quick-cards           { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card            { padding: 16px 10px; }
  .quick-card-icon       { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
  .quick-card-label      { font-size: 12px; }
  .grid-2                { grid-template-columns: 1fr; }
  .grid-3                { grid-template-columns: 1fr; }
  .why-grid              { grid-template-columns: 1fr; }
  .testimonials-grid     { grid-template-columns: 1fr; }
  .stats-banner          { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 16px; }
  .stat-number           { font-size: 28px; }
  .footer-grid           { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner          { padding: 0 16px; }
  .footer-bottom         { flex-direction: column; align-items: flex-start; gap: 10px; }
  .screenshot-slide      { flex-direction: column; align-items: center; width: 100%; }
  .phone-mockup          { width: 180px; }
  .qibla-container       { gap: 20px; }
  .compass-outer         { width: 250px; height: 250px; }
  .compass-inner         { width: 205px; height: 205px; }
  .download-section      { padding: 26px; }
  .download-section h2   { font-size: 22px; }
  .store-buttons         { flex-direction: column; align-items: flex-start; }
  .audio-player          { padding: 10px 14px; gap: 10px; bottom: 58px; }
  .audio-info            { flex: none; min-width: 0; max-width: 120px; }
  .audio-track-name      { font-size: 12px; }
  .legal-header h1       { font-size: 28px; }
  .legal-section         { padding: 22px 18px; }
  .screenshots-header    { flex-direction: column; align-items: flex-start; }
}

/* --- Very Small Mobile (max 420px) --- */
@media (max-width: 420px) {
  .hero-prayer-time      { font-size: 46px; }
  .quick-cards           { grid-template-columns: repeat(2, 1fr); }
  .prayer-pills-track    { gap: 8px; }
  .prayer-pill           { min-width: 76px; padding: 11px 12px; }
  .tasbih-ring           { width: 168px; height: 168px; }
  .tasbih-count-num      { font-size: 58px; }
}

/* ============================================================
   36. VOLUME SLIDER — hide on very small screens
   ============================================================ */
@media (max-width: 600px) {
  .audio-player input[type="range"] { display: none; }
  .audio-player input[type="range"] + span { display: none; }
}

/* ============================================================
   37. RECITER SELECTOR CHIP (Quran page)
   ============================================================ */
.reciter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.reciter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--card-border);
  background: var(--card);
  font-size: 12.5px;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.reciter-chip:hover,
.reciter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(31,171,137,0.08);
}

/* ============================================================
   38. PRAYER TIME LOADING STATE
   ============================================================ */
.prayer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--text2);
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* ============================================================
   39. QURAN PAGE — floating play indicator on active surah
   ============================================================ */
.surah-item.playing {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(31,171,137,0.10), transparent);
}

.surah-item.playing .play-btn {
  background: #e74c3c;
  animation: pulse-play 1.5s infinite;
}

@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

/* ============================================================
   40. SETTINGS PAGE — danger zone
   ============================================================ */
.danger-zone {
  border-color: rgba(231, 76, 60, 0.25) !important;
}

.danger-zone:hover {
  border-color: rgba(231, 76, 60, 0.5) !important;
}

.btn-danger {
  background: rgba(231,76,60,0.12);
  border: 1.5px solid rgba(231,76,60,0.3);
  color: #e74c3c;
}

.btn-danger:hover {
  background: rgba(231,76,60,0.2);
  border-color: rgba(231,76,60,0.6);
}

/* ============================================================
   41. ISLAMIC DATE CARD — Hijri badge
   ============================================================ */
.hijri-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244,196,48,0.12);
  border: 1px solid rgba(244,196,48,0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ============================================================
   42. FOOTER — social links row
   ============================================================ */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.social-link:hover {
  border-color: var(--primary);
  background: rgba(31,171,137,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   43. NOTIFICATION PERMISSION PROMPT (mobile)
   ============================================================ */
.notif-prompt {
  background: linear-gradient(135deg, rgba(31,171,137,0.15), rgba(31,171,137,0.05));
  border: 1px solid rgba(31,171,137,0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.notif-prompt:hover { border-color: var(--primary); }

.notif-prompt-icon { font-size: 28px; flex-shrink: 0; }

.notif-prompt-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.notif-prompt-text p {
  font-size: 12px;
  color: var(--text2);
}

/* ============================================================
   44. SMOOTH SCROLL PADDING (for anchor nav)
   ============================================================ */
html { scroll-padding-top: 80px; }

/* ============================================================
   45. PRINT STYLES — hide UI chrome
   ============================================================ */
@media print {
  .sidebar, .topbar, .mobile-nav, .mobile-header,
  .audio-player, #install-banner { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page { display: block !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   46. QURAN DETAIL VIEW (Surah reader panel)
   ============================================================ */
.quran-detail {
  display: none;
  animation: pageFadeIn 0.35s ease;
}
.quran-detail.active { display: block; }

.quran-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1FAB89 0%, #0c5a47 100%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.quran-detail-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M30 0L36 18H54L42 28L48 46L30 36L12 46L18 28L6 18H24Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.back-to-list {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: #fff;
  transition: var(--transition-fast); flex-shrink: 0;
}
.back-to-list:hover { background: rgba(255,255,255,0.3); }
.quran-detail-meta { flex: 1; z-index: 1; }
.quran-detail-meta h2 { font-size: 22px; font-weight: 800; color: #fff; }
.quran-detail-meta .surah-detail-ar {
  font-family: var(--font-arabic); font-size: 28px; color: rgba(255,255,255,0.9);
}
.quran-detail-meta p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.detail-play-btn {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: #fff; font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition-fast);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; z-index: 1;
}
.detail-play-btn:hover { background: rgba(255,255,255,0.32); }

.bismillah {
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 30px;
  color: var(--primary);
  padding: 20px;
  margin-bottom: 8px;
}

.ayah-list { display: flex; flex-direction: column; gap: 0; padding: 0 20px; }

.ayah-row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: flex-start;
  transition: background 0.2s;
}
.ayah-row:last-child { border-bottom: none; }
.ayah-row:hover { background: var(--primary-soft); border-radius: var(--radius-md); }

.ayah-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(31,171,137,0.18), rgba(31,171,137,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--primary);
  flex-shrink: 0; margin-top: 4px;
}
.ayah-content { flex: 1; }
.ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 26px; line-height: 2.1;
  color: var(--text); text-align: right;
  direction: rtl; margin-bottom: 10px;
}
.ayah-translation {
  font-size: 14px; color: var(--text2);
  line-height: 1.75;
}
.ayah-actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.ayah-action-btn {
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: var(--glass); color: var(--text2);
  font-size: 11.5px; font-family: var(--font-body);
  cursor: pointer; transition: var(--transition-fast);
}
.ayah-action-btn:hover { border-color: var(--primary); color: var(--primary); }

.ayah-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 60px 20px; color: var(--text2);
}

/* ============================================================
   47. CALENDAR PAGE
   ============================================================ */
.calendar-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: var(--bg2); padding: 6px;
  border-radius: var(--radius-md); width: fit-content;
}
.cal-tab {
  padding: 8px 22px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; color: var(--text2);
  transition: var(--transition-fast); user-select: none;
}
.cal-tab.active { background: var(--primary); color: #fff; }

.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-nav h3 { font-size: 18px; font-weight: 800; }
.cal-nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text2); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 18px;
  transition: var(--transition-fast);
}
.cal-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.calendar-grid-header {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px; margin-bottom: 6px;
}
.cal-day-name {
  text-align: center; font-size: 11px;
  font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 6px 0;
}

.calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast);
  position: relative; padding: 4px 2px;
  border: 1px solid transparent;
}
.cal-day:hover { background: var(--primary-soft); border-color: var(--card-border); }
.cal-day.today {
  background: var(--primary) !important;
  color: #fff !important; border-radius: var(--radius-sm);
}
.cal-day.today .cal-greg, .cal-day.today .cal-hijri { color: rgba(255,255,255,0.85) !important; }
.cal-day.other-month { opacity: 0.35; }
.cal-day.selected {
  background: rgba(31,171,137,0.18);
  border-color: var(--primary);
}
.cal-greg {
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1;
}
.cal-hijri {
  font-size: 9px; color: var(--text3); margin-top: 2px;
  font-family: var(--font-arabic); direction: rtl;
}
.cal-day.friday .cal-greg { color: var(--primary); }
.cal-day.has-event::after {
  content: '';
  position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

.calendar-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text2);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.selected-date-card {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(31,171,137,0.10), rgba(31,171,137,0.03));
  border: 1px solid rgba(31,171,137,0.2);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
}
.selected-date-card .date-icon { font-size: 32px; flex-shrink: 0; }
.selected-date-card h4 { font-size: 16px; font-weight: 800; }
.selected-date-card p { font-size: 13px; color: var(--text2); margin-top: 3px; }

/* ============================================================
   48. MOBILE — main content full width when no sidebar
   ============================================================ */
@media (max-width: 1023px) {
  .main-content {
    margin-left: 0;
    max-width: 100vw;
  }
}

/* Ensure no child overflows viewport */
* { box-sizing: border-box; }
img, video, iframe, table { max-width: 100%; }

/* ============================================================
   49. HIJRI MONTH REFERENCE CARDS
   ============================================================ */
.hijri-month-card {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}
.hijri-month-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.hijri-month-card.special {
  border-color: rgba(244,196,48,0.3);
  background: rgba(244,196,48,0.05);
}
.hijri-month-card.special:hover {
  border-color: var(--gold);
  background: rgba(244,196,48,0.10);
}
.hm-num {
  font-size: 10.5px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.hijri-month-card.special .hm-num { color: var(--gold); }
.hm-en {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.hm-ar {
  font-family: var(--font-arabic);
  font-size: 17px;
  color: var(--text2);
  direction: rtl;
  text-align: right;
}

/* ============================================================
   50. ABOUT & CONTACT pages
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, #1FAB89 0%, #0c5a47 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M40 0L48 24H72L52 38L60 62L40 48L20 62L28 38L8 24H32Z'/%3E%3C/g%3E%3C/svg%3E");
}
.about-hero img {
  width: 90px; height: 90px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative; z-index: 1;
}
.about-hero h1 {
  font-size: 38px; font-weight: 900; color: #fff;
  letter-spacing: -1px; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.about-hero p {
  font-size: 16px; color: rgba(255,255,255,0.8);
  max-width: 520px; margin: 0 auto 24px;
  line-height: 1.7; position: relative; z-index: 1;
}
.about-hero .hero-stats {
  display: flex; justify-content: center; gap: 32px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.about-hero .hs-item { text-align: center; }
.about-hero .hs-num {
  font-size: 28px; font-weight: 900; color: var(--gold); line-height: 1;
}
.about-hero .hs-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: var(--transition);
}
.team-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.team-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; margin: 0 auto 14px;
}
.team-name { font-size: 15px; font-weight: 700; color: var(--text); }
.team-role { font-size: 12.5px; color: var(--primary); margin-top: 3px; }
.team-bio  { font-size: 12.5px; color: var(--text2); margin-top: 8px; line-height: 1.6; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.value-icon {
  font-size: 30px; margin-bottom: 12px;
}
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value-card p  { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12.5px; font-weight: 700; color: var(--text2);
  letter-spacing: 0.3px;
}
.form-input {
  background: var(--bg2); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  outline: none; transition: var(--transition-fast);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: var(--text3); }
textarea.form-input { resize: vertical; min-height: 130px; }
.form-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: var(--radius-md);
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: var(--transition-fast); align-self: flex-start;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); }
.form-submit:active { transform: translateY(0); }

.contact-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.contact-info-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: var(--transition-fast);
}
.contact-info-card:hover { border-color: var(--primary); }
.ci-icon { font-size: 26px; flex-shrink: 0; }
.ci-label { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ci-value { font-size: 14px; font-weight: 600; color: var(--text); }
.ci-value a { color: var(--primary); text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }

.success-message {
  background: rgba(31,171,137,0.12); border: 1px solid rgba(31,171,137,0.3);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: none; align-items: center; gap: 14px;
  font-size: 14px; color: var(--text);
}
.success-message.show { display: flex; animation: pageFadeIn 0.4s ease; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .about-hero { padding: 36px 20px; }
  .about-hero h1 { font-size: 28px; }
  .about-hero .hero-stats { gap: 20px; }
}

/* ============================================================
   51. IMAGE-BASED SOCIAL LINKS & STORE BUTTONS
   ============================================================ */
.social-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Image store buttons */
.store-btn-img {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-body);
  text-decoration: none;
}

.store-btn-img:hover {
  border-color: var(--primary);
  background: rgba(31,171,137,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.store-btn-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-btn-img .store-btn-text small {
  display: block;
  font-size: 10px;
  color: var(--text2);
  font-weight: 400;
}

.store-btn-img .store-btn-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* White variant for green hero section */
.store-btn-img-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-body);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.store-btn-img-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.store-btn-img-white img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-btn-img-white .store-btn-text small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
}

.store-btn-img-white .store-btn-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

/* Footer store buttons with images */
.footer-store-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Screenshot full image (no phone mockup frame) */
.screenshot-full-img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  aspect-ratio: 9/16;
  background: var(--bg2);
  position: relative;
}

.screenshot-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .screenshot-full-img { width: 160px; }
}

/* Quran quick card with image icon */
.qci-quran-img {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qci-quran-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
