/* ==========================================================================
   ZikrPulse - Modern Digital Tasbih & Morning/Evening Adhkar
   Styles: Calming Dark Slate & Emerald Theme with Luxury Islamic Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Variables & Theme Palettes --- */
:root {
  /* Emerald Slate (Default) */
  --bg-main: #090e12;
  --bg-surface: #0f171c;
  --bg-card: rgba(18, 28, 33, 0.75);
  --bg-card-hover: rgba(24, 38, 45, 0.85);
  --border-subtle: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(16, 185, 129, 0.4);
  
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-glow-intense: rgba(16, 185, 129, 0.5);

  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.25);
  --accent-cyan: #06b6d4;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-arabic: #f8fafc;

  --ring-bg: rgba(15, 23, 42, 0.6);
  --ring-track: rgba(148, 163, 184, 0.12);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--primary-glow);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Midnight OLED Theme */
body[data-theme="midnight"] {
  --bg-main: #000000;
  --bg-surface: #080808;
  --bg-card: rgba(15, 15, 18, 0.85);
  --bg-card-hover: rgba(24, 24, 28, 0.95);
  --border-subtle: rgba(52, 211, 153, 0.18);
  --border-glow: rgba(52, 211, 153, 0.5);
  --primary: #05df72;
  --primary-light: #52f89f;
  --primary-glow: rgba(5, 223, 114, 0.25);
  --primary-glow-intense: rgba(5, 223, 114, 0.6);
  --ring-track: rgba(255, 255, 255, 0.08);
}

/* Amber Warmth Theme */
body[data-theme="amber"] {
  --bg-main: #0e0a06;
  --bg-surface: #171109;
  --bg-card: rgba(30, 22, 13, 0.8);
  --bg-card-hover: rgba(42, 31, 18, 0.9);
  --border-subtle: rgba(245, 158, 11, 0.2);
  --border-glow: rgba(245, 158, 11, 0.5);
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --primary-dark: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  --primary-glow-intense: rgba(245, 158, 11, 0.6);
  --ring-track: rgba(245, 158, 11, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.04), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(251, 191, 36, 0.04), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular numbers for all counters */
.tabular-nums, .counter-number, .digit {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* --- Layout Container --- */
.app-container {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem 2.5rem;
  position: relative;
}

/* --- Header & Navigation Bar --- */
.site-header {
  padding: 1.25rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.brand-icon-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-title span {
  color: var(--primary-light);
}

.brand-arabic {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat Badges in Header */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.stat-chip.accent {
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
}

.stat-chip.primary {
  border-color: var(--border-glow);
  color: var(--primary-light);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
}

.icon-btn:hover {
  color: #fff;
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn.active {
  color: var(--primary-light);
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
}

/* --- Main Navigation Tabs --- */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: var(--bg-card);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.08));
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.tab-btn .tab-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.25);
  color: var(--primary-light);
  font-family: var(--font-mono);
}

/* --- Tab Panels --- */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   SECTION 1: DIGITAL TASBIH
   ========================================================================== */
.tasbih-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
  width: 100%;
}

/* Preset Dhikr Selector Carousel / Chips */
.preset-selector-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem;
}
.preset-selector-wrapper::-webkit-scrollbar { display: none; }

.preset-chips-list {
  display: flex;
  gap: 0.5rem;
  width: max-content;
}

.preset-chip {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.preset-chip .preset-target {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.preset-chip:hover {
  border-color: var(--border-glow);
  color: #fff;
}

.preset-chip.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #062b1e;
  font-weight: 700;
  box-shadow: 0 0 18px var(--primary-glow-intense);
}

.preset-chip.active .preset-target {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* Active Dhikr Information Card */
.dhikr-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.dhikr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.dhikr-arabic-text {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-arabic);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dhikr-transliteration {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.dhikr-translation {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* --- The Great Tactile Counter Ring --- */
.counter-ring-wrapper {
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0;
}

@media (min-width: 480px) {
  .counter-ring-wrapper {
    width: 330px;
    height: 330px;
  }
}

/* Touch Action Zone (The Button) */
.ring-touch-zone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  outline: none;
  border: none;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* SVG Radial Meter */
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.ring-circle-bg {
  fill: var(--ring-bg);
  stroke: var(--ring-track);
  stroke-width: 10;
}

.ring-circle-progress {
  fill: transparent;
  stroke: url(#progressGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s ease-out;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Center Content inside Ring */
.ring-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.counter-lap-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.counter-number {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s var(--transition-spring);
}

.counter-number.scale-bounce {
  transform: scale(1.1);
}

.counter-target-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.counter-target-label span {
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.tap-indicator {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.75;
}

/* Ripple Animation on Tap */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow-intense), transparent 75%);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Celebration Burst on Target Reach */
@keyframes targetGlow {
  0% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 60px var(--primary); }
  100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
}

.ring-celebrating {
  animation: targetGlow 1s ease-in-out;
}

/* Secondary Controls Row Under Ring */
.tasbih-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  outline: none;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-glow);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #042419;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px var(--primary-glow-intense);
  transform: translateY(-1px);
}

/* Sound Selection Dropdown */
.sound-selector-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sound-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.sound-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* Quick Keyboard & Screen Helper */
.tasbih-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Fullscreen Tap Overlay Mode */
.fullscreen-tap-active {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  background: var(--bg-main) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 1.5rem !important;
  max-width: 100% !important;
}

/* ==========================================================================
   SECTION 2: MORNING & EVENING ADHKAR
   ========================================================================== */
.adhkar-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Section Header Banner */
.adhkar-header-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.banner-title-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-title-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Adhkar Progress Bar */
.adhkar-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Filter & Search Bar */
.adhkar-search-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input-box {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box svg {
  position: absolute;
  left: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.filter-pills {
  display: flex;
  gap: 0.4rem;
}

.filter-pill {
  padding: 0.5rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  color: #fff;
  border-color: var(--border-glow);
}

.filter-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Adhkar Cards List */
.adhkar-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adhkar-item-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.adhkar-item-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.adhkar-item-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), var(--bg-card));
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.card-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Arabic Text Box */
.card-arabic-box {
  padding: 0.75rem 0.5rem;
  text-align: right;
  direction: rtl;
}

.card-arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-arabic);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Transliteration & Translation */
.card-translit-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-gold);
  font-style: italic;
  line-height: 1.4;
}

