
:root {
  --brand:           #6e9f20;
  --brand-deep:      #4d7a0e;
  --brand-bright:    #88c233;
  --brand-soft:      #a6c96b;
  --brand-mist:      #e6f4d6;
  --brand-mist-2:    #f0f8e3;
  --brand-glow:      rgba(110, 159, 32, 0.22);
  --brand-glow-strong: rgba(110, 159, 32, 0.45);
  --gold:            #c9a227;
  --gold-soft:       #f5e6a8;
  --bg:              #f6f8f0;
  --bg-elev:         #ffffff;
  --bg-elev-2:       #fbfcf6;
  --bg-inset:        rgba(31, 42, 26, 0.04);
  --bg-overlay:      rgba(246, 248, 240, 0.86);
  --text:            #1c2a14;
  --text-muted:      #5e6b5a;
  --text-dim:        #97a190;
  --border:          rgba(31, 42, 26, 0.10);
  --border-soft:     rgba(31, 42, 26, 0.05);
  --border-strong:   rgba(31, 42, 26, 0.18);
  --shadow-xs: 0 1px 2px rgba(15, 22, 17, 0.04);
  --shadow-sm: 0 2px 12px rgba(15, 22, 17, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 22, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 22, 17, 0.14);
  --shadow-brand: 0 14px 36px var(--brand-glow);
  --shadow-card: 0 4px 14px rgba(15, 22, 17, 0.04), 0 1px 2px rgba(15, 22, 17, 0.04);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;
  --header-h: 72px;
  --player-h: 96px;
  --mobile-nav-h: 64px;
  --sidebar-w: 340px;
  --font-ar: 'Noto Naskh Arabic', 'Amiri', serif;
  --font-display: 'Reem Kufi', 'Noto Naskh Arabic', sans-serif;
  --font-display-2: 'Amiri', 'Noto Naskh Arabic', serif;
  --font-ui: 'Inter', 'Noto Naskh Arabic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Inter', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] {
  --brand:           #9bd040;
  --brand-deep:      #6e9f20;
  --brand-bright:    #c2e870;
  --brand-soft:      #b3d966;
  --brand-mist:      rgba(155, 208, 64, 0.16);
  --brand-mist-2:    rgba(155, 208, 64, 0.08);
  --brand-glow:      rgba(155, 208, 64, 0.32);
  --brand-glow-strong: rgba(155, 208, 64, 0.55);
  --gold:            #e8c95a;
  --gold-soft:       rgba(232, 201, 90, 0.18);
  --bg:              #08100a;
  --bg-elev:         #111a10;
  --bg-elev-2:       #16210f;
  --bg-inset:        rgba(255, 255, 255, 0.05);
  --bg-overlay:      rgba(8, 16, 10, 0.82);
  --text:            #ecf2e6;
  --text-muted:      #a0ab9c;
  --text-dim:        #6b7868;
  --border:          rgba(255, 255, 255, 0.08);
  --border-soft:     rgba(255, 255, 255, 0.05);
  --border-strong:   rgba(255, 255, 255, 0.18);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.58);
  --shadow-brand: 0 14px 40px var(--brand-glow);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body[dir="ltr"] { font-family: var(--font-ui); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-glow); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 8% -10%, var(--brand-glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, var(--brand-glow) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s var(--ease);
}
[data-theme="dark"] body::before { opacity: 0.5; }
.app-header {
  flex: 0 0 var(--header-h);
  background: var(--bg-overlay);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 100;
  transition: background 0.4s var(--ease);
}
.app-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--brand) 25%, var(--brand-bright) 50%,
    var(--brand) 75%, transparent);
  opacity: 0.55;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 60%);
}
.logo-text h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .logo-text h1 { color: var(--brand-soft); }
.logo-text .tagline {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  display: block;
  margin-top: 3px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-link .nav-icon { font-size: 14px; opacity: 0.8; }
.nav-link:hover {
  color: var(--text);
  background: var(--bg-inset);
}
.nav-link.active {
  color: var(--brand-deep);
  background: var(--brand-mist);
  font-weight: 600;
}
[data-theme="dark"] .nav-link.active { color: var(--brand-soft); }
.nav-link.active::after {
  content: '';
  position: absolute;
  inset: auto 50% -8px auto;
  transform: translateX(50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.icon-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.icon-btn:active { transform: translateY(0); }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }
.lang-btn {
  font-weight: 600;
  font-size: 12.5px;
  padding: 0 16px;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
  width: auto;
  min-width: 70px;
}
.menu-toggle { display: none; }
.app-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  min-height: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--border-soft);
  position: relative;
  z-index: 10;
  transition: transform 0.35s var(--ease-out), background 0.4s var(--ease);
}
.sidebar-header { padding: 22px 22px 14px; flex-shrink: 0; }
.sidebar-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.sidebar-section-title .count-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--brand-mist);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
[data-theme="dark"] .sidebar-section-title .count-chip { color: var(--brand-soft); }
.search-box { position: relative; margin-bottom: 14px; }
.search-box input {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 11px 42px 11px 16px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s var(--ease);
}
body[dir="rtl"] .search-box input { padding: 11px 16px 11px 42px; }
.search-box input:focus {
  border-color: var(--brand-soft);
  background: var(--bg-elev);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.search-box input::placeholder { color: var(--text-dim); }
.search-icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.sidebar-tabs {
  display: flex;
  gap: 6px;
  padding: 0 22px 14px;
  flex-shrink: 0;
}
.tab-btn {
  flex: 1;
  background: var(--bg-inset);
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  text-align: center;
  font-weight: 500;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--brand-mist);
  color: var(--brand-deep);
  font-weight: 600;
}
[data-theme="dark"] .tab-btn.active { color: var(--brand-soft); }
.riwayah-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 22px 14px;
  flex-shrink: 0;
}
.chip {
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--brand-soft); }
.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-deep);
  box-shadow: 0 4px 12px var(--brand-glow);
}
.readers-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.readers-list::-webkit-scrollbar { width: 6px; }
.readers-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.reciter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-bottom: 3px;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.reciter-item:hover {
  background: var(--bg-inset);
  transform: translateX(-3px);
}
body[dir="ltr"] .reciter-item:hover { transform: translateX(3px); }
.reciter-item.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-brand);
  border-color: var(--brand-deep);
}
.reciter-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.reciter-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-deep);
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}
[data-theme="dark"] .reciter-avatar { color: var(--brand-soft); }
.reciter-item.active .reciter-avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.reciter-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.reciter-meta-small { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.reciter-item.active .reciter-meta-small { color: rgba(255, 255, 255, 0.75); }
.fav-btn {
  background: none;
  font-size: 16px;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.fav-btn:hover { transform: scale(1.2); color: #e53935; }
.fav-btn.favorited { color: #e53935; }
.sidebar-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.sidebar-empty .emoji { font-size: 32px; display: block; margin-bottom: 8px; opacity: 0.6; }
.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
.page-header {
  padding: 36px 40px 22px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-elev-2), transparent 90%);
  border-bottom: 1px solid var(--border-soft);
}
.page-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.page-header p { color: var(--text-muted); font-size: 14.5px; }
.content-area { padding: 26px 40px 56px; flex: 1; }
.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--brand-mist) 0%, transparent 70%),
    linear-gradient(160deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border-radius: var(--r-xl);
  margin: 24px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.welcome-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
}
.welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  inset-inline-start: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--brand-mist);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  border: 1px solid var(--brand-soft);
}
[data-theme="dark"] .featured-badge { color: var(--brand-soft); }
.welcome-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-brand), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}
.welcome-hero h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}
.welcome-hero p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 460px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 40px 28px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
  text-align: center;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-mist-2), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .stat-value { color: var(--brand-soft); }
