/* ════════════════════════════════════════════════════════
   HOOR — Premium iOS Islamic App
   Luxury Gold + White Theme
   Production-Level CSS
   ════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  /* Colors */
  --gold-50: #FFFDF5;
  --gold-100: #FFF8E1;
  --gold-200: #FFECB3;
  --gold-300: #FFE082;
  --gold-400: #FFD54F;
  --gold-500: #D4AF37;
  --gold-600: #C5A028;
  --gold-700: #B8941F;
  --gold-800: #A07D1A;
  --gold-900: #8B6914;

  --white: #FFFFFF;
  --warm-white: #FAFAF8;
  --off-white: #F5F5F0;
  --cream: #F0EDE8;
  --ivory: #FFFFF0;

  --charcoal: #1C1C1E;
  --dark-text: #2C2C2E;
  --medium-text: #636366;
  --light-text: #8E8E93;
  --muted-text: #AEAEB2;
  --placeholder: #C7C7CC;

  --separator: #E5E5EA;
  --separator-light: #F2F2F7;
  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 8px 32px rgba(212, 175, 55, 0.25);
  --shadow-inner: inset 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Blur */
  --blur-nav: saturate(180%) blur(20px);
  --blur-modal: saturate(150%) blur(16px);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Typography */
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-Index Scale */
  --z-base: 1;
  --z-nav: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-loading: 500;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-stack);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
}

/* ─── DESKTOP BLOCK ─── */
.desktop-block {
  display: none;
}

@media (min-width: 1024px) {
  .home-page,
  .dua-reader-page,
  .bottom-nav,
  .side-nav,
  .app-header,
  .reader-header {
    display: none !important;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--warm-white);
  }

  .desktop-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10);
    max-width: 480px;
    margin: 0 auto;
  }

  .desktop-block .desktop-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-gold-lg);
    animation: desktopFloat 3s ease-in-out infinite;
  }

  .desktop-block .desktop-icon i {
    font-size: 36px;
    color: var(--white);
  }

  .desktop-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
  }

  .desktop-block p {
    font-size: 17px;
    color: var(--medium-text);
    line-height: 1.6;
    margin-bottom: var(--space-8);
  }

  .desktop-block .desktop-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
  }

  @keyframes desktopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* ─── APP CONTAINER ─── */
.home-page,
.dua-reader-page {
  max-width: 430px;
  margin: 0 auto;
  background: var(--warm-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ─── HEADER ─── */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 0.5px solid var(--separator);
}

.app-header .menu-btn,
.app-header .more-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.app-header .menu-btn:active,
.app-header .more-btn:active {
  transform: scale(0.92);
  background: var(--gold-100);
}

.app-header .menu-btn i,
.app-header .more-btn i {
  font-size: 18px;
  color: var(--charcoal);
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-700);
  text-transform: uppercase;
}

/* ─── SIDE NAVIGATION DRAWER ─── */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-drawer);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.side-nav.open {
  pointer-events: all;
  opacity: 1;
}

.side-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.side-nav.open .side-nav-overlay {
  opacity: 1;
}

.side-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

.side-nav.open .side-nav-content {
  transform: translateX(0);
}

.side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  background: var(--gold-50);
  border-bottom: 0.5px solid var(--border-subtle);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.logo-icon i {
  font-size: 20px;
  color: var(--white);
}

.logo-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 12px;
  color: var(--light-text);
  font-weight: 500;
}

.close-nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--medium-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.close-nav:active {
  transform: scale(0.9);
  background: var(--gold-100);
}

.nav-user-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border-bottom: 0.5px solid var(--separator-light);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  border: 2px solid var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar i {
  font-size: 20px;
  color: var(--gold-600);
}

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