.card-translation-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Accordion for Virtues & References */
.card-details-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: var(--transition-fast);
}

.card-details-toggle:hover {
  color: var(--primary-light);
}

.card-details-content {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-gold);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.card-details-content.open {
  display: block;
}

.card-virtue {
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.card-ref {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Bottom Action Row with Tap-to-Count Button */
.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.adhkar-tap-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border-glow);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.adhkar-tap-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #042419;
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-1px);
}

.adhkar-tap-btn:active {
  transform: scale(0.98);
}

.adhkar-tap-btn.btn-done {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--primary);
  color: var(--primary-light);
  cursor: default;
  pointer-events: none;
}

.card-progress-indicator {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SECTION 3: ANALYTICS & STREAKS
   ========================================================================== */
.analytics-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.metric-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.stat-metric-card.gold .metric-icon-box {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--accent-gold);
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-family: var(--font-mono);
}

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

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* 7-Day Activity Chart */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 160px;
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.5rem;
}

.chart-bar-wrapper {
  width: 100%;
  max-width: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px 6px 0 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.chart-bar-fill.today {
  background: linear-gradient(180deg, var(--accent-gold), #d97706);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.chart-day-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chart-count-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Badges / Milestones Section */
.milestones-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.badge-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: var(--transition-normal);
  opacity: 0.45;
  filter: grayscale(0.8);
}

.badge-item.unlocked {
  opacity: 1;
  filter: none;
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-surface));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-icon {
  font-size: 1.75rem;
}

.badge-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.badge-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.2;
}

/* Share & Backup Action Box */
.analytics-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODALS, TOASTS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: scale(0.95);
  transition: transform 0.25s var(--transition-spring);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  outline: none;
  margin-top: 0.5rem;
}

.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  margin: 0 auto;
  max-width: 380px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideUp 0.3s var(--transition-spring);
  pointer-events: auto;
}

.toast.toast-gold {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-gold-glow);
}

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

/* --- Site Top Navigation Bar --- */
.site-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav-bar::-webkit-scrollbar {
  display: none;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.site-nav-link:hover {
  color: #fff;
  border-color: var(--border-glow);
  background: var(--bg-card);
  box-shadow: 0 0 12px var(--primary-glow);
}

.site-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

/* --- Content Page Layout (Guides, About, Legal, FAQ, Contact) --- */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.page-hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border-glow);
}

.category-badge.gold {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.35);
}

.category-badge.blue {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
}

.page-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Content Body & Cards */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color var(--transition-fast);
}

.content-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
  letter-spacing: -0.01em;
}

.content-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.content-card p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul, .content-card ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-main);
  line-height: 1.7;
}

.content-card li {
  margin-bottom: 0.5rem;
}

.content-card li strong {
  color: #fff;
}

/* Callout Boxes */
.callout-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  position: relative;
}

.callout-box.emerald {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
}

.callout-box.gold {
  border-left: 4px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), transparent);
}

.callout-box.blue {
  border-left: 4px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), transparent);
}

.callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-box p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Arabic Showcase Cards for Articles */
.dhikr-reference-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.dhikr-ref-arabic {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  color: var(--text-arabic);
  text-align: right;
  direction: rtl;
  line-height: 2.3;
  margin-bottom: 0.85rem;
}

.dhikr-ref-translit {
  font-size: 0.92rem;
  color: var(--primary-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.dhikr-ref-translation {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.dhikr-ref-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.count-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Styled Schedule & Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.styled-table th {
  background: var(--bg-surface);
  color: var(--primary-light);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.styled-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  line-height: 1.5;
}

.styled-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion Styling */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-light);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact & Feedback Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label span.required {
  color: #f87171;
}

.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Audio Suggestion Cards */
.audio-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.audio-suggest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audio-suggest-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-suggest-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Author / Team / Compliance Cards */
.profile-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-surface));
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.profile-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Comprehensive Multi-Column Site Footer --- */
.site-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

@media (max-width: 900px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand-title span {
  color: var(--primary-light);
}

.footer-col p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-nav-list a:hover {
  color: var(--primary-light);
  transform: translateX(2px);
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

.footer-bottom-bar a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer-bottom-bar a:hover {
  text-decoration: underline;
}

.footer-badge-halal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }
  
  .dhikr-arabic-text {
    font-size: 1.8rem;
  }
  
  .card-arabic-text {
    font-size: 1.4rem;
  }
  
  .counter-number {
    font-size: 4rem;
  }
  
  .stat-chip {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }

  .page-hero {
    padding: 1.5rem 1.25rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .content-card {
    padding: 1.25rem;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

