/* =========================================================
   خفن‌لند — انتظار و قرآن
   طراحی: تم طلایی-شب (پیش‌فرض) و کاغذی-روز، با تاکید بر آرامش
   در بخش قرآن/امام و جنب‌وجوش در بخش شهدا.
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- توکن‌های رنگ: تم شب (پیش‌فرض) ---------- */
:root {
  --bg: #07080a;
  --bg-soft: #0c0d10;
  --bg-elevated: rgba(20, 20, 20, 0.55);
  --bg-elevated-solid: #141414;
  --surface-glass: rgba(255, 255, 255, 0.035);
  --surface-glass-strong: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(212, 175, 55, 0.25);
  --border-strong: rgba(212, 175, 55, 0.5);
  --gold-100: #fff3d6;
  --gold-200: #ffe9ad;
  --gold-300: #ffd966;
  --gold-400: #e5c158;
  --gold-500: #d4af37;
  --gold-600: #b28c2e;
  --gold-700: #8a6c22;
  --emerald: #2e9c7a;
  --emerald-soft: rgba(46, 156, 122, 0.22);
  --text-1: #f7f3e8;
  --text-2: #cfc9b8;
  --text-3: #8d8775;
  --shadow-deep: rgba(0, 0, 0, 0.7);
  --overlay: rgba(0, 0, 0, 0.55);
  --particle-rgb: 255, 217, 102;
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --danger-glow: rgba(255, 100, 60, 0.35);
  --font-ui: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  --font-quran: 'Amiri Quran', 'Traditional Arabic', serif;
}

/* ---------- تم روز: حس کاغذ کهنه / صفحهٔ قرآن ---------- */
[data-theme="day"] {
  --bg: #f5edd9;
  --bg-soft: #faf4e6;
  --bg-elevated: rgba(255, 252, 244, 0.72);
  --bg-elevated-solid: #fffaf0;
  --surface-glass: rgba(70, 48, 12, 0.045);
  --surface-glass-strong: rgba(70, 48, 12, 0.08);
  --border-soft: rgba(140, 98, 28, 0.28);
  --border-strong: rgba(140, 98, 28, 0.55);
  --gold-100: #3c2c12;
  --gold-200: #4d3914;
  --gold-300: #8a611f;
  --gold-400: #9c6b1f;
  --gold-500: #a9772a;
  --gold-600: #87601f;
  --gold-700: #6b4a18;
  --emerald: #1f6b54;
  --emerald-soft: rgba(31, 107, 84, 0.16);
  --text-1: #2b2114;
  --text-2: #5c5036;
  --text-3: #8b7f5e;
  --shadow-deep: rgba(90, 65, 20, 0.22);
  --overlay: rgba(255, 250, 235, 0.65);
  --particle-rgb: 173, 123, 30;
  --scrollbar-track: rgba(70, 48, 12, 0.08);
}

html, body { background: var(--bg); }
body {
  font-family: var(--font-ui);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

::selection { background: var(--gold-500); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-500), var(--gold-700)); border-radius: 10px; }

:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }

section[id], main > section, #martyrs, #memorial { scroll-margin-top: 6.5rem; }

#particleCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-600));
  z-index: 9999; width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255, 217, 102, 0.55);
}

/* ========== باکس آموزشی صدا ========== */
.audio-banner {
  position: fixed; top: 5.6rem; left: 50%; transform: translateX(-50%) translateY(-10px);
  z-index: 250; max-width: min(92vw, 560px); width: 100%;
  background: var(--bg-elevated); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: 1.2rem;
  padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 15px 40px var(--shadow-deep), 0 0 30px rgba(212, 175, 55, 0.18);
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.audio-banner.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); animation: bannerFloat 4s ease-in-out infinite; }
@keyframes bannerFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.audio-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.audio-banner-text { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.audio-banner-btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); color: var(--bg);
  border: none; border-radius: 1.5rem; padding: 0.5rem 1.1rem; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; transition: transform 0.25s, box-shadow 0.25s; font-family: var(--font-ui);
}
.audio-banner-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(255, 217, 102, 0.4); }
.audio-banner-close {
  background: transparent; border: none; color: var(--text-3); cursor: pointer; font-size: 1rem;
  flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: 0.2s;
}
.audio-banner-close:hover { background: var(--surface-glass-strong); color: var(--text-1); }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 1rem; left: 3%; right: 3%; width: 94%; margin: 0 auto;
  background: var(--bg-elevated); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-soft); border-radius: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 2rem; box-shadow: 0 8px 30px var(--shadow-deep), 0 0 20px rgba(212, 175, 55, 0.1);
  z-index: 200; transition: background-color 0.5s, border-color 0.5s;
  transform: translateZ(0);
}
.header-left { display: flex; align-items: center; gap: 0.7rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5)); }
.nav-links { display: flex; gap: 0.8rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.5rem 1.1rem; border-radius: 0.7rem; transition: 0.3s;
  background: transparent; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(212, 175, 55, 0.15); }
