/* ==========================================================================
   هیئت فاطمیون ماهشهر — استایل اصلی (مینیمال، ریسپانسیو، ۴ تم)
   ========================================================================== */

/* ----------------------------------------------------------- فونت لوکال */
@font-face { font-family: 'Vazirmatn'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 900; font-style: normal; font-display: swap;
  src: url('../fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2'); }

/* ----------------------------------------------------------- توکن‌های پایه */
:root {
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;
  --container: 1220px;
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .05);
  --shadow-2: 0 8px 30px rgb(0 0 0 / .12);
  --shadow-3: 0 18px 60px rgb(0 0 0 / .22);
  --dur: .22s; --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------- تم‌ها */
[data-theme="martyrdom"] {
  color-scheme: dark;
  --bg: #0c0c0f; --bg-soft: #121216; --bg-raise: #17171d;
  --card: #15151b; --card-hover: #1b1b23;
  --text: #ededf0; --muted: #9d9da8; --faint: #6d6d78;
  --accent: #d9263d; --accent-soft: rgb(217 38 61 / .14); --accent-2: #8f1524;
  --gold: #d8b45c;
  --border: rgb(255 255 255 / .08); --border-strong: rgb(255 255 255 / .14);
  --header-bg: rgb(12 12 15 / .82);
  --hero-glow: radial-gradient(52% 42% at 50% 0%, rgb(217 38 61 / .16), transparent 70%);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .28);
  --shadow-2: 0 8px 30px rgb(0 0 0 / .45);
}
[data-theme="birth"] {
  color-scheme: light;
  --bg: #f4f9f4; --bg-soft: #ecf4ec; --bg-raise: #ffffff;
  --card: #ffffff; --card-hover: #fbfdfb;
  --text: #16241b; --muted: #5a6b5e; --faint: #87978b;
  --accent: #159a6c; --accent-soft: rgb(21 154 108 / .12); --accent-2: #0d6e4d;
  --gold: #b7892f;
  --border: rgb(22 36 27 / .09); --border-strong: rgb(22 36 27 / .16);
  --header-bg: rgb(244 249 244 / .85);
  --hero-glow: radial-gradient(52% 42% at 50% 0%, rgb(21 154 108 / .12), transparent 70%);
}
[data-theme="normal"] {
  color-scheme: light;
  --bg: #f5f7f8; --bg-soft: #edf1f2; --bg-raise: #ffffff;
  --card: #ffffff; --card-hover: #fbfcfc;
  --text: #16222a; --muted: #5b6870; --faint: #8a959c;
  --accent: #0e7d70; --accent-soft: rgb(14 125 112 / .11); --accent-2: #0a5a51;
  --gold: #a97e1e;
  --border: rgb(22 34 42 / .09); --border-strong: rgb(22 34 42 / .16);
  --header-bg: rgb(245 247 248 / .85);
  --hero-glow: radial-gradient(52% 42% at 50% 0%, rgb(14 125 112 / .10), transparent 70%);
}
[data-theme="ramadan"] {
  color-scheme: dark;
  --bg: #0d142e; --bg-soft: #101a3d; --bg-raise: #15204a;
  --card: #131c40; --card-hover: #172350;
  --text: #ecefff; --muted: #9aa6d4; --faint: #6f7bab;
  --accent: #e5b64f; --accent-soft: rgb(229 182 79 / .13); --accent-2: #b98a28;
  --gold: #e5b64f;
  --border: rgb(236 239 255 / .10); --border-strong: rgb(236 239 255 / .18);
  --header-bg: rgb(13 20 46 / .85);
  --hero-glow: radial-gradient(52% 42% at 50% 0%, rgb(229 182 79 / .14), transparent 70%);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .28);
  --shadow-2: 0 8px 30px rgb(0 0 0 / .45);
}

/* ---------------------------------------------------------------- ریست */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg-soft); }