.user-greeting {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

.nav-links {
  list-style: none;
  padding: var(--space-2) 0;
  flex: 1;
  overflow-y: auto;
}

.nav-links li {
  margin: 2px var(--space-3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--dark-text);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-link i {
  width: 28px;
  text-align: center;
  font-size: 17px;
  color: var(--medium-text);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link:active {
  background: var(--gold-50);
}

.nav-link.active {
  background: var(--gold-100);
  color: var(--gold-800);
}

.nav-link.active i {
  color: var(--gold-600);
}

.nav-footer {
  padding: var(--space-4) var(--space-5);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--separator-light);
  text-align: center;
}

.nav-footer p {
  font-size: 12px;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ─── MAIN CONTENT ─── */
.main-content {
  padding: var(--space-4);
  padding-bottom: calc(var(--space-6) + 80px);
}

/* ─── PRAYER TIMES CARD (iOS Style) ─── */
.prayer-section-ios {
  margin-bottom: var(--space-5);
}

.prayer-card-ios {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.prayer-card-ios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-500);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.prayer-card-ios:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

.prayer-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.prayer-location-ios {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
}

.prayer-location-ios i {
  font-size: 14px;
}

.prayer-date-ios {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
}

.prayer-current-ios {
  text-align: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.prayer-current-label-ios {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.prayer-current-name-ios {
  font-size: 32px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-1);
  letter-spacing: -0.5px;
}

.prayer-current-time-ios {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-600);
}

.countdown-ios {
  text-align: center;
  margin-bottom: var(--space-4);
}

.countdown-label-ios {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.countdown-time-ios {
  font-size: 36px;
  font-weight: 300;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.countdown-time-ios .colon {
  color: var(--gold-400);
  margin: 0 2px;
}

.next-prayer-ios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--gold-50);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
}

.next-dot-ios {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.next-label-ios {
  font-size: 13px;
  color: var(--medium-text);
  font-weight: 500;
}

.next-name-ios {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.next-time-ios {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-600);
}

.tap-hint-ios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 500;
}

.tap-hint-ios i {
  font-size: 10px;
  color: var(--gold-400);
}

/* ─── HERO CAROUSEL ─── */
.hero-ios {
  margin-bottom: var(--space-5);
  position: relative;
}

.hero-scroll-ios {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-4);
  margin: 0 calc(-1 * var(--space-4));
  scrollbar-width: none;
}

.hero-scroll-ios::-webkit-scrollbar {
  display: none;
}

.hero-card-ios {
  flex: 0 0 280px;
  height: 180px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.hero-card-ios:active {
  transform: scale(0.97);
}

.hero-card-ios img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-ios::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.video-badge-ios {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--gold-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.play-btn-ios {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.play-btn-ios i {
  font-size: 20px;
  color: var(--gold-600);
  margin-left: 3px;
}

.play-btn-ios:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.today-card-ios {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
}

.today-icon-ios {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 2px solid var(--gold-200);
}

.today-icon-ios i {
  font-size: 22px;
  color: var(--gold-600);
}

.today-title-ios {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
  letter-spacing: 0.5px;
}

.today-arabic-ios {
  font-size: 16px;
  color: var(--dark-text);
  line-height: 1.8;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-2);
}

.today-ref-ios {
  font-size: 11px;
  color: var(--light-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quran-card-ios {
  background: var(--gold-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
}

.quran-arabic-ios {
  font-size: 20px;
  color: var(--white);
  line-height: 1.8;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quran-ref-ios {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--separator);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.hero-dot.active {
  width: 24px;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
}

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
  letter-spacing: -0.3px;
  padding: 0 var(--space-1);
}

/* ─── CATEGORIES ─── */
.categories-section,
.extra-categories-section {
  margin-bottom: var(--space-6);
}

.categories-list,
.extra-categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category-item,
.extra-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.category-item:active,
.extra-category-item:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-xs);
}

.category-icon,
.extra-category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.category-item:active .category-icon,
.extra-category-item:active .extra-category-icon {
  transform: scale(0.9);
}

.category-icon.morning {
  background: var(--gold-50);
  color: var(--gold-600);
}

.category-icon.evening {
  background: #F0F0FF;
  color: #6366F1;
}

.category-icon.sleep {
  background: #F0F4FF;
  color: #3B82F6;
}

.category-icon.waking {
  background: #FFF7ED;
  color: #F59E0B;
}

.category-icon.duas {
  background: #F0FDF4;
  color: #22C55E;
}

.extra-category-icon.sunna {
  background: #FFFBEB;
  color: #F59E0B;
}

.extra-category-icon.biography {
  background: #FEF2F2;
  color: #EF4444;
}

.extra-category-icon.quran-dua {
  background: #ECFDF5;
  color: #10B981;
}

.extra-category-icon.benefits {
  background: #FDF4FF;
  color: #A855F7;
}

.extra-category-icon.names {
  background: var(--gold-50);
  color: var(--gold-600);
}

.extra-category-icon.hajj {
  background: #FFF1F2;
  color: #E11D48;
}

.category-name,
.extra-category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  text-align: center;
  line-height: 1.3;
}

.names-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-600);
}

/* ─── PRAYER TRACKER ─── */
.tracker-section-ios {
  margin-bottom: var(--space-5);
}

.tracker-card-ios {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.tracker-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.tracker-title-ios {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
}

.tracker-icon-ios {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracker-icon-ios i {
  font-size: 14px;
  color: var(--gold-600);
}

.tracker-badge-ios {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
}

.prayers-row-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  position: relative;
}

.prayers-row-ios::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--separator-light);
  z-index: 0;
}

.prayer-node-ios {
  position: relative;
  z-index: 1;
}

.prayer-circle-ios {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.prayer-circle-ios i {
  font-size: 14px;
  color: var(--separator);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.prayer-node-ios.completed .prayer-circle-ios {
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.prayer-node-ios.completed .prayer-circle-ios i {
  color: var(--white);
  opacity: 1;
}

.prayer-node-ios.pending .prayer-circle-ios:active {
  border-color: var(--gold-400);
  transform: scale(0.9);
}

.prayer-labels-ios {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.prayer-label-ios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.prayer-label-name-ios {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
}

.prayer-label-time-ios {
  font-size: 11px;
  color: var(--light-text);
  font-weight: 500;
}

.tracker-progress-ios {
  height: 6px;
  background: var(--separator-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.tracker-progress-fill-ios {
  height: 100%;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  transition: width var(--duration-slow) var(--ease-out);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.tracker-complete-ios {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--gold-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  animation: trackerCompleteIn 0.5s var(--ease-spring) forwards;
}

.tracker-complete-ios.visible {
  display: flex;
}

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

.tracker-complete-ios i {
  color: var(--gold-500);
  font-size: 16px;
  animation: starSpin 2s ease-in-out infinite;
}

@keyframes starSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.tracker-complete-ios span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-700);
}

/* ─── BOTTOM NAVIGATION ─── */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: calc(100% - var(--space-8));
  max-width: 380px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-radius: var(--radius-2xl);
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  color: var(--light-text);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  min-width: 56px;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-spring);
}

.nav-icon i {
  font-size: 20px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-item.active {
  color: var(--gold-600);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.nav-item.active .nav-icon i {
  color: var(--gold-600);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  animation: navDotIn 0.3s var(--ease-spring) forwards;
}

@keyframes navDotIn {
  from { transform: translateX(-50%) scale(0); }
  to { transform: translateX(-50%) scale(1); }
}

/* ─── DUA READER PAGE ─── */
.dua-reader-page {
  display: none;
}

.dua-reader-page.active {
  display: block;
}

.reader-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 0.5px solid var(--separator);
  gap: var(--space-3);
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.back-btn:active {
  transform: scale(0.9);
  background: var(--gold-100);
}

.back-btn i {
  font-size: 16px;
  color: var(--charcoal);
}

.header-tabs {
  display: flex;
  background: var(--off-white);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex: 1;
  max-width: 240px;
}

.header-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--medium-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header-tab i {
  font-size: 14px;
}

.header-tab.active {
  background: var(--white);
  color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}

.bookmark-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.bookmark-btn:active {
  transform: scale(0.9);
}

.bookmark-btn i {
  font-size: 16px;
  color: var(--charcoal);
  transition: all var(--duration-fast) var(--ease-out);
}

.bookmark-btn.active i {
  color: var(--gold-500);
}

/* ─── CATEGORY HEADER ─── */
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-bottom: 0.5px solid var(--separator-light);
}

.category-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-200);
}

.category-header-icon i {
  font-size: 20px;
  color: var(--gold-600);
}

.category-header-name {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
}

.dua-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  background: var(--off-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

/* ─── TAB PANELS ─── */
.tab-panel {
  display: none;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-6) + 100px);
}

.tab-panel.active {
  display: block;
  animation: panelFadeIn 0.3s var(--ease-out);
}

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

/* ─── AUDIO PLAYER BAR ─── */
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}

.audio-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.audio-menu-btn:active {
  background: var(--off-white);
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--gold-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.audio-play-btn:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-gold-lg);
}