.nav-links a:hover::after { width: 70%; }

.audio-btn, .theme-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-glass); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.audio-btn svg, .theme-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); transition: stroke 0.3s; }
.audio-btn:hover, .theme-btn:hover { border-color: var(--gold-300); background: rgba(212, 175, 55, 0.15); }
.audio-btn:hover svg, .theme-btn:hover svg { stroke: var(--gold-300); }
.audio-btn.playing {
  background: var(--gold-300); border-color: var(--gold-300);
  box-shadow: 0 0 20px rgba(255, 217, 102, 0.6);
  animation: audioPulse 2s ease-in-out infinite;
}
.audio-btn.playing svg { stroke: var(--bg); }
@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 217, 102, 0.6); }
  50% { box-shadow: 0 0 40px rgba(255, 217, 102, 0.9); }
}
.theme-btn { position: relative; }
.theme-btn .icon-moon { position: absolute; opacity: 0; transform: scale(0.5) rotate(-40deg); }
.theme-btn .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-btn svg { transition: opacity 0.4s, transform 0.4s; }
[data-theme="day"] .theme-btn .icon-sun { opacity: 0; transform: scale(0.5) rotate(40deg); position: absolute; }
[data-theme="day"] .theme-btn .icon-moon { opacity: 1; transform: scale(1) rotate(0); position: static; }

