/* main.css — Loaded async, full site styles */

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
.h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; }
.h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; max-width: 640px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .subtitle { margin: 12px auto 0; }
.overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 8px;
}
.arabic-text {
  font-family: 'Noto Naskh Arabic', var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
  font-size: 1.4rem;
  line-height: 2;
  color: var(--green-900);
}
.arabic-large {
  font-family: 'Noto Naskh Arabic', var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
  font-size: 2rem;
  line-height: 1.8;
}
.arabic {
  font-family: 'Noto Naskh Arabic', var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.btn-primary {
  background: var(--green-800);
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-primary:hover { background: var(--green-900); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--green-800);
  padding: 14px 32px;
  font-size: 1rem;
  border: 2px solid var(--green-800);
  border-radius: var(--radius-lg);
}
.btn-secondary:hover { background: var(--green-50); color: var(--green-900); }
.btn-gold {
  background: var(--gold-600);
  color: #fff;
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  min-height: 56px;
}
.btn-gold:hover { background: var(--gold-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-600);
  padding: 14px 32px;
  font-size: 1rem;
  border: 2px solid var(--gold-600);
  border-radius: var(--radius-lg);
}
.btn-outline-gold:hover { background: var(--gold-50); color: var(--gold-700); }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.03); }

/* Feature cards */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  border-left: 3px solid transparent;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-left-color: var(--green-700);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-700);
}
.feature-card .icon svg { width: 24px; height: 24px; }

/* Surah cards */
.surah-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.surah-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.surah-card-img { height: 200px; overflow: hidden; }
.surah-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.surah-card:hover .surah-card-img img { transform: scale(1.05); }
.surah-card-body { padding: 24px; }

/* Blog cards */
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ========================================
   GRIDS
   ======================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--bg) 50%, var(--gold-50) 100%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text .h1 { margin-bottom: 20px; }
.hero-text .h1 span { color: var(--green-700); }
.hero-text .subtitle { margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { text-align: center; }
.hero-image img { max-width: 360px; margin: 0 auto; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

/* Islamic geometric pattern background */
.geo-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  pointer-events: none;
  overflow: hidden;
}
.geo-pattern svg {
  position: absolute;
  animation: geoRotate 60s linear infinite;
}
@keyframes geoRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text .subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: 2; }
  .hero-image img { max-width: 280px; }
  .h1 { font-size: 2rem; }
}

/* ========================================
   FRIDAY BANNER
   ======================================== */
.friday-banner {
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  color: #fff;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
}
.friday-banner a { color: var(--gold-400); font-weight: 700; margin-left: 8px; }
.friday-banner a:hover { color: var(--gold-300); text-decoration: underline; }

/* ========================================
   SOCIAL PROOF BAR
   ======================================== */
.social-proof {
  background: var(--green-50);
  border-top: 2px solid var(--gold-100);
  border-bottom: 2px solid var(--gold-100);
  padding: 24px 0;
}
.proof-pills {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-900);
  white-space: nowrap;
}
.proof-pill .number { font-size: 1.1rem; font-weight: 800; color: var(--green-800); }

/* ========================================
   INFOGRAPHIC
   ======================================== */
.infographic {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin: 32px 0;
}
.progress-infographic {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 56px;
  margin: 24px 0 16px;
}
.progress-infographic .seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: flex-basis var(--transition);
}
.seg-subhanallah { background: var(--green-700); flex: 33; }
.seg-alhamdulillah { background: var(--gold-600); flex: 33; }
.seg-allahuakbar { background: var(--green-900); flex: 34; }
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.progress-labels span { text-align: center; flex: 1; }

@media (max-width: 640px) {
  .progress-infographic {
    flex-direction: column;
    height: auto;
    border-radius: var(--radius-sm);
  }
  .progress-infographic .seg {
    padding: 12px;
    border-radius: 0;
  }
  .progress-labels { flex-direction: column; gap: 4px; }
}

/* ========================================
   LIVE COUNTER PREVIEW
   ======================================== */
.counter-preview {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.counter-tap-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(27,94,59,0.3);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.counter-tap-btn:active { transform: scale(0.95); }
.counter-tap-btn:hover { box-shadow: 0 6px 28px rgba(27,94,59,0.4); }
.counter-tap-btn.pulse {
  animation: counterPulse 0.3s ease;
}
@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.counter-display {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-800);
  margin: 24px 0 8px;
}
.counter-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.dhikr-select {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dhikr-select button {
  padding: 8px 16px;
  border: 2px solid var(--green-100);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.dhikr-select button.active,
.dhikr-select button:hover {
  border-color: var(--green-700);
  background: var(--green-50);
  color: var(--green-800);
}
.counter-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.sunnah-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ccc;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.toggle-switch.active { background: var(--green-700); }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}
.toggle-switch.active::after { transform: translateX(20px); }

/* Progress ring */
.progress-ring-container {
  position: relative;
  display: inline-block;
  margin: 24px 0;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--green-100); }
.progress-ring-fill { fill: none; stroke: var(--green-700); stroke-linecap: round; transition: stroke-dashoffset 0.3s ease; }

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--green-100);
}
.step { text-align: center; position: relative; }
.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-50);
  border: 3px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-800);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}

/* ========================================
   HADITH QUOTES
   ======================================== */
