/* ==========================================================================
   MUROTTAL PLAYER — SPOTIFY-INSPIRED MODERN ISLAMIC DARK THEME
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-app: #080c14;
  --bg-sidebar: #05080e;
  --bg-header: rgba(8, 12, 20, 0.85);
  --bg-card: #111827;
  --bg-card-hover: #182235;
  --bg-card-active: #1e2c45;
  --bg-player: rgba(13, 19, 31, 0.95);
  --bg-glass: rgba(17, 24, 39, 0.7);

  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-emerald: rgba(16, 185, 129, 0.3);
  --border-hover: rgba(255, 255, 255, 0.15);

  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;

  --sidebar-width: 260px;
  --player-height: 84px;
  --header-height: 72px;
  --mobile-nav-height: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-emerald-glow);
  --shadow-player: 0 -4px 30px rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family: var(--font-ui);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

button:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

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

input {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* ==========================================================================
   APP LAYOUT (DESKTOP)
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.6) 0%, transparent 50%),
              var(--bg-app);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: calc(100vh - var(--player-height));
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
  padding: 24px 16px;
  user-select: none;
}

.sidebar-brand {
  margin-bottom: 28px;
  padding: 0 8px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-emerald-glow);
}

.crescent-symbol {
  font-size: 20px;
  color: #fff;
  line-height: 1;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-emerald-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  transition: var(--transition-normal);
}

.nav-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-left: 3px solid var(--accent-emerald);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-item.active .nav-icon {
  color: var(--accent-emerald);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.quick-list {
  gap: 2px;
}

.quick-nav-btn {
  width: 100%;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  justify-content: flex-start;
  transition: var(--transition-fast);
}

.quick-nav-btn:hover {
  color: var(--accent-emerald-light);
  background-color: rgba(255, 255, 255, 0.03);
  padding-left: 18px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}

.quote-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
}

.quote-icon {
  font-size: 16px;
  margin-bottom: 6px;
}

.quote-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 4px;
}

.quote-source {
  font-size: 0.68rem;
  color: var(--accent-emerald-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MAIN WRAPPER & HEADER
   ========================================================================== */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--player-height) + 24px);
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-brand-bar {
  display: none;
}

.mobile-brand-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 480px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 44px;
  transition: var(--transition-normal);
}

.search-box:focus-within {
  background-color: var(--bg-card);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px var(--accent-emerald-glow);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-input {
  width: 100%;
  font-size: 0.92rem;
  color: #fff;
}

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

.search-clear-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-full);
}

.search-clear-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Buttons */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald-light);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-icon-text {
  gap: 8px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.76rem;
}



/* ==========================================================================
   CONTENT BODY & SECTIONS
   ========================================================================== */
.content-body {
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeIn 0.3s ease;
}

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.page-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chip:hover {
  background-color: var(--bg-card-hover);
  color: #fff;
}

.chip.active {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
  box-shadow: 0 2px 10px var(--accent-emerald-glow);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2b23 50%, #0a1320 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.hero-glow-bg {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.art-calligraphy {
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px var(--accent-emerald);
  animation: reverseSpin 30s linear infinite;
}

@keyframes reverseSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ==========================================================================
   CONTINUE LISTENING CARD
   ========================================================================== */
.continue-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition-normal);
}

.continue-card:hover {
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

.continue-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.continue-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-emerald-subtle);
  border: 1px solid var(--border-emerald);
  color: var(--accent-emerald-light);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-names h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.continue-names p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.continue-arabic {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  color: var(--accent-emerald-light);
  margin-left: 8px;
}

/* ==========================================================================
   SURAH GRID & CARDS
   ========================================================================== */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.surah-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
  overflow: hidden;
}

.surah-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition-fast);
}

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

.surah-card:hover::after {
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
}

.surah-card.playing {
  border-color: var(--accent-emerald);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(16, 185, 129, 0.1) 100%);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.surah-card.playing::after {
  background: var(--accent-emerald);
}

/* Top row inside card */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-num-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--border-emerald);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.card-arabic-name {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  direction: rtl;
}