/* ========== همبرگری منو ========== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 300; padding: 5px; background: transparent; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--gold-300); border-radius: 2px; transition: 0.3s; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--bg-elevated-solid); opacity: 0.98; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-soft); padding: 5rem 2rem; z-index: 250;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex; flex-direction: column; gap: 1.8rem;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
  color: var(--text-2); font-size: 1.2rem; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--border-soft); padding-bottom: 0.5rem;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold-300); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  background: #07080a url('./backgrond_image/file_00000000f6a07246aeba7ed94c71694f.png') center/cover no-repeat;
  transition: background-position 0.1s ease-out;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('./backgrond_image/file_000000002bc87246a3618b4388ce3b56.png');
  }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.15) 0%, transparent 35%, transparent 75%, var(--bg) 100%);
  z-index: 1; pointer-events: none;
}

.hero-logo {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: min(340px, 70vw); opacity: 0.92;
  filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.6));
  pointer-events: none; animation: logoBreathe 7s ease-in-out infinite;
}
@keyframes logoBreathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 22px rgba(212,175,55,0.55)); } 50% { transform: translate(-50%, -50%) scale(1.025); filter: drop-shadow(0 0 32px rgba(212,175,55,0.8)); } }

.counter-box {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 215, 0, 0.45); border-radius: 1.8rem; padding: 1.4rem 2.6rem 1.2rem;
  text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.18);
  max-width: 94vw; width: 540px; isolation: isolate; overflow: hidden;
}
.counter-halo {
  position: absolute; inset: -60%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 217, 102, 0.18) 90deg, transparent 180deg, rgba(255, 217, 102, 0.1) 270deg, transparent 360deg);
  animation: haloSpin 18s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }
.counter-title { font-size: 1rem; font-weight: 700; color: var(--gold-300); margin-bottom: 0.6rem; letter-spacing: 1px; text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }

.counter-hero-number { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; direction: rtl; }
.counter-hero-figure {
  font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-size: 4rem; font-weight: 900;
  color: #fff9e6; line-height: 1; text-shadow: 0 0 30px rgba(255, 215, 0, 0.9); letter-spacing: 1px;
}
.counter-hero-unit { font-size: 1.1rem; font-weight: 600; color: var(--gold-200); }

.counter-breakdown {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.98rem; color: #f0ead2; margin: 0.5rem 0 1rem;
}
.counter-breakdown b { color: var(--gold-200); font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-dot { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }

.counter-live {
  display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; flex-wrap: wrap;
  background: rgba(255, 215, 0, 0.1); padding: 0.5rem 1.2rem; border-radius: 2rem;
  backdrop-filter: blur(5px); margin-bottom: 0.7rem;
}
.live-label { font-size: 0.78rem; color: #d8d0b8; }
.live-number {
  font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: plaintext;
  font-size: 1.05rem; font-weight: 700; color: var(--gold-200); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.live-unit { font-size: 0.78rem; color: #d8d0b8; }

.counter-today { font-size: 0.78rem; color: #b9b298; letter-spacing: 0.3px; }

/* ========== قرآن (آرام و درون‌گرا) ========== */
.black-section { background: var(--bg); padding: 5rem 8%; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: background-color 0.5s; }
.quran-box {
  background: var(--surface-glass); border: 1px solid var(--border-soft);
  border-radius: 2rem; padding: 2.5rem 2rem; max-width: 480px; width: 100%;
  position: relative; backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px var(--shadow-deep), 0 0 30px rgba(212, 175, 55, 0.12);
  text-align: center; transition: 0.4s; overflow: hidden;
  isolation: isolate;
}
.quran-box::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.13) 0%, transparent 70%);
  animation: rotateGlow 26s linear infinite; z-index: -2;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.quran-box::after {
  content: ''; position: absolute; inset: -10px; border-radius: inherit;
  background: radial-gradient(circle at center, var(--emerald) 0%, transparent 70%);
  z-index: -1; opacity: 0.18;
  animation: auraBreatheSlow 9s ease-in-out infinite alternate;
}
@keyframes auraBreatheSlow { 0% { opacity: 0.12; transform: scale(0.98); } 100% { opacity: 0.28; transform: scale(1.02); } }
.arabic-verse {
  font-family: var(--font-quran); font-size: 2.5rem;
  line-height: 2.4; color: var(--gold-400); text-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
  margin-bottom: 0.8rem; direction: rtl;
}
.verse-meaning { font-size: 1.2rem; color: var(--text-2); font-weight: 300; margin-bottom: 1.2rem; }
.verse-reference { font-size: 0.85rem; color: var(--gold-400); opacity: 0.85; letter-spacing: 1px; }

/* ========== بخش ادعیه ========== */
.dua-section {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.dua-title {
  font-size: 2.6rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
  position: relative;
}

.dua-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  border-radius: 2px;
}

.dua-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.dua-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 1.8rem;
  padding: 2rem 1.8rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 40px var(--shadow-deep), 0 0 30px rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.dua-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.15), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s;
}

.dua-card:hover::before {
  opacity: 1;
}

.dua-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--gold-400);
  box-shadow: 0 25px 60px var(--shadow-deep), 0 0 50px rgba(212, 175, 55, 0.25);
}

.dua-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.05), transparent 60%);
  z-index: -1;
  animation: duaShine 12s linear infinite;
  pointer-events: none;
}

@keyframes duaShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dua-icon {
  font-size: 3.2rem;
  margin-bottom: 0.8rem;
  display: block;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  animation: duaFloat 4s ease-in-out infinite;
}

@keyframes duaFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

.dua-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-300);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.dua-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 1rem;
  direction: rtl;
  font-weight: 400;
  max-height: 140px;
  overflow-y: auto;
  padding: 0 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}

.dua-text::-webkit-scrollbar {
  width: 3px;
}

.dua-text::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 10px;
}

.dua-source {
  font-size: 0.75rem;
  color: var(--text-3);
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.6rem;
}

.dua-more-btn {
  display: block;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--bg);
  border: none;
  border-radius: 3rem;
  padding: 0.9rem 2.8rem;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  font-family: var(--font-ui);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.dua-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.dua-more-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.5);
}

.dua-more-btn:hover::before {
  opacity: 1;
}

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

