/* ==========================================================================
   أذكار الصباح - صدقة جارية للمرحوم محسن عبد المنعم عبد الرحمن (والد ريتاج)
   التصميم والأنماط - CSS Stylesheet
   ========================================================================== */

:root {
  --primary: #0f4c3a;
  --primary-light: #186b53;
  --primary-dark: #0a3528;
  --primary-soft: #eaf5f0;
  --accent-gold: #c59b27;
  --accent-gold-light: #dfb746;
  --accent-gold-dark: #9e7a17;
  --accent-gold-soft: #fcf6e8;
  --bg-page: #fbf9f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8faf8;
  --text-main: #23302a;
  --text-muted: #5e7067;
  --text-light: #889990;
  --border-color: #e3ebe6;
  --border-gold: rgba(197, 155, 39, 0.35);
  --shadow-sm: 0 2px 8px rgba(15, 76, 58, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 76, 58, 0.08);
  --shadow-lg: 0 14px 35px rgba(15, 76, 58, 0.12);
  --shadow-gold: 0 6px 20px rgba(197, 155, 39, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-arabic-quran: 'Amiri', 'Traditional Arabic', serif;
  --font-arabic-ui: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --user-font-scale: 1rem;
}

[data-theme="dark"] {
  --primary: #1e6b54;
  --primary-light: #2c8e71;
  --primary-dark: #0f3d30;
  --primary-soft: #122820;
  --accent-gold: #d8ad3b;
  --accent-gold-light: #ecd171;
  --accent-gold-dark: #b0881f;
  --accent-gold-soft: #2d2616;
  --bg-page: #0d1612;
  --bg-card: #15221c;
  --bg-card-subtle: #1c2c25;
  --text-main: #e8efe9;
  --text-muted: #a6baa9;
  --text-light: #708575;
  --border-color: #24392e;
  --border-gold: rgba(216, 173, 59, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 35px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 6px 20px rgba(216, 173, 59, 0.25);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

body {
  font-family: var(--font-arabic-ui);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(197, 155, 39, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(15, 76, 58, 0.04) 0%, transparent 40%);
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header Progress Bar
   ========================================================================== */

.sticky-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .sticky-progress-container {
  background: rgba(13, 22, 18, 0.92);
}

.sticky-progress-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  gap: 0.75rem;
}

.brand-minimal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
}

[data-theme="dark"] .brand-minimal {
  color: var(--accent-gold-light);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 320px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--primary-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .progress-track {
  background: var(--bg-card-subtle);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero & Dedication Section
   ========================================================================== */

.hero-section {
  padding-top: 5rem;
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
}

.bismillah {
  font-family: var(--font-arabic-quran);
  font-size: 1.6rem;
  color: var(--accent-gold-dark);
  margin-bottom: 0.75rem;
  display: block;
}

[data-theme="dark"] .bismillah {
  color: var(--accent-gold);
}

.main-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .main-title {
  color: #ffffff;
}

.sub-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

/* Dedication Memorial Card */
.dedication-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-gold-soft) 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin: 1.5rem auto 2rem auto;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.dedication-card::before {
  content: '﷽';
  position: absolute;
  top: -15px;
  left: 20px;
  font-family: var(--font-arabic-quran);
  font-size: 5rem;
  color: var(--accent-gold);
  opacity: 0.08;
  pointer-events: none;
}

.dedication-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.4);
}

.deceased-name {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

[data-theme="dark"] .deceased-name {
  color: var(--accent-gold-light);
}

.deceased-relation {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] .deceased-relation {
  color: var(--accent-gold);
}

.dedication-prayer {
  font-family: var(--font-arabic-quran);
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 2;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.dedication-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-prayer {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic-ui);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.btn-prayer:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-share-charity {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic-ui);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share-charity:hover {
  background: #1da851;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   Audio Player Bar
   ========================================================================== */

.audio-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.audio-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.audio-icon-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

[data-theme="dark"] .audio-icon-pulse {
  background: var(--primary-dark);
  color: var(--accent-gold-light);
}

.audio-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.audio-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audio-player-element {
  flex: 1;
  min-width: 240px;
  height: 40px;
}

audio {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   View Mode & Font Toolbar
   ========================================================================== */

.toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.view-tabs {
  display: inline-flex;
  background: var(--primary-soft);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
}

[data-theme="dark"] .view-tabs {
  background: var(--bg-card-subtle);
}

.view-tab-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 76, 58, 0.25);
}

.font-tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tool-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic-ui);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn-reset-all {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-all:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

/* ==========================================================================
   Athkar List & Cards
   ========================================================================== */

.athkar-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.thikr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.thikr-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--primary-light);
  transition: background var(--transition-fast);
}

.thikr-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.thikr-card.completed {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-soft) 100%);
  border-color: var(--primary-light);
}

.thikr-card.completed::before {
  background: var(--accent-gold);
}