.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.reciter-grid,
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.reciter-card,
.radio-card {
  background: var(--bg-elev);
  border-radius: var(--r-md);
  padding: 18px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.reciter-card::before,
.radio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--brand-glow));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.reciter-card:hover,
.radio-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
}
.reciter-card:hover::before,
.radio-card:hover::before { opacity: 0.7; }
.reciter-card.active,
.radio-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-mist-2), var(--bg-elev));
  box-shadow: var(--shadow-brand);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-mist), var(--bg-inset));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-deep);
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.card-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.3), transparent 60%);
}
[data-theme="dark"] .card-avatar { color: var(--brand-soft); }
.card-info { flex: 1; min-width: 0; }
.card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.riwayah-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.riwayah-badge {
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ef4444;
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.surah-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.surah-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--brand-glow) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.surah-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.surah-item:hover::before { opacity: 0.5; }
.surah-item.active {
  background: linear-gradient(135deg, var(--brand-mist-2), var(--bg-elev));
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand-soft);
}
.surah-item.active .surah-name { color: var(--brand-deep); font-weight: 700; }
[data-theme="dark"] .surah-item.active .surah-name { color: var(--brand-soft); }
.surah-item.active .surah-number {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-deep);
}
.surah-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.surah-details { flex: 1; min-width: 0; }
.surah-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.surah-name-en {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--text-muted);
}
.surah-meta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.play-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  flex-shrink: 0;
}
.surah-item:hover .play-indicator { opacity: 0.75; }
.surah-item.active .play-indicator { opacity: 1; }
.reciter-hero {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 40px;
  position: relative;
  overflow: hidden;
}
.reciter-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  inset-inline-start: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.7;
}
.reciter-hero-row {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.reciter-cover {
  width: 86px;
  height: 86px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-mist), var(--bg-inset));
  border: 2px solid var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.reciter-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 60%);
}
[data-theme="dark"] .reciter-cover { color: var(--brand-soft); }
.reciter-info-block { flex: 1; min-width: 0; }
.reciter-info-block h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.2;
}
.reciter-info-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.reciter-info-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.reciter-actions-row { display: flex; gap: 10px; flex-shrink: 0; }
.moshaf-selector {
  padding: 16px 40px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.moshaf-selector label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.moshaf-selector select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  min-width: 220px;
  flex: 1;
  max-width: 400px;
}
.moshaf-selector select:focus {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-brand);
  transition: all 0.2s var(--ease);
  border: 1px solid var(--brand-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand), 0 0 0 4px var(--brand-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--brand-soft);
  background: var(--bg-elev);
}
.search-bar-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 40px;
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.search-bar-sticky input {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 24px;
  color: var(--text);
  outline: none;
  font-size: 14.5px;
  transition: all 0.2s var(--ease);
}
.search-bar-sticky input:focus {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.empty-state .emoji { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.6; }
.resume-banner {
  position: fixed;
  bottom: calc(var(--player-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(160px);
  background: var(--bg-elev);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--brand-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2000;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.resume-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.resume-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resume-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-close {
  background: none;
  color: var(--text-dim);
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.resume-close:hover { color: var(--text); background: var(--bg-inset); }
.player-bar-wrapper {
  flex: 0 0 auto;
  background: var(--bg-overlay);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 0 24px 14px;
  position: relative;
  z-index: 1000;
  transition: background 0.4s var(--ease);
}
.player-bar {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: 14px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: background 0.4s var(--ease);
  max-width: 1480px;
  margin: 0 auto;
}
.player-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.player-track-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.track-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border-soft);
  position: relative;
}
.track-thumb.playing {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-brand);
  border-color: var(--brand-deep);
}
.track-thumb.playing::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: pulse-ring 1.6s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0; }
}
.track-meta { min-width: 0; flex: 1; }
.track-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.track-reciter {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.control-buttons { display: flex; align-items: center; gap: 12px; }
.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ctrl-btn:hover {
  background: var(--bg-inset);
  color: var(--text);
  transform: scale(1.08);
}
.ctrl-btn.active { color: var(--brand-deep); background: var(--brand-mist); }
[data-theme="dark"] .ctrl-btn.active { color: var(--brand-soft); }
.ctrl-btn-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-brand);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-deep);
}
.ctrl-btn-play:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-brand), 0 0 0 6px var(--brand-glow);
}
.ctrl-btn-play:active { transform: scale(0.94); }
.progress-area {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 400px;
  max-width: 100%;
}
.time-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-inset);
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  overflow: visible;
  border: 1px solid var(--border-soft);
}
.progress-track:hover .progress-fill::after { opacity: 1; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright));
  border-radius: var(--r-pill);
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset-inline-end: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.sleep-timer-btn {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.sleep-timer-btn:hover { color: var(--text); border-color: var(--brand-soft); }
.sleep-timer-btn.active {
  color: var(--brand-deep);
  background: var(--brand-mist);
  border-color: var(--brand-soft);
  font-weight: 600;
}
[data-theme="dark"] .sleep-timer-btn.active { color: var(--brand-soft); }
.volume-area { display: flex; align-items: center; gap: 8px; }
.vol-icon {
  color: var(--text-muted);
  display: inline-flex;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.vol-icon:hover { color: var(--text); }
.volume-slider {
  width: 90px;
  height: 5px;
  cursor: pointer;
  accent-color: var(--brand);
}
.queue-drawer {
  position: fixed;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  z-index: 2200;
  display: flex;
  flex-direction: column;
}
body[dir="rtl"] .queue-drawer { transform: translateX(-100%); }
body[dir="rtl"] .queue-drawer.open,
body[dir="ltr"] .queue-drawer.open,
.queue-drawer.open { transform: translateX(0); }
.queue-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.queue-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.queue-list { flex: 1; overflow-y: auto; padding: 12px; }
.queue-item {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.queue-item:hover { background: var(--bg-inset); }
.queue-item.active { background: var(--brand-mist); color: var(--brand-deep); }
[data-theme="dark"] .queue-item.active { color: var(--brand-soft); }
.queue-item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 24px;
  text-align: center;
}
.queue-item-name {
  flex: 1;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-section {
  background: var(--bg-elev);
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.settings-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 14px; color: var(--text); font-weight: 500; }
.settings-control select,
.settings-control input {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  min-width: 170px;
}
.settings-control input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.switch.on { background: var(--brand); }
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}
.switch.on::after { transform: translateX(-20px); }
body[dir="ltr"] .switch.on::after { transform: translateX(20px); }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.backdrop.show { opacity: 1; pointer-events: auto; }
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border-soft);
  padding: 6px 4px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}