/* ========== مودال دعاهای بیشتر ========== */
.dua-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1.5rem;
}

.dua-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dua-modal {
  background: var(--bg-elevated-solid);
  border: 2px solid var(--border-strong);
  border-radius: 2.2rem;
  padding: 2.5rem 2rem;
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(212, 175, 55, 0.2);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}

.dua-modal::-webkit-scrollbar {
  width: 4px;
}

.dua-modal::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 10px;
}

.dua-modal-overlay.active .dua-modal {
  transform: scale(1) translateY(0);
}

.dua-modal-close {
  position: sticky;
  top: 0;
  float: left;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.dua-modal-close:hover {
  background: var(--gold-300);
  color: var(--bg);
  border-color: var(--gold-300);
  transform: rotate(90deg);
}

.dua-modal-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  margin-top: -0.5rem;
}

.dua-modal-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dua-modal-item {
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: 1.4rem;
  padding: 1.5rem 1.8rem;
  transition: all 0.35s;
}

.dua-modal-item:hover {
  border-color: var(--gold-400);
  background: var(--surface-glass-strong);
  transform: translateX(-4px);
}

.dua-modal-item h4 {
  color: var(--gold-300);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dua-modal-item p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 2;
  direction: rtl;
}

.dua-modal-item .dua-source-sm {
  color: var(--text-3);
  font-size: 0.72rem;
  display: block;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.5rem;
}

/* ========== کارت امام زمان ========== */
.imam-card-section { width: 100%; display: flex; justify-content: center; margin: 4rem 0; }
.imam-card {
  position: relative; display: block;
  background: var(--bg-elevated); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--border-soft); border-radius: 2rem; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 20px 50px var(--shadow-deep), 0 0 50px rgba(212, 175, 55, 0.18);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
  max-width: 420px; width: 90%; margin: 0 auto;
  isolation: isolate;
}
.imam-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 60px var(--shadow-deep), 0 0 70px rgba(255, 215, 0, 0.3); border-color: var(--gold-300); }
.imam-card::before {
  content: ''; position: absolute; inset: -15px; border-radius: inherit;
  background: radial-gradient(circle at center, var(--emerald) 0%, transparent 70%);
  z-index: -1; opacity: 0.3;
  animation: auraBreatheSlow 7s ease-in-out infinite alternate;
}
.imam-img-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 2px solid var(--border-strong); }
.imam-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.imam-card:hover .imam-img { transform: scale(1.04); filter: brightness(1.08); }
.imam-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); }
.imam-info { padding: 1.5rem 2rem; text-align: center; background: rgba(0, 0, 0, 0.25); }
.imam-name { font-size: 2rem; font-weight: 900; color: var(--gold-300); margin-bottom: 0.3rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
.imam-titles { font-size: 0.95rem; color: var(--text-2); margin-bottom: 1rem; line-height: 1.6; }
.imam-details { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-2); background: var(--surface-glass); padding: 1rem; border-radius: 1rem; backdrop-filter: blur(5px); }
.imam-details span { color: var(--gold-300); font-weight: 600; }

/* ========== شهدا (جنب‌وجوش) ========== */
.martyrs-section { margin-top: 2rem; width: 100%; }
.martyrs-title {
  font-size: 2.4rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 2rem; text-align: center; letter-spacing: 2px;
}

.martyrs-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem;
  max-width: 1000px; margin: 0 auto 2.4rem; padding: 0.9rem 1.2rem;
  background: var(--surface-glass); border: 1px solid var(--border-soft); border-radius: 1.4rem;
  backdrop-filter: blur(10px);
}
.toolbar-search { display: flex; align-items: center; gap: 0.5rem; background: var(--surface-glass-strong); border: 1px solid var(--border-soft); border-radius: 1.5rem; padding: 0.45rem 1rem; flex: 1 1 200px; min-width: 160px; }
.toolbar-search svg { width: 16px; height: 16px; stroke: var(--text-3); flex-shrink: 0; }
.toolbar-search input { background: transparent; border: none; outline: none; color: var(--text-1); font-family: var(--font-ui); font-size: 0.9rem; width: 100%; }
.toolbar-search input::placeholder { color: var(--text-3); }
.toolbar-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip {
  background: var(--surface-glass-strong); border: 1px solid var(--border-soft); color: var(--text-2);
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.9rem;
  border-radius: 1.5rem; cursor: pointer; transition: 0.25s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--gold-400); color: var(--text-1); }