.ic { flex: none; vertical-align: middle; }
.skip-link { position: fixed; inset-inline-start: -999px; top: 10px; z-index: 300; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 10px; }
.skip-link:focus { inset-inline-start: 10px; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 4vw, 2.3rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p { color: var(--muted); }

/* --------------------------------------------------------------- دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: all var(--dur) var(--ease);
  white-space: nowrap; user-select: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgb(217 38 61 / .25); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgb(0 0 0 / .25); }
[data-theme="birth"] .btn-primary, [data-theme="normal"] .btn-primary { box-shadow: 0 6px 20px var(--accent-soft); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-inline-start-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- نوار بالای مناسبت */
.occasion-strip {
  background: var(--accent-2); color: #fff; text-align: center;
  font-size: .83rem; padding: 7px 16px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.occasion-strip a { text-decoration: underline; text-underline-offset: 4px; opacity: .92; }
.occasion-strip a:hover { opacity: 1; }
.occ-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .45; transform: scale(.8);} }

/* ----------------------------------------------------------------- هدر */
.site-header {
  position: sticky; top: 12px; z-index: 100; margin-top: 12px;
}
.header-in {
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 10px 18px; position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { color: var(--accent); display: grid; place-items: center; width: 52px; height: 52px; }
.brand-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.45; }
.brand-txt strong { font-size: 1.05rem; font-weight: 800; }
.brand-txt small { color: var(--muted); font-size: .74rem; font-weight: 400; }
.main-nav { display: flex; gap: 1px; margin-inline-start: auto; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px;
  border-radius: 11px; color: var(--muted); font-size: .85rem; font-weight: 600;
  white-space: nowrap; transition: all var(--dur) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.header-side { display: flex; align-items: center; gap: 10px; }
.date-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; white-space: nowrap;
}
.date-chip .ic { color: var(--accent); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; place-items: center; color: var(--text); }

/* تیتر صفحه‌ها */
.page-head { padding: var(--sp-7) 0 var(--sp-5); text-align: center; position: relative; }
.page-head::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.page-head > * { position: relative; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--faint); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }
.page-head h1 { margin-bottom: 10px; }
.page-head p { max-width: 640px; margin-inline: auto; }

/* ------------------------------------------------------------------ هیرو */
.hero { position: relative; padding: clamp(48px, 9vw, 96px) 0 var(--sp-7); text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.hero-logo { color: var(--accent); }
.hero-logo img, .hero-logo svg { width: clamp(96px, 18vw, 148px); height: auto; border-radius: 50%; }
.hero-logo img { border: 3px solid var(--border-strong); box-shadow: var(--shadow-3); aspect-ratio: 1; object-fit: cover; }
.hero h1 { letter-spacing: -.5px; }
.hero .slogan { font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--muted); font-weight: 500; }
.hero .dates { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}
.chip .ic { color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.orn { position: absolute; color: var(--accent); opacity: .07; pointer-events: none; }

/* ----------------------------------------------------------- بنر مناسبت */
.section { padding: var(--sp-6) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-5); }
.section-head .sec-title { display: flex; align-items: center; gap: 10px; }
.sec-title .ic { color: var(--accent); }
.sec-title small { display: block; color: var(--faint); font-size: .78rem; font-weight: 400; }
.section-head .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .88rem; }
.section-head .more:hover { gap: 9px; }
.section-head .more { transition: gap var(--dur) var(--ease); }

