/* ==========================================================================
   سقاخانه حضرت ابوالفضل (ع) گلپایگان — طراحی اصلی
   فونت: وزیرمتن • پالت: فیروزه‌ای روشن/تیره
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------- متغیرها */
:root {
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;

  --bg: #f1faf9;
  --bg-grad-1: #eaf7f6;
  --bg-grad-2: #f7fdfc;
  --surface: #ffffff;
  --surface-2: #f5fcfb;
  --surface-3: #e7f6f4;
  --text: #0b2b2a;
  --text-soft: #274d4b;
  --muted: #5f8280;
  --primary: #0d9488;
  --primary-strong: #0b7c72;
  --primary-deep: #065f56;
  --accent: #17b8a6;
  --primary-soft: #d5f6f1;
  --primary-soft-2: #e9fbf8;
  --gold: #b8894a;
  --gold-soft: #f6ead6;
  --danger: #d9534f;
  --success: #1f9d68;
  --warning: #d88b1e;

  --line: rgba(13, 148, 136, .16);
  --line-strong: rgba(13, 148, 136, .3);

  --shadow-sm: 0 2px 8px rgba(6, 68, 63, .05);
  --shadow: 0 10px 30px -12px rgba(6, 68, 63, .18);
  --shadow-lg: 0 24px 60px -24px rgba(6, 68, 63, .28);
  --glow: 0 0 0 1px rgba(13, 148, 136, .08), 0 18px 44px -22px rgba(13, 148, 136, .45);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --container: 1200px;

  --header-h: 76px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230d9488' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M60 8l13.5 12.5L90 15l3.5 16.5L110 45l-9 14 9 14-16.5 13.5L90 103l-16.5-5L60 110 46.5 98 30 103l-3.5-16.5L10 73l9-14-9-14 16.5-13.5L30 15l16.5 5z'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Cpath d='M60 38c8 6 14 13 14 22s-6 16-14 22c-8-6-14-13-14-22s6-16 14-22z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23b8894a' stroke-opacity='.3' stroke-width='1'%3E%3Cpath d='M45 6l10 14 17-3 4 17 14 11-11 14 3 17-17 4-11 14-14-11-17 3-4-17-14-11 11-14-3-17 17-4z'/%3E%3Ccircle cx='45' cy='45' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme='dark'] {
  --bg: #05191b;
  --bg-grad-1: #062023;
  --bg-grad-2: #041416;
  --surface: #0a2629;
  --surface-2: #0d2f33;
  --surface-3: #123b3e;
  --text: #e8fffb;
  --text-soft: #c3e8e3;
  --muted: #92bdb8;
  --primary: #2dd4bf;
  --primary-strong: #5eead4;
  --primary-deep: #99f6e4;
  --accent: #34e0cb;
  --primary-soft: rgba(45, 212, 191, .14);
  --primary-soft-2: rgba(45, 212, 191, .07);
  --gold: #e2b878;
  --gold-soft: rgba(226, 184, 120, .12);

  --line: rgba(94, 234, 212, .16);
  --line-strong: rgba(94, 234, 212, .32);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(45, 212, 191, .12), 0 20px 50px -24px rgba(45, 212, 191, .4);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232dd4bf' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M60 8l13.5 12.5L90 15l3.5 16.5L110 45l-9 14 9 14-16.5 13.5L90 103l-16.5-5L60 110 46.5 98 30 103l-3.5-16.5L10 73l9-14-9-14 16.5-13.5L30 15l16.5 5z'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Cpath d='M60 38c8 6 14 13 14 22s-6 16-14 22c-8-6-14-13-14-22s6-16 14-22z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------------------------------------------------- پایه */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, var(--primary-soft-2), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--primary-soft-2), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-2), var(--bg) 40%, var(--bg-grad-1));
  background-attachment: fixed;
  min-height: 100vh;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

/* آیکون‌های SVG درون‌خطی: اندازهٔ پیش‌فرض هم‌اندازهٔ متن */
svg.ic {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.18em;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg svg { width: 19px; height: 19px; }
.section-link svg { width: 16px; height: 16px; }
.chip svg { width: 13px; height: 13px; }
.eyebrow svg { width: 14px; height: 14px; }
a { color: var(--primary-strong); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
ul, ol { padding-right: 1.4rem; }
::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--surface); color: var(--text); padding: 10px 18px;
  border-radius: 10px; box-shadow: var(--shadow); transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------- دکمه‌ها */
.btn {
  --btn-bg: var(--primary);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 78%, #000 22%));
  color: var(--btn-color);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, opacity .2s;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--btn-bg) 70%, transparent);
  line-height: 1.5;
  white-space: nowrap;
}
html[data-theme='dark'] .btn { --btn-color: #04201d; }
.btn:hover { transform: translateY(-2px); color: var(--btn-color); box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--primary-strong);
  border-color: var(--line-strong);
  box-shadow: none;
}
html[data-theme='dark'] .btn-ghost { color: var(--primary-strong); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-strong); box-shadow: none; }

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-strong);
  box-shadow: none;
}
html[data-theme='dark'] .btn-soft { color: var(--primary-strong); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 30%); color: var(--primary-strong); box-shadow: none; }