.filter-chip.active { background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); color: var(--bg); border-color: transparent; font-weight: 700; }
.toolbar-sort {
  background: var(--surface-glass-strong); border: 1px solid var(--border-soft); color: var(--text-2);
  font-family: var(--font-ui); font-size: 0.82rem; padding: 0.5rem 0.8rem; border-radius: 1.5rem;
  cursor: pointer; outline: none;
}
.toolbar-sort:hover { border-color: var(--gold-400); }

.martyrs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; width: 100%; max-width: 1000px; margin: 0 auto; perspective: 1200px; }
.martyrs-empty { text-align: center; color: var(--text-3); padding: 2rem; font-size: 1rem; }
.martyr-card {
  position: relative; display: block;
  background: var(--bg-elevated); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft); border-radius: 1.2rem; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
  transform-style: preserve-3d; transform: perspective(1000px);
  cursor: pointer; isolation: isolate; animation: cardPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  content-visibility: auto; contain-intrinsic-size: 0 420px;
}
.martyrs-grid .martyr-card:nth-child(1) { animation-delay: 0.05s; }
.martyrs-grid .martyr-card:nth-child(2) { animation-delay: 0.1s; }
.martyrs-grid .martyr-card:nth-child(3) { animation-delay: 0.15s; }
.martyrs-grid .martyr-card:nth-child(4) { animation-delay: 0.2s; }
.martyrs-grid .martyr-card:nth-child(5) { animation-delay: 0.25s; }
.martyrs-grid .martyr-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes cardPop { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.martyr-card::before {
  content: ''; position: absolute; inset: -8px; border-radius: inherit;
  background: radial-gradient(circle at center, var(--gold-400) 0%, transparent 70%);
  z-index: -1; opacity: 0.22;
  animation: auraBreathe 4.5s ease-in-out infinite alternate 0.4s;
}
@keyframes auraBreathe { 0% { opacity: 0.14; transform: scale(0.97); } 100% { opacity: 0.32; transform: scale(1.03); } }
.martyr-card:hover { box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.35); border-color: var(--border-strong); z-index: 10; }
.martyr-img-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 2px solid var(--border-soft); z-index: 2; background: var(--bg-soft); }
.martyr-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.5s; }
.martyr-card:hover .martyr-img { transform: scale(1.08); filter: brightness(1.15); }
.img-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); }
.martyr-info { padding: 0.8rem 1rem; text-align: center; background: rgba(0, 0, 0, 0.18); z-index: 2; }
.martyr-name { font-size: 1.1rem; font-weight: 700; color: var(--gold-300); margin-bottom: 0.1rem; }
.gold-line { width: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); margin: 0.3rem auto; }
.info-row { font-size: 0.8rem; color: var(--text-2); margin-bottom: 0.15rem; }
.info-row span { color: var(--gold-400); font-weight: 600; }

