/* ============================================================
   SAKINA — Unified Design Layer
   Atmospheric upgrades for Quran Reader, Tajweed/Recite,
   Surah List, and Upgrade screens
   ============================================================ */

/* ============================================================
   QURAN READER — Parchment/Manuscript Atmosphere
   ============================================================ */

.quran-screen {
  background: linear-gradient(175deg, #F7F0E3 0%, #FAFAF7 12%, #FAFAF7 85%, #F3ECD8 100%);
  position: relative;
}

/* Subtle parchment texture via noise overlay */
.quran-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(180,160,120,0.06) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(160,140,100,0.04) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(180,160,120,0.05) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 80%, rgba(160,140,100,0.04) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 90%, rgba(180,160,120,0.03) 0%, transparent 100%);
}

/* Warm header area */
.quran-screen .screen-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, transparent 100%);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.quran-screen .screen-header__title {
  font-family: var(--f-display);
  font-weight: 600;
  color: #2A2520;
}

.quran-screen .screen-header__sub {
  color: rgba(42,37,32,0.5);
}

/* Surah play button — golden warmth */
.quran-screen .surah-play-btn {
  background: linear-gradient(135deg, var(--emerald), #0A5A4E);
  box-shadow: 0 2px 12px rgba(13,107,94,0.25);
}

/* Tabs — warm parchment feel */
.quran-screen .quran-tabs {
  position: relative;
  z-index: 1;
  background: rgba(243,236,216,0.5);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.quran-screen .qtab {
  position: relative;
  color: rgba(42,37,32,0.5);
  transition: color 250ms ease, background 250ms ease;
}

.quran-screen .qtab.active {
  color: var(--emerald);
  background: rgba(13,107,94,0.06);
  border-radius: 8px;
}

.quran-screen .qtab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--emerald);
  border-radius: 1px;
}

/* Verse cards — manuscript aesthetic */
.quran-screen .quran-verses {
  position: relative;
  z-index: 1;
}

.quran-screen .verse-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(42,37,32,0.04);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
  position: relative;
  overflow: hidden;
}

.quran-screen .verse-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,37,32,0.06);
}

/* Decorative bismillah pattern on first verse */
.quran-screen .verse-card:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,0.2) 30%, rgba(201,168,76,0.35) 50%, rgba(201,168,76,0.2) 70%, transparent 95%);
}

/* Verse number badge */
.quran-screen .verse-card__ref {
  color: var(--emerald);
  font-weight: 600;
  opacity: 0.8;
}

/* Arabic text — richer feel */
.quran-screen .verse-card__arabic {
  color: #1A1815;
  text-shadow: 0 0 40px rgba(201,168,76,0.06);
}

/* Per-verse play button */
.quran-screen .verse-card__action {
  color: var(--emerald);
  opacity: 0.6;
  transition: opacity 200ms ease, transform 200ms ease;
}

.quran-screen .verse-card__action:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Verse highlighting state */
.quran-screen .verse-card.playing {
  border-color: rgba(13,107,94,0.2);
  background: rgba(13,107,94,0.03);
  box-shadow: 0 0 20px rgba(13,107,94,0.06);
}

/* ============================================================
   SURAH LIST — Warm library feel
   ============================================================ */

