/* ══════════════════════════════════════════════════════════════════
   Ammal Saleh — Luxury Islamic UI System (v6.0 Aesthetic Upgrade)
   Deep Emerald, Radiant Gold, Islamic Geometry, and Tactile Micro-Interactions
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Luxury Islamic Palette */
  --lux-emerald-deep: #064e3b;
  --lux-emerald-mid: #065f46;
  --lux-emerald-rich: #047857;
  --lux-emerald-bright: #10b981;
  --lux-emerald-mint: #34d399;
  --lux-emerald-glow: rgba(16, 185, 129, 0.28);
  --lux-emerald-light: #ecfdf5;

  --lux-gold-deep: #b45309;
  --lux-gold: #d97706;
  --lux-gold-bright: #f59e0b;
  --lux-gold-rich: #d4af37;
  --lux-gold-light: #fef3c7;
  --lux-gold-glow: rgba(212, 175, 55, 0.25);

  --lux-ink: #0b1220;
  --lux-ink-2: #334155;
  --lux-muted: #64748b;
  --lux-card: #ffffff;
  --lux-bg: #f6f8f7;
  --lux-line: #e6ece9;

  /* Luxury Soft Shadows */
  --lux-sh-1: 0 1px 3px rgba(11, 18, 32, .04), 0 1px 2px rgba(11, 18, 32, .03);
  --lux-sh-2: 0 4px 14px rgba(11, 18, 32, .06), 0 2px 5px rgba(11, 18, 32, .03);
  --lux-sh-3: 0 12px 32px rgba(6, 78, 59, .10);
  --lux-sh-hero: 0 16px 42px rgba(6, 78, 59, .26), 0 4px 14px rgba(0, 0, 0, .06);

  /* Geometry & Radii */
  --lux-r-sm: 10px;
  --lux-r-md: 16px;
  --lux-r-lg: 22px;
  --lux-r-xl: 28px;
}

/* ─── Hero Container ────────────────────────────────────────────── */
#focusHero {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 28px;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.focus-mode #focusHero {
  display: flex !important;
}

.hero-luxury {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(155deg, #0a6652 0%, #064e3b 55%, #022c22 100%);
  border-radius: var(--lux-r-xl);
  padding: 20px 18px 18px;
  color: #fff;
  box-shadow: var(--lux-sh-hero);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  user-select: none;
}

/* Ambient Radial Lights */
.hero-luxury::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-luxury::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
  pointer-events: none;
}

/* ─── Hero Top Bar: Hijri & Prayer Time ──────────────────────────── */
.hero-luxury-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  font-family: 'Cairo', -apple-system, sans-serif;
  position: relative;
  z-index: 1;
}

.hero-top-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.hero-top-date .dot {
  opacity: .5;
}

.hero-top-prayer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 11px;
}
.hero-top-prayer .rem {
  opacity: 0.75;
  font-weight: 500;
  font-size: 10px;
}

/* ─── Khatmah Selector Pill ─────────────────────────────────────── */
.hero-kh-chip-wrap {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.chip-kh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background .15s ease, transform .12s ease;
}
.chip-kh:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.22);
}
.chip-kh .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.chip-kh .pct-badge {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 800;
}

/* ─── Hero Main Centerpiece: Ring + Target Info ─────────────────── */
.hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ring {
  position: relative;
  width: 106px;
  height: 106px;
  flex-shrink: 0;
}
.ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.ring-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.ring-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
  font-weight: 700;
}

.hero-info {
  flex: 1;
  min-width: 0;
  font-family: 'Cairo', sans-serif;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hero-goal {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #fff;
}
.hero-goal small {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.hero-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.hero-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6ee7b7, #34d399, #fde047);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.6);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
  font-weight: 600;
}

/* ─── One-Tap Resume Reading Bar ────────────────────────────────── */
.resume-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lux-card);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-r-md);
  padding: 12px 16px;
  box-shadow: var(--lux-sh-1);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  user-select: none;
}
.resume-bar:hover {
  border-color: var(--lux-emerald-bright);
  box-shadow: var(--lux-sh-2);
}
.resume-bar:active {
  transform: scale(0.98);
}
.resume-pin {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lux-emerald-light), #ffffff);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}
.resume-txt {
  flex: 1;
  min-width: 0;
  text-align: start;
}
.resume-txt b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--lux-ink);
  display: block;
  line-height: 1.3;
}
.resume-txt span {
  font-size: 11px;
  color: var(--lux-muted);
  font-weight: 600;
}
.resume-arrow {
  color: var(--lux-emerald-rich);
  font-size: 15px;
  font-weight: 900;
  transition: transform .15s ease;
}
.resume-bar:hover .resume-arrow {
  transform: translateX(-3px);
}

