/* ============================================================================
 * PROYEK : AL-QUR'AN DIGITAL - REMAJA MASJID MIFTAHUL JANNAH
 * Subdomain : quran.miftahuljannah.my.id
 * File   : css/quran.css
 * Peran  : Stylesheet Khusus Pembaca Al-Qur'an, Audio Player & Tipografi Arab
 * ============================================================================
 */

/* ----------------------------------------------------------------------------
 * 1. TIPOGRAFI ARAB & BASE READER
 * ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Amiri:ital,wght@0,400;0,700;1,400&family=Scheherazade+New:wght@400;600;700&display=swap');

:root {
  --font-arabic-quran: 'Amiri Quran', 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  --arabic-font-size: 30px;
  --arabic-line-height: 2.2;
}

/* ----------------------------------------------------------------------------
 * 2. HERO KHUSUS AL-QUR'AN
 * ---------------------------------------------------------------------------- */
.quran-hero {
  background: linear-gradient(135deg, #043d2e 0%, #064e3b 45%, #065f46 80%, #032b20 100%);
  color: #ffffff;
  padding: 44px 0 36px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(245, 158, 11, 0.25);
}

.quran-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.quran-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .quran-hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.quran-badge-subdomain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.quran-badge-subdomain svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  fill: var(--gold-400) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.quran-hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.quran-hero-title .gold {
  color: var(--gold-400);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.quran-hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 22px;
}

.quran-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-quran-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1e1b4b;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32);
  transition: all var(--tr-fast);
}

.btn-quran-primary svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: #1e1b4b !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.btn-quran-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  color: #000000;
}

.btn-quran-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  transition: all var(--tr-fast);
}

.btn-quran-secondary svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: #ffffff !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.btn-quran-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

/* Last Read Card in Hero */
.last-read-hero-card {
  background: rgba(4, 45, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.last-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.last-read-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.last-read-arabic-title {
  font-family: var(--font-arabic-quran);
  font-size: 24px;
  color: var(--gold-300);
}

.last-read-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.last-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  transition: all var(--tr-fast);
}

.last-read-btn:hover {
  background: var(--gold-400);
  color: #1a1a1a;
}

/* ----------------------------------------------------------------------------
 * 3. QUICK STATS BAR
 * ---------------------------------------------------------------------------- */
.quran-stats-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xs);
  padding: 14px 0;
}

.quran-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .quran-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quran-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-right: 1px solid var(--neutral-200);
}

.quran-stat-item:last-child {
  border-right: none;
}

.quran-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quran-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quran-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.1;
}

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

/* ----------------------------------------------------------------------------
 * 4. SURAH DIRECTORY & FILTERS
 * ---------------------------------------------------------------------------- */
.quran-main-section {
  padding: 36px 0 60px;
}

.filter-bar-wrap {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .filter-bar-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.surah-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.filter-pill:hover {
  background: var(--neutral-200);
}

.filter-pill.active {
  background: var(--emerald-dark);
  color: #ffffff;
  border-color: var(--emerald-dark);
}

.filter-search-box {
  position: relative;
  min-width: 240px;
}

.filter-search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-300);
  background: var(--neutral-50);
  font-size: 13.5px;
  color: var(--neutral-800);
  outline: none;
  transition: all var(--tr-fast);
}

.filter-search-box input:focus {
  border-color: var(--emerald-main);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.filter-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--neutral-400);
}

/* Surah Cards Grid */
.surah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .surah-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .surah-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.surah-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--tr-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.surah-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background var(--tr-fast);
}

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

.surah-card:hover::after {
  background: var(--emerald-main);
}

.surah-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Islamic Geometric Badge for Verse & Surah Number */
.surah-num-badge {
  width: 44px;
  height: 44px;
  background: var(--primary-50);
  border: 1.5px solid var(--primary-300);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--emerald-deep);
  position: relative;
  flex-shrink: 0;
}

.surah-card:hover .surah-num-badge {
  background: var(--emerald-main);
  border-color: var(--emerald-main);
  color: #ffffff;
}

.surah-meta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.surah-meta-meaning {
  font-size: 12.5px;
  color: var(--neutral-500);
  margin-bottom: 4px;
}