.surah-list-screen {
  background: linear-gradient(175deg, #F5EFE0 0%, #FAFAF7 15%, #FAFAF7 100%);
  position: relative;
}

.surah-list-screen .screen-header {
  background: linear-gradient(180deg, rgba(201,168,76,0.05) 0%, transparent 100%);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.surah-list-screen .screen-header__title {
  font-family: var(--f-display);
  font-weight: 600;
  color: #2A2520;
}

/* Search — warm glass */
.surah-list-screen .surah-search-wrap {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.surah-list-screen .surah-search-wrap:focus-within {
  border-color: rgba(13,107,94,0.3);
  box-shadow: 0 0 0 3px rgba(13,107,94,0.06);
}

/* Surah items — warm paper rows */
.surah-list-screen .surah-item {
  border-bottom: none;
  transition: background 200ms ease;
}

.surah-list-screen .surah-item:active {
  background: var(--surface-el);
}

.surah-list-screen .surah-item__num {
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
}

.surah-list-screen .surah-item__ar {
  color: rgba(42,37,32,0.35);
  font-family: var(--f-arabic);
}

/* ============================================================
   TAJWEED / RECITE — Immersive coaching atmosphere
   ============================================================ */

.tajweed-screen {
  background: linear-gradient(175deg, #F7F4ED 0%, #FAFAF7 12%, #FAFAF7 88%, #F5F0E5 100%);
  position: relative;
}

.tajweed-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(13,107,94,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(201,168,76,0.03) 0%, transparent 50%);
}

.tajweed-screen .screen-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,107,94,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(13,107,94,0.06);
}

.tajweed-screen .screen-header__title {
  font-family: var(--f-display);
  font-weight: 600;
  color: #2A2520;
}

/* Picker subtitle */
.tajweed-screen .recite-picker__sub {
  position: relative;
  z-index: 1;
  color: rgba(42,37,32,0.55);
}

/* Section titles */
.tajweed-screen .recite-section-title {
  position: relative;
  z-index: 1;
  color: rgba(42,37,32,0.45);
}

/* Popular cards — premium glass feel */
.tajweed-screen .recite-grid {
  position: relative;
  z-index: 1;
}

.tajweed-screen .recite-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(42,37,32,0.04);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease, border-color 300ms ease;
  position: relative;
  overflow: hidden;
}

.tajweed-screen .recite-card:active {
  transform: scale(0.97);
}

.tajweed-screen .recite-card--featured {
  background: linear-gradient(145deg, var(--emerald), #0A5A4E);
  border-color: rgba(13,107,94,0.3);
  box-shadow: 0 4px 16px rgba(13,107,94,0.15);
}

.tajweed-screen .recite-card--featured::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.tajweed-screen .recite-card__emoji {
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.tajweed-screen .recite-card__name {
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.tajweed-screen .recite-card__detail {
  position: relative;
  z-index: 1;
}

/* List items — warm dividers */
.tajweed-screen .recite-list {
  position: relative;
  z-index: 1;
}

.tajweed-screen .recite-list-item {
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: background 200ms ease;
}

.tajweed-screen .recite-list-item:active {
  background: rgba(13,107,94,0.03);
}

.tajweed-screen .recite-list-item__num {
  color: var(--emerald);
  font-weight: 600;
  opacity: 1;
}

.tajweed-screen .recite-list-item__ar {
  color: rgba(42,37,32,0.3);
  font-family: var(--f-arabic);
}

/* Teaching container — focused coaching atmosphere */
.tajweed-screen .teach-container {
  position: relative;
  z-index: 1;
}

.tajweed-screen .teach-verse {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(42,37,32,0.04);
}

.tajweed-screen .teach-verse__ar {
  color: #1A1815;
  text-shadow: 0 0 40px rgba(201,168,76,0.06);
}

/* Record button — more presence */
.tajweed-screen .record-btn {
  box-shadow: 0 4px 24px rgba(201,60,60,0.15);
}

/* Feedback cards */
.tajweed-screen .teach-feedback {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Progress bar — warm gold gradient */
.tajweed-screen .teach-progress {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(201,168,76,0.08);
}

.tajweed-screen .teach-progress__bar {
  background: linear-gradient(90deg, var(--emerald), #0FB99B);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(13,107,94,0.2);
}

/* Listen button */
.tajweed-screen .listen-btn {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(13,107,94,0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.tajweed-screen .listen-btn:active {
  border-color: rgba(13,107,94,0.25);
  box-shadow: 0 0 16px rgba(13,107,94,0.08);
}

/* ============================================================
   UPGRADE — Cinematic Premium Conversion
   ============================================================ */

.upgrade-screen {
  background: linear-gradient(
    175deg,
    #040A12 0%,
    #081420 15%,
    #0C2838 30%,
    #0A3D35 50%,
    #0D5248 65%,
    #0A3D35 80%,
    #081420 100%
  );
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Calligraphy watermark */
.upgrade-screen::before {
  content: 'بِسْمِ ٱللَّهِ';
  position: absolute;
  font-family: var(--f-arabic);
  font-size: 120px;
  line-height: 1;
  color: rgba(255,255,255,0.025);
  top: 5%;
  right: -10%;
  transform: rotate(-5deg);
  pointer-events: none;
  white-space: nowrap;
  animation: calligFloat 12s ease-in-out infinite;
}

.upgrade-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(1px 1px at 15% 25%, rgba(201,168,76,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(201,168,76,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(201,168,76,0.12) 0%, transparent 100%);
  animation: particleDrift 20s ease-in-out infinite alternate;
}

/* Content layer */
.upgrade-screen .upgrade-content {
  position: relative;
  z-index: 1;
  padding: 44px 24px 28px;
}

/* Compact title */
.upgrade-screen .upgrade-title {
  font-size: 38px;
  margin-bottom: 6px;
}

.upgrade-screen .upgrade-subtitle {
  margin-bottom: 22px;
}

/* Tighter feature spacing for dark mode */
.upgrade-screen .upgrade-features {
  margin-bottom: 18px;
}

.upgrade-screen .uf-item {
  padding: 12px 16px;
  margin-bottom: 6px;
}

.upgrade-screen .uf-item:last-child {
  margin-bottom: 0;
}

/* Compact plans */
.upgrade-screen .upgrade-plans {
  margin-bottom: 16px;
}

/* Close button */
.upgrade-screen .upgrade-close {
  color: rgba(245,240,232,0.5);
  transition: color 200ms ease;
  position: relative;
  z-index: 2;
}

.upgrade-screen .upgrade-close:hover {
  color: rgba(245,240,232,0.8);
}

/* Badge */
.upgrade-screen .upgrade-badge {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.1));
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Title */
.upgrade-screen .upgrade-title {
  font-family: var(--f-display);
  color: #F5F0E8;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Subtitle */
.upgrade-screen .upgrade-subtitle {
  color: rgba(245,240,232,0.55);
  font-size: 16px;
  line-height: 1.55;
}

/* Feature items */
.upgrade-screen .uf-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 250ms ease;
}

.upgrade-screen .uf-item:hover {
  border-color: rgba(201,168,76,0.15);
}

.upgrade-screen .uf-icon {
  font-size: 24px;
}

.upgrade-screen .uf-text strong {
  color: #F5F0E8;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.upgrade-screen .uf-text span {
  color: rgba(245,240,232,0.45);
  font-size: 13px;
}

/* Plan cards */
.upgrade-screen .plan-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.upgrade-screen .plan-card.selected,
.upgrade-screen .plan-card--featured {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 24px rgba(201,168,76,0.1);
}

.upgrade-screen .plan-card__badge {
  background: linear-gradient(135deg, var(--gold), #D4B85C);
  color: #1A1A1A;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 6px;
}

.upgrade-screen .plan-card__price {
  color: #F5F0E8;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
}

.upgrade-screen .plan-card__period {
  color: rgba(245,240,232,0.5);
  font-size: 14px;
}

.upgrade-screen .plan-card__save {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
}

/* CTA Button — golden glow */
.upgrade-screen .upgrade-cta {
  background: linear-gradient(135deg, var(--gold), #D4B85C);
  color: #1A1A1A;
  font-weight: 700;
  font-size: 17px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(201,168,76,0.3), 0 0 60px rgba(201,168,76,0.08);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
  border: none;
  padding: 17px;
}

.upgrade-screen .upgrade-cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
}

/* Note */
.upgrade-screen .upgrade-note {
  color: rgba(245,240,232,0.35);
  font-size: 13px;
}

/* ============================================================
   ICON SYSTEM — Unified sizing, weight, transitions
   ============================================================ */

/* Tab bar active icon — slightly heavier stroke for emphasis */
.tab.active svg {
  stroke-width: 2;
}

/* Onboarding card icons — glass container */
.onb-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onb-card__icon svg {
  color: rgba(245,240,232,0.7);
  opacity: 0.85;
}

.onb-card.active .onb-card__icon svg {
  color: var(--gold);
  opacity: 1;
}

/* Onboarding note icon */
.onb-note__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Recite card SVG icons — replace emoji sizing */
.recite-card__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
}

.recite-card__emoji svg {
  color: currentColor;
  opacity: 0.8;
}

.recite-card--featured .recite-card__emoji svg {
  color: #fff;
  opacity: 0.9;
}

/* Upgrade feature icons */
.upgrade-screen .uf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Milestone icons */
.milestone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Journey streak icon */
.journey-streak__flame {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Daily card icons — stroke style matching */
.hv3-daily-card__icon svg {
  color: var(--emerald);
}

/* Quick action icons — subtle transition on tap */
.hv3-action__icon svg {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hv3-action:active .hv3-action__icon svg {
  transform: scale(0.9);
}

/* Back button — clean hit target */
.back-btn svg {
  transition: transform 200ms ease;
}

.back-btn:active svg {
  transform: translateX(-2px);
}

/* ============================================================
   SHARED — Tab bar refinements on atmospheric screens
   ============================================================ */

.quran-screen .tab-bar,
.tajweed-screen .tab-bar,
.surah-list-screen .tab-bar {
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201,168,76,0.06);
}

/* ============================================================
   ANIMATIONS (shared with onboarding)
   ============================================================ */

@keyframes calligFloat {
  0%, 100% { transform: translateY(0) rotate(var(--callig-rotate, -5deg)); }
  50% { transform: translateY(-6px) rotate(var(--callig-rotate, -5deg)); }
}

/* Gentle fade-in for screen transitions */
.quran-screen .verse-card,
.tajweed-screen .recite-card,
.tajweed-screen .recite-list-item {
  opacity: 0;
  transform: translateY(8px);
  animation: unifiedFadeUp 400ms ease-out forwards;
}

.quran-screen .verse-card:nth-child(1) { animation-delay: 100ms; }
.quran-screen .verse-card:nth-child(2) { animation-delay: 160ms; }
.quran-screen .verse-card:nth-child(3) { animation-delay: 220ms; }
.quran-screen .verse-card:nth-child(4) { animation-delay: 280ms; }
.quran-screen .verse-card:nth-child(5) { animation-delay: 340ms; }
.quran-screen .verse-card:nth-child(6) { animation-delay: 400ms; }
.quran-screen .verse-card:nth-child(7) { animation-delay: 460ms; }

.tajweed-screen .recite-card:nth-child(1) { animation-delay: 100ms; }
.tajweed-screen .recite-card:nth-child(2) { animation-delay: 180ms; }
.tajweed-screen .recite-card:nth-child(3) { animation-delay: 260ms; }
.tajweed-screen .recite-card:nth-child(4) { animation-delay: 340ms; }

@keyframes unifiedFadeUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   VERSE SKIP DRAWER — inside teach mode
   ============================================================ */
.teach-step__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald-lt, rgba(13,107,94,0.08));
  border: 1px solid var(--emerald, #0D6B5E);
  border-radius: var(--r-full, 100px);
  padding: 4px 12px 4px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.teach-step__toggle:hover,
.teach-step__toggle:active {
  background: rgba(13,107,94,0.15);
}
.teach-step__chevron {
  color: var(--emerald);
  transition: transform 0.25s var(--ease-settle, ease);
}
.teach-step__toggle.open .teach-step__chevron {
  transform: rotate(180deg);
}

.verse-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-settle, ease), opacity 0.25s;
  opacity: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 12px);
  margin-bottom: var(--sp-12, 12px);
}
.verse-drawer.open {
  max-height: 280px;
  opacity: 1;
}
.verse-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  z-index: 1;
}
.verse-drawer__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
}
.verse-drawer__close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 2px;
  border-radius: var(--r-full, 100px);
}
.verse-drawer__close:hover { color: var(--text); }
.verse-drawer__list {
  overflow-y: auto;
  max-height: 234px;
  padding: 0 6px 8px;
  -webkit-overflow-scrolling: touch;
}
.verse-drawer__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--r-md, 8px);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.verse-drawer__item:hover,
.verse-drawer__item:active {
  background: var(--surface-el, rgba(0,0,0,0.03));
}
.verse-drawer__item.active {
  background: var(--emerald-lt, rgba(13,107,94,0.08));
}
.verse-drawer__item-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-lt, rgba(13,107,94,0.08));
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full, 100px);
  flex-shrink: 0;
  margin-top: 1px;
}
.verse-drawer__item.active .verse-drawer__item-num {
  background: var(--emerald);
  color: #fff;
}
.verse-drawer__item-ar {
  font-family: var(--f-arabic, 'Amiri', serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  direction: rtl;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 260px;
}
.verse-drawer__item-check {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--emerald);
  opacity: 0;
  transition: opacity 0.15s;
}
.verse-drawer__item.active .verse-drawer__item-check {
  opacity: 1;
}

