/* 
  365 Islamic - Premium Stylesheet
  Constructed with CSS Variables for Theming and Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

@font-face {
  font-family: 'AlQalamQuranMajeed';
  src: url('../fonts/AlQalamQuranMajeed.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AmiriQuran';
  src: url('../fonts/AmiriQuran-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #0d9488;
  /* Teal-600 */
  --accent-color-rgb: 13, 148, 136;
  --accent-hover: #0f766e;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0f172a;
  /* Slate-900 */
  --bg-secondary: #1e293b;
  /* Slate-800 */
  --text-primary: #ffffff;
  --text-secondary: #f0f0f0ee;
  --accent-color: #14b8a6;
  /* Teal-500 */
  --accent-color-rgb: 20, 184, 166;
  --accent-hover: #2dd4bf;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Ensure body is relative for fixed bg */
}

#global-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* Behind everything */
  background-position: center;
  opacity: 0.1;
  /* Default opacity, controlled by JS */
  pointer-events: none;
  transition: opacity 0.3s ease, background-image 0.5s ease;
}

/* Optional: Overlay to ensure text readability if image is busy */
#global-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  opacity: 0.8;
  /* Mix with theme background */
  z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section v2 */
#hero-v2 {
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-content-v2 {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: floatVertical 6s ease-in-out infinite;
}

.hero-title-v2 {
  font-family: 'Amiri', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(184, 134, 11, 0.2));
}

.hero-subtitle-v2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions-v2 {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-premium {
  padding: 1rem 2.5rem;
  background: var(--accent-color);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.4);
  background: var(--accent-hover);
}

.btn-clear {
  padding: 1rem 2.5rem;
  background: rgba(var(--accent-color-rgb), 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-clear:hover {
  background: rgba(var(--accent-color-rgb), 0.1);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

[data-theme="dark"] .hero-content-v2 {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-subtitle-v2 {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .btn-clear {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes floatVertical {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Original hero section removed */

/* Search Engine Styles Removed */

/* Card Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  direction: rtl;
  /* Flip grid order */
}

.features-grid .card {
  direction: ltr;
  /* Internal content usually LTR for English, overridden by .rtl class where needed */
}

.card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--bg-primary);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-color);
}

.card-icon svg {
  width: 40px;
  height: 40px;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(128, 128, 128, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 1rem;
  }

  nav ul {
    display: none;
    /* Mobile menu implementation needed later */
  }

  .mobile-menu-btn {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    padding: 1rem;
  }

  nav ul {
    display: none;
    /* Hide top nav on mobile */
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  /* Mobile Bottom Nav */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    z-index: 1000;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex: 1;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
  }

  .nav-item.active {
    color: var(--accent-color);
  }

  /* Add padding to body so content isn't hidden */
  body {
    padding-bottom: 70px;
  }
}

/* Default: Hide mobile nav on desktop */
.mobile-nav {
  display: none;
}

/* RTL & Typography Utilities */
.rtl {
  direction: rtl;
  text-align: right;
}

.ltr {
  direction: ltr;
  text-align: left;
}

/* Quran Text Styles */
/* Quran Text Styles */
.arabic-name,
.ayah-text,
.dua-arabic,
#zikr-arabic,
.surah-name,
.arabic-ref {
  font-family: 'AlQalamQuranMajeed', 'AmiriQuran', 'Amiri', serif;
  line-height: 2.4;
  font-weight: 700;
  /* Increased weight */
  color: var(--text-primary);
}

.ayah-text {
  font-size: 2.6rem;
  /* Increased size */
  margin-bottom: 1rem;
  text-align: right;
  direction: rtl;
}

.dua-arabic {
  font-size: 2.2rem;
  /* Increased size */
  margin-bottom: 1rem;
  text-align: right;
  direction: rtl;
}

.arabic-ref {
  font-size: 2.0rem;
  margin-bottom: 0.5rem;
  text-align: right;
  direction: rtl;
  width: 100%;
}

.urdu-font,
.urdu-text,
.urdu-translation {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  line-height: 2.0;
  font-size: 1.3rem;
  /* Slightly smaller than Arabic, but readable */
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: right;
  direction: rtl;
}

.english-text,
.dua-meta {
  font-size: 0.95rem;
  /* Smallest */
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dua Card Styles */
.dua-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.dua-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
  flex-direction: row-reverse;
  /* Header items RTL */
}

.dua-category {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Ayah Number Badge */
.ayah-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-color);
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
}

.ayah-num::before {
  content: '۝';
  position: absolute;
  font-size: 3.2rem;
  font-family: 'Amiri', serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-color);
  opacity: 0.8;
  z-index: -1;
}

/* Decorative Outer Ring */
.ayah-num::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.2;
  background: rgba(20, 184, 166, 0.05);
}