.mobile-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 0.15s var(--ease);
}
.mobile-nav-link svg { transition: transform 0.2s var(--ease); }
.mobile-nav-link:hover { color: var(--text); }
.mobile-nav-link.active {
  color: var(--brand-deep);
  background: var(--brand-mist);
}
[data-theme="dark"] .mobile-nav-link.active { color: var(--brand-soft); }
.mobile-nav-link.active svg { transform: scale(1.1); }
@media (max-width: 1100px) {
  .top-nav { gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 13px; }
  .nav-link .nav-icon { font-size: 13px; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 290px; }
  .top-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .page-header { padding: 26px 28px 18px; }
  .page-header h2 { font-size: 28px; }
  .content-area { padding: 22px 28px 48px; }
  .welcome-hero { margin: 20px 28px; padding: 56px 26px; }
  .home-stats { margin: 0 28px 22px; }
  .reciter-hero { padding: 22px 28px; }
  .moshaf-selector { padding: 14px 28px; }
  .search-bar-sticky { padding: 14px 28px; }
  .progress-area { width: 280px; }
}
@media (max-width: 1024px) {
  .mobile-nav { display: flex !important; }
  .menu-toggle { display: inline-flex !important; }
  .top-nav { display: none !important; }
  .sidebar {
    position: fixed !important;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    transform: translateX(100%) !important;
    z-index: 1200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    padding-bottom: var(--mobile-nav-h);
  }
  body[dir="rtl"] .sidebar { transform: translateX(-100%) !important; }
  body[dir="rtl"] .sidebar.open,
  body[dir="ltr"] .sidebar.open,
  .sidebar.open { transform: translateX(0) !important; }
  .main-content { padding-bottom: calc(var(--mobile-nav-h) + 16px) !important; }
  .app-header { padding: 0 14px; gap: 10px; }
  .logo-text .tagline { font-size: 9.5px; }
  .lang-btn { min-width: 56px; padding: 0 12px; font-size: 11.5px; }
  .player-bar-wrapper { padding-bottom: 14px !important; margin-bottom: var(--mobile-nav-h) !important; }
  .resume-banner { bottom: calc(var(--player-h) + var(--mobile-nav-h) + 12px) !important; }
  body { height: calc(100dvh - var(--mobile-nav-h)) !important; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; --player-h: 84px; }
  .app-header { padding: 0 14px; gap: 10px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-icon svg { width: 19px; height: 19px; }
  .logo-text h1 { font-size: 19px; }
  .logo-text .tagline { font-size: 9px; }
  .lang-btn { min-width: 56px; padding: 0 12px; font-size: 11.5px; }
  .icon-btn { width: 38px; height: 38px; }
  .mobile-nav { display: flex !important; }
  .menu-toggle { display: inline-flex !important; }
  .top-nav { display: none !important; }
  .sidebar {
    position: fixed !important;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    transform: translateX(100%) !important;
    z-index: 1200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    padding-bottom: var(--mobile-nav-h);
  }
  body[dir="rtl"] .sidebar { transform: translateX(-100%) !important; }
  body[dir="rtl"] .sidebar.open,
  body[dir="ltr"] .sidebar.open,
  .sidebar.open { transform: translateX(0) !important; }
  .sidebar-header { padding: 18px 18px 10px; }
  .sidebar-tabs { padding: 0 18px 10px; }
  .riwayah-chips { padding: 0 18px 10px; }
  .main-content { padding-bottom: calc(var(--mobile-nav-h) + 16px) !important; }
  .page-header { padding: 20px 18px 14px; }
  .page-header h2 { font-size: 24px; }
  .content-area { padding: 14px 18px 30px; }
  .welcome-hero { margin: 16px 18px; padding: 48px 22px; gap: 18px; border-radius: var(--r-lg); }
  .welcome-icon { width: 84px; height: 84px; font-size: 34px; }
  .welcome-hero h2 { font-size: 23px; }
  .welcome-hero p { font-size: 14px; }
  .home-stats { margin: 0 18px 20px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 14px; }
  .stat-value { font-size: 24px; }
  .stat-icon { font-size: 22px; }
  .stat-label { font-size: 11.5px; }
  .reciter-hero { padding: 18px 18px; }
  .reciter-hero-row { flex-direction: column; text-align: center; gap: 14px; }
  .reciter-cover { width: 68px; height: 68px; font-size: 28px; }
  .reciter-info-block { text-align: center; }
  .reciter-info-block h2 { font-size: 22px; }
  .reciter-info-meta { justify-content: center; }
  .reciter-actions-row { width: 100%; justify-content: center; }
  .btn-primary, .btn-secondary { flex: 1; max-width: 180px; justify-content: center; }
  .moshaf-selector { padding: 12px 18px; }
  .moshaf-selector select { width: 100%; min-width: 0; max-width: none; }
  .search-bar-sticky { padding: 12px 18px; }
  .reciter-grid, .radio-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .reciter-card, .radio-card { padding: 14px; gap: 10px; }
  .card-avatar { width: 48px; height: 48px; font-size: 22px; }
  .card-name { font-size: 14px; }
  .surah-grid { grid-template-columns: 1fr; gap: 8px; }
  .surah-item { padding: 12px 16px; }
  .player-bar-wrapper { padding: 0 10px 10px !important; }
  .player-bar { padding: 12px 14px; border-radius: var(--r-md); }
  .player-layout { grid-template-columns: 1fr auto; gap: 10px; }
  .player-track-info { min-width: 0; }
  .track-thumb { width: 44px; height: 44px; }
  .track-thumb svg { width: 18px; height: 18px; }
  .track-name { font-size: 13.5px; }
  .track-reciter { font-size: 11.5px; }
  .player-controls { flex-direction: row; gap: 6px; }
  .control-buttons { gap: 6px; }
  .ctrl-btn { width: 34px; height: 34px; }
  .ctrl-btn-play { width: 44px; height: 44px; }
  .progress-area { grid-column: 1 / -1; width: 100%; gap: 8px; margin-top: 4px; }
  .player-right { display: none; }
  .resume-banner {
    bottom: calc(var(--player-h) + 14px + var(--mobile-nav-h));
    width: calc(100vw - 24px);
    max-width: none;
    padding: 10px 16px;
    font-size: 12.5px;
  }
}
@media (max-width: 380px) {
  .app-header { padding: 0 12px; }
  .logo-text .tagline { display: none; }
  .reciter-actions-row { flex-direction: column; gap: 8px; }
  .btn-primary, .btn-secondary { max-width: none; }
  .control-buttons { gap: 4px; }
  .ctrl-btn-play { width: 40px; height: 40px; }
  .mobile-nav-link { font-size: 9.5px; }
  .mobile-nav-link svg { width: 18px; height: 18px; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .app-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reciter-card, .radio-card, .surah-item, .stat-card {
  animation: fade-up 0.4s var(--ease-out) backwards;
}
.reciter-grid > *:nth-child(1), .radio-grid > *:nth-child(1) { animation-delay: 0.02s; }
.reciter-grid > *:nth-child(2), .radio-grid > *:nth-child(2) { animation-delay: 0.05s; }
.reciter-grid > *:nth-child(3), .radio-grid > *:nth-child(3) { animation-delay: 0.08s; }
.reciter-grid > *:nth-child(4), .radio-grid > *:nth-child(4) { animation-delay: 0.11s; }
.reciter-grid > *:nth-child(5), .radio-grid > *:nth-child(5) { animation-delay: 0.14s; }
.reciter-grid > *:nth-child(6), .radio-grid > *:nth-child(6) { animation-delay: 0.17s; }
.reciter-grid > *:nth-child(7), .radio-grid > *:nth-child(7) { animation-delay: 0.20s; }
.reciter-grid > *:nth-child(8), .radio-grid > *:nth-child(8) { animation-delay: 0.23s; }
.ad-slot {
  margin: 24px auto;
  min-height: 90px;
  max-height: 120px;
  background: var(--bg-elev-2);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}
@media (max-width: 1024px) {
  .ad-slot[data-ad="sidebar"] { display: none !important; }
  .ad-slot[data-ad="home-bottom"] { min-height: 70px; margin: 16px 18px; }
  .ad-slot[data-ad="reciter-bottom"] { min-height: 70px; margin: 16px 18px; }
  .ad-slot[data-ad="radios-bottom"] { min-height: 70px; margin: 16px 18px; }
}
.ad-slot::before {
  content: 'Advertisement';
  opacity: 0.6;
}
.sidebar-ad {
  margin: 12px 14px;
  display: block;
}
@media (max-width: 1024px) {
  .sidebar-ad { display: none; }
  min-height: 250px;
  width: calc(100% - 28px);
}
.mobile-sticky-ad {
  display: none;
  position: fixed;
  bottom: calc(var(--mobile-nav-h) + 6px);
  left: 6px;
  right: 6px;
  min-height: 50px;
  max-height: 60px;
  z-index: 1090;
  border-radius: var(--r-sm);
  margin: 0;
  background: var(--bg-elev);
}
@media (max-width: 1024px) {
  .mobile-sticky-ad { display: flex; }
}
@media (max-width: 1024px) {
  .has-mobile-ad .mobile-nav { bottom: 56px; }
  .has-mobile-ad .main-content { padding-bottom: calc(var(--mobile-nav-h) + 76px) !important; }
  .has-mobile-ad .resume-banner { bottom: calc(var(--player-h) + 80px) !important; }
}
#hijriDate {
  color: var(--brand-deep);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
[data-theme="dark"] #hijriDate { color: var(--brand-soft); }
.daily-ayah-card {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin: 0 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.daily-ayah-card::before {
  content: '';
  position: absolute;
  top: -50%;
  inset-inline-start: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 65%);
  pointer-events: none;
}
.daily-ayah-label {
  font-size: 11px;
  color: var(--brand-deep);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .daily-ayah-label { color: var(--brand-soft); }
.daily-ayah-text {
  font-family: var(--font-display-2);
  font-size: 24px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.daily-ayah-source {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.khatma-progress-card {
  background: linear-gradient(135deg, var(--brand-mist-2), var(--bg-elev));
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 0 40px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.khatma-progress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.khatma-ring {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}
.khatma-ring svg { width: 100%; height: 100%; }
.khatma-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-deep);
}
[data-theme="dark"] .khatma-ring-text { color: var(--brand-soft); }
.khatma-info { flex: 1; min-width: 0; }
.khatma-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.khatma-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.khatma-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.khatma-cta { font-size: 12px; color: var(--brand-deep); font-weight: 600; margin-top: 4px; }
[data-theme="dark"] .khatma-cta { color: var(--brand-soft); }
.khatma-empty { background: var(--bg-elev); border-style: dashed; }
.khatma-empty-icon { font-size: 38px; }
.khatma-empty .khatma-title { margin-bottom: 2px; }
.mood-strip {
  margin: 0 40px 28px;
}
.mood-strip h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text);
}
.mood-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  --mood-color: var(--brand);
}
.mood-chip:hover {
  transform: translateY(-2px);
  border-color: var(--mood-color);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.mood-chip .mood-icon { font-size: 16px; }
.quick-surahs-strip { margin: 0 40px 28px; }
.quick-surahs-strip h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text);
}
.quick-surahs { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-surah-chip {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-display);
  font-weight: 600;
}
.quick-surah-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-deep);
  transform: translateY(-1px);
}
.prayer-widget {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 0 40px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.prayer-next {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--r-sm);
  text-align: center;
  min-width: 130px;
  box-shadow: var(--shadow-brand);
}
.prayer-next-label {
  font-size: 10.5px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.prayer-next-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}