/* Middle body inside card */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-translit {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

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

/* Bottom footer inside card */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.card-meta-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

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

.card-fav-btn {
  color: var(--text-muted);
  padding: 7px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.card-fav-btn:hover {
  color: #f43f5e;
  background-color: rgba(244, 63, 94, 0.1);
  transform: scale(1.15);
}

.card-fav-btn.active {
  color: #f43f5e;
}

.card-fav-btn.active svg {
  fill: #f43f5e;
}

.card-play-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-emerald-glow);
  transition: var(--transition-normal);
}

.card-play-btn:hover {
  transform: scale(1.12);
  background-color: var(--accent-emerald-light);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   SURAH DETAIL VIEW & AYAT
   ========================================================================== */
.detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-nav-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.detail-nav-pos {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Grand Surah Header */
.surah-detail-header {
  background: linear-gradient(135deg, #0c1a29 0%, #0d2821 50%, #09121c 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.surah-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.detail-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.detail-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-surah-num {
  background: var(--accent-emerald);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.detail-type-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  background: var(--accent-emerald-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.detail-surah-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
}

.detail-surah-meaning {
  font-size: 1.05rem;
  color: #cbd5e1;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.detail-header-right {
  position: relative;
  z-index: 2;
  text-align: right;
}

.detail-arabic-huge {
  font-family: var(--font-arabic);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  direction: rtl;
}

/* Bismillah Banner */
.bismillah-banner {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.4) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.bismillah-text {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  line-height: 1.5;
}

.bismillah-meaning {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Ayat List */
.ayah-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.ayah-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.ayah-count-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
  background: var(--accent-emerald-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.ayah-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual Ayah Card */
.ayah-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-normal);
  position: relative;
}

.ayah-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.ayah-card.highlighted {
  border-color: var(--accent-emerald);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(16, 185, 129, 0.08) 100%);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.ayah-card.highlighted::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background-color: var(--accent-emerald);
  border-radius: var(--radius-full);
}

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

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

.ayah-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--border-emerald);
  color: var(--accent-emerald-light);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ayah-action-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.ayah-action-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.ayah-arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 2.2;
  color: #f1f5f9;
  text-align: right;
  direction: rtl;
  padding: 4px 0;
  word-spacing: 2px;
}

.ayah-translation-id {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ==========================================================================
   RECENTLY PLAYED VIEW
   ========================================================================== */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-normal);
}

.recent-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.recent-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.recent-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
  width: 36px;
}

.recent-names h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.recent-names p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.recent-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.recent-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STATE PLACEHOLDERS (LOADING, ERROR, EMPTY)
   ========================================================================== */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 14px;
}

.spinner-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseScale 1.2s infinite ease-in-out;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

@keyframes pulseScale {
  0% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0.4; }
}

.state-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.state-text {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
}

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

.error-icon {
  font-size: 40px;
}

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 44px;
  color: var(--text-muted);
}

/* ==========================================================================
   AUDIO PLAYER FIXED BOTTOM (SPOTIFY STYLE)
   ========================================================================== */
.bottom-player-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background-color: var(--bg-player);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  box-shadow: var(--shadow-player);
}