.audio-play-btn i {
  font-size: 16px;
  margin-left: 2px;
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: var(--separator-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-track {
  position: relative;
  height: 100%;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
  width: 0%;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.audio-progress:hover .progress-thumb,
.audio-progress:active .progress-thumb {
  opacity: 1;
}

.audio-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.audio-time span {
  font-size: 11px;
  font-weight: 600;
  color: var(--light-text);
  font-variant-numeric: tabular-nums;
}

/* ─── PROGRESS INDICATOR (Dots) ─── */
.progress-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.progress-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--separator);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.progress-indicator .dot.active {
  background: var(--gold-500);
  transform: scale(1.2);
}

.progress-indicator .dot.completed {
  background: var(--gold-300);
}

/* ─── DUA CONTAINER ─── */
.dua-container {
  margin-bottom: var(--space-5);
}

.dua-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  animation: cardSlideIn 0.4s var(--ease-out);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dua-card .arabic-text {
  font-size: 24px;
  line-height: 2;
  color: var(--charcoal);
  text-align: right;
  direction: rtl;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--separator-light);
}

.dua-card .transliteration {
  font-size: 15px;
  line-height: 1.7;
  color: var(--medium-text);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.dua-card .translation {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-text);
  margin-bottom: var(--space-3);
}

.dua-card .reference {
  font-size: 12px;
  color: var(--gold-600);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  background: var(--gold-50);
  border-radius: var(--radius-pill);
  display: inline-block;
}

.dua-card .count-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--gold-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
}

/* ─── COUNTER SECTION ─── */
.counter-section {
  position: fixed;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  gap: var(--space-3);
  z-index: var(--z-nav);
}

.counter-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--gold-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold-lg);
  position: relative;
  overflow: hidden;
}

.counter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--duration-fast) var(--ease-out);
}

.counter-btn:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-gold);
}

.counter-btn:active::after {
  background: rgba(255, 255, 255, 0.15);
}

.counter-number {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.next-btn {
  height: 56px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gold-500);
  background: var(--white);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 16px;
  font-weight: 700;
}

.next-btn:active {
  transform: scale(0.96);
  background: var(--gold-50);
}

.next-btn i {
  font-size: 14px;
}

/* ─── REMINDER CARD ─── */
.reminder-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.reminder-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.3px;
}

.reminder-category {
  margin-bottom: var(--space-4);
}

.reminder-category h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-600);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-50);
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid var(--border-gold);
}

.reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
}

/* ─── TOGGLE SWITCH ─── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--separator);
  border-radius: var(--radius-pill);
  transition: background var(--duration-normal) var(--ease-out);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold-500);
}

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

.toggle-switch input:active + .toggle-slider::before {
  width: 30px;
}

.toggle-switch input:checked:active + .toggle-slider::before {
  transform: translateX(16px);
}

/* ─── REMINDER SECTIONS ─── */
.reminder-section {
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-section:last-child {
  border-bottom: none;
}

.reminder-section-title {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── TIME PICKER ─── */
.time-picker {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  overflow: hidden;
}

.time-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  max-height: 120px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) var(--space-4);
}

.time-column::-webkit-scrollbar {
  display: none;
}

.time-item {
  font-size: 24px;
  font-weight: 600;
  color: var(--light-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  scroll-snap-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.time-item.active {
  color: var(--gold-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 28px;
  font-weight: 700;
}

/* ─── REMINDER OPTION BUTTONS ─── */
.reminder-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: left;
}

.reminder-option-btn:active {
  background: var(--gold-50);
  border-color: var(--border-gold);
  transform: scale(0.99);
}

.reminder-option-btn i:first-child {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.reminder-option-btn span {
  flex: 1;
}

.reminder-option-btn i:last-child {
  font-size: 12px;
  color: var(--muted-text);
}

/* ─── MODALS ─── */
.loc-modal-ios,
.full-modal-ios {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.loc-modal-ios.visible,
.full-modal-ios.visible {
  display: flex;
  animation: modalFadeIn 0.3s var(--ease-out);
}

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

.loc-box-ios,
.full-modal-box-ios {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.4s var(--ease-spring);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loc-icon-ios {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  border: 2px solid var(--gold-200);
}

.loc-icon-ios i {
  font-size: 32px;
  color: var(--gold-500);
}

.loc-box-ios h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  letter-spacing: -0.3px;
}

.loc-box-ios p {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.loc-btn-ios {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.loc-btn-ios.primary {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.loc-btn-ios.primary:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-gold-lg);
}

.loc-btn-ios.secondary {
  background: var(--off-white);
  color: var(--dark-text);
  border: 1px solid var(--separator);
}

.loc-btn-ios.secondary:active {
  background: var(--gold-50);
  border-color: var(--border-gold);
}

.full-modal-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--separator-light);
}

.full-modal-header-ios h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}

.full-modal-close-ios {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--medium-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.full-modal-close-ios:active {
  background: var(--gold-100);
  transform: scale(0.9);
}

.full-modal-body-ios {
  text-align: left;
}

.full-modal-body-ios .prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.full-modal-body-ios .prayer-row:last-child {
  border-bottom: none;
}

.full-modal-body-ios .prayer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
}

.full-modal-body-ios .prayer-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}

/* ─── LOADING SCREEN ─── */
.loading-screen-ios,
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
}