.surah-meta-tags {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.tag-turun {
  background: var(--neutral-100);
  color: var(--neutral-600);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.tag-ayat {
  background: var(--primary-50);
  color: var(--emerald-dark);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.surah-card-right {
  text-align: right;
}

.surah-arabic-name {
  font-family: var(--font-arabic-quran);
  font-size: 26px;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.2;
}

.surah-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.btn-card-audio {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.btn-card-audio:hover {
  background: var(--gold-400);
  color: #000000;
}

.btn-card-audio svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ----------------------------------------------------------------------------
 * 5. DETAIL SURAH & INTERACTIVE AYAT READER
 * ---------------------------------------------------------------------------- */
.reader-view {
  display: none;
}

.reader-view.active {
  display: block;
}

.reader-sticky-nav {
  position: sticky;
  top: 70px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: top var(--tr-fast);
}

.reader-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.reader-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-surah {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-dark);
  padding: 6px 12px;
  background: var(--primary-50);
  border-radius: var(--radius-full);
}

.btn-back-surah:hover {
  background: var(--primary-100);
}

.surah-selector-dropdown {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-800);
  background: #ffffff;
  outline: none;
}

.reader-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reader-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--neutral-700);
  transition: all var(--tr-fast);
}

.btn-reader-tool:hover {
  background: var(--neutral-50);
  border-color: var(--emerald-main);
  color: var(--emerald-dark);
}

.btn-reader-tool.active {
  background: var(--emerald-deep);
  color: #ffffff;
  border-color: var(--emerald-deep);
}

.btn-reader-tool svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Surah Hero Header Card */
.surah-header-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #043d2e 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 32px 24px;
  text-align: center;
  margin: 24px 0 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.surah-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.surah-header-arabic {
  font-family: var(--font-arabic-quran);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.surah-header-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.surah-header-meaning {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.surah-header-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.header-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.surah-header-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bismillah Banner */
.bismillah-card {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.bismillah-arabic {
  font-family: var(--font-arabic-quran);
  font-size: 34px;
  color: var(--emerald-deep);
  line-height: 1.8;
}

.bismillah-trans {
  font-size: 13.5px;
  color: var(--neutral-500);
  margin-top: 6px;
  font-style: italic;
}

/* ----------------------------------------------------------------------------
 * 6. AYAT ITEM CARD
 * ---------------------------------------------------------------------------- */
.ayat-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ayat-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr-fast);
  position: relative;
}

.ayat-card:hover {
  border-color: var(--emerald-300, #86efac);
  box-shadow: var(--shadow-sm);
}

.ayat-card.playing-active {
  border-color: var(--emerald-main);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), var(--shadow-md);
}

.ayat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--neutral-100);
}

.ayat-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--emerald-deep);
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-full);
}

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

.ayat-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
  position: relative;
}

.ayat-action-btn:hover {
  background: var(--primary-100);
  color: var(--emerald-dark);
}

.ayat-action-btn.active {
  background: var(--emerald-main);
  color: #ffffff;
}

.ayat-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Arabic Text Typography */
.ayat-arabic-wrap {
  text-align: right;
  direction: rtl;
  margin-bottom: 20px;
}

.ayat-arabic-text {
  font-family: var(--font-arabic-quran);
  font-size: var(--arabic-font-size);
  line-height: var(--arabic-line-height);
  color: #111827;
  word-spacing: 4px;
  text-rendering: optimizeLegibility;
}

.ayat-arabic-end {
  display: inline-block;
  color: var(--emerald-main);
  font-size: 0.9em;
  margin: 0 4px;
  vertical-align: middle;
}

/* Transliteration */
.ayat-latin-wrap {
  margin-bottom: 10px;
  color: #b45309;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
}

/* Translation */
.ayat-indonesia-wrap {
  color: var(--neutral-800);
  font-size: 15px;
  line-height: 1.7;
}

/* ----------------------------------------------------------------------------
 * 7. PERSISTENT FLOATING AUDIO PLAYER
 * ---------------------------------------------------------------------------- */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--neutral-200);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 12px 0 14px;
  z-index: 1000;
  transform: translateY(120%);
  transition: transform var(--tr-normal);
}

.audio-player-bar.active {
  transform: translateY(0);
}

.player-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

@media (min-width: 768px) {
  .player-inner {
    grid-template-columns: 1fr 1.6fr 1fr;
  }
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-track-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-deep);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic-quran);
  font-size: 20px;
  flex-shrink: 0;
}

.player-track-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
}

.player-track-qari {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 2px;
}

/* Center Controls */
.player-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--neutral-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.player-btn:hover {
  color: var(--emerald-dark);
}

.player-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-deep);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.35);
}

.player-play-btn:hover {
  background: var(--emerald-dark);
  transform: scale(1.05);
}

.player-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

/* Progress Bar */
.player-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--neutral-500);
  font-weight: 600;
}

.progress-track {
  flex: 1;
  height: 5px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-main), var(--gold-400));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.1s linear;
}

/* Right Options */
.player-extra-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qari-select-pill {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  background: #ffffff;
  color: var(--neutral-700);
  max-width: 140px;
}