.audio-player-bar {
  max-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

/* Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.track-artwork {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #132438 0%, #0e2b20 100%);
  border: 1px solid var(--border-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.artwork-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
}

.equalizer-visual {
  position: absolute;
  bottom: 6px;
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.bottom-player-wrapper.playing .equalizer-visual {
  display: flex;
}

.eq-bar {
  width: 3px;
  background-color: var(--accent-emerald);
  border-radius: 1px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes eqBounce {
  from { height: 20%; }
  to { height: 100%; }
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.track-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.track-title:hover {
  text-decoration: underline;
  color: var(--accent-emerald-light);
}

.track-arabic {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  white-space: nowrap;
}

.track-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.track-qari {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.track-ayah-info {
  white-space: nowrap;
  color: var(--text-muted);
}

.track-fav-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

.track-fav-btn:hover {
  color: #f43f5e;
}

.track-fav-btn.active {
  color: #f43f5e;
}

.track-fav-btn.active svg {
  fill: #f43f5e;
}

/* Center Controls */
.player-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

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

.control-btn {
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
}

.control-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.control-btn.active {
  color: var(--accent-emerald);
}

.control-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.play-pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.play-pause-btn:hover {
  transform: scale(1.08);
  background-color: #f8fafc;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

.play-pause-btn:active {
  transform: scale(0.96);
}

/* Timeline Seekbar */
.player-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 36px;
  text-align: center;
}

.progress-bar-container {
  flex: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  transition: height var(--transition-fast);
}

.progress-bar-container:hover .progress-bar-track {
  height: 6px;
}

.progress-bar-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-emerald-dark) 0%, var(--accent-emerald) 100%);
  border-radius: var(--radius-full);
}

.progress-bar-container:hover .progress-bar-fill {
  background: var(--accent-emerald-light);
}

.progress-bar-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition-fast);
}

.progress-bar-container:hover .progress-bar-thumb {
  opacity: 1;
}

/* Right Extra Controls */
.player-extra-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.speed-pill-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.speed-pill-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-box {
  width: 88px;
  display: flex;
  align-items: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: var(--transition-fast);
}

.volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.3);
  background: var(--accent-emerald);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.mobile-nav-item.active {
  color: var(--accent-emerald-light);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-height) + 18px);
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
  color: var(--accent-emerald);
}

/* ==========================================================================
   RESPONSIVE DESIGN — FULLY OPTIMIZED FOR MOBILE & TABLET
   Breakpoints:
     ≤1200px  → Small Desktop
     ≤1024px  → Tablet Landscape
     ≤768px   → Tablet Portrait / Large Mobile
     ≤640px   → Small Mobile
     ≤480px   → Compact Mobile
   ========================================================================== */