.loading-screen-ios.visible,
.loading-overlay.visible {
  display: flex;
}

.loading-ring-ios,
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--separator-light);
  border-top-color: var(--gold-500);
  border-radius: var(--radius-pill);
  animation: spin 0.8s linear infinite;
}

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

.loading-screen-ios p,
.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--medium-text);
}

/* ─── TOAST CONTAINER ─── */
.toast-container {
  position: fixed;
  top: calc(var(--space-4) + env(safe-area-inset-top));
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toastSlideDown 0.4s var(--ease-spring) forwards;
  pointer-events: auto;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-out {
  animation: toastSlideUp 0.3s var(--ease-out) forwards;
}

@keyframes toastSlideUp {
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-5);
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  border: 2px solid var(--gold-200);
}

.empty-icon i {
  font-size: 32px;
  color: var(--gold-400);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.btn-primary {
  padding: var(--space-3) var(--space-6);
  background: var(--gold-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-gold-lg);
}

/* ─── TAB CONTENT ─── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

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

/* ─── UTILITY ANIMATIONS ─── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: var(--off-white);
  background-image: linear-gradient(90deg, var(--off-white) 25%, var(--cream) 50%, var(--off-white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── SCROLLBAR STYLING ─── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-text);
}

/* ─── SELECTION ─── */
::selection {
  background: var(--gold-200);
  color: var(--charcoal);
}

/* ─── FOCUS STATES ─── */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── SAFE AREA SUPPORT ─── */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  }
  
  .reader-header {
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  }
  
  .side-nav-header {
    padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  }
  
  .bottom-nav {
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  
  .main-content {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom) + 80px);
  }
  
  .counter-section {
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }
  
  .nav-footer {
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }
  
  .toast-container {
    top: calc(var(--space-4) + env(safe-area-inset-top));
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ════════════════════════════════════════════════════════
   HOOR — Premium iOS Islamic App
   Luxury Gold + White Theme
   Production-Level CSS
   ════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  /* Colors */
  --gold-50: #FFFDF5;
  --gold-100: #FFF8E1;
  --gold-200: #FFECB3;
  --gold-300: #FFE082;
  --gold-400: #FFD54F;
  --gold-500: #D4AF37;
  --gold-600: #C5A028;
  --gold-700: #B8941F;
  --gold-800: #A07D1A;
  --gold-900: #8B6914;

  --white: #FFFFFF;
  --warm-white: #FAFAF8;
  --off-white: #F5F5F0;
  --cream: #F0EDE8;
  --ivory: #FFFFF0;

  --charcoal: #1C1C1E;
  --dark-text: #2C2C2E;
  --medium-text: #636366;
  --light-text: #8E8E93;
  --muted-text: #AEAEB2;
  --placeholder: #C7C7CC;

  --separator: #E5E5EA;
  --separator-light: #F2F2F7;
  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 8px 32px rgba(212, 175, 55, 0.25);
  --shadow-inner: inset 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Blur */
  --blur-nav: saturate(180%) blur(20px);
  --blur-modal: saturate(150%) blur(16px);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Typography */
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-Index Scale */
  --z-base: 1;
  --z-nav: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-loading: 500;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-stack);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
}

/* ─── DESKTOP BLOCK ─── */
.desktop-block {
  display: none;
}

@media (min-width: 1024px) {
  .home-page,
  .dua-reader-page,
  .bottom-nav,
  .side-nav,
  .app-header,
  .reader-header {
    display: none !important;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--warm-white);
  }

  .desktop-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10);
    max-width: 480px;
    margin: 0 auto;
  }

  .desktop-block .desktop-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-gold-lg);
    animation: desktopFloat 3s ease-in-out infinite;
  }

  .desktop-block .desktop-icon i {
    font-size: 36px;
    color: var(--white);
  }

  .desktop-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
  }

  .desktop-block p {
    font-size: 17px;
    color: var(--medium-text);
    line-height: 1.6;
    margin-bottom: var(--space-8);
  }

  .desktop-block .desktop-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
  }

  @keyframes desktopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* ─── APP CONTAINER ─── */
.home-page,
.dua-reader-page {
  max-width: 430px;
  margin: 0 auto;
  background: var(--warm-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ─── HEADER ─── */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 0.5px solid var(--separator);
}

.app-header .menu-btn,
.app-header .more-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.app-header .menu-btn:active,
.app-header .more-btn:active {
  transform: scale(0.92);
  background: var(--gold-100);
}

.app-header .menu-btn i,
.app-header .more-btn i {
  font-size: 18px;
  color: var(--charcoal);
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-700);
  text-transform: uppercase;
}

/* ─── SIDE NAVIGATION DRAWER ─── */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-drawer);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.side-nav.open {
  pointer-events: all;
  opacity: 1;
}

.side-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.side-nav.open .side-nav-overlay {
  opacity: 1;
}

.side-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

.side-nav.open .side-nav-content {
  transform: translateX(0);
}

.side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  background: var(--gold-50);
  border-bottom: 0.5px solid var(--border-subtle);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.logo-icon i {
  font-size: 20px;
  color: var(--white);
}

.logo-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 12px;
  color: var(--light-text);
  font-weight: 500;
}