.occasion {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-strong);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% -30%, var(--accent-soft), transparent 60%),
    var(--card);
  box-shadow: var(--shadow-2);
}
[data-theme="martyrdom"] .occasion { background: radial-gradient(90% 130% at 50% -30%, rgb(217 38 61 / .20), transparent 60%), linear-gradient(180deg, #101014, #0d0d11); }
[data-theme="birth"] .occasion { background: radial-gradient(90% 130% at 50% -30%, rgb(21 154 108 / .16), transparent 60%), linear-gradient(180deg, #ffffff, #f2faf5); }
[data-theme="ramadan"] .occasion { background: radial-gradient(90% 130% at 50% -30%, rgb(229 182 79 / .18), transparent 60%), linear-gradient(180deg, #131c40, #0f1737); }
.occasion::before, .occasion::after {
  content: ''; position: absolute; inset-block: 0; width: 5px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .55;
}
.occasion::before { inset-inline-start: 0; }
.occasion::after { inset-inline-end: 0; }
.occ-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.occ-kicker .ic { color: var(--accent); }
.occasion h2 { font-weight: 900; font-size: clamp(1.6rem, 4.5vw, 2.5rem); margin-bottom: 14px; }
.occasion .occ-text { max-width: 720px; margin: 0 auto; color: var(--text); opacity: .88; font-size: clamp(.98rem, 2vw, 1.1rem); line-height: 2.15; text-align: justify; text-align-last: center; }
.occ-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 4px; color: var(--accent); }
.occ-orn::before, .occ-orn::after { content: ''; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--accent)); }
.occ-orn::after { background: linear-gradient(-90deg, transparent, var(--accent)); }
.occasion .cres { position: absolute; inset-inline-end: clamp(12px, 4vw, 48px); top: clamp(12px, 4vw, 40px); color: var(--gold); opacity: .5; }

/* --------------------------------------------------------------- باکس پخش زنده */
.live-box {
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
  border-radius: var(--r-xl); padding: clamp(20px, 4vw, 36px);
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--card);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-2);
}
.live-badge { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.live-badge::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.82); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.live-info { flex: 1 1 260px; }
.live-info h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-weight: 800; }
.live-tag { background: var(--accent); color: #fff; font-size: .68rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; animation: pulse 1.6s infinite; }

/* ----------------------------------------------------------------- کارت‌ها */
.grid { display: grid; gap: var(--sp-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); transition: all var(--dur) var(--ease); position: relative;
}
.card:hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card .card-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .85rem; font-weight: 600; margin-top: 14px; }

/* اخبار */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card .news-date { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .78rem; }
.news-card .news-date .ic { color: var(--accent); }
.news-card h3 { font-size: 1.05rem; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .88rem; }
.news-card .read { margin-top: auto; }
.news-list-item { display: flex; flex-direction: column; gap: 8px; }

/* صوت‌ها */
.audio-row { display: flex; align-items: center; gap: var(--sp-4); padding: 16px var(--sp-5); }
.audio-row .a-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; transition: all var(--dur) var(--ease); }
.audio-row:hover .a-btn { background: var(--accent); color: #fff; }
.audio-row.playing .a-btn { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.audio-row .a-meta { flex: 1; min-width: 0; }
.audio-row .a-meta strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-row .a-meta small { color: var(--faint); font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.audio-row .a-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; flex: none; }
.a-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .18s linear; }
.card.audio-row { cursor: pointer; }

/* ویدیوها */
.video-card { padding: 0; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); display: grid; place-items: center; cursor: pointer; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .v-cover { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.video-frame .v-play { width: 66px; height: 66px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform var(--dur) var(--ease); }
.video-frame:hover .v-play { transform: scale(1.08); }
.video-card .v-title { padding: 14px 18px; font-size: .92rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.video-card .v-title .ic { color: var(--accent); }

/* کمک به هیئت */
.bank-card { display: flex; flex-direction: column; gap: 12px; }
.bank-card .b-bank { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.bank-card .b-bank .ic { color: var(--accent); }
.bank-card .b-num {
  direction: ltr; text-align: center; font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 700;
  letter-spacing: 2px; font-variant-numeric: tabular-nums; background: var(--bg-soft);
  border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 12px 10px;
}
.bank-card .b-name { font-size: .8rem; color: var(--faint); text-align: center; }
.bank-card .b-copy { width: 100%; }
.copy-done { color: #1f9d55 !important; }

/* تماس */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-4); }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 15px; width: 100%; transition: all var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .74rem; color: var(--faint); }
.form-msg { display: none; padding: 13px 16px; border-radius: var(--r-md); font-size: .88rem; margin-bottom: var(--sp-4); align-items: center; gap: 9px; }
.form-msg.ok { display: flex; background: rgb(31 157 85 / .12); color: #1f9d55; border: 1px solid rgb(31 157 85 / .3); }
.form-msg.err { display: flex; background: rgb(217 38 61 / .1); color: var(--accent); border: 1px solid rgb(217 38 61 / .3); }
[data-theme="birth"] .form-msg.ok, [data-theme="normal"] .form-msg.ok { color: #157347; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-5); align-items: start; }
.contact-ways { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-way { display: flex; align-items: center; gap: 14px; padding: 15px 18px; }
.contact-way .cw-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-way strong { display: block; font-size: .9rem; }
.contact-way small { color: var(--faint); font-size: .78rem; direction: ltr; display: block; text-align: end; }
.contact-way:hover .cw-ic { background: var(--accent); color: #fff; }

/* آدرس */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.9); }
[data-theme="martyrdom"] .map-wrap iframe, [data-theme="ramadan"] .map-wrap iframe { filter: grayscale(.35) invert(.9) hue-rotate(180deg) saturate(.7); }

/* جست‌وجو و فیلتر */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-5); }
.filter-bar .search-box { position: relative; flex: 1; max-width: 420px; }
.filter-bar input { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 11px 44px 11px 18px; }
.filter-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-bar .search-box .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }

/* حالت خالی / غیرفعال */
.state-box, .empty-box { text-align: center; padding: clamp(48px, 10vw, 90px) 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.state-box .ic, .empty-box .ic { color: var(--faint); }
.empty-box p { max-width: 420px; }

/* متن خبر کامل */
.article { max-width: 820px; margin-inline: auto; }
.article .art-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); line-height: 2.2; }
.art-head { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; color: var(--faint); font-size: .82rem; align-items: center; }
.art-head .chip { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------------------------------------------------------------- فوتر */
.site-footer { margin-top: var(--sp-8); border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--sp-6); padding: var(--sp-7) 0 var(--sp-6); }
.foot-col h4 { font-size: .95rem; margin-bottom: 14px; color: var(--text); }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--accent); margin-bottom: 12px; }
.foot-brand strong { color: var(--text); }
.foot-col p { font-size: .85rem; }
.foot-links-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { color: var(--muted); font-size: .88rem; }
.foot-links a:hover { color: var(--accent); padding-inline-start: 4px; }
.foot-links a { transition: all var(--dur) var(--ease); }
.foot-contact { display: flex; flex-direction: column; gap: 11px; font-size: .85rem; color: var(--muted); }
.foot-contact li { display: flex; align-items: flex-start; gap: 9px; }
.foot-contact .ic { color: var(--accent); margin-top: 4px; }
.foot-contact a:hover { color: var(--accent); }
.socials { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: all var(--dur) var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.foot-bar { border-top: 1px solid var(--border); padding: 15px 0; }
.foot-bar-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--faint); }