.prayer-next-time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.prayer-next-remaining {
  font-size: 11.5px;
  opacity: 0.9;
}
.prayer-times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.prayer-time-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  min-width: 62px;
  flex: 0 0 auto;
}
.prayer-time-row span:first-child { color: var(--text-muted); font-size: 10.5px; }
.prayer-time-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  margin-top: 2px;
}
.prayer-window {
  grid-column: 1 / -1;
  background: var(--brand-mist);
  color: var(--brand-deep);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
[data-theme="dark"] .prayer-window { color: var(--brand-soft); }
.juz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.juz-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  gap: 14px;
  align-items: center;
}
.juz-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.juz-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.juz-info { flex: 1; min-width: 0; }
.juz-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.juz-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.mood-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mood-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mood-color, var(--brand)) 0%, transparent 50%);
  opacity: 0.06;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.mood-card:hover {
  transform: translateY(-4px);
  border-color: var(--mood-color, var(--brand-soft));
  box-shadow: var(--shadow-md);
}
.mood-card:hover::before { opacity: 0.15; }
.mood-card-icon {
  font-size: 42px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.mood-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.mood-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.khatma-detail-card {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.khatma-detail-ring {
  width: 120px;
  height: 120px;
  position: relative;
}
.khatma-detail-ring svg { width: 100%; height: 100%; }
.khatma-detail-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-deep);
}
[data-theme="dark"] .khatma-detail-pct { color: var(--brand-soft); }
.khatma-detail-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.khatma-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.khatma-stat {
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  text-align: center;
}
.khatma-stat .stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.2;
}
[data-theme="dark"] .khatma-stat .stat-num { color: var(--brand-soft); }
.khatma-stat .stat-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.khatma-start-card {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}
.khatma-start-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.khatma-start-card p { color: var(--text-muted); margin-bottom: 22px; font-size: 14px; }
.khatma-target-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.khatma-target-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
}
.khatma-target-btn:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.khatma-target-icon { font-size: 32px; margin-bottom: 10px; }
.khatma-target-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.khatma-target-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.khatma-history {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.khatma-history h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--text);
}
.khatma-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.khatma-history-item:last-child { border-bottom: none; }
.khatma-history-icon { font-size: 20px; }
.khatma-history-name { font-weight: 600; font-size: 14px; }
.khatma-history-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.bookmarks-list { display: flex; flex-direction: column; gap: 12px; }
.bookmark-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.bookmark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bookmark-source {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--brand-deep);
  font-weight: 700;
}
[data-theme="dark"] .bookmark-source { color: var(--brand-soft); }
.bookmark-remove {
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.bookmark-remove:hover { color: #e53935; }
.bookmark-text {
  font-family: var(--font-display-2);
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 6px;
}
.bookmark-translation {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.bookmark-note {
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 10px;
  border-inline-start: 3px solid var(--brand-soft);
}
.bookmark-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bookmark-actions .btn-secondary { padding: 7px 12px; font-size: 12px; }
.multi-reciter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.multi-reciter-controls select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 13.5px;
  flex: 1;
  max-width: 320px;
  cursor: pointer;
}
.link-btn {
  background: none;
  border: none;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
[data-theme="dark"] .link-btn { color: var(--brand-soft); }
.reciter-bio {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  border-inline-start: 3px solid var(--brand-soft);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.modal-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-soft);
}
.repeat-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.repeat-range-row label { font-size: 13.5px; color: var(--text); }
.repeat-range-row input {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
}
.repeat-range-row input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-glow); }
.sleep-after-btn { width: 38px; height: 38px; }
.sleep-after-btn.active {
  color: var(--brand-deep);
  background: var(--brand-mist);
}
[data-theme="dark"] .sleep-after-btn.active { color: var(--brand-soft); }
.friday-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2200;
  max-width: calc(100vw - 32px);
  animation: slide-down 0.5s var(--ease-out);
}
@keyframes slide-down {
  from { transform: translate(-50%, -100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.friday-banner-icon { font-size: 32px; }
.friday-banner-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.friday-banner-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.friday-banner-btn { padding: 8px 16px; font-size: 13px; }
.friday-banner-close {
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 30px);
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2400;
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.prayer-beads {
  position: fixed;
  bottom: 100px;
  inset-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.4;
  animation: beads-rotate 12s linear infinite;
}
.prayer-beads .bead {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.6;
}
.prayer-beads .bead:nth-child(2) { opacity: 0.4; transform: scale(1.3); }
.prayer-beads .bead:nth-child(3) { opacity: 0.3; transform: scale(1.6); }
@keyframes beads-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .prayer-beads { display: none; }
}
body.quran-mode .top-nav,
body.quran-mode .mobile-nav,
body.quran-mode .player-right,
body.quran-mode .sidebar,
body.quran-mode .ad-slot,
body.quran-mode .prayer-beads { display: none !important; }
body.quran-mode .app-header { background: transparent; backdrop-filter: none; border-bottom: none; }
body.quran-mode .app-header::after { display: none; }
body.quran-mode .main-content { background: var(--bg); }
body.quran-mode .content-area { max-width: 760px; margin: 0 auto; padding: 32px 28px; }
body.quran-mode body { background: var(--bg); }
body.quran-mode body::before { opacity: 0.4; }
@media (max-width: 900px) {
  .daily-ayah-card,
  .khatma-progress-card,
  .mood-strip,
  .quick-surahs-strip,
  .prayer-widget { margin-inline: 28px; }
  .prayer-widget { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .prayer-next { margin: 0 auto; }
}
@media (max-width: 768px) {
  .daily-ayah-card,
  .khatma-progress-card,
  .mood-strip,
  .quick-surahs-strip,
  .prayer-widget { margin-inline: 18px; padding: 20px 18px; }
  .daily-ayah-text { font-size: 19px; }
  .khatma-progress-card { flex-direction: column; text-align: center; gap: 14px; }
  .khatma-detail-card { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .khatma-detail-ring { margin: 0 auto; }
  .khatma-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mood-chips .mood-chip { font-size: 12.5px; padding: 8px 14px; }
  .quick-surah-chip { font-size: 12px; padding: 6px 12px; }
  .prayer-times-list { grid-template-columns: repeat(3, 1fr); }
  .juz-grid { grid-template-columns: 1fr; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .friday-banner { flex-direction: column; text-align: center; gap: 8px; padding: 14px 18px; }
}
.prayer-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.prayer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  flex-wrap: wrap;
}
.prayer-location-icon { font-size: 16px; }
.prayer-location-name {
  font-family: var(--font-display);
  font-size: 15px;
}
.prayer-detected-badge {
  font-size: 10.5px;
  background: var(--brand-mist);
  color: var(--brand-deep);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
  margin-inline-start: 4px;
}
[data-theme="dark"] .prayer-detected-badge { color: var(--brand-soft); }
.prayer-change-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.prayer-change-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: rotate(30deg);
}
.prayer-method {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-ui);
}
.prayer-time-row.active {
  background: var(--brand-mist);
  color: var(--brand-deep);
}
[data-theme="dark"] .prayer-time-row.active { color: var(--brand-soft); }
.prayer-widget-empty {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-align: start;
  padding: 18px 20px;
}
.prayer-widget-empty-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.prayer-widget-empty-text { flex: 1; min-width: 0; }
.prayer-widget-empty-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.prayer-widget-empty-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.prayer-widget-empty .btn-primary {
  padding: 9px 16px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.modal-content-wide { max-width: 520px; }
.prayer-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.prayer-form-row label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.prayer-form-row input,
.prayer-form-row select {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  width: 100%;
}
.prayer-form-row input:focus,
.prayer-form-row select:focus {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.prayer-detecting { color: var(--text-muted); }
.prayer-detected { color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .prayer-detected { color: var(--brand-soft); }
.prayer-detect-fail { color: #e53935; }
.more-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0);
}
.more-menu.show { transform: translateY(0); }
.more-menu-head {
  padding: 22px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.more-menu-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.more-menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px;
  align-content: start;
}
.more-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.more-menu-item:hover, .more-menu-item:active {
  background: var(--brand-mist);
  border-color: var(--brand-soft);
  color: var(--brand-deep);
  transform: translateY(-2px);
}
[data-theme="dark"] .more-menu-item:hover { color: var(--brand-soft); }
.more-menu-icon { font-size: 32px; }
@media (min-width: 769px) and (max-width: 1100px) {
  .top-nav { gap: 0; }
  .nav-link {
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-link .nav-icon { font-size: 12px; }
}
@media (max-width: 768px) {
  .prayer-widget {
    margin-inline: 18px;
    padding: 14px 16px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
  }
  .prayer-widget .prayer-next { grid-row: 2; grid-column: 1; margin: 0 auto; }
  .prayer-widget .prayer-times-list { grid-row: 3; grid-column: 1; }
  .prayer-widget .prayer-method { grid-row: 4; }
  .prayer-widget .prayer-window { grid-row: 5; }
  .prayer-widget-empty {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .prayer-widget-empty .btn-primary { width: 100%; }
  .more-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
  .more-menu-item { padding: 18px 10px; font-size: 12px; }
  .more-menu-icon { font-size: 28px; }
}
@media (max-width: 380px) {
  .more-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-times-list { grid-template-columns: repeat(2, 1fr) !important; }
}

.tahajjud-countdown-card {
  background: linear-gradient(135deg, #1a2244 0%, #2c1a4a 100%);
  border: 1px solid rgba(155, 208, 64, 0.3);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(26, 34, 68, 0.4);
}
.tahajjud-countdown-icon { font-size: 48px; }
.tahajjud-countdown-info { flex: 1; }
.tahajjud-countdown-label { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.tahajjud-countdown-time {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #c2e870;
}
.tahajjud-countdown-detail { font-size: 12px; opacity: 0.75; font-family: var(--font-mono); }
.tahajjud-streak { text-align: center; padding-inline-start: 16px; border-inline-start: 1px solid rgba(255,255,255,0.15); }
.tahajjud-streak-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #ffb86b; }
.tahajjud-streak-lbl { font-size: 11px; opacity: 0.75; }
.tahajjud-section { margin-bottom: 24px; }
.tahajjud-section h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; }
.tahajjud-surah-list { display: flex; flex-direction: column; gap: 8px; }
.tahajjud-surah-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); cursor: pointer; transition: all 0.2s var(--ease);
}
.tahajjud-surah-item:hover { border-color: var(--brand-soft); transform: translateX(-3px); }
.tahajjud-surah-num {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #1a2244, #2c1a4a); color: #c2e870;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; flex-shrink: 0;
}
.tahajjud-surah-info { flex: 1; }
.tahajjud-surah-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.tahajjud-surah-reason { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tahajjud-dhikr-list { display: flex; flex-direction: column; gap: 8px; }
.tahajjud-dhikr-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tahajjud-dhikr-text {
  font-family: var(--font-display-2); font-size: 16px; line-height: 1.7;
  flex: 1;
}
.tahajjud-dhikr-count {
  background: var(--brand-mist); color: var(--brand-deep);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.tahajjud-record-btn { width: 100%; justify-content: center; margin-top: 10px; padding: 14px; font-size: 15px; }
[data-theme="dark"] .tahajjud-dhikr-count { color: var(--brand-soft); }

.tasbih-streak-card {
  background: linear-gradient(135deg, var(--brand-mist-2), var(--bg-elev));
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-md);
  padding: 18px; margin-bottom: 20px;
  text-align: center;
}
.tasbih-streak-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--brand-deep); }
[data-theme="dark"] .tasbih-streak-num { color: var(--brand-soft); }
.tasbih-streak-lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.tasbih-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tasbih-template-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); padding: 20px; cursor: pointer;
  transition: all 0.25s var(--ease); text-align: center;
}
.tasbih-template-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.tasbih-template-icon { font-size: 36px; margin-bottom: 10px; }
.tasbih-template-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tasbih-template-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.tasbih-template-meta { font-size: 11px; color: var(--brand-deep); font-family: var(--font-mono); font-weight: 600; }
[data-theme="dark"] .tasbih-template-meta { color: var(--brand-soft); }

.tasbih-active-card {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.tasbih-active-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tasbih-active-template { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.tasbih-stop-btn { padding: 6px 12px; font-size: 11px; }
.tasbih-progress-ring {
  width: 220px; height: 220px; position: relative; margin: 0 auto 20px;
}
.tasbih-progress-ring svg { width: 100%; height: 100%; }
.tasbih-progress-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tasbih-current-count { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: var(--brand-deep); line-height: 1; }
[data-theme="dark"] .tasbih-current-count { color: var(--brand-soft); }
.tasbih-target-count { font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); margin-top: 4px; }
.tasbih-dhikr-text {
  font-family: var(--font-display-2); font-size: 22px; line-height: 1.7;
  margin-bottom: 6px; color: var(--text);
}
.tasbih-dhikr-transliteration { font-size: 13px; color: var(--text-muted); font-family: var(--font-ui); margin-bottom: 22px; }
.tasbih-tap-btn {
  width: 100%; max-width: 320px; margin: 0 auto;
  padding: 28px 20px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: all 0.1s var(--ease);
  display: block;
  user-select: none;
}
.tasbih-tap-btn:active { transform: scale(0.97); }
.tasbih-cycle-progress { font-size: 12px; color: var(--text-muted); margin-top: 14px; font-family: var(--font-mono); }
.tasbih-completed {
  margin-top: 14px; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--brand-mist); color: var(--brand-deep);
  font-weight: 600; font-size: 14px;
}

.focus-start-card, .focus-active-card, .focus-stats-card, .focus-review-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); padding: 24px; margin-bottom: 16px;
}
.focus-start-card h3, .focus-stats-card h4, .focus-review-card h4 {
  font-family: var(--font-display); font-size: 18px; margin-bottom: 16px;
}
.focus-form-row { margin-bottom: 14px; }
.focus-form-row label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.focus-form-row select {
  width: 100%; background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; color: var(--text);
}
.focus-active-card { text-align: center; }
.focus-phase-badge {
  display: inline-block; padding: 6px 16px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.phase-focus { background: var(--brand); color: #fff; }
.phase-break { background: var(--gold-soft); color: var(--gold); }
.focus-timer {
  font-family: var(--font-mono); font-size: 64px; font-weight: 700;
  color: var(--brand-deep); line-height: 1; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .focus-timer { color: var(--brand-soft); }
.focus-stats { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.focus-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.focus-controls .btn-primary, .focus-controls .btn-secondary { padding: 12px 20px; min-width: 60px; }
.focus-reveal-section { border-top: 1px solid var(--border-soft); padding-top: 18px; }
.focus-reveal-section h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 8px; }
.focus-reveal-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-reveal-controls .btn-secondary { padding: 8px 14px; font-size: 12px; flex: 1; min-width: 120px; justify-content: center; }
.focus-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.focus-stat { background: var(--bg-inset); border-radius: var(--r-sm); padding: 12px; text-align: center; }
.focus-stat-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--brand-deep); }
[data-theme="dark"] .focus-stat-num { color: var(--brand-soft); }
.focus-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.focus-review-list { display: flex; flex-direction: column; gap: 6px; }
.focus-review-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg-inset); border-radius: var(--r-sm);
  cursor: pointer; font-size: 13px; transition: all 0.15s var(--ease);
}
.focus-review-item:hover { background: var(--brand-mist); }
.focus-review-count { font-family: var(--font-mono); font-weight: 700; color: var(--brand-deep); font-size: 11px; }
[data-theme="dark"] .focus-review-count { color: var(--brand-soft); }