.close-nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--medium-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.close-nav:active {
  transform: scale(0.9);
  background: var(--gold-100);
}

.nav-user-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border-bottom: 0.5px solid var(--separator-light);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  border: 2px solid var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar i {
  font-size: 20px;
  color: var(--gold-600);
}

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

.user-greeting {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

.nav-links {
  list-style: none;
  padding: var(--space-2) 0;
  flex: 1;
  overflow-y: auto;
}

.nav-links li {
  margin: 2px var(--space-3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--dark-text);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-link i {
  width: 28px;
  text-align: center;
  font-size: 17px;
  color: var(--medium-text);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link:active {
  background: var(--gold-50);
}

.nav-link.active {
  background: var(--gold-100);
  color: var(--gold-800);
}

.nav-link.active i {
  color: var(--gold-600);
}

.nav-footer {
  padding: var(--space-4) var(--space-5);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--separator-light);
  text-align: center;
}

.nav-footer p {
  font-size: 12px;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ─── MAIN CONTENT ─── */
.main-content {
  padding: var(--space-4);
  padding-bottom: calc(var(--space-6) + 80px);
}

/* ─── PRAYER TIMES CARD (iOS Style) ─── */
.prayer-section-ios {
  margin-bottom: var(--space-5);
}

.prayer-card-ios {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.prayer-card-ios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-500);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.prayer-card-ios:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

.prayer-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.prayer-location-ios {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
}

.prayer-location-ios i {
  font-size: 14px;
}

.prayer-date-ios {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
}

.prayer-current-ios {
  text-align: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.prayer-current-label-ios {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.prayer-current-name-ios {
  font-size: 32px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-1);
  letter-spacing: -0.5px;
}

.prayer-current-time-ios {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-600);
}

.countdown-ios {
  text-align: center;
  margin-bottom: var(--space-4);
}

.countdown-label-ios {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.countdown-time-ios {
  font-size: 36px;
  font-weight: 300;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.countdown-time-ios .colon {
  color: var(--gold-400);
  margin: 0 2px;
}

.next-prayer-ios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--gold-50);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
}

.next-dot-ios {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.next-label-ios {
  font-size: 13px;
  color: var(--medium-text);
  font-weight: 500;
}

.next-name-ios {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.next-time-ios {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-600);
}

.tap-hint-ios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 500;
}

.tap-hint-ios i {
  font-size: 10px;
  color: var(--gold-400);
}

/* ─── HERO CAROUSEL ─── */
.hero-ios {
  margin-bottom: var(--space-5);
  position: relative;
}

.hero-scroll-ios {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-4);
  margin: 0 calc(-1 * var(--space-4));
  scrollbar-width: none;
}

.hero-scroll-ios::-webkit-scrollbar {
  display: none;
}

.hero-card-ios {
  flex: 0 0 280px;
  height: 180px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.hero-card-ios:active {
  transform: scale(0.97);
}

.hero-card-ios img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-ios::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.video-badge-ios {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--gold-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.play-btn-ios {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.play-btn-ios i {
  font-size: 20px;
  color: var(--gold-600);
  margin-left: 3px;
}

.play-btn-ios:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.today-card-ios {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
}

.today-icon-ios {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 2px solid var(--gold-200);
}

.today-icon-ios i {
  font-size: 22px;
  color: var(--gold-600);
}

.today-title-ios {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
  letter-spacing: 0.5px;
}

.today-arabic-ios {
  font-size: 16px;
  color: var(--dark-text);
  line-height: 1.8;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-2);
}

.today-ref-ios {
  font-size: 11px;
  color: var(--light-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quran-card-ios {
  background: var(--gold-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
}

.quran-arabic-ios {
  font-size: 20px;
  color: var(--white);
  line-height: 1.8;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quran-ref-ios {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--separator);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.hero-dot.active {
  width: 24px;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
}

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
  letter-spacing: -0.3px;
  padding: 0 var(--space-1);
}

/* ─── CATEGORIES ─── */
.categories-section,
.extra-categories-section {
  margin-bottom: var(--space-6);
}

.categories-list,
.extra-categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category-item,
.extra-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.category-item:active,
.extra-category-item:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-xs);
}

.category-icon,
.extra-category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.category-item:active .category-icon,
.extra-category-item:active .extra-category-icon {
  transform: scale(0.9);
}

.category-icon.morning {
  background: var(--gold-50);
  color: var(--gold-600);
}

.category-icon.evening {
  background: #F0F0FF;
  color: #6366F1;
}

.category-icon.sleep {
  background: #F0F4FF;
  color: #3B82F6;
}

.category-icon.waking {
  background: #FFF7ED;
  color: #F59E0B;
}

.category-icon.duas {
  background: #F0FDF4;
  color: #22C55E;
}

.extra-category-icon.sunna {
  background: #FFFBEB;
  color: #F59E0B;
}

.extra-category-icon.biography {
  background: #FEF2F2;
  color: #EF4444;
}

.extra-category-icon.quran-dua {
  background: #ECFDF5;
  color: #10B981;
}

.extra-category-icon.benefits {
  background: #FDF4FF;
  color: #A855F7;
}

.extra-category-icon.names {
  background: var(--gold-50);
  color: var(--gold-600);
}

.extra-category-icon.hajj {
  background: #FFF1F2;
  color: #E11D48;
}

.category-name,
.extra-category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  text-align: center;
  line-height: 1.3;
}

.names-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-600);
}

/* ─── PRAYER TRACKER ─── */
.tracker-section-ios {
  margin-bottom: var(--space-5);
}

.tracker-card-ios {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.tracker-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.tracker-title-ios {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
}

.tracker-icon-ios {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracker-icon-ios i {
  font-size: 14px;
  color: var(--gold-600);
}

.tracker-badge-ios {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
}

.prayers-row-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  position: relative;
}

.prayers-row-ios::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--separator-light);
  z-index: 0;
}

.prayer-node-ios {
  position: relative;
  z-index: 1;
}

.prayer-circle-ios {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.prayer-circle-ios i {
  font-size: 14px;
  color: var(--separator);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.prayer-node-ios.completed .prayer-circle-ios {
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.prayer-node-ios.completed .prayer-circle-ios i {
  color: var(--white);
  opacity: 1;
}

.prayer-node-ios.pending .prayer-circle-ios:active {
  border-color: var(--gold-400);
  transform: scale(0.9);
}

.prayer-labels-ios {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.prayer-label-ios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.prayer-label-name-ios {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
}

.prayer-label-time-ios {
  font-size: 11px;
  color: var(--light-text);
  font-weight: 500;
}

.tracker-progress-ios {
  height: 6px;
  background: var(--separator-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.tracker-progress-fill-ios {
  height: 100%;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  transition: width var(--duration-slow) var(--ease-out);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.tracker-complete-ios {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--gold-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  animation: trackerCompleteIn 0.5s var(--ease-spring) forwards;
}

.tracker-complete-ios.visible {
  display: flex;
}

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

.tracker-complete-ios i {
  color: var(--gold-500);
  font-size: 16px;
  animation: starSpin 2s ease-in-out infinite;
}

@keyframes starSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.tracker-complete-ios span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-700);
}

/* ─── BOTTOM NAVIGATION ─── */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: calc(100% - var(--space-8));
  max-width: 380px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-radius: var(--radius-2xl);
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  color: var(--light-text);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  min-width: 56px;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-spring);
}

.nav-icon i {
  font-size: 20px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-item.active {
  color: var(--gold-600);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.nav-item.active .nav-icon i {
  color: var(--gold-600);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  animation: navDotIn 0.3s var(--ease-spring) forwards;
}

@keyframes navDotIn {
  from { transform: translateX(-50%) scale(0); }
  to { transform: translateX(-50%) scale(1); }
}

/* ─── DUA READER PAGE ─── */
.dua-reader-page {
  display: none;
}

.dua-reader-page.active {
  display: block;
}

.reader-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 0.5px solid var(--separator);
  gap: var(--space-3);
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.back-btn:active {
  transform: scale(0.9);
  background: var(--gold-100);
}

.back-btn i {
  font-size: 16px;
  color: var(--charcoal);
}

.header-tabs {
  display: flex;
  background: var(--off-white);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex: 1;
  max-width: 240px;
}

.header-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--medium-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header-tab i {
  font-size: 14px;
}

.header-tab.active {
  background: var(--white);
  color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}

.bookmark-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.bookmark-btn:active {
  transform: scale(0.9);
}

.bookmark-btn i {
  font-size: 16px;
  color: var(--charcoal);
  transition: all var(--duration-fast) var(--ease-out);
}

.bookmark-btn.active i {
  color: var(--gold-500);
}

/* ─── CATEGORY HEADER ─── */
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-bottom: 0.5px solid var(--separator-light);
}

.category-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-200);
}

.category-header-icon i {
  font-size: 20px;
  color: var(--gold-600);
}

.category-header-name {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
}

.dua-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  background: var(--off-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

/* ─── TAB PANELS ─── */
.tab-panel {
  display: none;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-6) + 100px);
}

.tab-panel.active {
  display: block;
  animation: panelFadeIn 0.3s var(--ease-out);
}

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

/* ─── AUDIO PLAYER BAR ─── */
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}

.audio-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.audio-menu-btn:active {
  background: var(--off-white);
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--gold-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.audio-play-btn:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-gold-lg);
}