.btn-gold {
  --btn-bg: var(--gold);
  color: #23180a;
}
html[data-theme='dark'] .btn-gold { --btn-color: #241a0b; }

.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 11px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 13px;
  display: inline-grid; place-items: center;
  background: var(--surface); color: var(--text-soft);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: all .2s ease;
}
.btn-icon:hover { background: var(--primary-soft); color: var(--primary-strong); transform: translateY(-1px); }
.btn-icon svg { width: 20px; height: 20px; }

/* ---------------------------------------------------- تیترها */
.section {
  padding-block: clamp(40px, 6vw, 72px);
  position: relative;
}
.section--tint {
  background:
    linear-gradient(180deg, transparent, var(--primary-soft-2) 12%, var(--primary-soft-2) 88%, transparent);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
  flex-wrap: wrap;
}
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.section-head .eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -.2px;
  position: relative;
  padding-bottom: 14px;
  color: var(--text);
}
.section-title::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 72px; height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent) 60%, transparent);
}
.section-desc { color: var(--muted); margin: 8px 0 0; font-size: .95rem; max-width: 560px; }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem; color: var(--primary-strong);
  padding: 9px 18px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.section-link:hover { gap: 10px; background: var(--primary); color: #fff; border-color: transparent; }
html[data-theme='dark'] .section-link:hover { color: #04201d; }

/* ---------------------------------------------------- نوار بالا */
.topbar {
  background: linear-gradient(90deg, var(--primary-deep), var(--primary) 55%, var(--primary-deep));
  color: rgba(255, 255, 255, .92);
  font-size: .8rem;
  position: relative;
  z-index: 60;
}
html[data-theme='dark'] .topbar { color: #04201d; background: linear-gradient(90deg, #14a89a, #2dd4bf 55%, #14a89a); }
.topbar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--pattern-gold);
  opacity: .25;
  pointer-events: none;
  background-size: 220px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; position: relative; z-index: 1; flex-wrap: wrap;
}
.topbar-group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; opacity: .95; }
.topbar-item svg { width: 15px; height: 15px; opacity: .85; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme='dark'] .topbar a:hover { color: #04201d; }
.topbar .prayer-pill {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 3px 12px;
  border-radius: 99px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
html[data-theme='dark'] .topbar .prayer-pill { background: rgba(4, 32, 29, .14); border-color: rgba(4, 32, 29, .2); }

/* ---------------------------------------------------- هدر */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px -26px rgba(6, 68, 63, .5);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 50px; height: 50px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  box-shadow: 0 10px 22px -12px rgba(13, 148, 136, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
  overflow: hidden;
}
html[data-theme='dark'] .brand-logo { background: linear-gradient(145deg, #0f766e, #052e2b); }
.brand-logo svg { width: 34px; height: 34px; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-title { font-weight: 800; font-size: 1.02rem; color: var(--text); letter-spacing: -.2px; }
.brand-sub { font-size: .74rem; color: var(--muted); font-weight: 500; }

.main-nav { margin-inline-start: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: 11px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.main-nav a.is-active { color: var(--primary-strong); background: var(--primary-soft); }
.main-nav a.is-active::after {
  content: ''; position: absolute; bottom: 4px; inset-inline-start: 50%; transform: translateX(50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------------------------------------------------- بنر اصلی */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 140px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%);
  pointer-events: none;
}
.hero-card {
  position: relative;
  border-radius: clamp(20px, 3vw, 34px);
  overflow: hidden;
  min-height: clamp(420px, 52vw, 560px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  isolation: isolate;
  background: #062b29;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.03);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(3, 32, 31, .94) 4%, rgba(3, 40, 38, .8) 42%, rgba(3, 40, 38, .1) 82%),
    linear-gradient(0deg, rgba(2, 24, 23, .8), transparent 55%);
}
html[data-theme='light'] .hero-card::before {
  background:
    linear-gradient(270deg, rgba(4, 47, 45, .92) 4%, rgba(4, 47, 45, .66) 45%, rgba(4, 47, 45, .08) 84%),
    linear-gradient(0deg, rgba(3, 32, 31, .78), transparent 55%);
}
.hero-frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: clamp(14px, 2.4vw, 26px);
  pointer-events: none;
  z-index: 2;
}
.hero-frame::before, .hero-frame::after {
  content: '';
  position: absolute;
  width: 46px; height: 46px;
  border: 2px solid rgba(226, 184, 120, .75);
  border-radius: 4px;
}
.hero-frame::before { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.hero-frame::after { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }

.hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4vw, 54px);
  max-width: 660px;
  color: #fff;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  color: #fdf6e9;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(226, 184, 120, .45);
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7ff2e2; box-shadow: 0 0 0 4px rgba(127, 242, 226, .2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 242, 226, .45); }
  50% { box-shadow: 0 0 0 7px rgba(127, 242, 226, 0); }
}
.hero-title {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.42;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -.5px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.hero-title .gold {
  color: #f3d3a2;
  display: inline-block;
}
.hero-text {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(.92rem, 1.4vw, 1.02rem);
  line-height: 2;
  max-width: 52ch;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-ornament {
  position: absolute;
  inset-inline-start: clamp(-40px, -2vw, -10px);
  top: -30px;
  width: clamp(180px, 22vw, 300px);
  opacity: .16;
  z-index: 1;
  pointer-events: none;
  color: #f3d3a2;
}

/* کارت‌های شناور زیر بنر */
.hero-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
  padding-inline: clamp(8px, 2vw, 22px);
}
.quick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 13px;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  color: var(--text);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: var(--text); }
.quick-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.quick-icon svg { width: 24px; height: 24px; }
.quick-label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.quick-value { font-weight: 800; font-size: 1rem; margin-top: 1px; }
.quick-value small { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------- کارت‌ها */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* کارت خبر */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); }
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4, 40, 38, .35), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
}
.post-card:hover .post-thumb::after { opacity: 1; }
.post-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: color-mix(in srgb, var(--primary) 92%, #000);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 99px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
html[data-theme='dark'] .post-badge { color: #04201d; background: var(--primary); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .76rem; color: var(--muted); font-weight: 500;
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .chip { display: inline-flex; }
.post-meta svg { width: 14px; height: 14px; opacity: .8; }
.post-title {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
}
.post-title a { color: inherit; }
.post-card:hover .post-title a { color: var(--primary-strong); }
.post-excerpt { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.95; }
.post-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.read-more { font-size: .84rem; font-weight: 700; color: var(--primary-strong); display: inline-flex; align-items: center; gap: 6px; }
.read-more svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .read-more svg { transform: translateX(-4px); }

/* کارت ویژه */
.featured-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 320px;
  border-radius: var(--radius-lg);
}
.featured-card .post-thumb { aspect-ratio: auto; height: 100%; min-height: 260px; }
.featured-card .post-body { padding: clamp(22px, 3vw, 36px); justify-content: center; }
.featured-card .post-title { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.6; }
.featured-card .post-excerpt { font-size: .95rem; }

/* ---------------------------------------------------- اسلایدر */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #052a28;
}
.slider-track { display: flex; transition: transform .65s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.slide { min-width: 100%; position: relative; }
.slide-link { display: block; position: relative; color: #fff; }
.slide-link:hover { color: #fff; }
.slide-media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-link::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3, 30, 29, .95) 2%, rgba(3, 30, 29, .55) 42%, rgba(3, 30, 29, .05) 75%);
  pointer-events: none;
}
.slide-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: clamp(20px, 3.4vw, 42px);
  z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.slide-cat svg { width: 13px; height: 13px; }
.slide-cat {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(45, 212, 191, .18);
  border: 1px solid rgba(45, 212, 191, .4);
  color: #b8fff5;
  font-size: .74rem; font-weight: 700;
  padding: 4px 13px; border-radius: 99px;
  backdrop-filter: blur(6px);
}
.slide-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.6;
  max-width: 34ch;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}