/* ------------------------------------------------------ ابزارهای شناور */
.to-top {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; border-radius: 13px; background: var(--card); color: var(--text);
  border: 1px solid var(--border-strong); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-2);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.toast {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 400;
  background: var(--bg-raise); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 13px 20px; font-size: .88rem; box-shadow: var(--shadow-3);
  transform: translateY(90px); opacity: 0; transition: all .3s var(--ease); max-width: min(92vw, 380px);
}
.toast.show { transform: none; opacity: 1; }
.toast.ok { border-inline-start: 4px solid #1f9d55; }
.toast.err { border-inline-start: 4px solid var(--accent); }

/* نوار پیشرفت PJAX */
.pjax-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 500; pointer-events: none; }
.pjax-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; box-shadow: 0 0 12px var(--accent); }

/* جداکننده زینتی */
.divider-orn { display: flex; align-items: center; justify-content: center; gap: 14px; padding: var(--sp-3) 0; color: var(--accent); opacity: .8; }
.divider-orn::before, .divider-orn::after { content: ''; height: 1px; flex: 1; max-width: 180px; background: linear-gradient(90deg, transparent, var(--border-strong)); }
.divider-orn::after { background: linear-gradient(-90deg, transparent, var(--border-strong)); }

/* ----------------------------------------------------------- ریسپانسیو */
@media (max-width: 1120px) {
  .date-chip { display: none; }
  .brand-txt small { display: none; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* کشوی ناوبری موبایل — عنصر جداگانه (خارج از هدر) */
.nav-drawer { display: none; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 690; background: rgb(0 0 0 / .55);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.nav-drawer-head strong { font-size: .98rem; }
.nav-drawer-head button {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center; background: var(--card);
}
.drawer-link {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  border-radius: 12px; color: var(--muted); font-size: .95rem; font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.drawer-link .ic { flex: none; }
.drawer-link:hover { color: var(--text); background: var(--accent-soft); }
.drawer-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  body.nav-open { overflow: hidden; }
  .main-nav { display: none; }
  .header-side { margin-inline-start: auto; }
  .nav-drawer {
    display: flex; flex-direction: column; gap: 3px;
    position: fixed; top: 0; bottom: 0; right: 0; left: auto;
    width: min(300px, 80vw); height: 100dvh; z-index: 700;
    background: var(--bg-raise); border-inline-start: 1px solid var(--border-strong);
    box-shadow: -18px 0 50px rgb(0 0 0 / .35); overflow-y: auto;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav-drawer.open { transform: translateX(0); visibility: visible; }
  .brand-txt small { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .live-box { text-align: center; justify-content: center; }
  .live-info h3 { justify-content: center; }
  .map-wrap iframe { height: 320px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 28px); }
  .header-in { padding: 8px 12px; border-radius: 20px; }
  .brand-logo, .brand-logo img { width: 42px; height: 42px; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .audio-row { padding: 14px; }
  .bank-card .b-num { letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =================================================================
   نسخه ۱٫۲ — کامپوننت‌های جدید
   ================================================================= */

/* -------------------------------------------- نشان دسته و فیلترها */
.cat-badge {
  font-style: normal; font-size: .72rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.chip-cat {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; transition: all var(--dur) var(--ease);
}
.chip-cat:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.chip-cat.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------- کاور رسانه‌ها */
.a-cover {
  width: 48px; height: 48px; border-radius: 13px; flex: none; overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.audio-row .a-cover { transition: all var(--dur) var(--ease); }
.audio-row:hover .a-cover, .audio-row.playing .a-cover { background: var(--accent); color: #fff; }
.audio-row .a-cover img { display: block; }
.audio-row.playing .a-cover { box-shadow: 0 0 0 6px var(--accent-soft); }

.video-frame.has-cover { background: #000; }
.v-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.video-frame .v-cover { position: relative; z-index: 2; }
.video-frame.has-cover .v-cover span:last-child {
  background: rgb(0 0 0 / .55); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: .82rem;
  backdrop-filter: blur(6px);
}
.video-player, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ------------------------------------------------- صوت امبدشده */
.audio-embed { display: flex; flex-direction: column; gap: 14px; }
.ae-head { display: flex; align-items: center; gap: 12px; }
.ae-head .a-meta { flex: 1; min-width: 0; }
.ae-head .a-meta strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-head .a-meta small { color: var(--faint); font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.audio-player-frame {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border);
  aspect-ratio: 16 / 5; min-height: 110px;
  display: grid; place-items: center; cursor: pointer;
}
.audio-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-player-frame .v-cover { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------- کاور اخبار */
.news-card.has-cover { padding: 0; overflow: hidden; }
.n-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.n-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .n-cover img { transform: scale(1.05); }
.news-card .n-body { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-5); flex: 1; }
.art-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 22px; }
.art-cover img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

/* متن غنی خبر */
.art-body h2, .art-body h3, .art-body h4 { margin: 20px 0 10px; line-height: 1.6; }
.art-body p { margin-bottom: 12px; }
.art-body ul, .art-body ol { margin: 0 22px 12px; list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin-bottom: 6px; }
.art-body blockquote {
  margin: 16px 0; padding: 14px 20px; border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--r-md); font-weight: 500;
}
.art-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 14px auto; display: block; }
.art-body figure { margin: 14px 0; }
.art-body figcaption { text-align: center; font-size: .8rem; color: var(--faint); margin-top: 7px; }
.art-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.art-body hr { border: 0; border-top: 1px dashed var(--border-strong); margin: 20px 0; }

/* ------------------------------------------------------- باکس آمار */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat-card {
  text-align: center; padding: 26px 16px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--card);
  border: 1px solid var(--border); transition: all var(--dur) var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.stat-card .s-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.stat-card b { display: block; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; color: var(--text); line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--muted); font-size: .83rem; }

/* ------------------------------------------------------- گالری */
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.g-item {
  break-inside: avoid; margin-bottom: 14px; border-radius: var(--r-lg); overflow: hidden;
  position: relative; cursor: zoom-in; border: 1px solid var(--border);
  background: var(--card); transition: all var(--dur) var(--ease); display: block; width: 100%;
}
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.g-item img { width: 100%; display: block; }
.g-item .g-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(0deg, rgb(0 0 0 / .68), transparent); color: #fff;
  font-size: .83rem; font-weight: 600; display: flex; align-items: center; gap: 7px;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.g-item:hover .g-cap { opacity: 1; }
.g-item .cat-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(6px); }

/* ---------------------------------------------------- لایت‌باکس */
.lb {
  position: fixed; inset: 0; z-index: 600; background: rgb(5 6 8 / .92);
  backdrop-filter: blur(8px); display: none; place-items: center; padding: 20px;
}
.lb.is-open { display: grid; animation: lbIn .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { max-width: min(1100px, 94vw); max-height: 88dvh; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lb-fig img { max-width: 100%; max-height: 80dvh; border-radius: var(--r-lg); box-shadow: 0 30px 90px rgb(0 0 0 / .6); object-fit: contain; }
.lb-cap { color: #e8e8ea; font-size: .92rem; text-align: center; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .2);
  display: grid; place-items: center; transition: all var(--dur) var(--ease); z-index: 2;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { inset-inline-end: 8px; } .lb-next { inset-inline-start: 8px; }
  .lb-btn { width: 42px; height: 42px; }
}

/* ---------------------------------------------------- سایر */
.filter-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.g-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.g-strip a { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); transition: all var(--dur) var(--ease); }
.g-strip a:hover { transform: scale(1.04); border-color: var(--accent); }
.g-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .g-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ============================================================
   نسخه ۱٫۴ — اصلاحات ریسپانسیو، فاصله‌گذاری و بخش‌های جدید
   ============================================================ */

/* جلوگیری قطعی از اسکرول افقی + شکستن متن‌های بلند */
html, body { overflow-x: clip; }
/* صفت hidden همیشه پنهان کند، حتی وقتی کلاس display دارد */
[hidden] { display: none !important; }
h1, h2, h3, h4, p, a, strong, span, li { overflow-wrap: break-word; }
.art-body a, .art-body p, .art-body li { overflow-wrap: anywhere; }

/* شماره کارت بانکی: هرگز از کادر بیرون نزند */
.bank-card .b-num { max-width: 100%; overflow-wrap: anywhere; word-break: break-all; font-size: clamp(1rem, 4.6vw, 1.3rem); }

/* فاصله ۱۰px بین جست‌وجو، دسته‌ها و محتوا */
.filter-bar { margin-bottom: 10px; }
.cat-chips { margin: 10px 0 10px; }
.chip-cat { white-space: nowrap; }

/* نوار اطلاعیه زیر هدر در موبایل */
@media (max-width: 640px) {
  .occasion-strip { font-size: .78rem; line-height: 1.8; padding: 8px 12px; }
}

/* کارت‌های صفحه آدرس (بدون نقشه امبد) */
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.addr-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.addr-card .card-ic { margin: 0; flex: none; }
.addr-body { flex: 1; min-width: 0; }
.addr-text { line-height: 2.1; margin-bottom: 12px; }
@media (max-width: 860px) { .addr-grid { grid-template-columns: 1fr; } }

/* کارت‌های راه‌های همراهی (نذورات) */
.help-way h3 { font-size: 1.02rem; margin-bottom: 8px; }
.help-way p { font-size: .86rem; color: var(--muted); line-height: 2; }

/* نوار پایانی فوتر: حقوق + اعتبار طراح */
.foot-bar-in { justify-content: center; text-align: center; flex-direction: column; gap: 5px; }
.foot-rights { font-size: .76rem; color: var(--faint); }
.foot-credit { font-size: .72rem; color: var(--faint); }
.foot-credit a { color: var(--muted); font-weight: 600; }
.foot-credit a:hover { color: var(--accent); }

/* ردیف صوت: عناوین بلند شکسته شوند */
.audio-row .a-meta strong, .audio-embed .a-meta strong { overflow-wrap: anywhere; }
.audio-row { min-width: 0; }

/* جدول کارت‌های بانک در خیلی کوچک */
@media (max-width: 360px) {
  .bank-card .b-num { letter-spacing: 0; }
}