.audio-play-btn i {
  font-size: 16px;
  margin-left: 2px;
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: var(--separator-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-track {
  position: relative;
  height: 100%;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
  width: 0%;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.audio-progress:hover .progress-thumb,
.audio-progress:active .progress-thumb {
  opacity: 1;
}

.audio-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.audio-time span {
  font-size: 11px;
  font-weight: 600;
  color: var(--light-text);
  font-variant-numeric: tabular-nums;
}

/* ─── PROGRESS INDICATOR (Dots) ─── */
.progress-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.progress-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--separator);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.progress-indicator .dot.active {
  background: var(--gold-500);
  transform: scale(1.2);
}

.progress-indicator .dot.completed {
  background: var(--gold-300);
}

/* ─── DUA CONTAINER ─── */
.dua-container {
  margin-bottom: var(--space-5);
}

.dua-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  animation: cardSlideIn 0.4s var(--ease-out);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dua-card .arabic-text {
  font-size: 24px;
  line-height: 2;
  color: var(--charcoal);
  text-align: right;
  direction: rtl;
  font-family: "Noto Naskh Arabic", "Scheherazade", serif;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--separator-light);
}

.dua-card .transliteration {
  font-size: 15px;
  line-height: 1.7;
  color: var(--medium-text);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.dua-card .translation {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-text);
  margin-bottom: var(--space-3);
}

.dua-card .reference {
  font-size: 12px;
  color: var(--gold-600);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  background: var(--gold-50);
  border-radius: var(--radius-pill);
  display: inline-block;
}

.dua-card .count-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--gold-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
}

/* ─── COUNTER SECTION ─── */
.counter-section {
  position: fixed;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  gap: var(--space-3);
  z-index: var(--z-nav);
}

.counter-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--gold-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold-lg);
  position: relative;
  overflow: hidden;
}

.counter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--duration-fast) var(--ease-out);
}

.counter-btn:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-gold);
}

.counter-btn:active::after {
  background: rgba(255, 255, 255, 0.15);
}

.counter-number {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.next-btn {
  height: 56px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gold-500);
  background: var(--white);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 16px;
  font-weight: 700;
}

.next-btn:active {
  transform: scale(0.96);
  background: var(--gold-50);
}

.next-btn i {
  font-size: 14px;
}