.zoom-btn {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, background 0.25s;
}
.martyr-card:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; transform: translateY(0); }
.zoom-btn svg { width: 16px; height: 16px; stroke: #fff; }
.zoom-btn:hover { background: var(--gold-400); border-color: var(--gold-400); }
.zoom-btn:hover svg { stroke: var(--bg); }
@media (hover: none) { .zoom-btn { opacity: 1; transform: translateY(0); } }

.card-glow-ring {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0; transition: opacity 0.2s;
  background: radial-gradient(circle 60px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 58px, rgba(212, 175, 55, 0.8) 59px, rgba(212, 175, 55, 1) 60px, transparent 61px);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
}
.martyr-card:hover .card-glow-ring { opacity: 1; }

/* ========== لایت‌باکس گالری ========== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content {
  display: flex; flex-wrap: wrap; max-width: 900px; width: 100%; max-height: 85vh;
  background: var(--bg-elevated-solid); border: 1px solid var(--border-strong); border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox-overlay.active .lightbox-content { transform: scale(1); }
.lightbox-img-wrap { flex: 1 1 360px; min-height: 280px; max-height: 85vh; background: var(--bg-soft); }
.lightbox-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; max-height: 85vh; }
.lightbox-info { flex: 1 1 280px; padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; overflow-y: auto; }
.lightbox-info h3 { color: var(--gold-300); font-size: 1.5rem; font-weight: 800; }
.lightbox-details { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; color: var(--text-2); }
.lightbox-details b { color: var(--gold-400); font-weight: 700; }
.lightbox-close {
  position: absolute; top: 1.5rem; left: 1.5rem; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.25s; z-index: 5;
}
.lightbox-close:hover { background: var(--gold-400); color: var(--bg); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.25s; z-index: 5;
}
.lightbox-nav:hover { background: var(--gold-400); color: var(--bg); }
.lightbox-prev { right: 1.5rem; }
.lightbox-next { left: 1.5rem; }
@media (max-width: 640px) { .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; } .lightbox-prev { right: 0.6rem; } .lightbox-next { left: 0.6rem; } }

/* ========== دفتر یادبود ========== */
.memorial-section { width: 100%; max-width: 800px; margin: 3rem auto 2rem; padding: 0 2rem; }
.memorial-title { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--gold-200), var(--gold-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-align: center; margin-bottom: 2rem; }
.memorial-form { background: var(--bg-elevated); backdrop-filter: blur(15px); border: 1px solid var(--border-soft); border-radius: 1.5rem; padding: 1.8rem; margin-bottom: 1.5rem; }
.memorial-form input, .memorial-form textarea { width: 100%; background: var(--surface-glass-strong); border: 1px solid var(--border-soft); border-radius: 0.8rem; padding: 0.7rem 1rem; color: var(--text-1); font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-ui); }
.memorial-form textarea { resize: vertical; min-height: 80px; }
.memorial-form input:focus, .memorial-form textarea:focus { outline: none; border-color: var(--gold-300); }
.memorial-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.memorial-counter { font-size: 0.78rem; color: var(--text-3); }
.memorial-form button { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--bg); border: none; border-radius: 2rem; padding: 0.7rem 2rem; font-weight: 700; cursor: pointer; font-family: var(--font-ui); transition: transform 0.25s, box-shadow 0.25s; }
.memorial-form button:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4); }
.messages-scroll-wrapper { max-height: 320px; overflow-y: auto; padding-right: 6px; border: 1px solid var(--border-soft); border-radius: 1rem; background: var(--surface-glass); backdrop-filter: blur(8px); margin-bottom: 1rem; }
.messages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 1rem; }
.message-card { background: var(--surface-glass-strong); border: 1px solid var(--border-soft); border-radius: 1rem; padding: 0.7rem; backdrop-filter: blur(6px); word-wrap: break-word; animation: cardPop 0.4s ease backwards; }
.message-name { font-weight: 700; color: var(--gold-300); margin-bottom: 0.2rem; font-size: 0.85rem; }
.message-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }
.message-admin-reply {
  margin-top: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 0.8rem;
  background: var(--emerald-soft); border-right: 2px solid var(--emerald);
}
.message-admin-reply-label { font-size: 0.74rem; font-weight: 700; color: var(--emerald); margin-bottom: 0.2rem; }
.message-admin-reply-text { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }
.messages-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 1.5rem; font-size: 0.9rem; }

.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1500;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateY(20px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-300); border-color: var(--gold-300); }
.back-to-top svg { width: 24px; height: 24px; stroke: #fff; }
.back-to-top:hover svg { stroke: var(--bg); }

.footer {
  background: var(--bg-soft); padding: 5rem 8% 2rem;
  border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--gold-400), var(--gold-600)) 1;
  transition: background-color 0.5s;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-3); text-decoration: none; transition: 0.2s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--gold-300); }