/* ============================================================
   RANGE PICKER OVERLAY — for long surahs
   ============================================================ */
.range-picker-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: var(--bg, #FAFAF7);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.range-picker-overlay.open {
  display: block;
  animation: unifiedFadeUp 0.3s var(--ease-settle, ease) both;
}
.range-picker {
  padding: 0 var(--sp-20, 20px) var(--sp-24, 24px);
}
.range-picker__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 20px;
}
.range-picker__title-wrap { flex: 1; }
.range-picker__name {
  font-family: var(--f-heading, 'Playfair Display', serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.range-picker__sub {
  font-size: 13px;
  color: var(--text3);
  margin: 2px 0 0;
}
.range-picker__section {
  margin-bottom: 24px;
}
.range-picker__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 10px;
}

/* Suggested chunks as chips */
.range-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.range-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 12px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 120px;
  flex: 1;
}
.range-chip:hover,
.range-chip:active {
  border-color: var(--emerald);
  background: var(--emerald-lt, rgba(13,107,94,0.06));
}
.range-chip__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.range-chip__detail {
  font-size: 11px;
  color: var(--text3);
}

/* Custom range inputs */
.range-custom {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.range-input-group {
  flex: 1;
}
.range-input-label {
  display: block;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
}
.range-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 8px);
  text-align: center;
  -moz-appearance: textfield;
}
.range-input::-webkit-inner-spin-button,
.range-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.range-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13,107,94,0.1);
}
.range-to {
  font-size: 16px;
  color: var(--text3);
  margin-bottom: 10px;
}
.range-start-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: var(--r-lg, 12px);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.range-start-btn:hover { background: var(--emerald-dk, #0a5a4e); }

.range-all-btn {
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 12px);
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.range-all-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* ============================================================
   SURAH SEARCH — in recite picker
   ============================================================ */
.recite-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.recite-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}
.recite-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  font-family: var(--f-body, 'Satoshi', sans-serif);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 8px);
  box-sizing: border-box;
}
.recite-search:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13,107,94,0.1);
}
.recite-search::placeholder { color: var(--text3); }