.player-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-close-btn:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
}

/* ----------------------------------------------------------------------------
 * 8. MODAL & DRAWER STYLES
 * ---------------------------------------------------------------------------- */
.quran-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quran-modal-backdrop.active {
  display: flex;
}

.quran-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.quran-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--neutral-50);
}

.quran-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--neutral-900);
}

.quran-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--neutral-400);
  cursor: pointer;
  line-height: 1;
}

.quran-modal-close:hover {
  color: var(--neutral-700);
}

.quran-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--neutral-800);
}

/* Toast Notification */
.quran-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--neutral-900);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--tr-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quran-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.quran-toast.success {
  background: #064e3b;
  border: 1px solid var(--gold-400);
  color: var(--gold-200);
}

/* ----------------------------------------------------------------------------
 * 9. ASMAUL HUSNA & DOA SECTION
 * ---------------------------------------------------------------------------- */
.asmaul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.asmaul-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all var(--tr-fast);
}

.asmaul-card:hover {
  border-color: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.asmaul-arabic {
  font-family: var(--font-arabic-quran);
  font-size: 22px;
  color: var(--emerald-deep);
  margin-bottom: 4px;
}

.asmaul-latin {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral-800);
}

.asmaul-arti {
  font-size: 11px;
  color: var(--neutral-500);
}

/* ----------------------------------------------------------------------------
 * 10. NIGHT / SEPIA READING THEME
 * ---------------------------------------------------------------------------- */
body.theme-night {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.theme-night .site-header {
  background: #09101d;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.theme-night .surah-card,
body.theme-night .ayat-card,
body.theme-night .bismillah-card,
body.theme-night .filter-bar-wrap,
body.theme-night .quran-stats-bar,
body.theme-night .audio-player-bar,
body.theme-night .quran-modal-box {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

body.theme-night .ayat-card.playing-active {
  background-color: #064e3b;
  border-color: var(--emerald-light);
}

body.theme-night .ayat-arabic-text {
  color: #f8fafc;
}

body.theme-night .surah-meta-title,
body.theme-night .surah-arabic-name,
body.theme-night .quran-stat-num {
  color: #ffffff;
}

body.theme-night .reader-sticky-nav {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #334155;
}

/* ============================================================================
 * 11. RESPONSIVE DESIGN & MOBILE/TABLET/LAPTOP POLISH
 * ============================================================================ */

/* Top Info Bar Layout */
.top-bar {
  background: linear-gradient(90deg, #043d2e 0%, #064e3b 50%, #043d2e 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar {
  background: linear-gradient(90deg, #033526 0%, #064e3b 50%, #033526 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.4;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.top-info-link {
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--tr-fast), opacity var(--tr-fast);
  text-decoration: none;
}

.top-info-link:hover {
  color: #fef08a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  fill: var(--gold-400);
  flex-shrink: 0;
}

.date-masehi {
  color: #fef3c7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-masehi svg {
  fill: #fbbf24;
}

.top-info-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  user-select: none;
}

.date-hijri {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fef08a;
  font-weight: 700;
  font-size: 11.5px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.date-hijri svg {
  fill: #f59e0b;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
  }
  .top-info-hide-mobile {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .top-bar-left, .top-bar-right {
    justify-content: center;
    gap: 10px;
  }
  .top-info-item {
    font-size: 11.5px;
  }
}

/* Header & Navbar Polish */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(6, 78, 59, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary-100);
  box-shadow: 0 3px 8px rgba(6, 78, 59, 0.12);
  transition: transform var(--tr-fast);
}

.brand-title-group h1 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.brand-title-group p {
  font-size: 11.5px;
  color: var(--neutral-500);
  font-weight: 600;
  margin-top: 2px;
}

/* Desktop Nav Links */
.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1200px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-700);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--tr-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--emerald-main);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--emerald-deep);
  background: var(--primary-100);
  font-weight: 700;
}

/* Header Tools & Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search-wrap {
  display: none;
}

@media (min-width: 768px) {
  .header-search-wrap {
    display: block;
  }
}

.btn-header-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.btn-header-tool:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--emerald-deep);
}

.btn-header-tool svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .btn-tool-label {
    display: none;
  }
  .btn-header-tool {
    padding: 8px;
    border-radius: var(--radius-sm);
  }
}

/* Hamburger Toggle Button */
.mobile-action-buttons {
  display: flex;
  align-items: center;
}

@media (min-width: 1200px) {
  .mobile-action-buttons {
    display: none !important;
  }
}