.footer-email { color: var(--text-3); margin-bottom: 1rem; }
.social-links { display: flex; gap: 1.2rem; margin-top: 1rem; align-items: center; flex-wrap: wrap; }
.social-links a {
  width: 45px; height: 45px; border-radius: 50%; background: var(--surface-glass-strong);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
  border: 1px solid var(--border-soft); padding: 0.5rem;
}
.social-links a img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.9); }
[data-theme="day"] .social-links a img { filter: brightness(0.3); }
.social-links a:hover { background: var(--gold-300); border-color: var(--gold-300); transform: translateY(-3px) scale(1.1); box-shadow: 0 8px 20px rgba(255, 217, 102, 0.4); }
.social-links a:hover img { filter: brightness(0.1); }
.duaa-text {
  text-align: center; font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 2rem 0 1rem; line-height: 2; letter-spacing: 1px;
}
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-soft); color: var(--text-3); font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-calm { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-calm.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ========== نذر صلوات ========== */
.nazr-toggle {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 1600;
  background: var(--bg-elevated); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-strong); border-radius: 1rem;
  padding: 0.6rem 1.2rem; display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  animation: nazrPulse 3s ease-in-out infinite; white-space: nowrap;
}
.nazr-toggle:hover { transform: scale(1.05); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.55); background: rgba(212, 175, 55, 0.18); }
@keyframes nazrPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 38px rgba(255, 215, 0, 0.6); }
}
.nazr-toggle-text { color: var(--gold-300); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
.nazr-badge { background: var(--gold-300); color: var(--bg); font-size: 0.7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px rgba(255, 215, 0, 0.8); transition: transform 0.3s; }
.nazr-badge.bump { animation: badgeBump 0.4s ease; }
@keyframes badgeBump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.nazr-modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.nazr-modal-overlay.active { opacity: 1; visibility: visible; }
.nazr-modal {
  background: var(--bg-elevated-solid); opacity: 0.97; backdrop-filter: blur(30px);
  border: 2px solid var(--border-strong); border-radius: 2rem;
  padding: 2.5rem 2rem; max-width: 500px; width: 90%; max-height: 85vh;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 80px rgba(212, 175, 55, 0.25);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideIn { from { transform: scale(0.85) translateY(40px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.nazr-close {
  position: absolute; top: 1rem; right: 1rem; width: 35px; height: 35px;
  border-radius: 50%; background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft); color: var(--text-2); font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.nazr-close:hover { background: var(--gold-300); color: var(--bg); border-color: var(--gold-300); }
.nazr-title { font-size: 1.8rem; font-weight: 900; color: var(--gold-300); margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); text-align: center; }
.nazr-desc { font-size: 0.95rem; color: var(--text-2); margin-bottom: 1.8rem; text-align: center; }
.nazr-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.nazr-type-row { display: flex; gap: 0.6rem; }
.nazr-type-row select { flex: 1; }
.nazr-play-btn {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 0.8rem; background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft); color: var(--gold-300); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.25s;
}
.nazr-play-btn svg { width: 16px; height: 16px; stroke: var(--gold-300); fill: var(--gold-300); }
.nazr-play-btn:hover { border-color: var(--gold-300); background: rgba(212, 175, 55, 0.15); }
.nazr-play-btn.playing { background: var(--gold-300); }
.nazr-play-btn.playing svg { stroke: var(--bg); fill: var(--bg); }
.nazr-play-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.nazr-form input, .nazr-form select, .nazr-form textarea {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 0.8rem; padding: 0.7rem 1rem;
  color: var(--text-1); font-size: 0.95rem; outline: none; transition: 0.3s;
  font-family: var(--font-ui);
}
.nazr-form input:focus, .nazr-form select:focus, .nazr-form textarea:focus { border-color: var(--gold-300); box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.nazr-custom-box { display: none; }
.nazr-custom-box.visible { display: block; }
.nazr-submit {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--bg); border: none; border-radius: 2rem;
  padding: 0.8rem; font-weight: 700; font-size: 1.1rem;
  cursor: pointer; transition: 0.3s; margin-top: 0.5rem; font-family: var(--font-ui);
}
.nazr-submit:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(255, 217, 102, 0.4); }

.nazr-list-container { flex: 1; overflow-y: auto; border: 1px solid var(--border-soft); border-radius: 1rem; background: var(--surface-glass); backdrop-filter: blur(8px); padding: 1rem; max-height: 220px; margin-top: 1rem; }
.nazr-total { font-size: 2.5rem; font-weight: 900; color: var(--gold-300); text-shadow: 0 0 20px rgba(255, 215, 0, 0.55); text-align: center; margin-bottom: 0.3rem; font-variant-numeric: tabular-nums; }
.nazr-total-label { text-align: center; color: var(--text-2); font-size: 0.85rem; }
.nazr-list-item { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; background: var(--surface-glass-strong); border: 1px solid var(--border-soft); border-radius: 0.7rem; padding: 0.5rem 0.8rem; margin-bottom: 0.4rem; font-size: 0.85rem; animation: cardPop 0.35s ease backwards; }
.nazr-list-item .name { color: var(--gold-300); font-weight: 600; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nazr-list-item .vow { color: var(--text-2); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nazr-list-item .count { color: var(--text-1); background: rgba(212, 175, 55, 0.15); padding: 0.2rem 0.6rem; border-radius: 1rem; white-space: nowrap; }
.nazr-list-item .date { color: var(--text-3); font-size: 0.75rem; }
.nazr-empty { text-align: center; color: var(--text-2); padding: 2rem 1.5rem; background: var(--surface-glass); border-radius: 1rem; border: 1px dashed var(--border-soft); font-size: 1.1rem; line-height: 2; }
.nazr-empty span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.nazr-success { color: var(--gold-300); text-align: center; margin-top: 0.5rem; font-weight: 600; min-height: 1.4em; }
.nazr-success.show { animation: fadeInOut 1.8s; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; } }
.nazr-particle { position: fixed; pointer-events: none; z-index: 2100; animation: nazrParticleFly 1s ease-out forwards; }
@keyframes nazrParticleFly { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); } }

/* ========== رسپانسیو بخش ادعیه ========== */
@media (max-width: 992px) {
  .dua-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .dua-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .dua-title {
    font-size: 2rem;
  }
  .dua-card {
    padding: 1.5rem 1.2rem;
  }
  .dua-text {
    font-size: 0.85rem;
    max-height: 120px;
  }
  .dua-modal {
    padding: 1.8rem 1.2rem;
  }
  .dua-modal-title {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .counter-halo, .quran-box::before, .quran-box::after, .imam-card::before, .martyr-card::before, .nazr-toggle, .audio-banner.show, .martyr-card { animation: none !important; }
}

@media (max-width: 768px) {
  .header { padding: 0.5rem 1.2rem; }
  .logo img { height: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .audio-btn, .theme-btn { width: 34px; height: 34px; }
  .audio-btn svg, .theme-btn svg { width: 16px; height: 16px; }
  .audio-banner { top: 4.6rem; padding: 0.7rem 0.9rem; }
  .audio-banner-text { font-size: 0.76rem; }
  .nazr-toggle { padding: 0.5rem 1rem; bottom: 1.5rem; left: 1.5rem; }
  .nazr-toggle-text { font-size: 0.8rem; }
  .nazr-modal { padding: 2rem 1.2rem; }
  .nazr-list-container { max-height: 280px; }
  .nazr-list-item { font-size: 0.8rem; }
  .hero-logo { width: min(240px, 65vw); top: 36%; }
  .counter-box { padding: 1.1rem 1.3rem 1rem; bottom: 1.4rem; }
  .counter-hero-figure { font-size: 2.6rem; }
  .counter-breakdown { font-size: 0.85rem; }
  .live-number { font-size: 0.92rem; }
  .quran-box { padding: 2rem 1.5rem; }
  .arabic-verse { font-size: 1.9rem; line-height: 2.1; }
  .imam-card { max-width: 320px; }
  .imam-name { font-size: 1.6rem; }
  .martyrs-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .martyrs-title { font-size: 1.8rem; }
  .martyrs-toolbar { padding: 0.8rem; gap: 0.6rem; }
  .social-links a { width: 40px; height: 40px; }
  .duaa-text { font-size: 1.3rem; }
  .messages-grid { grid-template-columns: 1fr; }
  .lightbox-content { flex-direction: column; max-height: 90vh; }
  .lightbox-img-wrap, .lightbox-img-wrap img { min-height: 200px; max-height: 40vh; }
}

@media (max-width: 420px) {
  .counter-hero-figure { font-size: 2.2rem; }
  .martyrs-grid { grid-template-columns: 1fr; }
}