/* Namaz Guide Specific Styles */
.namaz-step .arabic-text {
  font-size: 3.125rem !important;
  /* Exactly ~50px as requested */
  /* Extremely big as requested */
  line-height: 1.8 !important;
  color: var(--accent-color);
  margin: 2rem 0;
  display: block;
  font-weight: 700;
}

.namaz-step .english-text {
  font-size: 0.8rem !important;
  /* Smaller English */
  opacity: 0.6;
  font-style: italic;
}

.namaz-step .text-secondary {
  font-size: 0.85rem !important;
  /* Smaller descriptions */
}

.namaz-card p.font-medium {
  font-size: 0.8rem !important;
  /* Smaller labels */
  opacity: 0.7;
}

.font-urdu {
  font-family: 'Noto Nastaliq Urdu', serif !important;
}

.font-arabic {
  font-family: 'AlQalamQuranMajeed', 'AmiriQuran', serif !important;
}

/* Ensure responsiveness for large text */
@media (max-width: 768px) {
  .namaz-step .arabic-text {
    font-size: 2.2rem !important;
  }
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-glass {
  width: 80%;
  max-width: 300px;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid var(--glass-border);
}

.mobile-overlay.active .mobile-menu-glass {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-links a.active {
  color: var(--accent-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Highlight Namaz Card */
.namaz-highlight-card {
  border: 1px solid var(--accent-color) !important;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), transparent) !important;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.2) !important;
}

.namaz-highlight-card h3 {
  color: var(--accent-color) !important;
}

.explore-grid .card p {
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* Daily Reminders Section */
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  direction: ltr;
  /* Ensure LTR layout for cards */
}

.reminder-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  gap: 1rem;
  text-decoration: none;
}

.reminder-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.reminder-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.reminder-content {
  flex: 1;
}

.reminder-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.action-text {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
}

/* Responsive adjustments for reminders */
@media (max-width: 600px) {
  .reminders-grid {
    grid-template-columns: 1fr;
    /* Stack vertically on small screens */
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90%;
  width: 600px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 0, 0, 0.1);
  color: #ef4444;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ef4444;
  color: white;
}

.arabic-modal-text {
  font-family: 'AmiriQuran', 'Traditional Arabic', serif;
  font-size: 2.2rem;
  line-height: 2.5;
  color: var(--text-primary);
  margin: 1.5rem 0;
  direction: rtl;
  text-align: center;
}

.darood-header {
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0.9;
  font-size: 1.1rem;
}

.bismillah-box {
  background: #065f46;
  /* Dark Green */
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  display: inline-block;
  margin: 0 auto 2rem auto;
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.modal-content.glass {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 800px;
}

[data-theme="dark"] .arabic-modal-text {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Copy Button & Toast Styles */
.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.copy-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  opacity: 1;
}

.copy-btn.copied {
  color: #10b981;
  /* Success Green */
  opacity: 1;
}

.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.toast-notification.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ayah-card,
.dua-card {
  position: relative;
}

.ayah-card .copy-btn,
.dua-card .copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
}

.name-card .copy-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  /* Opposite of numbers */
}

/* Footer Social Icons */
.social-links {
  margin-bottom: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.social-icon:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 90px;
  /* Above mobile bottom nav */
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 155px;
    /* Stay clear of mobile nav and menu */
  }
}

/* Prayer Tracker Enhancements */
.prayer-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.prayer-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 1s linear;
}

.prayer-card {
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.prayer-card.active {
  background: rgba(13, 148, 136, 0.15);
  border-color: var(--accent-color);
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.1);
}

.prayer-card.active .prayer-name {
  color: var(--accent-color);
  font-weight: bold;
}