.recite-list__loading {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text3);
}
.recite-list-item__verses {
  font-size: 11px;
  color: var(--text3);
}

/* ============================================================
   REFLECTION OVERLAY — AI-powered verse reflection
   ============================================================ */
.reflect-overlay {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-settle, cubic-bezier(0.25, 0.1, 0.25, 1));
}
.reflect-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.reflect-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.reflect-overlay__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 82%;
  background: var(--surface, #FAFAF7);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-settle, cubic-bezier(0.25, 0.1, 0.25, 1));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.reflect-overlay.active .reflect-overlay__panel {
  transform: translateY(0);
}

.reflect-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  flex-shrink: 0;
}
.reflect-overlay__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reflect-overlay__icon {
  color: var(--emerald, #0D6B5E);
  flex-shrink: 0;
}
.reflect-overlay__title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text1, #1a1a1a);
  margin: 0;
  letter-spacing: -0.01em;
}
.reflect-overlay__close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3, #999);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.reflect-overlay__close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text1);
}

/* Verse recap section */
.reflect-overlay__verse {
  padding: 0 20px 14px;
  flex-shrink: 0;
}
.reflect-overlay__arabic {
  font-family: 'Amiri', serif;
  font-size: 20px;
  line-height: 1.7;
  text-align: right;
  direction: rtl;
  color: var(--text1, #1a1a1a);
  margin: 0 0 6px;
}
.reflect-overlay__translation {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2, #555);
  margin: 0 0 4px;
  font-style: italic;
}
.reflect-overlay__ref {
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  color: var(--emerald, #0D6B5E);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
}

.reflect-overlay__divider {
  height: 1px;
  background: var(--border, rgba(0,0,0,0.08));
  margin: 0 20px;
  flex-shrink: 0;
}

/* Content area — scrollable */
.reflect-overlay__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
  -webkit-overflow-scrolling: touch;
}

/* Loading state */
.reflect-overlay__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 14px;
}
.reflect-overlay__loading p {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: var(--text3, #999);
  margin: 0;
}

/* Loading dots animation */
.reflect-loading-dots {
  display: flex;
  gap: 6px;
}
.reflect-loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald, #0D6B5E);
  opacity: 0.3;
  animation: reflectDotPulse 1.2s ease-in-out infinite;
}
.reflect-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.reflect-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes reflectDotPulse {
  0%, 60%, 100% { opacity: 0.2; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1.1); }
}

/* Reflection text content */
.reflect-overlay__text {
  display: none;
}
.reflect-overlay__text p {
  font-family: 'Satoshi', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text1, #1a1a1a);
  margin: 0 0 12px;
}
.reflect-overlay__text p:last-child {
  margin-bottom: 0;
}
.reflect-overlay__text strong {
  color: var(--emerald, #0D6B5E);
  font-weight: 600;
}

/* Section titles inside reflection */
.reflect-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1, #1a1a1a);
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reflect-section-title:first-child {
  margin-top: 0;
}
.reflect-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald, #0D6B5E);
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Error state */
.reflect-error {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: var(--text3, #999);
  text-align: center;
  padding: 30px 0;
}
