/* ==========================================================================
   AndroidRich Web Quran 30 Juz - Design System & Stylesheet
   Theme: Noor Emerald & Medina Gold Luxury Aesthetic
   ========================================================================== */

:root {
  /* Color Palette - Noor Emerald Theme (Default) */
  --bg-main: #f8faf9;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f0fdf4;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: #e2e8f0;
  --border-emerald: #10b981;
  --border-gold: #f59e0b;

  --color-primary: #064e3b;
  --color-primary-light: #047857;
  --color-primary-accent: #10b981;
  --color-gold: #d97706;
  --color-gold-light: #fbbf24;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-arabic: #064e3b;

  /* Typography */
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Amiri Quran', 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  --arabic-size: 2.15rem;
  --trans-size: 1.05rem;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.04), 0 1px 2px rgba(6, 78, 59, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(6, 78, 59, 0.08), 0 2px 6px -1px rgba(6, 78, 59, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(6, 78, 59, 0.12), 0 4px 12px -2px rgba(6, 78, 59, 0.06);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.35);
  --shadow-glow-gold: 0 0 24px rgba(245, 158, 11, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --transition-fast: 180ms ease;
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Midnight Velvet Dark Theme */
body[data-theme="midnight"] {
  --bg-main: #07100e;
  --bg-surface: #0f1e1a;
  --bg-surface-raised: #142823;
  --bg-glass: rgba(15, 30, 26, 0.88);
  --border-subtle: #1e3831;
  --border-emerald: #10b981;
  --border-gold: #f59e0b;

  --color-primary: #10b981;
  --color-primary-light: #34d399;
  --color-primary-accent: #6ee7b7;
  --color-gold: #fbbf24;
  --color-gold-light: #fef08a;
  --color-text-main: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-arabic: #ecfdf5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
}

/* Madinah Parchment Theme (Classic Manuscript Paper) */
body[data-theme="parchment"] {
  --bg-main: #fbf7ec;
  --bg-surface: #fffdf7;
  --bg-surface-raised: #f5eed8;
  --bg-glass: rgba(255, 253, 247, 0.9);
  --border-subtle: #e5dbc4;
  --border-emerald: #047857;
  --border-gold: #b45309;

  --color-primary: #292524;
  --color-primary-light: #44403c;
  --color-primary-accent: #b45309;
  --color-gold: #b45309;
  --color-gold-light: #d97706;
  --color-text-main: #1c1917;
  --color-text-muted: #78716c;
  --color-text-arabic: #1c1917;
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-main);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; /* Space for bottom audio player */
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Glass Header */
.quran-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.brand-badge {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

.brand-badge i {
  font-size: 1.25rem;
  color: var(--color-gold-light);
}

/* Quick App Links in Header */
.header-app-link {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--color-text-main);
}

.header-app-link:hover {
  border-color: var(--border-emerald);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header-app-link.btn-googleplay:hover {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.header-app-link.btn-appstore:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Hero Section with Islamic Arabesque Art */
.quran-hero {
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
              var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0 24px;
  position: relative;
  overflow: hidden;
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--color-primary-light);
  line-height: 1.8;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(6, 78, 59, 0.08);
}

/* Last Read Resume Card */
.last-read-card {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.06), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.last-read-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-gold-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Feature Quick Tools (Tasbih, Khatam, Daily Ayah, Mobile Apps) */
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.quick-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.quick-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.quick-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Search Bar */
.quran-search-container {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.quran-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--color-text-main);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.quran-search-input:focus {
  outline: none;
  border-color: var(--border-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.quran-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.15rem;
}

/* Tabs (Surah vs Juz vs Bookmarks) */
.quran-nav-tabs {
  display: inline-flex;
  background: var(--bg-surface-raised);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 6px;
  margin-bottom: 20px;
}

.quran-nav-tab {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quran-nav-tab.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

body[data-theme="midnight"] .quran-nav-tab.active {
  background: var(--color-primary);
  color: #07100e;
}

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

.surah-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.surah-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.surah-number-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.surah-card:hover .surah-number-badge {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.surah-arabic-title {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--color-primary-light);
  text-align: right;
  line-height: 1.2;
}

/* Juz Grid */
.juz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.juz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.juz-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.juz-arabic-title {
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  color: var(--color-primary-light);
}

/* ==========================================================================
   READING VIEW (Surah & Juz Active Reader)
   ========================================================================== */

.reader-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.reader-header-arabic {
  font-family: var(--font-arabic);
  font-size: 2.8rem;
  color: var(--color-primary-light);
  line-height: 1.3;
  margin-bottom: 8px;
}

.reader-bismillah-box {
  background: var(--bg-surface-raised);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px auto 0;
  max-width: 600px;
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--color-primary);
  text-align: center;
}

/* Reading Controls Bar */
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Ayah Card (Ayah-by-Ayah Mode) */
.ayah-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 18px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.ayah-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

/* Active Verse Audio Glow */
.ayah-card.playing-now {
  border: 2px solid var(--border-emerald);
  background: var(--bg-surface-raised);
  box-shadow: var(--shadow-glow);
  transform: scale(1.006);
}

.ayah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
}

.ayah-badge {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ayah-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ayah-action-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.ayah-action-btn:hover {
  background: var(--bg-surface-raised);
  color: var(--color-primary-light);
}

.ayah-action-btn.active {
  color: var(--color-gold);
}

/* Arabic Ayah Typography */
.ayah-arabic-text {
  font-family: var(--font-arabic);
  font-size: var(--arabic-size);
  color: var(--color-text-arabic);
  text-align: right;
  direction: rtl;
  line-height: 2.1;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}

/* End of Ayah Rosette Ornament ۝ */
.ayah-end-ornament {
  font-family: var(--font-arabic);
  color: var(--color-gold);
  margin: 0 8px;
  font-size: 0.9em;
  display: inline-block;
}

/* Ayah Transliteration */
.ayah-transliteration {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Ayah Translations */
.ayah-translation-en {
  font-size: var(--trans-size);
  color: var(--color-text-main);
  line-height: 1.7;
  margin-bottom: 10px;
}

.ayah-translation-ms {
  font-size: var(--trans-size);
  color: var(--color-primary-light);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--border-emerald);
}

/* ==========================================================================
   MUSHAF CONTINUOUS PAGE MODE
   ========================================================================== */

.mushaf-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.mushaf-text-flow {
  font-family: var(--font-arabic);
  font-size: 2.4rem;
  color: var(--color-text-arabic);
  text-align: justify;
  text-align-last: center;
  direction: rtl;
  line-height: 2.3;
}

.mushaf-ayah-span {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.mushaf-ayah-span:hover {
  background: rgba(16, 185, 129, 0.12);
}

.mushaf-ayah-span.playing-now {
  background: rgba(16, 185, 129, 0.25);
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================================================
   STICKY BOTTOM AUDIO PLAYER BAR
   ========================================================================== */

.quran-audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 20px;
  transition: all var(--transition-smooth);
}

.player-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.player-track-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #064e3b, #047857);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
  flex-shrink: 0;
}

.player-controls-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-btn-round {
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.player-btn-round:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.player-btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.player-btn-secondary:hover {
  background: var(--bg-surface-raised);
  border-color: var(--border-emerald);
  color: var(--color-primary-light);
}

.player-btn-secondary.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.player-reciter-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-main);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 250px;
}

/* Audio Waveform Animation */
.audio-waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.waveform-bar {
  width: 3px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: wavePulse 1.2s infinite ease-in-out;
}

.waveform-bar:nth-child(2) { animation-delay: 0.2s; }
.waveform-bar:nth-child(3) { animation-delay: 0.4s; }
.waveform-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes wavePulse {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

/* ==========================================================================
   MODALS (Khatam Tracker, Digital Tasbih, Ayah Card Maker, Mobile Download)
   ========================================================================== */

.quran-modal-content {
  background: var(--bg-surface);
  color: var(--color-text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quran-modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 24px;
  background: var(--bg-surface-raised);
}

/* Khatam Tracker Juz Checkbox Grid */
.khatam-juz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 4px;
}

.khatam-juz-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.khatam-juz-item:hover {
  border-color: var(--border-emerald);
}

.khatam-juz-item.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--border-emerald);
}

/* Digital Tasbih Screen */
.tasbih-screen {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.tasbih-count {
  font-size: 4.5rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.05em;
  color: var(--color-gold-light);
  line-height: 1;
  margin: 12px 0;
}

.tasbih-btn-tap {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-gold), #b45309);
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
  transition: all 100ms ease;
  user-select: none;
}

.tasbih-btn-tap:active {
  transform: scale(0.92);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

/* Mobile App Promotion Banners */
.app-promo-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.app-store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.app-store-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #000;
}

.app-store-badge-btn.google-play {
  background: #047857;
}

.app-store-badge-btn.google-play:hover {
  background: #064e3b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --arabic-size: 1.85rem;
    --trans-size: 0.96rem;
  }

  .quran-hero {
    padding: 24px 0 16px;
  }

  .hero-bismillah {
    font-size: 1.7rem;
  }

  .ayah-card {
    padding: 18px 16px;
  }

  .mushaf-container {
    padding: 24px 18px;
  }

  .mushaf-text-flow {
    font-size: 1.85rem;
    line-height: 2.1;
  }

  .quran-audio-player {
    padding: 10px 14px;
  }

  .player-inner {
    justify-content: center;
  }

  .player-reciter-select {
    max-width: 100%;
    width: 100%;
  }
}

/* Labelled Malay translation playback. */
.malay-voice-btn {
  display: inline-flex; margin: 12px 0; padding: 8px 14px;
  border: 1px solid var(--color-primary-light); border-radius: 20px;
  background: var(--bg-surface); color: var(--color-text);
  cursor: pointer; font: inherit; font-size: .85rem;
}
.malay-voice-btn.active { background: var(--bg-surface-raised); color: var(--color-primary-light); }
.malay-voice-btn:disabled { opacity: .6; cursor: default; }
.player-reciter-box { display: flex; flex-direction: column; gap: 4px; }