.hadith-block {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 4px solid var(--gold-600);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hadith-block .arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.3rem;
  line-height: 2;
  color: var(--green-900);
  margin-bottom: 12px;
}
.hadith-block .translation {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.hadith-block .source {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th {
  background: var(--green-800);
  color: #fff;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  font-size: 0.9rem;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.comparison-table tr:hover td { background: var(--green-50); }
.check-icon { color: var(--green-700); }
.cross-icon { color: var(--red-muted); opacity: 0.5; }

/* ========================================
   STATS SECTION (animated counters)
   ======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.testimonial-card .stars { color: var(--gold-600); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card .review { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-card .reviewer { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--green-100); }
.testimonial-card .reviewer-info .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .reviewer-info .location { font-size: 0.8rem; color: var(--text-muted); }

/* ========================================
   FAQ
   ======================================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer a { font-weight: 600; }

/* ========================================
   DOWNLOAD CTA SECTION
   ======================================== */
.download-cta {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.download-cta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.download-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.download-cta p { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }
.download-cta ul { list-style: none; margin-bottom: 32px; }
.download-cta ul li {
  color: rgba(255,255,255,0.9);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
}
.download-cta ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-400);
  font-weight: 700;
}
.download-cta img { max-width: 300px; margin: 0 auto; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
@media (max-width: 768px) {
  .download-cta .container { grid-template-columns: 1fr; text-align: center; }
  .download-cta ul { text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; margin-bottom: 32px; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .tagline { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--green-700); color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold-400); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 9000;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-900); transform: translateY(-2px); }

/* WhatsApp share float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 9000;
  text-decoration: none;
}
.whatsapp-float:hover { background: #20BA5A; color: #fff; transform: translateY(-2px); }

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green-900);
  color: rgba(255,255,255,0.9);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10002;
  font-size: 0.9rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1; }
.cookie-banner button {
  background: var(--gold-600);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--gold-700); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; text-align: center; }
}

/* ========================================
   DHIKR TYPE CARDS
   ======================================== */
.dhikr-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.dhikr-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.dhikr-card .arabic {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--green-900);
  direction: rtl;
  margin-bottom: 8px;
  line-height: 1.6;
}
.dhikr-card .transliteration {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 8px;
}
.dhikr-card .meaning {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }

/* ========================================
   CONTENT PAGES
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--bg) 100%);
  padding: 48px 0;
  text-align: center;
}
.page-hero .h1 { margin-bottom: 12px; }
.page-hero .subtitle { margin: 0 auto; }

.content-body { padding: 48px 0; }
.content-body h2 { font-size: 1.75rem; font-weight: 700; margin: 40px 0 16px; color: var(--text-primary); }
.content-body h3 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 12px; }
.content-body p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.content-body ul, .content-body ol { margin: 16px 0; padding-left: 24px; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.content-body strong { color: var(--text-primary); }
.content-body blockquote {
  border-left: 4px solid var(--gold-600);
  padding: 16px 24px;
  background: var(--gold-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.content-body a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--green-200); text-underline-offset: 3px; }
.content-body a:hover { text-decoration-color: var(--green-700); }

/* Animated book reader */
.book-reader {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 32px 0;
}
.book-reader-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.book-page {
  padding: 32px;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.book-page:last-child { border-right: none; }
.book-page.arabic-page {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--green-900);
}
.book-page.english-page {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.book-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--green-50);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.book-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--green-800);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
}
.book-nav button:hover { background: var(--green-100); }
.book-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
@media (max-width: 768px) {
  .book-reader-pages { grid-template-columns: 1fr; }
  .book-page { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
}

/* ========================================
   COUNTER PAGE (Full-Screen)
   ======================================== */
.counter-page {
  text-align: center;
  padding: 32px 0;
}
.counter-main-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 32px rgba(27,94,59,0.35);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.counter-main-btn:active { transform: scale(0.93); }
.counter-main-btn.bounce { animation: counterPulse 0.3s ease; }
@media (max-width: 768px) {
  .counter-main-btn { width: 96px; height: 96px; font-size: 1.6rem; }
}
.counter-main-display {
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-800);
  margin: 16px 0 4px;
}
.sunnah-panel {
  background: var(--green-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.sunnah-steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.sunnah-step {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(0,0,0,0.05);
}
.sunnah-step.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.sunnah-step.complete { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }

/* Stats panel */
.stats-panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stats-panel .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.95rem;
}
.stats-panel .stat-row:last-child { border-bottom: none; }
.stats-panel .stat-row .label { color: var(--text-muted); }
.stats-panel .stat-row .value { font-weight: 700; color: var(--green-800); }

/* Presets list */
.preset-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.preset-card:hover { background: var(--green-50); border-color: var(--green-200); }
.preset-card .preset-arabic {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--green-900);
  direction: rtl;
}
.preset-card .preset-name { font-weight: 600; font-size: 0.95rem; }
.preset-card .preset-meaning { font-size: 0.85rem; color: var(--text-muted); }
.preset-card .preset-target {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ========================================
   ADHKAR LIST
   ======================================== */
.adhkar-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.adhkar-item .adhkar-arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  color: var(--green-900);
  margin-bottom: 12px;
  padding: 16px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
}
.adhkar-item .adhkar-transliteration {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.adhkar-item .adhkar-translation {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.7;
}
.adhkar-item .adhkar-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.adhkar-item .adhkar-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--green-700);
}

/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
  text-align: center;
  padding: 100px 24px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-404 h1 { font-size: 6rem; font-weight: 800; color: var(--green-200); margin-bottom: 16px; }
.page-404 h2 { font-size: 1.5rem; margin-bottom: 12px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.page-404 .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-primary); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--surface);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green-700); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page { padding: 48px 0; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-page p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin: 16px 0; }
.legal-page li { color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar, .footer, .back-to-top, .whatsapp-float, .cookie-banner, .scroll-progress { display: none !important; }
  body { padding-top: 0; }
}