/* Card Header */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.thikr-badge-id {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .thikr-badge-id {
  background: var(--primary-dark);
  color: var(--accent-gold-light);
}

.thikr-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.card-action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Thikr Body Text */
.thikr-text {
  font-family: var(--font-arabic-quran);
  font-size: calc(1.35rem * var(--user-font-scale));
  line-height: 2.1;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-align: justify;
  text-justify: kashida;
  word-spacing: 0.1em;
  padding: 0 0.25rem;
}

/* Virtue / Reward Box */
.thikr-fadl {
  background: var(--accent-gold-soft);
  border-right: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: calc(0.95rem * var(--user-font-scale));
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.fadl-icon {
  color: var(--accent-gold-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

[data-theme="dark"] .thikr-fadl {
  background: var(--bg-card-subtle);
  border-color: var(--accent-gold);
}

[data-theme="dark"] .fadl-icon {
  color: var(--accent-gold-light);
}

/* Card Counter Footer */
.card-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.counter-progress-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.target-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.completion-status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: none;
}

.thikr-card.completed .completion-status-text {
  display: inline-block;
  color: #27ae60;
}

/* Interactive Big Count Button */
.btn-count-tap {
  position: relative;
  background: var(--primary);
  color: #ffffff;
  border: none;
  min-width: 140px;
  height: 52px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-arabic-ui);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 76, 58, 0.25);
  transition: all var(--transition-fast);
  user-select: none;
  overflow: hidden;
}

.btn-count-tap:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 76, 58, 0.35);
}

.btn-count-tap:active {
  transform: scale(0.95);
}

.btn-count-tap.done {
  background: #27ae60;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.3);
}

.btn-count-tap .count-number {
  font-size: 1.25rem;
  font-family: monospace;
}

.count-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.count-reset-btn:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

/* ==========================================================================
   Original Images Gallery View (Tabs)
   ========================================================================== */

.images-view-section {
  display: none;
  margin-bottom: 3.5rem;
}

.images-view-section.active {
  display: block;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.image-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.image-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-thumb-wrap:hover img {
  transform: scale(1.03);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-weight: 700;
  gap: 0.5rem;
}

.image-thumb-wrap:hover .image-overlay {
  opacity: 1;
}

.image-card-footer {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .image-card-footer {
  color: var(--accent-gold-light);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Deceased Memorial & Dua Section (والد ريتاج)
   ========================================================================== */

.deceased-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-soft) 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.section-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-gold);
}

.deceased-section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .deceased-section-title {
  color: var(--accent-gold-light);
}

.deceased-section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.dua-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-align: right;
}

.dua-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-arabic-quran);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-main);
}

.live-dua-counter-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.dua-count-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .dua-count-num {
  color: var(--accent-gold-light);
}

/* ==========================================================================
   SEO Informative Article & Hadith Context (For Google Discoverability)
   ========================================================================== */

.seo-rich-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.seo-rich-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
}

[data-theme="dark"] .seo-rich-content h2 {
  color: var(--accent-gold-light);
}

.seo-rich-content h3 {
  font-size: 1.2rem;
  color: var(--accent-gold-dark);
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 700;
}

[data-theme="dark"] .seo-rich-content h3 {
  color: var(--accent-gold);
}

.seo-rich-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.seo-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.seo-tag {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .seo-tag {
  background: var(--bg-card-subtle);
  color: var(--accent-gold-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem 4.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.footer-dedication {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .footer-dedication {
  color: var(--accent-gold-light);
}

.footer-sub {
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

/* Floating Action Button (Scroll to top) */
.btn-floating-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
}

.btn-floating-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-floating-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 25px;
  right: 50%;
  transform: translateX(50%) translateY(100px);
  background: rgba(15, 76, 58, 0.95);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-notice.show {
  transform: translateX(50%) translateY(0);
  opacity: 1;
}

/* Floating heart animation for prayer button */
.floating-heart {
  position: fixed;
  pointer-events: none;
  animation: floatUp 1.8s ease-out forwards;
  z-index: 3000;
  font-size: 1.5rem;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.4);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(197, 155, 39, 0);
  }
}

/* Responsive queries */
@media (max-width: 640px) {
  .hero-section {
    padding-top: 4.5rem;
  }
  .dedication-card {
    padding: 1.25rem 1rem;
  }
  .thikr-card {
    padding: 1.25rem 1rem;
  }
  .card-counter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .btn-count-tap {
    width: 100%;
  }
  .toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }
  .view-tabs {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Print Stylesheet (للطباعة والحفظ كـ PDF)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .sticky-progress-container,
  .audio-bar-card,
  .toolbar-card,
  .card-action-btn,
  .card-counter-row,
  .dedication-actions,
  .btn-prayer,
  .btn-share-charity,
  .btn-floating-top,
  .toast-notice,
  .lightbox-modal,
  .images-view-section {
    display: none !important;
  }

  .hero-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .dedication-card {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    background: #f9f9f9 !important;
    break-inside: avoid;
    margin-bottom: 2rem;
  }

  .thikr-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
  }

  .thikr-text {
    font-size: 14pt !important;
    line-height: 2 !important;
    color: #000000 !important;
  }

  .thikr-fadl {
    border-right: 2px solid #666666 !important;
    background: #f0f0f0 !important;
    color: #333333 !important;
  }

  .site-footer {
    border-top: 1px solid #000000 !important;
    padding: 1rem 0 !important;
  }
}