/* ----------------------------------------------------------------
   1200px → Small Desktop: Slightly compact sidebar & grid
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 230px;
  }

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

  .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .content-body {
    padding: 24px 20px;
  }

  .audio-player-bar {
    grid-template-columns: 220px 1fr 200px;
  }
}

/* ----------------------------------------------------------------
   1024px → Tablet Landscape: Hide sidebar text, icon-only nav
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 72px;
  }

  .sidebar {
    padding: 20px 8px;
    align-items: center;
    overflow: visible;
  }

  .sidebar-brand {
    margin-bottom: 20px;
    padding: 0;
  }

  .brand-logo {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .brand-text {
    display: none;
  }

  .nav-section-title {
    display: none;
  }

  .nav-list {
    gap: 6px;
    width: 100%;
  }

  .nav-item {
    padding: 10px;
    justify-content: center;
    border-radius: var(--radius-md);
    gap: 0;
    position: relative;
  }

  .nav-item span:not(.nav-badge) {
    display: none;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
    padding: 1px 5px;
    font-size: 0.65rem;
  }

  .quick-list {
    display: none;
  }

  .reciter-switch-btn span {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .audio-player-bar {
    grid-template-columns: 200px 1fr 160px;
    padding: 0 16px;
    gap: 12px;
  }

  .track-arabic,
  .speed-pill-btn,
  .volume-slider-box {
    display: none;
  }

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

  .hero-banner {
    padding: 36px 32px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .content-body {
    padding: 20px 18px;
  }
}

/* ----------------------------------------------------------------
   768px → Tablet Portrait: Full mobile nav, hidden sidebar
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --player-height: 72px;
  }

  /* ----- Layout ----- */
  .sidebar {
    display: none;
  }

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

  .mobile-brand-bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .hide-mobile {
    display: none;
  }

  .main-wrapper {
    padding-bottom: calc(var(--player-height) + var(--mobile-nav-height) + 8px);
  }

  /* ----- Header ----- */
  .app-header {
    padding: 0 12px;
    height: var(--header-height);
  }

  .header-inner {
    gap: 10px;
  }

  .mobile-brand-logo {
    font-size: 1rem;
    white-space: nowrap;
  }

  .search-container {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  .search-box {
    height: 38px;
    padding: 0 12px;
  }

  .search-input {
    font-size: 0.82rem;
  }

  .search-input::placeholder {
    /* Shorter placeholder on tablet */
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-actions .btn-icon-text span {
    display: none;
  }

  .header-actions .btn-icon-text {
    padding: 8px;
    border-radius: var(--radius-full);
  }

  .reciter-selector {
    display: none;
  }

  .provider-pill {
    display: none;
  }

  /* ----- Content ----- */
  .content-body {
    padding: 16px 14px;
  }

  /* ----- Hero ----- */
  .hero-banner {
    padding: 28px 22px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    border-radius: var(--radius-lg);
  }

  .hero-glow-bg {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -20%;
  }

  .hero-title {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    justify-content: center;
    gap: 10px;
  }

  .hero-art {
    order: -1;
  }

  .art-circle {
    width: 120px;
    height: 120px;
  }

  .art-calligraphy {
    font-size: 1.4rem;
  }

  /* ----- Section ----- */
  .section-title {
    font-size: 1.15rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .page-header {
    gap: 12px;
  }

  /* ----- Surah Grid: 2 columns on tablet ----- */
  .surah-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .surah-card {
    padding: 16px;
    gap: 12px;
  }

  .card-arabic-name {
    font-size: 1.35rem;
  }

  .card-translit {
    font-size: 1rem;
  }

  /* ----- Continue Listening ----- */
  .continue-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .continue-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* ----- Filter Chips ----- */
  .filter-chips {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    padding: 6px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* ----- Surah Detail ----- */
  .surah-detail-header {
    flex-direction: column;
    padding: 20px 18px;
    gap: 16px;
    text-align: center;
    border-radius: var(--radius-lg);
  }

  .detail-header-left {
    align-items: center;
    width: 100%;
  }

  .detail-header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .detail-header-right {
    text-align: center;
    width: 100%;
  }

  .detail-arabic-huge {
    font-size: 2.8rem;
  }

  .detail-surah-title {
    font-size: 1.8rem;
  }

  .bismillah-text {
    font-size: 1.8rem;
  }

  .ayah-arabic-text {
    font-size: 1.5rem;
    line-height: 2;
  }

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

  .ayah-action-btn span {
    display: none;
  }

  /* ----- Recent List ----- */
  .recent-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .recent-left {
    flex: 1;
    min-width: 0;
  }

  .recent-right {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  .recent-time {
    margin-left: 0;
    flex: 1;
    text-align: right;
  }

  /* ----- Audio Player (Tablet): Compact 3-column ----- */
  .bottom-player-wrapper {
    bottom: var(--mobile-nav-height);
    height: var(--player-height);
    padding: 0;
  }

  .audio-player-bar {
    grid-template-columns: 1fr auto auto;
    padding: 0 14px;
    gap: 8px;
    height: 100%;
  }

  .player-track-info {
    min-width: 0;
    max-width: 100%;
    gap: 10px;
  }

  .track-artwork {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .track-title {
    font-size: 0.85rem;
  }

  .track-arabic {
    display: none;
  }

  .track-sub-row {
    font-size: 0.72rem;
  }

  .track-fav-btn {
    display: none;
  }

  .player-controls-container {
    max-width: 100%;
  }

  /* Hide seekbar and extra controls; show only main buttons */
  .player-timeline {
    display: none;
  }

  .player-extra-controls {
    display: none;
  }

  #playerShuffleBtn,
  #playerRepeatBtn {
    display: none;
  }

  .player-buttons {
    gap: 4px;
  }

  .control-btn {
    padding: 7px;
  }

  .play-pause-btn {
    width: 38px;
    height: 38px;
  }

  /* ----- Toast ----- */
  .toast-container {
    bottom: calc(var(--player-height) + var(--mobile-nav-height) + 10px);
    right: 12px;
    left: 12px;
  }

  .toast {
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  /* ----- Modal ----- */
  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 88vh;
    width: 100%;
    max-width: 100%;
  }

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

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 18px;
    gap: 18px;
  }

  .modal-footer {
    padding: 14px 20px;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .status-info-text {
    text-align: center;
  }

  .qari-grid {
    grid-template-columns: 1fr 1fr;
  }

  .server-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   640px → Small Mobile: Single column, compact everything
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  /* ----- Header ----- */
  .mobile-brand-logo {
    font-size: 0.9rem;
  }

  .search-input::placeholder {
    content: "Cari surah...";
    /* Shorter text via JS or keep short */
    font-size: 0.78rem;
  }

  /* ----- Hero ----- */
  .hero-banner {
    padding: 22px 16px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .hero-title {
    font-size: 1.45rem;
    letter-spacing: -0.3px;
  }

  .hero-subtitle {
    font-size: 0.84rem;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .hero-buttons .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.92rem;
  }

  .art-circle {
    width: 90px;
    height: 90px;
  }

  .art-calligraphy {
    font-size: 1.1rem;
  }

  /* ----- Content ----- */
  .content-body {
    padding: 14px 12px;
  }

  /* ----- Surah Grid: Single column on small mobile ----- */
  .surah-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .surah-card {
    padding: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .card-top {
    width: 100%;
  }

  .card-body {
    flex: 1;
  }

  .card-bottom {
    width: 100%;
    padding-top: 10px;
  }

  .card-arabic-name {
    font-size: 1.25rem;
  }

  .card-translit {
    font-size: 0.95rem;
  }

  /* ----- Section ----- */
  .section-title {
    font-size: 1.05rem;
    gap: 6px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .view-section {
    gap: 24px;
  }

  /* ----- Continue Listening ----- */
  .continue-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .continue-num {
    width: 38px;
    height: 38px;
  }

  /* ----- Detail View ----- */
  .detail-top-nav {
    gap: 8px;
    margin-bottom: 14px;
  }

  .surah-detail-header {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .detail-surah-title {
    font-size: 1.5rem;
  }

  .detail-arabic-huge {
    font-size: 2.2rem;
  }

  .detail-header-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .bismillah-banner {
    padding: 18px 14px;
  }

  .bismillah-text {
    font-size: 1.55rem;
    line-height: 1.8;
  }

  .bismillah-meaning {
    font-size: 0.8rem;
  }

  .ayah-card {
    padding: 14px 12px;
    gap: 14px;
  }

  .ayah-arabic-text {
    font-size: 1.35rem;
    line-height: 1.9;
  }

  .ayah-translation-id {
    font-size: 0.9rem;
  }

  .ayah-action-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  /* ----- Recent ----- */
  .recent-item {
    padding: 12px;
  }

  .recent-names h4 {
    font-size: 0.9rem;
  }

  .recent-names p {
    font-size: 0.75rem;
  }

  /* ----- Mobile Player: Ultra-compact ----- */
  .bottom-player-wrapper {
    height: 66px;
  }

  .audio-player-bar {
    padding: 0 10px;
    gap: 6px;
    grid-template-columns: 1fr auto;
  }

  .track-artwork {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .artwork-num {
    font-size: 0.88rem;
  }

  .track-title {
    font-size: 0.8rem;
  }

  .track-sub-row {
    font-size: 0.68rem;
  }

  .player-controls-container {
    flex-shrink: 0;
  }

  .player-buttons {
    gap: 2px;
  }

  .play-pause-btn {
    width: 34px;
    height: 34px;
  }

  .control-btn {
    padding: 6px;
  }

  /* Hide prev/next, show only play/pause on very small screens */
  #playerPrevBtn svg,
  #playerNextBtn svg {
    width: 16px;
    height: 16px;
  }

  /* ----- Mobile Nav ----- */
  .mobile-bottom-nav {
    padding: 0 6px;
  }

  .mobile-nav-item {
    font-size: 0.66rem;
    padding: 5px 8px;
    gap: 3px;
  }

  .mobile-nav-item svg {
    width: 18px;
    height: 18px;
  }

  /* ----- Modal ----- */
  .modal-card {
    max-height: 92vh;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-subtitle {
    font-size: 0.74rem;
  }

  .modal-icon-badge {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .modal-body {
    padding: 14px;
    gap: 16px;
  }

  .qari-grid {
    grid-template-columns: 1fr;
  }

  .qari-card {
    padding: 10px 12px;
  }

  .settings-section-title {
    font-size: 0.88rem;
  }

  .setting-toggle-row {
    padding: 12px 14px;
    gap: 12px;
  }

  .toggle-label {
    font-size: 0.82rem;
  }

  .toggle-desc {
    font-size: 0.72rem;
  }

  /* ----- Toast ----- */
  .toast {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  /* ----- State Containers ----- */
  .state-container {
    padding: 50px 16px;
  }

  .empty-state {
    padding: 40px 16px;
  }
}

/* ----------------------------------------------------------------
   480px → Compact Mobile: Minimal sizing for very small phones
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --header-height: 54px;
    --player-height: 60px;
    --mobile-nav-height: 58px;
  }

  /* ----- Header ultra-compact ----- */
  .app-header {
    padding: 0 10px;
  }

  .header-inner {
    gap: 8px;
  }

  .mobile-brand-bar {
    display: none; /* Hide brand; give full width to search */
  }

  .search-box {
    height: 36px;
    padding: 0 10px;
  }

  .search-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  /* ----- Hero ----- */
  .hero-banner {
    padding: 18px 12px;
    gap: 14px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .hero-buttons .btn-lg {
    font-size: 0.88rem;
    padding: 10px 18px;
  }

  /* ----- Content ----- */
  .content-body {
    padding: 12px 10px;
  }

  /* ----- Grid: Still single column but more compact cards ----- */
  .surah-card {
    padding: 12px;
  }

  .card-arabic-name {
    font-size: 1.15rem;
  }

  .card-translit {
    font-size: 0.88rem;
  }

  .card-meaning {
    font-size: 0.78rem;
  }

  .card-meta-pill {
    font-size: 0.7rem;
  }

  /* ----- Detail ----- */
  .detail-surah-title {
    font-size: 1.3rem;
  }

  .detail-arabic-huge {
    font-size: 1.9rem;
  }

  .bismillah-text {
    font-size: 1.3rem;
  }

  .ayah-arabic-text {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .ayah-translation-id {
    font-size: 0.85rem;
  }

  /* ----- Player ultra-compact ----- */
  .bottom-player-wrapper {
    height: var(--player-height);
  }

  .audio-player-bar {
    padding: 0 8px;
    gap: 4px;
  }

  .track-artwork {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .track-meta {
    gap: 1px;
  }

  .track-title {
    font-size: 0.75rem;
  }

  .track-sub-row {
    display: none; /* Hide sub row on tiniest screens */
  }

  .play-pause-btn {
    width: 30px;
    height: 30px;
  }

  /* Only show play/pause + next on ultra-small */
  #playerPrevBtn {
    display: none;
  }

  .control-btn {
    padding: 5px;
  }

  .control-btn svg {
    width: 16px;
    height: 16px;
  }

  /* ----- Mobile Nav ----- */
  .mobile-bottom-nav {
    height: var(--mobile-nav-height);
    padding: 0 4px;
  }

  .mobile-nav-item {
    font-size: 0.62rem;
    padding: 4px 6px;
  }

  .mobile-nav-item svg {
    width: 16px;
    height: 16px;
  }

  /* ----- Section ----- */
  .view-section {
    gap: 18px;
  }

  .section-block {
    gap: 12px;
  }

  /* ----- Toast ----- */
  .toast-container {
    right: 8px;
    left: 8px;
    bottom: calc(var(--player-height) + var(--mobile-nav-height) + 6px);
  }

  .toast {
    font-size: 0.74rem;
    gap: 8px;
    padding: 8px 10px;
  }
}

/* ----------------------------------------------------------------
   Touch-friendly improvements for all mobile sizes
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Increase tap targets */
  .card-play-btn {
    width: 42px;
    height: 42px;
  }

  .card-fav-btn {
    padding: 9px;
  }

  .ayah-action-btn {
    min-height: 36px;
  }

  /* Better scrolling for horizontal items */
  .filter-chips,
  .quick-list {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .chip {
    scroll-snap-align: start;
  }

  /* Remove hover transforms that feel weird on touch */
  .surah-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .card-play-btn:hover {
    transform: none;
  }

  /* Smoother transitions on touch */
  .surah-card {
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
  }

  /* Larger tap area for close button */
  .modal-close-btn {
    padding: 10px;
  }
}

/* ----------------------------------------------------------------
   Safe area insets for phones with notch / home indicator
   ---------------------------------------------------------------- */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .mobile-bottom-nav {
      padding-bottom: max(0px, env(safe-area-inset-bottom));
      height: calc(var(--mobile-nav-height) + max(0px, env(safe-area-inset-bottom)));
    }

    .bottom-player-wrapper {
      bottom: calc(var(--mobile-nav-height) + max(0px, env(safe-area-inset-bottom)));
    }

    .toast-container {
      bottom: calc(var(--player-height) + var(--mobile-nav-height) + max(0px, env(safe-area-inset-bottom)) + 10px);
    }

    .app-header {
      padding-top: max(0px, env(safe-area-inset-top));
    }
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

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

  .mobile-brand-bar {
    display: block;
  }

  .hide-mobile {
    display: none;
  }

  .main-wrapper {
    padding-bottom: calc(var(--player-height) + var(--mobile-nav-height) + 16px);
  }

  .app-header {
    padding: 0 16px;
  }

  .content-body {
    padding: 18px 16px;
  }

  .hero-banner {
    padding: 28px 20px;
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .surah-detail-header {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .detail-header-left {
    align-items: center;
  }

  .detail-header-actions {
    justify-content: center;
  }

  .detail-header-right {
    text-align: center;
  }

  .detail-arabic-huge {
    font-size: 3rem;
  }

  .ayah-arabic-text {
    font-size: 1.55rem;
    line-height: 2;
  }

  .surah-grid {
    grid-template-columns: 1fr;
  }

  /* Compact Mobile Player */
  .bottom-player-wrapper {
    bottom: var(--mobile-nav-height);
    height: 70px;
    padding: 0;
  }

  .audio-player-bar {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    gap: 10px;
  }

  .player-track-info {
    max-width: 70%;
  }

  .track-meta {
    max-width: calc(100% - 60px);
  }

  .player-controls-container {
    max-width: 100%;
  }

  .player-timeline,
  .player-extra-controls,
  #playerShuffleBtn,
  #playerRepeatBtn {
    display: none;
  }

  .player-buttons {
    gap: 8px;
  }

  .toast-container {
    bottom: calc(var(--player-height) + var(--mobile-nav-height) + 10px);
    right: 14px;
    left: 14px;
  }
}

/* ==========================================================================
   AUDIO SETTINGS MODAL & SERVER SELECTOR STYLING
   ========================================================================== */
.audio-settings-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald-light);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  transition: var(--transition-normal);
}

.audio-settings-btn:hover {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
  transform: translateY(-1px);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: modalPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopUp {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--border-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 65vh;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-help {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: -4px;
}

/* Qari Grid Cards */
.qari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.qari-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.qari-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.qari-card.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.qari-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border-emerald);
  flex-shrink: 0;
}

.qari-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qari-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qari-arabic {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--accent-emerald-light);
}

.qari-check {
  margin-left: auto;
  color: var(--accent-emerald);
  display: none;
}

.qari-card.active .qari-check {
  display: block;
}

/* Server Options Grid */
.server-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.server-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.server-card.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.server-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.server-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ping-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.ping-badge.fast {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ping-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ping-badge.slow {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ping-badge.testing {
  animation: pulse 1s infinite alternate;
}

/* Switch Toggle Styling */
.setting-toggle-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
  background-color: var(--accent-emerald);
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.status-info-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