.slide-meta { font-size: .8rem; color: rgba(255, 255, 255, .78); display: flex; gap: 16px; flex-wrap: wrap; }
.slider-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(4, 40, 38, .45);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 4;
  transition: background .2s, transform .2s;
}
.slider-nav:hover { background: rgba(13, 148, 136, .85); transform: translateY(-50%) scale(1.06); }
.slider-nav svg { width: 20px; height: 20px; }
.slider-prev { inset-inline-end: 16px; }
.slider-next { inset-inline-start: 16px; }
.slider-dots {
  position: absolute; bottom: 16px; inset-inline-end: 20px;
  display: flex; gap: 7px; z-index: 4;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 99px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35);
  transition: all .25s;
}
.slider-dot.is-active { width: 26px; background: #7ff2e2; }

/* ---------------------------------------------------- اوقات شرعی */
.prayer-panel {
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 92%, #000), var(--primary-deep) 90%);
  color: #eafffb;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
html[data-theme='dark'] .prayer-panel { background: linear-gradient(160deg, #0b4843, #04201f 90%); }
.prayer-panel::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold);
  background-size: 130px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 65%);
  mask-image: linear-gradient(115deg, #000, transparent 65%);
}
.prayer-panel::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .35), transparent 65%);
  top: -110px; inset-inline-end: -90px;
  z-index: -1;
  filter: blur(10px);
}
.prayer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.prayer-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.prayer-head h3 svg { width: 24px; height: 24px; color: #f3d3a2; }
.prayer-date { font-size: .8rem; color: rgba(234, 255, 251, .75); }
.prayer-next {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}
.prayer-next-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(243, 211, 162, .16);
  color: #f3d3a2;
  display: grid; place-items: center;
}
.prayer-next-icon svg { width: 22px; height: 22px; }
.prayer-next-info { display: flex; flex-direction: column; line-height: 1.5; }
.prayer-next-label { font-size: .76rem; color: rgba(234, 255, 251, .72); }
.prayer-next-value { font-weight: 800; font-size: 1rem; }
.prayer-next-value b { color: #9cf7e9; font-weight: 800; }
.countdown {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.05rem;
  color: #f3d3a2;
  letter-spacing: 1px;
  direction: ltr;
}
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.prayer-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  transition: background .25s, transform .25s, border-color .25s;
}
.prayer-item:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.prayer-item.is-next {
  background: rgba(243, 211, 162, .16);
  border-color: rgba(243, 211, 162, .5);
  box-shadow: 0 0 0 1px rgba(243, 211, 162, .25), 0 10px 24px -14px rgba(243, 211, 162, .5);
}
.prayer-item .p-name { font-size: .74rem; color: rgba(234, 255, 251, .72); margin-bottom: 4px; }
.prayer-item .p-time { font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.prayer-item.is-next .p-time { color: #ffe7bd; }
.prayer-foot svg { width: 13px; height: 13px; }
.prayer-foot { margin-top: 16px; font-size: .72rem; color: rgba(234, 255, 251, .55); text-align: center; }

/* ---------------------------------------------------- برنامه مناسبت‌ها */
.schedule {
  display: flex; flex-direction: column; gap: 12px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.schedule-row:hover { transform: translateX(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.schedule-date {
  text-align: center;
  border-inline-end: 1px dashed var(--line-strong);
  padding-inline-end: 14px;
}
.schedule-day { font-size: 1.6rem; font-weight: 900; color: var(--primary-strong); line-height: 1.2; }
.schedule-month { font-size: .72rem; color: var(--muted); font-weight: 600; }
.schedule-main { min-width: 0; }
.schedule-title { font-weight: 800; font-size: .98rem; margin: 0 0 3px; }
.schedule-sub { font-size: .79rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.schedule-sub span { display: inline-flex; align-items: center; gap: 5px; }
.schedule-sub svg { width: 13px; height: 13px; opacity: .75; }
.schedule-sub span { display: inline-flex; align-items: center; gap: 5px; }
.schedule-side { display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-strong);
  white-space: nowrap;
}
.chip-gold { background: var(--gold-soft); color: var(--gold); }
.chip-ghost { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
html[data-theme='dark'] .chip-gold { color: #f0cd9a; }

/* جدول برنامه هفتگی */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.sq-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.sq-table th, table.sq-table td { padding: 13px 16px; text-align: right; font-size: .88rem; }
table.sq-table thead th {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: .82rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.sq-table tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
table.sq-table tbody tr:last-child { border-bottom: 0; }
table.sq-table tbody tr:hover { background: var(--primary-soft-2); }
table.sq-table td time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary-strong); }

/* ---------------------------------------------------- رسانه (صدا) */
.audio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.audio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.audio-top { display: flex; gap: 12px; align-items: center; }
.audio-cover {
  width: 62px; height: 62px; flex: 0 0 62px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, var(--primary-soft), var(--surface-3));
  display: grid; place-items: center;
  color: var(--primary-strong);
}
.audio-cover img { width: 100%; height: 100%; object-fit: cover; }
.audio-cover svg { width: 26px; height: 26px; opacity: .7; }
.audio-info { min-width: 0; flex: 1; }
.audio-title { font-size: .92rem; font-weight: 800; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-speaker { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.audio-duration { font-size: .72rem; color: var(--primary-strong); background: var(--primary-soft); padding: 2px 9px; border-radius: 99px; font-weight: 700; }
.audio-player {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 12px;
}
.ap-btn {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 14px -6px rgba(13, 148, 136, .8);
}
html[data-theme='dark'] .ap-btn { color: #04201d; }
.ap-btn:hover { transform: scale(1.06); }
.ap-btn svg { width: 16px; height: 16px; }
.ap-btn.is-playing svg.icon-play { display: none; }
.ap-btn .icon-pause { display: none; }
.ap-btn.is-playing .icon-pause { display: block; }
.ap-progress {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.ap-progress::before {
  content: '';
  position: absolute; inset: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  transition: width .1s linear;
}
.ap-time { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; min-width: 74px; text-align: center; }
.ap-rate {
  border: 0; background: var(--primary-soft); color: var(--primary-strong);
  font-size: .68rem; font-weight: 800; padding: 4px 8px; border-radius: 8px; cursor: pointer;
}
.ap-volume { width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.ap-volume svg { width: 16px; height: 16px; }

/* پخش‌کنندهٔ ثابت پایین صفحه */
.sticky-player {
  position: fixed;
  inset-inline: 0; bottom: 0;
  z-index: 90;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  padding: 0 clamp(10px, 2vw, 22px) clamp(10px, 1.6vw, 16px);
  pointer-events: none;
}
.sticky-player.is-open { transform: translateY(0); pointer-events: auto; }
.sticky-inner {
  max-width: 1000px; margin-inline: auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 -10px 50px -20px rgba(4, 40, 38, .45), var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
}
.sticky-cover {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: 0 0 46px;
  background: var(--primary-soft); display: grid; place-items: center; color: var(--primary-strong);
}
.sticky-cover img { width: 100%; height: 100%; object-fit: cover; }
.sticky-info { min-width: 0; flex: 1; }
.sticky-title { font-size: .85rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-sub { font-size: .71rem; color: var(--muted); }
.sticky-player audio { display: none; }
.sticky-actions { display: flex; align-items: center; gap: 8px; }
.sticky-progress {
  width: 100%; display: flex; align-items: center; gap: 10px;
  position: absolute; top: -1px; left: 0; right: 0;
  transform: translateY(-100%);
}

/* ---------------------------------------------------- ویدئو */
.video-card { border-radius: var(--radius); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #04211f;
  cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3, 30, 29, .8), transparent 60%);
  pointer-events: none;
}
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(13, 148, 136, .82);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  transition: transform .2s, background .2s;
}
.video-card:hover .play-btn { transform: scale(1.1); background: var(--primary); }
.play-btn svg { width: 24px; height: 24px; margin-inline-start: 3px; }
.video-duration {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  background: rgba(2, 22, 21, .75);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 8px; z-index: 2;
  backdrop-filter: blur(4px);
}
.video-body { padding: 15px 18px 18px; }
.video-title { font-size: .94rem; font-weight: 800; margin: 0 0 6px; }

/* ---------------------------------------------------- گالری */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--surface-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .3s;
}
.gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3, 30, 29, .85), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 14px;
  color: #fff; font-size: .82rem; font-weight: 700;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .zoom-icon {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: var(--primary-deep);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-6px);
  transition: all .25s;
}
.gallery-item:hover .zoom-icon { opacity: 1; transform: translateY(0); }
.gallery-item .zoom-icon svg { width: 16px; height: 16px; }

/* لایت‌باکس */
.lightbox {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(2, 18, 17, .92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { max-width: min(1100px, 92vw); margin: 0; text-align: center; }
.lb-figure img { max-height: 78vh; border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); margin-inline: auto; }
.lb-caption { color: rgba(255, 255, 255, .85); font-size: .88rem; margin-top: 14px; }
.lb-count { color: rgba(255, 255, 255, .5); font-size: .76rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(45, 212, 191, .8); color: #04201d; }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 20px; height: 20px; }

/* ---------------------------------------------------- مناسبت‌ها */
.occ-card {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s;
}
.occ-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.occ-index {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: .85rem;
}
.occ-body { min-width: 0; }
.occ-title { font-weight: 800; font-size: .94rem; margin: 0 0 3px; }
.occ-meta { font-size: .76rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; line-height: 1.9; }
.occ-meta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.occ-meta span { display: inline-flex; align-items: center; gap: 5px; }
.occ-meta svg { width: 13px; height: 13px; opacity: .75; flex-shrink: 0; }
.occ-countdown { margin-inline-start: auto; text-align: center; flex-shrink: 0; }
.occ-days { font-weight: 900; font-size: 1.1rem; color: var(--primary-strong); line-height: 1.3; }
.occ-days-label { font-size: .66rem; color: var(--muted); }

/* ---------------------------------------------------- صفحه داخلی */
.page-hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 52px);
  margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 300px at 20% 0%, var(--primary-soft-2), transparent 70%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 120px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  pointer-events: none;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
  margin-bottom: 12px;
  list-style: none; padding: 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-strong); }
.breadcrumb li::after { content: '›'; margin-inline-start: 8px; opacity: .5; }
.breadcrumb li:last-child::after { content: ''; }
.page-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 900; margin: 0; letter-spacing: -.4px; line-height: 1.6; }
.page-lead { color: var(--muted); margin: 10px 0 0; max-width: 68ch; }

.article { max-width: 820px; }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 26px;
  border: 1px solid var(--line);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body {
  font-size: 1rem;
  line-height: 2.15;
  color: var(--text-soft);
}
.article-body p { margin: 0 0 1.1em; }
.article-body h2, .article-body h3 { color: var(--text); margin: 1.6em 0 .6em; line-height: 1.6; }
.article-body h2 { font-size: 1.3rem; }
.article-body h3 { font-size: 1.1rem; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-inline-start: 3px solid var(--primary);
  background: var(--primary-soft-2);
  border-radius: 0 14px 14px 0;
  color: var(--text-soft);
  font-style: normal;
}
.article-body img { border-radius: 14px; margin: 1em 0; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; }
.article-body li { margin-bottom: .4em; }

.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.share-row span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* نظرات */
.comments { margin-top: 40px; }
.comment {
  display: flex; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.comment-avatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: grid; place-items: center;
  font-weight: 800;
}
.comment-name { font-weight: 800; font-size: .88rem; }
.comment-date { font-size: .72rem; color: var(--muted); font-weight: 500; }
.comment-body { font-size: .88rem; color: var(--text-soft); margin-top: 6px; line-height: 2; }

/* ---------------------------------------------------- فرم‌ها */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .84rem; font-weight: 700; color: var(--text-soft); }
.field label .req { color: var(--danger); }
.field small.hint { font-size: .72rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: .92rem;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  line-height: 1.7;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230d9488' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-start: 34px; }
html[data-theme='dark'] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232dd4bf' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.alert {
  padding: 13px 18px;
  border-radius: 13px;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: color-mix(in srgb, var(--success) 80%, var(--text)); }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: color-mix(in srgb, var(--danger) 80%, var(--text)); }
.alert-info { background: var(--primary-soft); border-color: var(--line-strong); color: var(--primary-strong); }
html[data-theme='dark'] .alert-success { color: #7fe0b0; }
html[data-theme='dark'] .alert-error { color: #ff9b98; }
html[data-theme='dark'] .alert-info { color: var(--primary-strong); }

/* ---------------------------------------------------- نذر و کمک */
.donate-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary-deep), color-mix(in srgb, var(--primary) 85%, #000));
  color: #eafffb;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
html[data-theme='dark'] .donate-band { background: linear-gradient(120deg, #093f3b, #03211f); }
.donate-band::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold);
  background-size: 150px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(70% 100% at 90% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 100% at 90% 50%, #000, transparent 75%);
}
.donate-band h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.65; }
.donate-band p { margin: 0 0 22px; color: rgba(234, 255, 251, .8); font-size: .94rem; line-height: 2; max-width: 60ch; }
.donate-visual { display: grid; gap: 12px; }
.bank-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  backdrop-filter: blur(8px);
}
.bank-label { font-size: .74rem; color: rgba(234, 255, 251, .65); }
.bank-value { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #eafffb;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(243, 211, 162, .25); }
.copy-btn svg { width: 15px; height: 15px; }

.donate-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.amount-pill {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #eafffb;
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.amount-pill:hover, .amount-pill.is-active { background: #f3d3a2; color: #23200e; border-color: #f3d3a2; }

/* ---------------------------------------------------- آمار / درباره */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--primary-strong); line-height: 1.3; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-media::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px; z-index: 1; pointer-events: none;
}
.about-badge {
  position: absolute; bottom: 18px; inset-inline-end: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.about-badge strong { font-size: 1rem; display: block; line-height: 1.5; }
.about-badge span { font-size: .72rem; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-soft); }
.feature-list .tick {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary-strong);
  display: grid; place-items: center; margin-top: 3px;
}
.feature-list .tick svg { width: 14px; height: 14px; }

/* ---------------------------------------------------- پادکست صفحه */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: .85rem; font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--line-strong); color: var(--primary-strong); }
.tab-btn.is-active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(13, 148, 136, .8); }
html[data-theme='dark'] .tab-btn.is-active { color: #04201d; }

/* ---------------------------------------------------- صفحه‌بندی */
.pagination { display: flex; gap: 7px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  display: inline-grid; place-items: center;
  font-size: .85rem; font-weight: 700;
  transition: all .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-strong); }
