/* ============================================
   ZAKAT CALCULATOR PAKISTAN - MASTER STYLESHEET
   Islamic-inspired, Mobile-first, Performance-optimized
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --primary: #1B7A3D;
  --primary-light: #2E9B55;
  --primary-dark: #145C2E;
  --primary-glow: rgba(27,122,61,0.18);
  --secondary: #D4AF37;
  --secondary-light: #E8C84A;
  --accent: #F0E6D2;
  --bg: #F8FAF5;
  --bg-card: #FFFFFF;
  --bg-section: #EFF5EC;
  --text: #1A2E1A;
  --text-secondary: #4A6B4A;
  --text-muted: #7A957A;
  --border: #D4E4D0;
  --border-light: #E8F0E4;
  --shadow: 0 2px 12px rgba(27,122,61,0.08);
  --shadow-lg: 0 8px 32px rgba(27,122,61,0.12);
  --shadow-xl: 0 16px 48px rgba(27,122,61,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-h: 70px;
}

/* ---------- Dark Mode Tokens ---------- */
[data-theme="dark"] {
  --bg: #0F1A0F;
  --bg-card: #172017;
  --bg-section: #1A2A1A;
  --text: #E0ECE0;
  --text-secondary: #A8C8A8;
  --text-muted: #6A8A6A;
  --border: #2A3E2A;
  --border-light: #223222;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
  --primary-glow: rgba(46,155,85,0.25);
}

/* ---------- Ramadan Mode Tokens ---------- */
[data-theme="ramadan"] {
  --primary: #1B4D6E;
  --primary-light: #2A6B94;
  --primary-dark: #0E3450;
  --primary-glow: rgba(27,77,110,0.2);
  --secondary: #D4AF37;
  --bg: #0A1628;
  --bg-card: #12223A;
  --bg-section: #0E1C30;
  --text: #E8E0D0;
  --text-secondary: #B0A890;
  --text-muted: #7A7060;
  --border: #1E3450;
  --border-light: #162840;
  --shadow: 0 2px 12px rgba(212,175,55,0.1);
  --shadow-lg: 0 8px 32px rgba(212,175,55,0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; }

/* ---------- UTILITIES ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }
.text-center { text-align: center; }
.text-gold { color: var(--secondary); }
.text-green { color: var(--primary); }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; font-size: 1.05rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.urdu-content { display: none; direction: rtl; font-family: var(--font-urdu); }
[data-lang="ur"] .en-content { display: none; }
[data-lang="ur"] .urdu-content { display: block; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,122,61,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,122,61,0.4);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #1A2E1A;
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
  color: #1A2E1A;
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--radius-full); }

/* ---------- HEADER / NAVIGATION ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248,250,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
  transition: background var(--transition);
}
[data-theme="dark"] .header { background: rgba(15,26,15,0.92); }
[data-theme="ramadan"] .header { background: rgba(10,22,40,0.92); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-glow); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Theme & Lang Toggles */
.toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}
.toggle-btn:hover { background: var(--primary-glow); color: var(--primary); }

/* ---------- HERO SECTION ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 50%);
  opacity: 0.5;
  animation: pulse-bg 6s ease-in-out infinite;
}
@keyframes pulse-bg { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 0.7; } }
.hero-content { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge svg { width: 16px; height: 16px; }

/* ---------- CARD SYSTEM ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.card-title { margin-bottom: 8px; }
.card-text { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- GRID LAYOUTS ---------- */
.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; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- HOW IT WORKS ---------- */
.steps { counter-reset: step; }
.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(27,122,61,0.25);
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.trust-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ---------- FAQ SECTION ---------- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-section); }
.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- RAMADAN BANNER ---------- */
.ramadan-banner {
  background: linear-gradient(135deg, #0A1628, #1B4D6E);
  color: #E8E0D0;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ramadan-banner::before {
  content: '☪';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 8rem;
  opacity: 0.08;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ramadan-banner h3 { color: var(--secondary); margin-bottom: 8px; font-size: 1.4rem; }
.ramadan-banner p { margin-bottom: 20px; opacity: 0.9; }
.countdown-timer {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.countdown-unit {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
}
.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}
.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-top: 4px;
}

/* ---------- CALCULATOR FORM ---------- */
.calc-container {
  max-width: 800px;
  margin: 0 auto;
}
.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}
.calc-toggle {
  display: flex;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
}
.calc-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.calc-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,122,61,0.3);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label small {
  font-weight: 400;
  color: var(--text-muted);
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 28px 0;
}