/* ─── REMINDER CARD ─── */
.reminder-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.reminder-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.3px;
}

.reminder-category {
  margin-bottom: var(--space-4);
}

.reminder-category h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-600);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-50);
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid var(--border-gold);
}

.reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
}

/* ─── TOGGLE SWITCH ─── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--separator);
  border-radius: var(--radius-pill);
  transition: background var(--duration-normal) var(--ease-out);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold-500);
}

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

.toggle-switch input:active + .toggle-slider::before {
  width: 30px;
}

.toggle-switch input:checked:active + .toggle-slider::before {
  transform: translateX(16px);
}

/* ─── REMINDER SECTIONS ─── */
.reminder-section {
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.reminder-section:last-child {
  border-bottom: none;
}

.reminder-section-title {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── TIME PICKER ─── */
.time-picker {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  overflow: hidden;
}

.time-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  max-height: 120px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) var(--space-4);
}

.time-column::-webkit-scrollbar {
  display: none;
}

.time-item {
  font-size: 24px;
  font-weight: 600;
  color: var(--light-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  scroll-snap-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.time-item.active {
  color: var(--gold-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 28px;
  font-weight: 700;
}

/* ─── REMINDER OPTION BUTTONS ─── */
.reminder-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: left;
}

.reminder-option-btn:active {
  background: var(--gold-50);
  border-color: var(--border-gold);
  transform: scale(0.99);
}

.reminder-option-btn i:first-child {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.reminder-option-btn span {
  flex: 1;
}

.reminder-option-btn i:last-child {
  font-size: 12px;
  color: var(--muted-text);
}

/* ─── MODALS ─── */
.loc-modal-ios,
.full-modal-ios {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.loc-modal-ios.visible,
.full-modal-ios.visible {
  display: flex;
  animation: modalFadeIn 0.3s var(--ease-out);
}

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

.loc-box-ios,
.full-modal-box-ios {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.4s var(--ease-spring);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loc-icon-ios {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  border: 2px solid var(--gold-200);
}

.loc-icon-ios i {
  font-size: 32px;
  color: var(--gold-500);
}

.loc-box-ios h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  letter-spacing: -0.3px;
}

.loc-box-ios p {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.loc-btn-ios {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.loc-btn-ios.primary {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.loc-btn-ios.primary:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-gold-lg);
}

.loc-btn-ios.secondary {
  background: var(--off-white);
  color: var(--dark-text);
  border: 1px solid var(--separator);
}

.loc-btn-ios.secondary:active {
  background: var(--gold-50);
  border-color: var(--border-gold);
}

.full-modal-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--separator-light);
}

.full-modal-header-ios h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}

.full-modal-close-ios {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--medium-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.full-modal-close-ios:active {
  background: var(--gold-100);
  transform: scale(0.9);
}

.full-modal-body-ios {
  text-align: left;
}

.full-modal-body-ios .prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 0.5px solid var(--separator-light);
}

.full-modal-body-ios .prayer-row:last-child {
  border-bottom: none;
}

.full-modal-body-ios .prayer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
}

.full-modal-body-ios .prayer-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}

/* ─── LOADING SCREEN ─── */
.loading-screen-ios,
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
}

.loading-screen-ios.visible,
.loading-overlay.visible {
  display: flex;
}

.loading-ring-ios,
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--separator-light);
  border-top-color: var(--gold-500);
  border-radius: var(--radius-pill);
  animation: spin 0.8s linear infinite;
}

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

.loading-screen-ios p,
.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--medium-text);
}

/* ─── TOAST CONTAINER ─── */
.toast-container {
  position: fixed;
  top: calc(var(--space-4) + env(safe-area-inset-top));
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toastSlideDown 0.4s var(--ease-spring) forwards;
  pointer-events: auto;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-out {
  animation: toastSlideUp 0.3s var(--ease-out) forwards;
}

@keyframes toastSlideUp {
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-5);
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--gold-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  border: 2px solid var(--gold-200);
}

.empty-icon i {
  font-size: 32px;
  color: var(--gold-400);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.btn-primary {
  padding: var(--space-3) var(--space-6);
  background: var(--gold-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-gold-lg);
}

/* ─── TAB CONTENT ─── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

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

/* ─── UTILITY ANIMATIONS ─── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: var(--off-white);
  background-image: linear-gradient(90deg, var(--off-white) 25%, var(--cream) 50%, var(--off-white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── SCROLLBAR STYLING ─── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-text);
}

/* ─── SELECTION ─── */
::selection {
  background: var(--gold-200);
  color: var(--charcoal);
}

/* ─── FOCUS STATES ─── */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── SAFE AREA SUPPORT ─── */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  }
  
  .reader-header {
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
  }
  
  .side-nav-header {
    padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  }
  
  .bottom-nav {
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  
  .main-content {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom) + 80px);
  }
  
  .counter-section {
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }
  
  .nav-footer {
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }
  
  .toast-container {
    top: calc(var(--space-4) + env(safe-area-inset-top));
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================================
   ALERTS / REMINDERS SECTION - Premium iOS White + Gold Design
   ============================================================================ */

/* Notification Status Bar */
.notification-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 12px 16px;
    background: linear-gradient(135deg, #C9A84C 0%, #D4B85A 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.notification-status-bar.denied {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.notification-status-bar .status-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notification-status-bar .status-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notification-status-bar .status-title {
    font-size: 14px;
    font-weight: 600;
}

.notification-status-bar .status-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.notification-status-bar .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ECC71;
    box-shadow: 0 0 8px #2ECC71;
}

.notification-status-bar .status-indicator.inactive {
    background: #E74C3C;
    box-shadow: 0 0 8px #E74C3C;
}

/* Permission Denied Message */
.permission-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    margin: 12px 16px;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 16px;
    text-align: center;
}

.permission-denied .permission-icon {
    width: 48px;
    height: 48px;
    background: #FED7D7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C53030;
    font-size: 20px;
}