.mobile-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--neutral-100);
  cursor: pointer;
  border: 1.5px solid var(--neutral-300);
  transition: all var(--tr-fast);
  position: relative;
  z-index: 1002;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.mobile-toggle-btn:hover {
  background: var(--primary-50);
  border-color: var(--emerald-main);
}

.mobile-toggle-btn:active {
  transform: scale(0.95);
  background: var(--primary-100);
}

.mobile-toggle-btn.active {
  background: var(--primary-50);
  border-color: var(--emerald-main);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.mobile-toggle-btn span {
  pointer-events: none;
  display: block;
  height: 2.5px;
  width: 22px;
  background-color: var(--emerald-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

/* Hamburger to X Transformation */
.mobile-toggle-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 2px solid var(--emerald-main);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  padding: 18px 0 24px;
}

.mobile-menu-drawer.active,
.mobile-menu-drawer.show {
  display: block;
  animation: drawerSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-drawer-search {
  margin-bottom: 16px;
}

.mobile-drawer-search .search-input-box {
  width: 100%;
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--neutral-800);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  text-decoration: none;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  transition: all var(--tr-fast);
}

.mobile-nav-link svg {
  width: 18px;
  height: 18px;
  fill: var(--emerald-main);
  flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--primary-100);
  color: var(--emerald-deep);
  border-color: var(--primary-300);
  font-weight: 700;
}

.mobile-nav-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Quick Stats Bar Responsive */
.quran-stats-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 0;
}

.quran-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 860px) {
  .quran-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quran-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quran-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quran-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quran-stat-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--neutral-900);
}

.quran-stat-label {
  font-size: 11.5px;
  color: var(--neutral-500);
}

/* Directory Surah Grid Responsive */
.filter-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
}

.surah-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.filter-pill:hover {
  border-color: var(--emerald-light);
  color: var(--emerald-deep);
}

.filter-pill.active {
  background: var(--emerald-deep);
  color: #ffffff;
  border-color: var(--emerald-deep);
}

.filter-helper-text {
  font-size: 12.5px;
  color: var(--neutral-500);
  font-weight: 600;
}

.filter-helper-text kbd {
  background: var(--neutral-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.surah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .surah-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .surah-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.surah-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: var(--shadow-sm);
}

.surah-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-light);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.08);
}

.surah-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.surah-num-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--neutral-100);
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--neutral-200);
  flex-shrink: 0;
}

.surah-meta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surah-meta-meaning {
  font-size: 12.5px;
  color: var(--neutral-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surah-meta-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tag-turun, .tag-ayat {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.tag-turun {
  background: var(--primary-50);
  color: var(--emerald-dark);
}

.tag-ayat {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

.surah-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.surah-arabic-name {
  font-family: var(--font-arabic-quran);
  font-size: 24px;
  color: var(--emerald-deep);
  line-height: 1.2;
}

/* Modern Clean Footer */
.site-footer {
  background-color: #04241b;
  background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  font-size: 13.5px;
  border-top: 2px solid rgba(245, 158, 11, 0.2);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
}

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

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.footer-brand-title h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.footer-brand-title p {
  font-size: 11.5px;
  color: var(--gold-300);
  font-weight: 600;
  margin-top: 2px;
}

.footer-about {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2.5px;
  background-color: var(--gold-400);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--tr-fast);
}

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

.footer-address {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gold-300);
}

.contact-line svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom-right {
  color: var(--gold-400);
  font-weight: 600;
}

/* Custom Views Layout */
.custom-view-wrapper {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.view-header-block {
  margin-bottom: 24px;
}

.view-header-block h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 6px;
}

.view-header-block p {
  color: var(--neutral-600);
  font-size: 14.5px;
}

.adab-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.adab-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald-deep);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adab-title svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.adab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .adab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adab-item {
  padding: 12px 14px;
  background: var(--neutral-50);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

.asmaul-header-block {
  margin-bottom: 20px;
}

.asmaul-header-block h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 4px;
}

.asmaul-header-block p {
  color: var(--neutral-600);
  font-size: 14px;
}

/* Setting Modal Styling */
.setting-group-item {
  margin-bottom: 22px;
}

.setting-label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: var(--neutral-800);
}

.setting-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-setting-option {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--neutral-300);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-setting-option:hover {
  border-color: var(--emerald-main);
  color: var(--emerald-deep);
  background: var(--primary-50);
}

.full-width-select {
  width: 100%;
}

.full-width-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

/* Global Loader */
#quranGlobalLoader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.loader-spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid var(--neutral-200);
  border-top-color: var(--emerald-main);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.loader-text {
  font-weight: 700;
  color: var(--emerald-deep);
  font-size: 14px;
}

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