.page-btn.is-active { background: var(--primary); color: #fff; border-color: transparent; }
html[data-theme='dark'] .page-btn.is-active { color: #04201d; }
.page-dots { color: var(--muted); }

/* ---------------------------------------------------- خالی */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.empty-state svg { width: 48px; height: 48px; opacity: .5; margin: 0 auto 14px; }

/* ---------------------------------------------------- فوتر */
.site-footer {
  margin-top: clamp(40px, 7vw, 90px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 96%, #000), #03211f);
  color: rgba(234, 255, 251, .78);
  position: relative;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 70px);
}
html[data-theme='dark'] .site-footer { background: linear-gradient(180deg, #04211f, #021514); }
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--pattern-gold);
  background-size: 130px;
  opacity: .22;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 40px;
}
.footer-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer-title::after {
  content: '';
  position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, #f3d3a2, transparent);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-sub { color: rgba(234, 255, 251, .6); }
.footer-about { font-size: .85rem; line-height: 2; color: rgba(234, 255, 251, .66); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a {
  color: rgba(234, 255, 251, .7);
  font-size: .86rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, gap .2s;
}
.footer-links a::before { content: '•'; color: #f3d3a2; opacity: .7; }
.footer-links a:hover { color: #fff; gap: 11px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact .fc-item { display: flex; gap: 10px; font-size: .84rem; line-height: 1.9; }
.footer-contact .fc-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 5px; color: #f3d3a2; opacity: .9; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(234, 255, 251, .8);
  transition: all .2s;
}
.social-btn:hover { background: rgba(243, 211, 162, .2); color: #fff; transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(234, 255, 251, .5);
}
.footer-bottom a { color: rgba(234, 255, 251, .7); }

/* ---------------------------------------------------- دکمه بازگشت بالا */
.to-top {
  position: fixed;
  bottom: 22px; inset-inline-start: 22px;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary-strong);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all .28s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--primary); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* ---------------------------------------------------- انیمیشن ورود */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------- ریسپانسیو */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-quick { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  /* backdrop-filter روی هدر، «والدِ کانتینر» عناصر fixed می‌سازد؛ در موبایل حذف می‌شود */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface);
  }
  .main-nav {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-end: auto;
    inset-inline-start: 0; /* در RTL یعنی سمت راست */
    width: min(320px, 86vw);
    background: var(--surface);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
    padding: 88px 20px 24px;
    z-index: 85;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
    overflow-y: auto;
    margin: 0;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav::before {
    content: 'منوی سایت';
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: var(--muted);
    padding: 0 6px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 12px 16px; font-size: .95rem; border-radius: 12px; }
  .main-nav a.is-active::after { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(2, 24, 22, .55);
    backdrop-filter: blur(3px); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* هدر در حالت باز بودن منو بالاتر از پوشش قرار می‌گیرد */
  body.nav-open .site-header { z-index: 80; background: var(--surface); }
  body.nav-open .main-nav { box-shadow: 0 0 60px rgba(0, 0, 0, .35); }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .post-thumb { min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .donate-band { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 430px; }
  .article { max-width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  :root { --header-h: 66px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 2 / 1; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-quick { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -26px; padding-inline: 4px; }
  .quick-card { padding: 12px; gap: 10px; }
  .quick-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .quick-icon svg { width: 19px; height: 19px; }
  .quick-value { font-size: .88rem; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-media { aspect-ratio: 4 / 3.4; }
  .slider-nav { width: 38px; height: 38px; }
  .schedule-row { grid-template-columns: 62px 1fr; }
  .schedule-side { grid-column: 1 / -1; justify-content: flex-start; padding-inline-start: 74px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .header-actions .donate-link span { display: none; }
  .header-actions .donate-link { padding: 10px; }
  .brand-title { font-size: .9rem; }
  .brand-sub { font-size: .66rem; }
  .brand-logo { width: 42px; height: 42px; border-radius: 13px; }
  .brand-logo svg { width: 28px; height: 28px; }
  .sticky-inner { padding: 9px 12px; gap: 10px; }
  .sticky-player audio, .sticky-actions .ap-rate { display: none; }
  .donate-band { padding: 22px; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
  .lb-close { top: 10px; inset-inline-end: 10px; }
  .to-top { bottom: 16px; inset-inline-start: 16px; width: 40px; height: 40px; }
  .section { padding-block: 34px; }
}

/* چاپ */
@media print {
  .site-header, .topbar, .site-footer, .to-top, .sticky-player, .slider-nav, .hero-quick { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------------------------------------------------- توست */
.sq-toast {
  position: fixed;
  bottom: 90px;
  inset-inline-start: 50%;
  transform: translate(50%, 20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-inline-start: 4px solid var(--success);
  border-radius: 13px;
  padding: 12px 22px;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: 90vw;
  text-align: center;
}
.sq-toast[data-type='error'] { border-inline-start-color: var(--danger); }
.sq-toast.is-show { opacity: 1; transform: translate(50%, 0); }

.video-modal iframe, .video-modal video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
  display: block;
}

/* جستجو در هدر */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.search-form input {
  border: 0; background: transparent; color: var(--text);
  font-family: inherit; font-size: .84rem;
  padding: 9px 13px; width: 150px; outline: none;
}
.search-form button {
  border: 0; background: transparent; color: var(--muted);
  width: 36px; height: 36px; display: grid; place-items: center;
  cursor: pointer; transition: color .2s;
}
.search-form button:hover { color: var(--primary-strong); }
.search-form button svg { width: 17px; height: 17px; }
@media (max-width: 1280px) {
  .search-form input { width: 110px; }
}
@media (max-width: 1300px) and (min-width: 901px) {
  .main-nav a { padding: 9px 9px; font-size: .85rem; }
  .brand-sub { display: none; }
}
@media (max-width: 1150px) {
  .search-form { display: none; }
  .search-form.is-open {
    display: flex; position: absolute; top: calc(100% + 8px);
    inset-inline: 16px; box-shadow: var(--shadow-lg); background: var(--surface);
    z-index: 30;
  }
  .search-form.is-open input { width: 100%; }
}

/* دکمه‌های اشتراک */
.share-btns { display: flex; gap: 8px; }
.share-btns a, .share-btns button {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-soft); cursor: pointer; transition: all .2s;
}
.share-btns a:hover, .share-btns button:hover { background: var(--primary-soft); color: var(--primary-strong); transform: translateY(-1px); }
.share-btns svg { width: 17px; height: 17px; }

/* نشانگر «فردا» در قرص اذان نوار بالا */
.pill-tomorrow { font-size: .72em; opacity: .8; font-weight: 500; }