.permission-denied p {
    color: #742A2A;
    font-size: 14px;
    line-height: 1.5;
}

/* Reminder Card */
.reminder-card {
    background: #fff;
    border-radius: 20px;
    margin: 12px 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.reminder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reminder-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.save-reminder-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #C9A84C;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-reminder-btn:hover {
    background: #B8993D;
    transform: translateY(-1px);
}

.save-reminder-btn:active {
    transform: scale(0.97);
}

/* Category Badge */
.reminder-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #FFF9E6;
    border: 1.5px solid #C9A84C;
    border-radius: 12px;
    color: #C9A84C;
    font-size: 15px;
    font-weight: 600;
}

.category-badge i {
    font-size: 14px;
}

/* Reminder Row */
.reminder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
}

.reminder-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reminder-row-info i {
    width: 32px;
    height: 32px;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.reminder-label {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 30px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #E0E0E0;
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: #C9A84C;
}

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

/* Reminder Section */
.reminder-section {
    margin-top: 20px;
}

.reminder-section-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 10px;
}

/* Inputs */
.reminder-input,
.reminder-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E8E8E8;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: #FAFAFA;
    transition: all 0.2s ease;
    font-family: inherit;
}

.reminder-input:focus,
.reminder-textarea:focus {
    outline: none;
    border-color: #C9A84C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.reminder-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Time Picker */
.time-picker-container {
    background: #F8F8F8;
    border-radius: 16px;
    padding: 8px;
    overflow: hidden;
}

.time-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.time-picker::before,
.time-picker::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 2;
}

.time-picker::before {
    top: 0;
    background: linear-gradient(to bottom, #F8F8F8, transparent);
}

.time-picker::after {
    bottom: 0;
    background: linear-gradient(to top, #F8F8F8, transparent);
}

.time-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 40px 0;
    height: 100%;
}

.time-column::-webkit-scrollbar {
    display: none;
}

.time-item {
    padding: 8px 20px;
    font-size: 22px;
    font-weight: 500;
    color: #CCC;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.time-item.active {
    color: #C9A84C;
    font-size: 32px;
    font-weight: 700;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.time-separator {
    font-size: 28px;
    font-weight: 700;
    color: #C9A84C;
    padding-bottom: 4px;
}

/* Next Reminder Preview */
.next-reminder-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 100%);
    border-radius: 14px;
    border: 1px solid #F0E4C3;
}

.next-reminder-preview .preview-icon {
    width: 36px;
    height: 36px;
    background: #C9A84C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.next-reminder-preview .preview-text {
    display: flex;
    flex-direction: column;
}

.next-reminder-preview .preview-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.next-reminder-preview .preview-time {
    font-size: 15px;
    font-weight: 600;
    color: #C9A84C;
}

/* Option Buttons */
.reminder-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #E8E8E8;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-option-btn:hover {
    border-color: #C9A84C;
    background: #FFFDF5;
}

.reminder-option-btn .option-icon {
    width: 32px;
    height: 32px;
    background: #FFF9E6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
    font-size: 14px;
}

.reminder-option-btn span {
    flex: 1;
    text-align: left;
}

.reminder-option-btn .fa-chevron-right {
    color: #CCC;
    font-size: 12px;
}

.test-notification-btn .option-icon {
    background: #E8F5E9;
    color: #4CAF50;
}

/* Reminders List Section */
.reminders-list-section {
    margin: 20px 16px;
}

.reminders-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.reminders-list-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminders-list-header h3 i {
    color: #C9A84C;
}

.reminders-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #C9A84C;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Empty State */
.empty-reminders {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.empty-reminders .empty-icon {
    width: 64px;
    height: 64px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 24px;
}

.empty-reminders p {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.empty-reminders span {
    font-size: 13px;
    color: #999;
}

/* Reminder Items */
.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.reminder-item.disabled {
    opacity: 0.6;
}

.reminder-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reminder-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.reminder-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reminder-item-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.reminder-item-details p {
    font-size: 13px;
    color: #888;
}

.reminder-item-details .next-trigger {
    font-size: 12px;
    color: #C9A84C;
    font-weight: 500;
}

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

.reminder-item-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F5F5F5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reminder-item-actions button:hover {
    background: #E8E8E8;
}

.reminder-item-actions .toggle-reminder-btn {
    color: #C9A84C;
    font-size: 18px;
}

.reminder-item-actions .delete-reminder-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Selection Modal */
.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.selection-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.selection-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.selection-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
}

.selection-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-option {
    padding: 16px;
    background: #F8F8F8;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.selection-option:hover {
    background: #FFF9E6;
    color: #C9A84C;
}

/* Audio Error Bar */
.audio-error-bar {
    margin: 12px 16px;
    padding: 12px 16px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

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

/* Full Prayer Modal Styles */
.full-modal-body-ios .full-prayer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #F0F0F0;
}

.full-modal-body-ios .full-prayer-row.current {
    background: #FFF9E6;
    border-radius: 12px;
    border-bottom: none;
    margin-bottom: 4px;
}

.full-modal-body-ios .full-prayer-row.next {
    background: #F0F8FF;
    border-radius: 12px;
    border-bottom: none;
}

.full-modal-body-ios .prayer-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.full-modal-body-ios .prayer-time {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.full-modal-body-ios .prayer-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.full-modal-body-ios .prayer-badge.current {
    background: #C9A84C;
    color: #fff;
}

.full-modal-body-ios .prayer-badge.next {
    background: #4A90D9;
    color: #fff;
}

.full-modal-date {
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 8px;
}

.full-modal-date p {
    font-size: 14px;
    color: #888;
    margin: 2px 0;
}

.full-modal-date p:first-child {
    font-weight: 600;
    color: #1a1a1a;
}
/* ======== prayer.html ====== */