/* Calculator Result */
.calc-result {
  display: none;
  margin-top: 32px;
  animation: slideUp 0.5s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.calc-result.show { display: block; }
.result-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}
.result-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 12px 0;
}
.result-label {
  opacity: 0.85;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row strong { color: var(--primary); }
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.nisab-info {
  background: var(--primary-glow);
  border: 1px solid rgba(27,122,61,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nisab-info strong { color: var(--primary); }

/* ---------- REMINDER WIDGET ---------- */
.reminder-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.reminder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.reminder-header h4 { display: flex; align-items: center; gap: 8px; }
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  bottom: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.reminder-time-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- BLOG CARDS ---------- */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 3rem;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.blog-card-link { font-weight: 600; font-size: 0.9rem; }

/* ---------- CONTENT PAGES ---------- */
.content-page { max-width: 800px; margin: 0 auto; }
.content-page h1 { margin-bottom: 24px; }
.content-page h2 { margin: 32px 0 16px; color: var(--primary); }
.content-page h3 { margin: 24px 0 12px; }
.content-page p { color: var(--text-secondary); }
.content-page ul, .content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: 8px; }
.content-page blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.content-page .info-box {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.content-page th, .content-page td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.content-page th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--text);
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; }
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* ---------- CONTACT FORM ---------- */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
  transition: border-color var(--transition);
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 20px;
  background: rgba(248,250,245,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
[data-theme="dark"] .sticky-cta { background: rgba(15,26,15,0.95); }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 768px) { .sticky-cta { display: block; } }
body.has-sticky-cta { padding-bottom: 80px; }

/* ---------- AD PLACEHOLDERS ---------- */
.ad-container {
  background: var(--bg-section);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 24px 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- NOTIFICATION POPUP ---------- */
.notification-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  animation: slideInRight 0.4s ease;
  transform: translateX(0);
}
.notification-popup.hiding {
  animation: slideOutRight 0.4s ease forwards;
}
@keyframes slideInRight { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(120%); } }
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 24px;
  height: 24px;
}

/* ---------- LANTERN SVG DECORATIONS ---------- */
.lantern {
  position: absolute;
  animation: swing 3s ease-in-out infinite;
  opacity: 0.15;
}
@keyframes swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ---------- CRESCENT DECORATION ---------- */
.crescent-deco {
  position: absolute;
  font-size: 6rem;
  opacity: 0.06;
  color: var(--secondary);
  pointer-events: none;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .header, .footer, .sticky-cta, .nav, .hamburger, .toggle-btn,
  .btn-secondary, .result-actions, .reminder-widget, .ad-container { display: none !important; }
  body { background: #fff; color: #000; }
  .result-card { color: #000; background: #f0f0f0 !important; print-color-adjust: exact; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { 
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .hamburger { display: flex; }
  .hero { padding: 50px 0 40px; }
  .calc-card { padding: 24px; }
  .footer-grid { gap: 24px; }
  .section { padding: 40px 0; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .result-amount { font-size: 1.8rem; }
  .cta-banner { padding: 40px 20px; }
  .ramadan-banner { padding: 24px 16px; }
  .countdown-unit { min-width: 65px; padding: 12px; }
  .countdown-number { font-size: 1.5rem; }
}

/* ---------- 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);
}

/* ---------- SKELETON LOADER ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-section) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