.quiz-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-md);
}
.quiz-progress {
  height: 6px; background: var(--bg-inset); border-radius: var(--r-pill);
  margin-bottom: 8px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright));
  border-radius: var(--r-pill); transition: width 0.3s var(--ease);
}
.quiz-progress-text { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 22px; }
.quiz-question-icon { font-size: 48px; margin-bottom: 14px; }
.quiz-question { font-family: var(--font-display); font-size: 20px; margin-bottom: 22px; line-height: 1.4; }
.quiz-answers { display: flex; flex-direction: column; gap: 10px; }
.quiz-answer-btn {
  padding: 16px 18px; background: var(--bg-inset); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); color: var(--text); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.2s var(--ease); text-align: center;
}
.quiz-answer-btn:hover {
  background: var(--brand-mist); border-color: var(--brand-soft); color: var(--brand-deep);
  transform: translateY(-2px);
}
[data-theme="dark"] .quiz-answer-btn:hover { color: var(--brand-soft); }
.quiz-results-card { text-align: center; padding: 24px; }
.quiz-results-icon { font-size: 56px; margin-bottom: 14px; }
.quiz-results-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }

.ramadan-status-card {
  background: linear-gradient(135deg, #0c1208, #1a2a14);
  border: 1px solid var(--brand-soft); border-radius: var(--r-md);
  padding: 22px; display: flex; align-items: center; gap: 18px; margin-bottom: 18px;
  color: #fff;
}
.ramadan-status-card.active { background: linear-gradient(135deg, #1a2a14, #2c4a1f); }
.ramadan-status-card:not(.active) { background: var(--bg-elev); color: var(--text); }
.ramadan-status-icon { font-size: 42px; }
.ramadan-status-info { flex: 1; }
.ramadan-status-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ramadan-status-detail { font-size: 12.5px; opacity: 0.8; margin-top: 2px; }
.ramadan-verse-card {
  background: linear-gradient(135deg, var(--brand-mist-2), var(--bg-elev));
  border: 1px solid var(--brand-soft); border-radius: var(--r-md);
  padding: 24px; text-align: center; margin-bottom: 18px;
}
.ramadan-verse-label { font-size: 11px; color: var(--brand-deep); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
[data-theme="dark"] .ramadan-verse-label { color: var(--brand-soft); }
.ramadan-verse-text { font-family: var(--font-display-2); font-size: 22px; line-height: 1.7; margin-bottom: 8px; }
.ramadan-verse-source { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.ramadan-tarawih-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); padding: 20px; text-align: center; margin-bottom: 18px;
}
.ramadan-tarawih-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.ramadan-tarawih-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.ramadan-dua-section { margin-bottom: 18px; }
.ramadan-dua-section h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; }
.ramadan-dua-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 14px 18px;
  font-family: var(--font-display-2); font-size: 15px; line-height: 1.7; margin-bottom: 8px;
  border-inline-start: 3px solid var(--brand-soft);
}
.ramadan-last10-card {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), var(--bg-elev));
  border: 1px solid var(--gold-soft); border-radius: var(--r-md);
  padding: 20px; margin-top: 18px;
}
.ramadan-last10-card h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 12px; color: var(--gold); }
.ramadan-inactive-card { padding: 24px; text-align: center; color: var(--text-muted); }

@media (max-width: 768px) {
  .tahajjud-countdown-card { flex-direction: column; text-align: center; padding: 22px 18px; }
  .tahajjud-streak { border: none; border-top: 1px solid rgba(255,255,255,0.15); padding: 12px 0 0; width: 100%; }
  .tasbih-template-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tasbih-template-card { padding: 16px 12px; }
  .tasbih-progress-ring { width: 180px; height: 180px; }
  .tasbih-current-count { font-size: 44px; }
  .tasbih-tap-btn { padding: 22px; font-size: 18px; }
  .focus-timer { font-size: 48px; }
  .quiz-card { padding: 22px 18px; }
  .quiz-question { font-size: 17px; }
}