/* ─── Primary CTA Action Buttons ───────────────────────────────── */
.lux-cta {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.lux-btn {
  border: none;
  border-radius: var(--lux-r-md);
  padding: 14px 16px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lux-btn:active {
  transform: scale(0.97);
}
.lux-btn-main {
  flex: 1.5;
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lux-btn-main:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}
.lux-btn-ghost {
  flex: 1;
  background: var(--lux-card);
  color: var(--lux-emerald-deep);
  border: 1.5px solid var(--lux-line);
  box-shadow: var(--lux-sh-1);
}
.lux-btn-ghost:hover {
  background: var(--lux-emerald-light);
  border-color: var(--lux-emerald-bright);
}

/* ─── Twin Streaks ─────────────────────────────────────────────── */
.lux-streaks {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.lux-streak {
  background: var(--lux-card);
  border: 1px solid var(--lux-line);
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--lux-sh-1);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.lux-streak:active {
  transform: scale(0.97);
}
.lux-streak .em {
  font-size: 18px;
  line-height: 1;
}
.lux-streak b {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: var(--lux-ink);
  font-family: 'Cairo', sans-serif;
}
.lux-streak span {
  font-size: 10px;
  color: var(--lux-muted);
  display: block;
  margin-top: 2px;
  font-weight: 600;
}
.lux-streak.on {
  background: linear-gradient(150deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fed7aa;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}
.lux-streak.on b {
  color: #b45309;
}

/* ─── Quick Tools Grid (8-Tile) ────────────────────────────────── */
.lux-sec-h {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 4px 10px;
  font-family: 'Cairo', sans-serif;
}
.lux-sec-h b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--lux-ink-2);
}
.lux-grid {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.lux-tile {
  background: var(--lux-card);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-r-md);
  padding: 12px 6px 10px;
  text-align: center;
  box-shadow: var(--lux-sh-1);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lux-tile:hover {
  border-color: var(--lux-emerald-bright);
  box-shadow: var(--lux-sh-2);
}
.lux-tile:active {
  transform: scale(0.95);
}
.lux-tile .em {
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
  line-height: 1.2;
}
.lux-tile .lb {
  font-size: 11px;
  font-weight: 800;
  color: var(--lux-ink-2);
  line-height: 1.2;
  font-family: 'Cairo', sans-serif;
}
.lux-tile.pri {
  background: linear-gradient(155deg, var(--lux-emerald-light) 0%, #ffffff 100%);
  border-color: #a7f3d0;
}
.lux-tile.pri .lb {
  color: var(--lux-emerald-dark);
}

/* ─── Check-In & Status Banners ────────────────────────────────── */
.lux-banner {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--lux-r-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .12s ease;
}
.lux-banner:active {
  transform: scale(0.98);
}
.lux-banner.warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  color: #92400e;
}
.lux-banner.info {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* ─── Tahajjud / Dark Mode Adaptations ─────────────────────────── */
body.dark, [data-theme="night"], [data-theme="celestial"] {
  --lux-card: #111a2e;
  --lux-bg: #070d18;
  --lux-line: #1e293b;
  --lux-ink: #f8fafc;
  --lux-ink-2: #cbd5e1;
  --lux-muted: #94a3b8;
  --lux-emerald-light: rgba(16, 185, 129, 0.12);
  --lux-sh-1: 0 2px 6px rgba(0, 0, 0, 0.45);
  --lux-sh-2: 0 6px 18px rgba(0, 0, 0, 0.55);
}

body.dark .hero-luxury {
  background: linear-gradient(155deg, #094738 0%, #053326 60%, #021a14 100%);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.12);
}

body.dark .lux-btn-ghost {
  background: #111a2e;
  color: #6ee7b7;
  border-color: #1e293b;
}

body.dark .lux-tile.pri {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.15) 0%, #111a2e 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark .lux-streak.on {
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.15) 0%, #111a2e 100%);
  border-color: rgba(245, 158, 11, 0.35);
}
body.dark .lux-streak.on b {
  color: #fbbf24;
}


/* ══════════════════════════════════════════════════════════════════
   10 Modern & Senior-Friendly Features UI Styling
   ══════════════════════════════════════════════════════════════════ */

/* ─── Universal High-Accessibility & Senior-Friendly Typography ───── */
/* ══════════════════════════════════════════════════════════════════
   Balanced & Clean UI System (Sleek Buttons, To-The-Point Layout)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --base-font: 16px !important;
  --quran-verse-size: 26px !important;
}

/* Top Full-Viewport Container (Holds the Two Big Green Cards + Planning Bar; Extras are Below the Fold) */
.focus-top-viewport {
  width: 100%;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 6px;
  padding-bottom: 24px;
}

/* Bottom Planning & Plan Adjustment Bar on Main Screen (Big, Clear, Self-Explanatory) */
.main-plan-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.main-plan-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 26px;
  background: var(--lux-card, #ffffff);
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.11);
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  text-align: start;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.main-plan-btn:hover {
  border-color: #047857;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.2);
}
.main-plan-btn:active {
  transform: scale(0.98);
}
.mpb-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.mpb-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lux-emerald-light, #ecfdf5), #d1fae5);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.mpb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mpb-text b {
  font-size: 19px;
  font-weight: 900;
  color: var(--lux-ink, #0b1220);
  line-height: 1.3;
}
.mpb-text span {
  font-size: 15px;
  font-weight: 800;
  color: var(--lux-emerald-rich, #047857);
  margin-top: 4px;
  line-height: 1.35;
}
.mpb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mpb-pill {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
body.dark .main-plan-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: #10b981;
}
body.dark .mpb-text b {
  color: #f8fafc;
}
body.dark .mpb-text span {
  color: #6ee7b7;
}
body.dark .mpb-icon {
  background: rgba(16, 185, 129, 0.2);
}

/* Big Green Card #1: Hero Progress Card */
.focus-top-viewport .hero-luxury {
  flex: 1.25;
  min-height: 310px;
  padding: 28px 22px 26px !important;
  border-radius: 30px !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.focus-top-viewport .hero-luxury-top {
  font-size: 13.5px !important;
  margin-bottom: 16px !important;
}
.focus-top-viewport .hero-top-prayer {
  font-size: 12.5px !important;
  padding: 5px 13px !important;
}
.focus-top-viewport .hero-kh-chip-wrap {
  margin-bottom: 18px !important;
}
.focus-top-viewport .chip-kh {
  padding: 9px 18px !important;
  font-size: 15.5px !important;
  gap: 9px !important;
}
.focus-top-viewport .chip-kh .pct-badge {
  font-size: 13px !important;
  padding: 2px 10px !important;
}
.focus-top-viewport .hero-main {
  gap: 20px !important;
  padding: 8px 0 !important;
}
.focus-top-viewport .ring {
  width: 136px !important;
  height: 136px !important;
}
.focus-top-viewport .ring-num {
  font-size: 32px !important;
}
.focus-top-viewport .ring-lbl {
  font-size: 12px !important;
  margin-top: 4px !important;
}
.focus-top-viewport .hero-kicker {
  font-size: 13.5px !important;
  margin-bottom: 5px !important;
}
.focus-top-viewport .hero-goal {
  font-size: 29px !important;
  margin-bottom: 12px !important;
}
.focus-top-viewport .hero-goal small {
  font-size: 15.5px !important;
}
.focus-top-viewport .hero-bar {
  height: 11px !important;
}
.focus-top-viewport .hero-sub {
  font-size: 13.5px !important;
  margin-top: 10px !important;
}

/* Big Green Card #2: Primary Read CTA Card-Button */
.main-read-cta {
  width: 100%;
  box-sizing: border-box;
  flex: 0.75;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  padding: 26px 22px;
  margin-bottom: 0;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.36);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Cairo', sans-serif;
}
.main-read-cta:hover {
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.45);
}
.main-read-cta:active {
  transform: scale(0.98);
}
.main-read-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.main-read-cta-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.main-read-cta-text {
  display: flex;
  flex-direction: column;
  text-align: start;
  min-width: 0;
}
.main-read-cta-text b {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}
.main-read-cta-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.35;
}
.main-read-cta-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 99px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Subtle "Scroll for Extras" Hint Pill at Bottom of Top Screen */
.scroll-extras-hint {
  align-self: center;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--lux-card, #ffffff);
  border: 1.5px solid var(--lux-line, #cbd5e1);
  color: var(--lux-ink-2, #334155);
  font-size: 14.5px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  box-shadow: var(--lux-sh-1);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.scroll-extras-hint:hover,
.scroll-extras-hint:active {
  color: var(--lux-emerald-rich, #047857);
  border-color: var(--lux-emerald-bright, #10b981);
  transform: translateY(2px);
}
.scroll-extras-hint .seh-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  animation: sehBounce 2.2s infinite ease-in-out;
}
@keyframes sehBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Primary Action Buttons - Sleek & Proportional */
.lux-btn {
  padding: 12px 18px !important;
  min-height: 48px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 15px !important;
  letter-spacing: 0.1px;
}
.lux-btn span {
  font-size: 17px !important;
}

/* Extras Section at Bottom of Main Screen (Below the Fold — Shown Only When Scrolling) */
.extras-bottom-section {
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding-top: 22px;
  padding-bottom: 80px;
  border-top: 2px dashed var(--lux-line);
}
.extras-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 14px;
  font-family: 'Cairo', sans-serif;
}
.extras-sec-header b {
  font-size: 17.5px;
  font-weight: 900;
  color: var(--lux-ink, #0b1220);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.extras-sec-header span {
  font-size: 14px;
  color: var(--lux-emerald-rich, #047857);
  background: var(--lux-emerald-light, #ecfdf5);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 800;
}

/* Clear, Easy-to-Read 2-Column Extras Grid at Bottom */
.lux-grid.extras-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
.lux-grid.extras-grid .lux-tile {
  min-height: 86px !important;
  padding: 14px 12px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  text-align: center !important;
}
.lux-grid.extras-grid .lux-tile .em {
  font-size: 28px !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}
.lux-grid.extras-grid .lux-tile .lb {
  font-size: 15.5px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}
.lux-grid.extras-grid .lux-tile .sub {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--lux-muted, #64748b) !important;
  line-height: 1.3 !important;
}
body.dark .lux-grid.extras-grid .lux-tile .sub {
  color: #94a3b8 !important;
}
.lux-streaks .lux-streak {
  padding: 14px 16px !important;
  border-radius: 18px !important;
  gap: 12px !important;
}
.lux-streaks .lux-streak .em {
  font-size: 26px !important;
}
.lux-streaks .lux-streak b {
  font-size: 22px !important;
}
.lux-streaks .lux-streak span {
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

/* Quran Mushaf Reader - Compact Controls & Maximum Reading Space */
.quran-header {
  height: 46px !important;
  padding: 0 10px !important;
  gap: 6px !important;
}
.quran-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  gap: 5px !important;
}
.quran-page-info {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
}
.quran-close-btn {
  width: 31px !important;
  height: 31px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}
.quran-float-close {
  display: none !important;
}
.quran-verse-text {
  font-size: 26px !important;
  line-height: 2.35 !important;
  font-weight: 500 !important;
  word-spacing: 4px !important;
}
.quran-basmalah {
  font-size: 23px !important;
  padding: 12px 0 !important;
}
.quran-surah-header {
  padding: 10px 12px !important;
}
.quran-surah-name {
  font-size: 20px !important;
  font-weight: 800 !important;
}
.quran-nav {
  height: 48px !important;
  padding: 0 10px !important;
  gap: 6px !important;
}
.quran-nav-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  border-width: 1.5px !important;
  gap: 4px !important;
}
.quran-nav-close {
  flex: 0 0 auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  border-width: 1.5px !important;
  gap: 4px !important;
}

/* Universal Action Buttons Across All Screens (Proportional Size) */
button.btn-primary,
button.btn-secondary,
button.btn-pulse,
#topSaveBtn,
.wizard-footer button,
.modal-footer button {
  min-height: 44px !important;
  padding: 10px 18px !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border-radius: 13px !important;
}

/* Numpad Display & Keys for Quick Logging */
.numpad-display {
  font-size: 32px !important;
  font-weight: 900 !important;
  padding: 12px 16px !important;
  letter-spacing: 1.5px !important;
  border-radius: 14px !important;
}
.numpad-key {
  height: 50px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  border-radius: 13px !important;
}

/* Quick Log 1-Tap Bar (Compact & Clean) */
.quick-log-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.quick-log-btn {
  min-height: 40px !important;
  padding: 7px 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  border-radius: 11px !important;
}
.quick-log-btn span {
  font-size: 14px !important;
}

/* Clean Header Quran Button */
.hdr-quran-btn {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 99px !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  cursor: pointer !important;
}
.hdr-quran-btn:active {
  transform: scale(0.96) !important;
}

/* ─── In-App Quran Audio Bar & Controls ─────────────────────────── */
.quran-audio-bar {
  position: absolute;
  bottom: 48px; /* Sits right above the 48px bottom quran navigation bar */
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(212, 175, 55, 0.4);
  padding: 7px 10px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  animation: slideUpBar .25s ease-out;
}
@keyframes slideUpBar {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.qab-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.qab-reciter-wrap select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 700;
  outline: none;
  max-width: 115px;
  text-overflow: ellipsis;
}
.qab-reciter-wrap select option {
  background: #0b1220;
  color: #fff;
}

.qab-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.qab-btn {
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.qab-btn:active {
  transform: scale(0.92);
}
.qab-play-btn {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
  font-size: 13.5px;
}

.qab-speed-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.qab-speed-btn.fast {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fbbf24;
}
.qab-speed-btn:active {
  transform: scale(0.92);
}

.qab-status {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85px;
}

.qab-close {
  background: rgba(239, 68, 68, 0.22);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .15s, transform .12s;
}
.qab-close:hover,
.qab-close:active {
  background: #ef4444;
  color: #fff;
  transform: scale(0.95);
}

/* Quran Header Audio Icon-Only Button (Minimized) */
.quran-audio-pill-btn {
  background: rgba(var(--primary-rgb), 0.12) !important;
  color: var(--primary) !important;
  border: 1.5px solid rgba(var(--primary-rgb), 0.3) !important;
  border-radius: 8px !important;
  width: 31px !important;
  height: 31px !important;
  padding: 0 !important;
  font-size: 12.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform .12s, background .2s !important;
  margin-inline-end: 2px !important;
  flex-shrink: 0 !important;
}
.quran-audio-pill-btn:active {
  transform: scale(0.92) !important;
}
.quran-audio-pill-btn.playing {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Quran Bottom Nav Audio Icon-Only Button (Minimized) */
.quran-nav-audio {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  background: rgba(var(--primary-rgb), 0.1) !important;
  border: 1.5px solid rgba(var(--primary-rgb), 0.3) !important;
  color: var(--primary) !important;
  font-size: 12.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.quran-nav-audio.playing {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ─── 5-Prayer Split Widget (Big & Easy to Read) ───────────────── */
.prayer-split-widget {
  width: 100%;
  box-sizing: border-box;
  background: var(--lux-card);
  border: 1.5px solid var(--lux-line);
  border-radius: 18px;
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: var(--lux-sh-1);
}
.psw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Cairo', sans-serif;
}
.psw-head b {
  font-size: 16px;
  font-weight: 900;
  color: var(--lux-ink);
}
.psw-head span {
  font-size: 13.5px;
  color: var(--lux-emerald-deep);
  font-weight: 800;
  background: var(--lux-emerald-light);
  padding: 4px 12px;
  border-radius: 99px;
}
.psw-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.psw-item {
  background: var(--lux-bg);
  border: 1.5px solid var(--lux-line);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s, border-color .15s;
}
.psw-item:active {
  transform: scale(0.95);
  border-color: var(--lux-emerald-bright);
}
.psw-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}
.psw-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--lux-ink-2);
  display: block;
}
.psw-badge {
  font-size: 13px;
  font-weight: 900;
  color: var(--lux-emerald-rich);
  margin-top: 3px;
  display: block;
}

/* ─── 1-Tap Quick Action Bar ───────────────────────────────────── */
.quick-log-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.quick-log-btn {
  flex: 1;
  background: var(--lux-card);
  border: 1.5px solid var(--lux-line);
  border-radius: 11px;
  padding: 8px 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--lux-ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--lux-sh-1);
  transition: transform .12s, border-color .15s, background .15s;
}
.quick-log-btn:active {
  transform: scale(0.95);
  background: var(--lux-emerald-light);
  border-color: var(--lux-emerald-bright);
}
.quick-log-btn.highlight {
  flex: 1.35;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
  color: #065f46;
}

/* ─── Bottom Floating Action Bar (Sleek & Balanced) ────────────── */
.bottom-float-bar {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 120;
}

.bottom-float-btn {
  pointer-events: auto;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  border-radius: 99px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 120;
}
.bottom-float-btn:active {
  transform: scale(0.94);
}

/* Left Bottom: Direct + New Khatmah Button */
.bottom-left-btn {
  left: 16px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 9px 15px;
  font-size: 13.5px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}
.bottom-left-btn i {
  font-size: 14px;
}

/* Right Bottom: Menu Button */
.bottom-right-btn {
  right: 16px;
  background: var(--lux-card, #ffffff);
  color: var(--lux-ink, #0b1220);
  border: 1.5px solid var(--lux-line, #e2e8f0);
  padding: 9px 15px;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}
body.dark .bottom-right-btn {
  background: #111a2e;
  color: #f8fafc;
  border-color: #334155;
}
.bottom-right-btn i {
  font-size: 14px;
  color: var(--primary, #10b981);
}

/* Scroll to top button offset so it doesn't overlap left button */
.scroll-top-btn {
  bottom: calc(68px + env(safe-area-inset-bottom)) !important;
  left: 18px !important;
  z-index: 110 !important;
}

/* Hide floating buttons when full-screen overlays are open */
.quran-overlay.open ~ .bottom-float-bar,
.wizard-overlay.open ~ .bottom-float-bar,
.modal-overlay.open ~ .bottom-float-bar {
  display: none !important;
}


/* ─── Start Khatmah Choice Modal ─────────────────────────────── */
#startKhChoiceOverlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#startKhChoiceOverlay.open {
  opacity: 1;
  pointer-events: auto;
}
.start-kh-choice-card {
  position: relative;
  background: var(--bg-primary, #ffffff);
  border-radius: 26px;
  max-width: 400px;
  width: 100%;
  padding: 32px 24px 26px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1.5px solid var(--border, #e5e7eb);
  transform: translateY(14px) scale(0.96);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
#startKhChoiceOverlay.open .start-kh-choice-card {
  transform: translateY(0) scale(1);
}
body.dark .start-kh-choice-card {
  background: #111a2e;
  border-color: #1e293b;
  color: #f8fafc;
}
.start-kh-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: transparent;
  border: none;
  font-size: 19px;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1;
  transition: background 0.15s ease;
}
.start-kh-close:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.dark .start-kh-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.start-kh-choice-card[dir="ltr"] .start-kh-close {
  left: auto;
  right: 14px;
}
.start-kh-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(4, 120, 87, 0.08));
  border: 2px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.start-kh-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary, #0f172a);
  margin-bottom: 6px;
  font-family: 'Cairo', sans-serif;
}
body.dark .start-kh-title {
  color: #f8fafc;
}
.start-kh-sub {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: 'Cairo', sans-serif;
}

/* Big Fast Start Button */
.start-kh-fast-btn {
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 18px;
  text-align: start;
  box-sizing: border-box;
}
.start-kh-fast-btn:active {
  transform: scale(0.97);
}
.start-kh-fast-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  color: #ffffff;
}
.start-kh-fast-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.start-kh-fast-main {
  font-size: 20px;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  line-height: 1.25;
  color: #ffffff;
}
.start-kh-fast-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}

/* Edit Options Button (Smaller) */
.start-kh-options-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.start-kh-options-btn {
  background: transparent;
  border: 1.5px solid var(--border, #cbd5e1);
  color: var(--text-secondary, #334155);
  padding: 11px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body.dark .start-kh-options-btn {
  border-color: #334155;
  color: #cbd5e1;
}
.start-kh-options-btn:active {
  transform: scale(0.96);
  background: var(--bg-secondary, #f1f5f9);
}
.start-kh-options-btn i {
  color: var(--primary, #10b981);
  font-size: 15px;
}
.start-kh-options-hint {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
  font-family: 'Cairo', sans-serif;
}


/* ══════════════════════════════════════════════════════════════════
   Overhauled Luxury Azkar & Digital Tasbih System
   ══════════════════════════════════════════════════════════════════ */

#azkarOverlay {
  z-index: 950 !important;
}

#azkarOverlay .azkar-float-close {
  display: none !important;
}

#azkarOverlay .azkar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px !important;
  height: auto !important;
  min-height: calc(54px + env(safe-area-inset-top)) !important;
  background: linear-gradient(155deg, #0a6652 0%, #064e3b 100%) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.18) !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

#azkarOverlay .azkar-close-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}
#azkarOverlay .azkar-close-btn:active {
  transform: scale(0.92) !important;
  background: rgba(255, 255, 255, 0.26) !important;
}

#azkarOverlay .azkar-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  font-family: 'Cairo', sans-serif !important;
  color: #ffffff !important;
  flex: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}

#azkarHdrActions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  min-width: 36px !important;
}

.azk-hdr-btn {
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.azk-hdr-btn.icon-only {
  width: 34px;
  padding: 0;
  font-size: 14px;
}
.azk-hdr-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #064e3b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.azk-hdr-btn:active {
  transform: scale(0.94);
}

/* Category Quick-Switcher Tabs */
#azkarOverlay .azkar-cats {
  display: flex;
  align-items: center !important;
  padding: 8px 12px !important;
  gap: 6px !important;
  background: var(--lux-card, #ffffff) !important;
  border-bottom: 1px solid var(--lux-line, #e6ece9) !important;
  overflow-x: auto !important;
  flex-shrink: 0 !important;
  scrollbar-width: none !important;
}
#azkarOverlay .azkar-cat-btn {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-family: 'Cairo', sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Azkar Home Hero Banner */
.azk-lux-hero {
  background: linear-gradient(150deg, #0a6652 0%, #064e3b 60%, #022c22 100%);
  border-radius: 24px;
  padding: 20px 18px;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(6, 78, 59, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}
.azk-lux-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.azk-lux-hero-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}
.azk-lux-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  margin-top: 2px;
}
.azk-lux-hero-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.azk-lux-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-bottom: 14px;
}
.azk-lux-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6ee7b7, #34d399, #fde047);
  transition: width 0.5s ease;
}
.azk-lux-rec-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.14s ease, background 0.14s ease;
}
.azk-lux-rec-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.25);
}

/* Redesigned Azkar Home Grid & Category Cards */
#azkarOverlay .azkar-home-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}
#azkarOverlay .azkar-home-card {
  background: var(--lux-card, #ffffff) !important;
  border: 1.5px solid var(--lux-line, #e6ece9) !important;
  border-radius: 18px !important;
  padding: 14px 12px !important;
  text-align: start !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
  box-shadow: var(--lux-sh-1) !important;
  cursor: pointer !important;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
#azkarOverlay .azkar-home-card:active {
  transform: scale(0.97) !important;
}
#azkarOverlay .azkar-home-card.done {
  border-color: #a7f3d0 !important;
  background: linear-gradient(145deg, var(--lux-emerald-light, #ecfdf5) 0%, var(--lux-card, #ffffff) 100%) !important;
}
#azkarOverlay .azkar-home-card.recommended {
  border-color: var(--lux-emerald-bright, #10b981) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15) !important;
}
.azk-hc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.azk-hc-icon {
  font-size: 26px;
  line-height: 1;
}
.azk-hc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--lux-bg, #f1f5f9);
  color: var(--lux-muted, #64748b);
  font-family: 'Cairo', sans-serif;
}
.azkar-home-card.done .azk-hc-badge {
  background: #d1fae5;
  color: #065f46;
}
.azk-hc-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--lux-ink, #0b1220);
  font-family: 'Cairo', sans-serif;
  line-height: 1.25;
}
.azk-hc-sub {
  font-size: 11px;
  color: var(--lux-muted, #64748b);
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}
.azk-hc-bar {
  width: 100%;
  height: 6px;
  background: var(--lux-line, #e2e8f0);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
}
.azk-hc-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* Interactive Free Tasbih Counter Card on Home Screen */
.azk-tasbih-card {
  background: var(--lux-card, #ffffff);
  border: 1.5px solid var(--lux-line, #e6ece9);
  border-radius: 22px;
  padding: 16px 14px 18px;
  box-shadow: var(--lux-sh-2);
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
  text-align: center;
}
.azk-tasbih-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.azk-tasbih-head b {
  font-size: 15px;
  font-weight: 900;
  color: var(--lux-ink, #0b1220);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.azk-tasbih-total {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--lux-emerald-rich, #047857);
  background: var(--lux-emerald-light, #ecfdf5);
  padding: 3px 10px;
  border-radius: 99px;
}
.azk-tasbih-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.azk-tasbih-pills::-webkit-scrollbar {
  display: none;
}
.azk-tpill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--lux-line, #e2e8f0);
  background: var(--lux-bg, #f8fafc);
  color: var(--lux-ink-2, #334155);
  font-size: 12.5px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.14s ease;
}
.azk-tpill.active {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.azk-tasbih-phrase {
  font-size: 22px;
  font-weight: 800;
  color: var(--lux-emerald-deep, #064e3b);
  font-family: var(--font-ar, 'Amiri', serif);
  margin: 4px 0 12px;
  min-height: 34px;
}
body.dark .azk-tasbih-phrase {
  color: #6ee7b7;
}
.azk-tasbih-ring-btn {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.38);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.azk-tasbih-ring-btn:active {
  transform: scale(0.92);
}
.azk-tasbih-ring-btn .t-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.azk-tasbih-ring-btn .t-lbl {
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 700;
  margin-top: 4px;
}
.azk-tasbih-ftr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.azk-tasbih-SmBtn {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--lux-line, #e2e8f0);
  background: var(--lux-bg, #f8fafc);
  color: var(--lux-muted, #64748b);
  font-size: 11.5px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
}
.azk-tasbih-SmBtn.active {
  border-color: var(--lux-emerald-bright, #10b981);
  color: var(--lux-emerald-rich, #047857);
  background: var(--lux-emerald-light, #ecfdf5);
}

/* Overhauled Zikr Cards in Category View (Whole-Card Tap!) */
.zikr-card-lux {
  background: var(--lux-card, #ffffff);
  border: 1.5px solid var(--lux-line, #e6ece9);
  border-radius: 22px;
  padding: 18px 16px 14px;
  margin-bottom: 12px;
  box-shadow: var(--lux-sh-1);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.zikr-card-lux:active {
  transform: scale(0.985);
}
.zikr-card-lux.active-card {
  border-color: var(--lux-emerald-bright, #10b981);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16);
}
.zikr-card-lux.done {
  opacity: 0.52;
  background: var(--lux-bg, #f8fafc);
  cursor: default;
}
.zikr-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: 'Cairo', sans-serif;
}
.zikr-idx-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--lux-muted, #64748b);
  background: var(--lux-bg, #f1f5f9);
  padding: 3px 10px;
  border-radius: 99px;
}
.zikr-target-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--lux-emerald-rich, #047857);
  background: var(--lux-emerald-light, #ecfdf5);
  padding: 3px 10px;
  border-radius: 99px;
}
.zikr-card-lux .zikr-text {
  font-size: 22.5px !important;
  line-height: 2.0 !important;
  color: var(--lux-ink, #0b1220) !important;
  font-family: var(--font-ar, 'Amiri', serif) !important;
  text-align: center !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
  white-space: pre-line;
}
.zikr-card-lux .zikr-ActionRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--lux-line, #e2e8f0);
}
.zikr-tap-pill-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 15.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
  transition: transform 0.12s ease;
}
.zikr-tap-pill-btn:active {
  transform: scale(0.96);
}
.zikr-tap-pill-btn.done {
  background: var(--lux-bg, #e2e8f0);
  color: var(--lux-emerald-rich, #047857);
  box-shadow: none;
}
.zikr-tap-count-badge {
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 12px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 900;
}
.zikr-tap-pill-btn.done .zikr-tap-count-badge {
  background: transparent;
}
.zikr-card-lux.pulse {
  animation: zikrCardPulse 0.26s ease-out;
}
@keyframes zikrCardPulse {
  0% { transform: scale(1); }
  45% { transform: scale(0.975); }
  100% { transform: scale(1); }
}

/* Focus Mode (1 Zikr at a Time) */
.azk-focus-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 180px);
  padding: 4px 0 12px;
  box-sizing: border-box;
}
.azk-focus-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lux-card, #ffffff);
  border: 2px solid var(--lux-emerald-bright, #10b981);
  border-radius: 26px;
  padding: 22px 18px 18px;
  box-shadow: var(--lux-sh-2);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.azk-focus-text {
  font-size: 24px;
  line-height: 2.1;
  text-align: center;
  font-family: var(--font-ar, 'Amiri', serif);
  color: var(--lux-ink, #0b1220);
  font-weight: 600;
  margin: auto 0;
  padding: 14px 4px;
  white-space: pre-line;
}
.azk-focus-tap-area {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.azk-focus-tap-num {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
}
.azk-focus-tap-lbl {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}
.azk-focus-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-family: 'Cairo', sans-serif;
}
.azk-focus-nav button {
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--lux-line, #e2e8f0);
  background: var(--lux-card, #ffffff);
  color: var(--lux-ink-2, #334155);
  font-size: 13px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
}

/* ─── Word Meanings (معاني الكلمات) & Simple Tafsir ─────────────────── */
.qrb-meaning-toggle {
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  background: rgba(254, 243, 199, 0.55);
  color: #92400e;
  font-size: 11.5px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.qrb-meaning-toggle.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #b45309;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}
[data-theme="dark"] .qrb-meaning-toggle:not(.active) {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.quran-meaning-hint {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin: -4px 0 10px;
  padding: 4px 10px;
  cursor: pointer;
}

.qvn-meaning-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #b45309;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(217, 119, 6, 0.28);
  padding: 1px 7px;
  border-radius: 99px;
  margin-inline-start: 6px;
  font-family: 'Cairo', sans-serif;
}
[data-theme="dark"] .qvn-meaning-tag {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.3);
}

.aya-inline-meaning {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.10);
  border-inline-start: 3px solid #f59e0b;
  direction: rtl;
  text-align: right;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}
[data-theme="dark"] .aya-inline-meaning {
  background: rgba(251, 191, 36, 0.08);
  border-inline-start-color: #fbbf24;
}
.aim-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  line-height: 1.65;
}
.aim-word {
  color: #b45309;
  font-weight: 900;
  font-family: var(--quran-font, 'Amiri', serif);
  font-size: 15.5px;
}
[data-theme="dark"] .aim-word {
  color: #fbbf24;
}
.aim-def {
  color: var(--text-primary);
  font-weight: 700;
}

.amc-verse-box {
  font-family: var(--quran-font, 'Amiri', 'Noto Naskh Arabic', serif);
  font-size: 22px;
  line-height: 2.15;
  direction: rtl;
  text-align: right;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(var(--primary-rgb), 0.07);
  border: 1.5px solid rgba(var(--primary-rgb), 0.22);
  color: var(--text-primary);
}
.amc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.amc-sec-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
}
.amc-words-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.amc-word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(217, 119, 6, 0.34);
  direction: rtl;
  text-align: right;
}
[data-theme="dark"] .amc-word-row {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.34);
}
.amc-aya-badge {
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'Cairo', sans-serif;
}
.amc-word-pill {
  font-family: var(--quran-font, 'Amiri', serif);
  font-size: 25px;
  font-weight: 900;
  color: #b45309;
  line-height: 1.5;
}
[data-theme="dark"] .amc-word-pill {
  color: #fbbf24;
}
.amc-word-def {
  font-size: 21.5px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.75;
  font-family: 'Cairo', sans-serif;
}
.amc-verse-meaning-block {
  padding: 14px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  direction: rtl;
  text-align: right;
}
.amc-direct-sentence {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1.5px solid rgba(var(--primary-rgb), 0.28);
  font-size: 20.5px;
  font-weight: 800;
  line-height: 1.85;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
}
.amc-wbw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
  direction: rtl;
}
.amc-wbw-card {
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.amc-wbw-ar {
  font-family: var(--quran-font, 'Amiri', serif);
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
}
.amc-wbw-en {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  direction: ltr;
}
