/* =====================================================================
   وب‌سایت خبری دانشگاه شهید چمران اهواز — سیستم طراحی «آکادمیک سرمه‌ای»
   نسخه 2.0 — مدرن، مینیمال و حرفه‌ای
   ===================================================================== */

/* ---------- 1) توکن‌های طراحی ---------- */
:root {
  /* پالت سرمه‌ای + آبی آکادمیک */
  --navy-950: #081A30;
  --navy-900: #0A2540;
  --navy-800: #103152;
  --navy-700: #16406B;
  --navy-600: #1D4F85;

  --blue-700: #1749B8;
  --blue-600: #1D5BD6;
  --blue-500: #2E6BE6;
  --blue-100: #DCe9FF;
  --blue-50:  #EFF5FF;

  --cyan-600: #0284A8;
  --cyan-500: #06A5C9;
  --cyan-400: #22B8DC;
  --cyan-100: #D3F2FA;

  /* پالت تاکیدی کهربایی / طلایی آکادمیک */
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #101F33;
  --muted: #5D6C81;
  --border: #E3E9F2;
  --border-strong: #D2DBE8;

  /* شعاع و سایه */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 48, .05), 0 6px 20px -8px rgba(8, 26, 48, .07);
  --shadow-lg: 0 4px 10px rgba(8, 26, 48, .05), 0 24px 48px -16px rgba(8, 26, 48, .16);
  --shadow-navy: 0 20px 50px -18px rgba(8, 26, 48, .45);

  /* فاصله و ارتفاع هدر */
  --header-h: 68px;
}

/* حالت شب (تم تاریک) */
[data-theme="dark"] {
  --navy-950: #040A14;
  --navy-900: #081426;
  --navy-800: #0D1F38;
  --navy-700: #142F54;
  --navy-600: #1B3E6E;

  --blue-700: #2563EB;
  --blue-600: #3B82F6;
  --blue-500: #60A5FA;
  --blue-100: #1E293B;
  --blue-50:  #0F172A;

  --cyan-600: #0891B2;
  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;
  --cyan-100: #164E63;

  --amber-600: #F59E0B;
  --amber-500: #FBBF24;
  --amber-400: #FCD34D;
  --amber-100: #451A03;
  --amber-50:  #270F03;

  --bg: #090E17;
  --card: #0F1726;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --border: #1E293B;
  --border-strong: #334155;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4), 0 6px 20px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .6);
  --shadow-navy: 0 20px 50px -18px rgba(0, 0, 0, .7);
}

/* ---------- 2) پایه ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--blue-600); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

.tnum { font-variant-numeric: tabular-nums; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- 3) انیمیشن ورود (Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- 4) هدر و ناوبری ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 91, 214, .35), transparent);
  pointer-events: none;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 12px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: .2s ease;
}
.topbar-brand:hover { background: var(--blue-50); }
.topbar-logo {
  height: 40px; width: auto; max-width: 130px;
  object-fit: contain; flex-shrink: 0;
}
.topbar-title {
  font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap;
  background: linear-gradient(120deg, var(--navy-900), var(--blue-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ناوبری دسکتاپ */
.topbar-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .topbar-nav { display: flex; } }
.topbar-nav a {
  position: relative; padding: 9px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.topbar-nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.topbar-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--blue-600);
  transform: scaleX(0); transform-origin: right;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}
.topbar-nav a:hover::after { transform: scaleX(1); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
/* نسخه 1.9.0 — دکمه «ورود مدیران» از هدر حذف شد؛ زنگوله در سمت چپ قرار می‌گیرد (آخرین عنصر RTL) */

/* ---------- 5) دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; padding: 11px 22px;
  font-weight: 700; font-size: 14px; line-height: 1.6;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { vertical-align: -2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 91, 214, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(29, 91, 214, .65); }

.btn-hero {
  background: #fff; color: var(--navy-900);
  box-shadow: 0 10px 28px -10px rgba(8, 26, 48, .5);
}
.btn-hero:hover { transform: translateY(-1px); background: var(--blue-50); }

.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }

.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; }

.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }

.full-btn { width: 100%; margin-top: 18px; padding: 13px; font-size: 14px; border-radius: 14px; }
@media (min-width: 768px) { .full-btn { width: auto; padding-inline: 44px; } }

.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.icon-btn:active { transform: scale(.94); }

/* ---------- 6) هیرو اسلایدر ---------- */
.hero { padding-top: 22px; }
.slider {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-navy);
  isolation: isolate;
}
.slides { display: flex; transition: transform .65s cubic-bezier(.33, .8, .33, 1); }
.slide {
  min-width: 100%; position: relative;
  min-height: 420px; color: #fff;
}
@media (min-width: 768px) { .slide { min-height: 440px; } }

/* لایه تصویر — در جریان سند و تعیین‌کنندهٔ ارتفاع کارت؛
   تصویر «کامل» و بدون برش در دسکتاپ و موبایل (نسخه 1.11.0 مطابق طرح مرجع).
   فقط برای تصاویر خیلی بلند (عمودی) سقف ارتفاع گذاشته می‌شود که با contain
   (بدون برش) و چسبیده به پایین نمایش داده می‌شود */
.slide-media { position: relative; z-index: 0; }
.slide-media img {
  display: block; width: 100%; height: auto;
  max-height: min(74vh, 660px);
  object-fit: contain; object-position: center bottom;
}

/* بلوک متن — لایهٔ مطلق روی پایین‌ترین بخش کارت، دقیقاً مثل طرح مرجع:
   گرادیان شفاف→سرمه‌ای بی‌درز؛ سوژهٔ اصلی تصویر کاملاً پیدا می‌ماند
   و فقط لبهٔ پایین برای خوانایی متن نرم محو می‌شود */
.slide .slide-content {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 120px 56px 40px;
  background: linear-gradient(to top, rgba(7, 22, 42, .97) 0%, rgba(7, 22, 42, .8) 38%, rgba(7, 22, 42, 0) 100%);
}
.slide-copy { min-width: 0; }

/* موبایل: تصویر کامل بالا؛ متن در جریان سند و «در پایین‌ترین بخش» با گرادیان نرم.
   چون متن در جریان است، اگر بلند شود کارت قد می‌کشد و هرگز از کارت بیرون نمی‌زند */
@media (max-width: 767.98px) {
  .slide { display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; }
  .slide .slide-content {
    position: static;
    margin-top: -90px;
    gap: 14px;
    padding: 96px 20px 40px;
  }
  .slide-title { margin-top: 10px; font-size: 23px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* اسلاید بدون تصویر — پس‌زمینهٔ گرادیانی با درخشش و بافت ظریف
   تا در ارتفاعِ هم‌ترازِ بقیهٔ اسلایدها، خود را «طراحی‌شده» نشان دهد */
.slide-noimg::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(34, 184, 220, .16), transparent 55%),
    linear-gradient(to top, rgba(8, 26, 48, .5) 0%, transparent 45%);
}
.slide-noimg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(90% 90% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000 30%, transparent 100%);
}

.slide-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
}
.slide-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px;
  background: var(--cyan-400); box-shadow: 0 0 10px rgba(34, 184, 220, .9);
}
.slide-title {
  margin: 16px 0 8px; font-size: 27px; font-weight: 900;
  line-height: 1.6; letter-spacing: -.3px;
  text-wrap: balance;
}
@media (min-width: 768px) { .slide-title { font-size: 38px; max-width: 19em; } }
.slide-text {
  margin: 0; color: rgba(255, 255, 255, .85);
  font-size: 14.5px; max-width: 620px;
}
@media (min-width: 768px) { .slide-text { font-size: 16px; } }

/* دکمهٔ اسلاید — پیل سفید فشرده در سمت چپ بلوک متن (مطابق طرح مرجع) */
.btn-hero {
  flex-shrink: 0; align-self: center;
  border-radius: 999px; padding: 10px 20px;
  font-size: 13px;
  background: #fff; color: var(--navy-900);
  box-shadow: 0 10px 28px -10px rgba(8, 26, 48, .5);
}
.btn-hero:hover { transform: translateY(-1px); background: var(--blue-50); }

/* نقطه‌های اسلایدر — گوشهٔ پایین-چپ کارت (مطابق طرح مرجع) */
.slider-controls {
  position: absolute; bottom: 18px; inset-inline-end: 32px;
  display: flex; gap: 7px; z-index: 3;
}
@media (max-width: 767.98px) { .slider-controls { inset-inline-end: 20px; bottom: 14px; } }
.dot {
  width: 9px; height: 9px; border-radius: 99px; border: none; padding: 0;
  background: rgba(255, 255, 255, .38); transition: .35s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 1px 4px rgba(7, 22, 42, .45);
}
.dot:hover { background: rgba(255, 255, 255, .6); }
.dot.active { width: 30px; background: var(--cyan-400); }

/* ---------- 7) سکشن‌ها و عنوان‌ها ---------- */
.section { margin-top: 56px; }
@media (min-width: 768px) { .section { margin-top: 72px; } }

.section-title {
  position: relative; margin: 0 0 20px;
  font-size: 21px; font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 12px;
}
@media (min-width: 768px) { .section-title { font-size: 25px; } }
.section-title::before {
  content: ""; flex-shrink: 0;
  width: 5px; height: 26px; border-radius: 99px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}
@media (min-width: 768px) { .section-title::before { height: 30px; } }

/* ---------- 8) کارت‌های دسترسی سریع ---------- */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.feature-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px 16px 20px; text-align: center; cursor: pointer;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
  display: block;
}
.feature-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  transform: scaleX(0); transition: transform .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 18px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  transition: .25s cubic-bezier(.22, .61, .36, 1);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: #fff; transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 10px 22px -8px rgba(29, 91, 214, .55);
}
.feature-title { font-size: 14.5px; font-weight: 700; }
.feature-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 9) گرید اخبار ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.news-featured { grid-column: 1 / -1; }
@media (min-width: 768px) { .news-featured { grid-column: span 2; grid-row: span 2; } }

.news-thumb {
  position: relative; height: 130px; overflow: hidden;
  background:
    radial-gradient(100% 100% at 85% 0%, rgba(34, 184, 220, .35), transparent 60%),
    linear-gradient(225deg, #123A66, #0A2540);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .55); font-size: 34px;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-featured .news-thumb { height: 200px; font-size: 52px; }
@media (min-width: 768px) { .news-featured .news-thumb { height: 100%; min-height: 280px; } }

.tag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px -4px rgba(8, 26, 48, .4);
}
.tag-featured { background: rgba(124, 58, 237, .92); }
.tag-notice   { background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500)); }
.tag-edu      { background: rgba(29, 91, 214, .92); }
.tag-research { background: rgba(192, 38, 211, .92); }
.tag-student  { background: rgba(13, 148, 136, .92); }
.tag-event    { background: rgba(239, 68, 68, .92); }
.tag-support  { background: rgba(217, 119, 6, .92); }

.news-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.news-title { font-size: 14.5px; font-weight: 700; line-height: 1.85; transition: color .18s ease; }
.news-card:hover .news-title { color: var(--blue-600); }
.news-featured .news-title { font-size: 17px; font-weight: 800; }
.news-summary {
  display: none; color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.9;
}
@media (min-width: 768px) {
  .news-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* خبر ویژه — متن اولیه بلندتر تا باکس زیر تصویر خالی نماند (نسخه 1.9.0) */
.news-featured .news-summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 2; color: #46586E; margin-top: 8px;
}
@media (min-width: 768px) {
  .news-featured .news-summary { -webkit-line-clamp: 5; font-size: 13.5px; }
}
.news-meta {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px;
  border-top: 1px dashed var(--border);
}
.news-arrow { color: var(--blue-600); font-size: 18px; transition: transform .2s ease; }
.news-card:hover .news-arrow, .news-row:hover .news-arrow { transform: translateX(-4px); }

/* ---------- 10) ردیف‌های خبر (آرشیو) ---------- */
.news-rows { display: grid; gap: 14px; }
@media (min-width: 900px) { .news-rows { grid-template-columns: 1fr 1fr; } }
.news-row {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 14px; transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.news-row-thumb {
  position: relative; width: 92px; height: 92px; flex-shrink: 0; overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(100% 100% at 85% 0%, rgba(34, 184, 220, .35), transparent 60%),
    linear-gradient(225deg, #123A66, #0A2540);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .55); font-size: 26px;
}
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-row:hover .news-row-thumb img { transform: scale(1.06); }
.news-row-thumb .tag { top: 6px; inset-inline-start: 6px; font-size: 10px; padding: 2px 8px; }
.news-row-body { min-width: 0; flex: 1; }
.news-row-title { font-size: 14.5px; font-weight: 700; line-height: 1.8; transition: color .18s ease; }
.news-row:hover .news-row-title { color: var(--blue-600); }
.news-row-summary {
  color: var(--muted); font-size: 12.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- 11) اطلاعیه‌ها ---------- */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  color: inherit; text-decoration: none; cursor: pointer;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.notice-item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
  opacity: 0; transition: opacity .2s ease;
}
.notice-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.notice-item:hover::before { opacity: 1; }
.notice-title { font-size: 14.5px; font-weight: 700; }
.notice-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notice-arrow { color: var(--blue-600); font-size: 20px; flex-shrink: 0; transition: transform .2s ease; }
.notice-item:hover .notice-arrow { transform: translateX(-4px); }

/* کارت اطلاعیه با تصویر، تیتر و متن — تصویر سمت راست، تیتر بالا و متن زیر آن (نسخه 1.9.0) */
.notice-item-rich {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
}
.notice-thumb {
  width: 84px; height: 84px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(100% 100% at 15% 0%, rgba(34, 184, 220, .35), transparent 60%),
    linear-gradient(225deg, #123A66, #0A2540);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .55); font-size: 26px;
  box-shadow: var(--shadow-sm);
}
.notice-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.notice-item-rich:hover .notice-thumb img { transform: scale(1.06); }
.notice-main { flex: 1; min-width: 0; }
.notice-item-rich .notice-title {
  font-size: 15px; font-weight: 800; line-height: 1.75;
  transition: color .18s ease;
}
.notice-item-rich:hover .notice-title { color: var(--blue-600); }
.notice-text {
  font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 4px;
  text-align: right;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-item-rich .notice-date { margin-top: 6px; }
@media (max-width: 480px) {
  .notice-thumb { width: 68px; height: 68px; font-size: 22px; }
  .notice-text { -webkit-line-clamp: 2; }
}

/* ---------- 12) رسانه ---------- */
/* کروسل ویدئوها (1.9.2) — دسکتاپ ۳ کنار هم، تبلت ۲، موبایل ۱ — اسکرول اسنپ + فلش + نقطه */
.video-carousel { position: relative; }
.vc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.vc-card { scroll-snap-align: start; }
@media (min-width: 640px) { .vc-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .vc-track { grid-auto-columns: calc((100% - 48px) / 4); } }
.vc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); color: var(--navy-900);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.vc-btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.vc-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.vc-prev { right: -13px; } /* در RTL «قبلی» سمت راست است */
.vc-next { left: -13px; }  /* و «بعدی» سمت چپ */
.vc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.vc-dot {
  width: 7px; height: 7px; border-radius: 99px; padding: 0; border: 0; cursor: pointer;
  background: var(--border-strong); transition: .3s ease;
}
.vc-dot.active { width: 22px; background: var(--blue-600); }
@media (max-width: 639px) { .vc-btn { display: none; } } /* موبایل: سوایپ لمسی */
.video-carousel + .full-btn { margin-top: 18px; }

/* آرشیو ویدئوها (videos.php — 1.9.2) */
.videos-hero { text-align: center; }
.videos-hero-icon {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 10px 26px rgba(29, 91, 214, .4);
}
.videos-count {
  display: inline-block; margin-top: 14px; padding: 5px 14px; border-radius: 99px;
  font-size: 12.5px; font-weight: 800; color: var(--cyan-400);
  background: rgba(34, 184, 220, .12); border: 1px solid rgba(34, 184, 220, .3);
}
.videos-featured { margin-top: 22px; }
.videos-featured-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-sm);
}
.videos-featured-player { max-width: 860px; margin: 0 auto; }
.videos-featured-player .media-player-frame { aspect-ratio: 16 / 9; }
.videos-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .videos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .videos-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } }
.media-player {
  overflow: hidden; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.media-player:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.media-player-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--navy-950); overflow: hidden;
}
.media-player-frame iframe,
.media-player-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.media-player-frame video { object-fit: contain; }
.media-player-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-file-link {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  background: rgba(8, 26, 48, .45); backdrop-filter: blur(2px); transition: background .2s ease;
}
.media-file-link:hover { background: rgba(8, 26, 48, .62); }
.media-player-title { padding: 14px 16px; font-size: 15px; font-weight: 800; }

.media-stack { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
.media-card {
  overflow: hidden; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.media-top {
  height: 170px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(34, 184, 220, .4), transparent 55%),
    linear-gradient(225deg, #16406B, #081A30);
  color: rgba(255, 255, 255, .8); font-size: 44px;
  position: relative; overflow: hidden;
}
.media-top::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media-content { padding: 16px; }
.media-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.mini-dots { display: flex; gap: 6px; }
.mini-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--border-strong); transition: .3s ease; }
.mini-dot.active { width: 22px; background: var(--blue-600); }

/* ---------- 13) آمار در یک نگاه (باند سرمه‌ای تمام‌عرض) ---------- */
.section#stats,
#stats {
  position: relative;
  padding: 40px 0;
  margin-top: 56px;
  background:
    radial-gradient(120% 160% at 90% 0%, rgba(34, 184, 220, .16), transparent 50%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  box-shadow: 0 0 0 100vmax var(--navy-950);
  clip-path: inset(0 -100vmax);
  border-radius: 0;
}
#stats .section-title { color: #fff; justify-content: center; text-align: center; }
#stats .section-title::before { background: linear-gradient(180deg, var(--cyan-400), var(--blue-500)); }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.counter-card {
  position: relative; overflow: hidden; padding: 26px 16px 22px;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: .25s ease;
}
.counter-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(34, 184, 220, .45);
  transform: translateY(-3px);
}
.counter-card::after {
  content: ""; position: absolute; inset-inline-end: -14px; top: -14px;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 220, .25), transparent 70%);
}
.counter-number {
  position: relative; color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.5px;
}
@media (min-width: 768px) { .counter-number { font-size: 38px; } }
.counter-label { position: relative; color: rgba(255, 255, 255, .68); font-size: 13px; margin-top: 6px; }

/* ---------- 14) سامانه‌ها و دانشکده‌ها ---------- */
.portal-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.portal-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  white-space: nowrap; transition: .2s ease;
}
.tab-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; border-color: var(--blue-600);
  box-shadow: 0 8px 18px -8px rgba(29, 91, 214, .6);
}
.portal-list { display: flex; flex-direction: column; gap: 10px; }
.portal-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 18px; display: flex;
  align-items: center; justify-content: space-between; cursor: pointer; transition: .2s ease;
}
.portal-item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.portal-text strong { display: block; font-size: 14.5px; }
.portal-text span { color: var(--muted); font-size: 12.5px; }
.portal-arrow { color: var(--blue-600); font-size: 20px; }

.faculties { display: flex; flex-wrap: wrap; gap: 10px; }
.faculty-chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: .2s ease;
}
.faculty-chip:hover {
  border-color: var(--blue-500); color: var(--blue-600);
  background: var(--blue-50); transform: translateY(-2px);
}

/* ---------- 15) هیرو صفحه (آرشیو/جزئیات) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); color: #fff; padding: 36px 32px;
  background:
    radial-gradient(110% 140% at 88% 0%, rgba(34, 184, 220, .22), transparent 52%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  box-shadow: var(--shadow-navy);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 80% at 60% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 60% 30%, #000 20%, transparent 100%);
}
@media (min-width: 768px) { .page-hero { padding: 48px; } }
.page-hero h1 {
  position: relative; margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.3px;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 34px; } }
.page-hero p { position: relative; margin: 10px 0 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 20px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; transition: .2s ease;
}
.filter-chip:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter-chip.active {
  background: var(--blue-50); color: var(--blue-700);
  border-color: var(--blue-500);
  box-shadow: inset 0 0 0 1px var(--blue-500);
}
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.pager-info { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- 16) مقاله ---------- */
.article-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.article-cover {
  position: relative; height: 240px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(110% 140% at 88% 0%, rgba(34, 184, 220, .25), transparent 52%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, .5); font-size: 56px;
}
@media (min-width: 768px) { .article-cover { height: 340px; } }
.article-cover img { width: 100%; height: 100%; object-fit: contain; }
.article-cover .tag { font-size: 13px; padding: 6px 16px; }
.article-body { padding: 24px 22px; }
@media (min-width: 768px) { .article-body { padding: 40px; } }
.article-title { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.75; letter-spacing: -.3px; }
@media (min-width: 768px) { .article-title { font-size: 28px; } }
.article-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; margin-top: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.article-meta svg { vertical-align: -3px; margin-left: 4px; color: var(--blue-600); }
.article-summary {
  margin: 20px 0 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--blue-50); color: var(--navy-800);
  font-size: 14.5px; font-weight: 500; line-height: 2;
  border-inline-start: 4px solid var(--blue-600);
}
.article-content { margin-top: 22px; font-size: 15.5px; line-height: 2.15; color: #22334A; }
.article-content p { margin: 0 0 16px; }
.article-content h2, .article-content h3, .article-content h4 { margin: 26px 0 12px; font-weight: 800; line-height: 1.7; color: var(--navy-900); }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 14px 0; }
.article-content ul, .article-content ol { padding-inline-start: 24px; margin: 0 0 16px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  margin: 18px 0; padding: 14px 18px; border-inline-start: 4px solid var(--blue-600);
  background: var(--blue-50); border-radius: 12px; color: var(--navy-800);
}
.article-content a { color: var(--blue-600); text-decoration: underline; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 16px;
  transition: color .18s ease, transform .18s ease;
}
.back-link:hover { color: var(--blue-600); transform: translateX(3px); }
.back-link svg { vertical-align: -2px; }

/* ---------- 17) فرم جستجو ---------- */
.search-form { margin: 14px 0; }
.search-wrap {
  display: flex; gap: 8px; align-items: center;
  position: relative;
}
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-radius: 12px; font: inherit; background: var(--card);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form input[type="search"]:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(29, 91, 214, .12);
}
.search-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; border-radius: 12px; padding: 11px 20px;
  font: inherit; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(29, 91, 214, .55);
  transition: transform .18s ease, box-shadow .18s ease;
  flex-shrink: 0;
}
.search-go:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(29, 91, 214, .65); }
.search-go:active { transform: scale(.97); }
.search-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
  transition: .18s ease;
}
.search-clear:hover { color: #B91C1C; border-color: #FECACA; background: #FEF2F2; }

/* موبایل: دکمه جستجو و پاک‌کردن داخل خود فیلد — نسخه 1.9.0 */
@media (max-width: 767px) {
  .search-wrap {
    display: block; position: relative;
  }
  .search-form input[type="search"] {
    width: 100%; padding: 13px 16px;
    padding-inline-end: 104px;
    border-radius: 14px;
  }
  .search-go {
    position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
    padding: 8px 14px; border-radius: 10px;
    box-shadow: none;
  }
  .search-go:hover { transform: translateY(-50%); box-shadow: none; }
  .search-go:active { transform: translateY(-50%) scale(.96); }
  .search-go-txt { display: none; }
  .search-clear {
    position: absolute; inset-inline-end: 58px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; background: transparent;
    color: var(--muted); border-radius: 8px;
  }
  .search-clear:hover { transform: translateY(-50%); background: transparent; color: #B91C1C; }
}

/* ---------- 18) چیپ دسته‌بندی ---------- */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 16px; }
.cat-chip {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--card); transition: all .18s ease; font-family: inherit;
}
.cat-chip:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
.cat-chip.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-color: var(--blue-600); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(29, 91, 214, .55);
}

/* ---------- 19) هشدارها ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; }
.alert-ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-danger { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.alert-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #B45309; }

/* ---------- 20) فرم‌ها ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--navy-900); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=url], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-radius: 12px; font: inherit; background: #FBFCFE; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 91, 214, .12);
}
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.checkbox-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: #FBFCFE;
  padding: 14px 18px; margin-bottom: 18px;
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin: 0; cursor: pointer; }
.checkbox-inline input { width: 16px; height: 16px; accent-color: var(--blue-600); }

/* ---------- 21) پنل مدیریت ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #EEF2F8; }
.admin-side {
  width: 256px; flex-shrink: 0;
  background:
    radial-gradient(140% 60% at 100% 0%, rgba(34, 184, 220, .12), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff; padding: 24px 16px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column;
}
@media (max-width: 900px) { .admin-side { display: none; } }
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15.5px; padding: 4px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 18px;
}
.admin-brand svg { color: var(--cyan-400); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center;
  padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, .72); transition: .16s ease;
}
.admin-nav a svg { flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 91, 214, .6);
}
.admin-ico { margin-left: 10px; opacity: .9; }
.admin-main { flex: 1; padding: 24px 20px; max-width: 100%; }
@media (min-width: 1024px) { .admin-main { padding: 32px 36px; } }

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.admin-topbar strong { font-size: 16px; font-weight: 800; color: var(--navy-900); }
.admin-topbar .who { font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.admin-topbar .who strong { color: var(--navy-900); font-size: 13px; }

.admin-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px;
}
.admin-card h2 { margin: 0 0 18px; font-size: 17px; font-weight: 800; color: var(--navy-900); }

.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
@media (min-width: 768px) { .stat-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stat-cards.sc6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-cards.sc6 { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before {
  content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}
.stat-card .n { font-size: 30px; font-weight: 900; color: var(--blue-600); letter-spacing: -.5px; }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- کارت‌های آمار نسخه ۱.۵ (آیکن + روند) ---------- */
.stat-card .sc-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 14px;
  box-shadow: 0 6px 14px -6px rgb(15 23 42 / .35);
}
.stat-card .n  { font-size: 28px; }
.stat-card .s  { font-size: 11.5px; color: #94A3B8; margin-top: 7px; font-weight: 600; }
.sc-blue   .sc-icon { background: linear-gradient(135deg, #1D5BD6, #3B82F6); }
.sc-violet .sc-icon { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.sc-amber  .sc-icon { background: linear-gradient(135deg, #D97706, #F59E0B); }
.sc-teal   .sc-icon { background: linear-gradient(135deg, #0D9488, #2DD4BF); }
.sc-rose   .sc-icon { background: linear-gradient(135deg, #E11D48, #FB7185); }
.sc-indigo .sc-icon { background: linear-gradient(135deg, #4338CA, #818CF8); }
.sc-blue::before   { background: linear-gradient(180deg, #1D5BD6, #60A5FA); }
.sc-violet::before { background: linear-gradient(180deg, #7C3AED, #C4B5FD); }
.sc-amber::before  { background: linear-gradient(180deg, #D97706, #FCD34D); }
.sc-teal::before   { background: linear-gradient(180deg, #0D9488, #5EEAD4); }
.sc-rose::before   { background: linear-gradient(180deg, #E11D48, #FDA4AF); }
.sc-indigo::before { background: linear-gradient(180deg, #4338CA, #A5B4FC); }

/* ---------- نوار دسترسی سریع ---------- */
.qa-strip {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 13px 18px; margin-bottom: 22px;
}
.qa-strip .qa-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--navy-900); margin-inline-end: 6px; }
.qa-strip .qa-title svg { color: var(--blue-600); }

/* ---------- شبکه داشبورد و کارت‌های نمودار ---------- */
.dash-grid.two { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 1000px) { .dash-grid.two { grid-template-columns: 1.25fr 1fr; } }
.chart-card { padding: 22px 24px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.chart-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.chart-head h2 .ico { color: var(--blue-600); }
.chart-sub { font-size: 12px; font-weight: 700; color: #64748B; background: #F1F5F9; padding: 4px 12px; border-radius: 20px; }
.chart-link { font-size: 12.5px; font-weight: 700; color: var(--blue-600); text-decoration: none; }
.chart-link:hover { text-decoration: underline; }
.chart-empty { padding: 46px 20px; text-align: center; color: #94A3B8; font-size: 13.5px; font-weight: 600; }
.svg-chart text { font-family: Vazirmatn, Tahoma, sans-serif; }

/* ---------- دونات + راهنما ---------- */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut-legend { flex: 1; min-width: 190px; display: grid; gap: 9px; }
.donut-item { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.donut-item .dot { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.donut-item .lbl { font-weight: 700; color: #334155; flex: 1; }
.donut-item .val { color: #64748B; font-weight: 700; }
.donut-item .val em { font-style: normal; font-size: 11px; color: #94A3B8; }

/* ---------- نوارهای افقی پربازدید ---------- */
.hbars { display: grid; gap: 15px; }
.hbar-row { display: flex; align-items: flex-start; gap: 11px; }
.hbar-row .rank {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 2px;
  background: #EFF5FF; color: var(--blue-600); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hbar-row:nth-child(1) .rank { background: linear-gradient(135deg, #1D5BD6, #3B82F6); color: #fff; }
.hbar-main { flex: 1; min-width: 0; }
.hbar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hbar-head a {
  font-size: 13px; font-weight: 700; color: var(--navy-900); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hbar-head a:hover { color: var(--blue-600); }
.hbar-head .cnt { font-size: 11.5px; font-weight: 700; color: #64748B; flex: none; }
.hbar-track { height: 8px; background: #EEF2F7; border-radius: 8px; overflow: hidden; }
.hbar-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(270deg, #1D5BD6, #22B8DC);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- تایم‌لاین اطلاعیه‌ها ---------- */
.mini-timeline { display: grid; gap: 4px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-item:not(:last-child)::before {
  content: ""; position: absolute; top: 14px; inset-inline-start: 5px; bottom: -2px;
  width: 2px; background: #E2E8F0; border-radius: 2px;
}
.tl-dot {
  flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px;
  background: #fff; border: 3px solid var(--blue-600); z-index: 1;
}
.tl-body { min-width: 0; }
.tl-title { font-size: 13px; font-weight: 700; color: #334155; line-height: 1.7; }
.tl-date { font-size: 11.5px; color: #94A3B8; margin-top: 2px; }

/* ---------- ستاره خبر ویژه ---------- */
.feat-star { color: #F59E0B; display: inline-flex; flex: none; }

/* ---------- نوار وضعیت سیستم ---------- */
.sys-strip {
  display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0A2540, #103152); color: rgba(255,255,255,.85);
  border-radius: var(--radius); padding: 16px 22px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 600;
}
.sys-strip .sys-item { display: inline-flex; align-items: center; gap: 7px; }
.sys-strip .sys-item .ico { color: #22B8DC; flex: none; }
.sys-strip b { color: #fff; font-weight: 800; }

.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table
/* ---------- استایل ستون عنوان و تصویر در جدول اخبار ادمین (دسکتاپ) ---------- */
.col-news-title {
  max-width: 320px;
}
.admin-news-title-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-news-title-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
  transition: color .15s ease;
}
.admin-news-title-link:hover {
  color: var(--blue-600);
}
.admin-news-summary-text {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  line-height: 1.5;
}
.admin-news-thumb-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #64748B;
  display: inline-block;
}
.thumb-placeholder,
.article-placeholder-cover {
  background: #64748B;
  object-fit: cover;
}

.admin-table th, table.admin-table td {
  text-align: right; padding: 13px 12px; border-bottom: 1px solid var(--border);
}
table.admin-table th {
  color: var(--muted); font-weight: 700; font-size: 12px;
  background: #F6F9FD; border-bottom: 1px solid var(--border-strong);
}
table.admin-table th:first-child { border-start-start-radius: 10px; }
table.admin-table th:last-child { border-start-end-radius: 10px; }
table.admin-table tbody tr { transition: background .15s ease; }
table.admin-table tbody tr:hover td { background: #F6F9FD; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 10px; }
.badge {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
}

/* ناوبری موبایل پنل */
.admin-mobile-nav { display: none; }
@media (max-width: 900px) {
  .admin-mobile-nav {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
  }
  .admin-mobile-nav::-webkit-scrollbar { display: none; }
  .admin-mobile-nav a {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 16px; font-size: 12px; font-weight: 700; color: var(--muted);
    background: var(--card); white-space: nowrap; transition: .15s ease;
  }
  .admin-mobile-nav a.active {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff; border-color: var(--blue-600);
  }
}

/* ---------- 22) ورود مدیر ---------- */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: stretch; justify-content: stretch;
  background: var(--navy-950); padding: 0;
}
@media (min-width: 900px) {
  .admin-login-wrap {
    display: grid; grid-template-columns: 1.05fr 1fr;
  }
  .admin-login-hero { display: flex !important; }
}
.admin-login-hero {
  display: none; position: relative; overflow: hidden; flex-direction: column;
  justify-content: space-between; padding: 56px; color: #fff;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(34, 184, 220, .25), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.admin-login-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 80% at 60% 35%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 60% 35%, #000 20%, transparent 100%);
}
.admin-login-hero .hero-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px;
}
.admin-login-hero .hero-badge svg { color: var(--cyan-400); }
.admin-login-hero h2 {
  position: relative; font-size: 34px; font-weight: 900; line-height: 1.6; margin: 0 0 14px;
}
.admin-login-hero p { position: relative; color: rgba(255, 255, 255, .7); font-size: 15px; max-width: 420px; margin: 0; }
.admin-login-hero .hero-foot { position: relative; color: rgba(255,255,255,.45); font-size: 13px; }

.admin-login-side { display: flex; align-items: center; justify-content: center; padding: 28px 20px; background: var(--bg); }
.admin-login-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 32px;
}
.admin-login-card h1 { margin: 0 0 4px; font-size: 21px; font-weight: 900; color: var(--navy-900); }
.admin-login-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.admin-login-card .field input { background: #FBFCFE; }

/* ---------- 23) ویرایشگر متن ---------- */
.rte { border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.rte:focus-within { box-shadow: 0 0 0 4px rgba(29, 91, 214, .12); border-color: var(--blue-500); }
.rte-toolbar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 8px; background: #F6F9FD; border-bottom: 1px solid var(--border);
}
.rte-toolbar button {
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); font: inherit; font-size: 12px; font-weight: 800;
  transition: .15s ease;
}
.rte-toolbar button:hover { background: var(--blue-50); color: var(--blue-600); }
.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.rte-image-status { font-size: 11px; color: var(--muted); margin-inline-start: 8px; }
.rte-area {
  min-height: 260px; padding: 16px 18px; font: inherit; font-size: 15px; line-height: 2.1;
  outline: none; overflow-y: auto; max-height: 520px;
}
.rte-area:empty::before { content: attr(data-placeholder); color: #9AA8BC; pointer-events: none; }
.rte-area img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.rte-area:focus { outline: none; }

/* RSS */
.rss-head { display: flex; align-items: center; gap: 10px; margin: -6px 0 12px; }
.rss-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100); border-radius: 999px;
  padding: 3px 12px; font-size: 11px; font-weight: 800;
}
.rss-source { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.rss-source:hover { color: var(--blue-600); }
.rss-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .rss-grid { grid-template-columns: 1fr 1fr; } }
.rss-item {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px 18px; transition: .2s ease;
}
.rss-item:hover { transform: translateY(-2px); border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.rss-item-title { font-size: 14px; font-weight: 700; line-height: 1.8; }
.rss-item-summary {
  color: var(--muted); font-size: 12px; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rss-item-meta {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px;
}
.rss-item-arrow svg { color: var(--blue-600); }

/* آیکن‌های مشترک */
.footer-ico, .news-arrow svg, .notice-arrow svg { vertical-align: middle; }
.footer-ico { color: var(--cyan-400); margin-left: 8px; }
.nav-icon svg { display: block; margin: 0 auto; }
.news-arrow svg, .notice-arrow svg { color: var(--blue-600); display: inline-block; }
.feature-icon svg { display: block; }
.media-top svg { display: block; position: relative; z-index: 1; }
.filter-chip svg { vertical-align: -2px; margin-left: 4px; }

/* ---------- 24) فوتر (سرمه‌ای) ---------- */
.footer {
  margin-top: 72px; color: rgba(255, 255, 255, .75);
  background:
    radial-gradient(110% 130% at 88% 0%, rgba(34, 184, 220, .14), transparent 50%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  padding-left: 15px; padding-right: 15px;
}
.footer-grid { display: grid; gap: 36px; padding: 52px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h4 {
  margin: 0 0 16px; font-size: 14px; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer h4::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}
.footer p, .footer li { color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { transition: color .18s ease, padding .18s ease; }
.footer a:hover { color: var(--cyan-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 16px; font-size: 12px; color: rgba(255, 255, 255, .45);
}
.footer-version {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 14px;
  color: rgba(255, 255, 255, .65); font-weight: 700; transition: .2s ease;
}
.footer-version:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* ---------- 25) نویگیشن پایین موبایل — شیشه‌ای مات (نسخه 1.9.0) ---------- */
.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 460px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .38));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 16px 40px -12px rgba(8, 26, 48, .35);
  border-radius: 20px; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px; z-index: 50;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav { background: rgba(255, 255, 255, .96); }
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #33475E; font-size: 11px; font-weight: 700;
  padding: 9px 4px; border-radius: 14px; transition: .18s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.nav-item .nav-icon { font-size: 20px; line-height: 1; }
.nav-item.active {
  color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(29, 91, 214, .65);
  text-shadow: none;
}
body.has-bottom-nav { padding-bottom: 96px; }
@media (min-width: 768px) { body.has-bottom-nav { padding-bottom: 0; } }

/* ---------- 26) منوی کشویی ---------- */
.drawer {
  position: fixed; inset: 0; background: rgba(8, 26, 48, .45);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .28s ease; z-index: 70;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; width: 86%; max-width: 350px; height: 100%;
  background: var(--card); padding: 22px 18px; overflow: auto;
  box-shadow: -16px 0 44px rgba(8, 26, 48, .25); transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-head strong { font-size: 16px; font-weight: 800; color: var(--navy-900); }
.drawer-menu { display: flex; flex-direction: column; gap: 8px; }
.drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px;
  background: var(--card); font-size: 14px; font-weight: 600;
  transition: .18s ease;
}
.drawer-link:hover { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-600); }
.drawer-admin {
  margin-top: 26px; padding: 18px;
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--blue-50), #fff);
}
.drawer-admin .btn { width: 100%; margin-top: 12px; }

/* ---------- 27) اسکرول‌بار ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C3CEDC; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #9FACBD; }

/* =====================================================================
   24) مرکز اعلان‌های داخلی — نسخه 1.6.0
   ===================================================================== */

/* بج شمارنده روی زنگوله */
.bell-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .4);
  border: 2px solid #fff;
}
.admin-topbar .bell-badge { top: -4px; inset-inline-end: -6px; }

/* محتوای کشوی اعلان‌های سایت */
.notif-panel { width: min(420px, 92vw); }
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 2px;
}
.notif-item {
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding: 6px 8px 6px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s, background .18s, transform .18s;
}
.notif-item.new { border-inline-start: 3px solid var(--blue-600); background: var(--blue-50); }
/* بدنه کلیک‌پذیر اعلان (لینک یا متن) — نسخه 1.9.0 */
.notif-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  padding: 6px 6px 6px 0;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
a.notif-main:hover { color: inherit; }
.notif-item:has(a.notif-main):hover { border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-1px); }
/* دکمه ضربدر بستن هر اعلان — نسخه 1.9.0 */
.notif-x {
  flex-shrink: 0;
  align-self: flex-start;
  width: 26px;
  height: 26px;
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: .55;
  transition: opacity .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.notif-x:hover { opacity: 1; background: #FEE2E2; color: #B91C1C; transform: scale(1.06); }
.notif-x:active { transform: scale(.92); }
@media (hover: none) {
  .notif-x { opacity: .8; } /* لمس: همیشه قابل مشاهده */
}

.notif-type {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 2px;
}
.nt-news     { background: var(--blue-100); color: var(--blue-700); }
.nt-notice   { background: #FEF3C7; color: #92400E; }
.nt-feed     { background: var(--cyan-100); color: var(--cyan-600); }
.nt-system   { background: #E2E8F0; color: #334155; }
.nt-security { background: #FEE2E2; color: #B91C1C; }

.notif-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-txt strong { font-size: 13.5px; font-weight: 700; line-height: 1.8; word-break: break-word; }
.notif-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.9; word-break: break-word; }
.notif-txt time { font-size: 11px; color: var(--muted); opacity: .8; margin-top: 2px; }

.notif-empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* پنل اعلان مدیر (پاپ‌آور تاپ‌بار) */
.notif-wrap { position: relative; display: inline-flex; }
.notif-pop {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  width: min(380px, 86vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 90;
  animation: notifPop .16s ease;
}
@keyframes notifPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.notif-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.notif-pop-head strong { font-size: 14px; font-weight: 800; color: var(--navy-900); }
.notif-pop-list { max-height: min(46vh, 380px); }

/* موبایل: پاپ مدیر نزدیک لبه صفحه باز نشود */
@media (max-width: 640px) {
  .notif-pop { inset-inline-start: auto; inset-inline-end: -40px; }
}

/* =====================================================================
   25) باکس اشتراک پوش وب — بازطراحی: متن بالا، دکمه تمام‌عرض پایین (نسخه 1.9.0)
   ===================================================================== */
.push-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, var(--navy-900), #123B6E);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: #fff;
}
.push-box-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.push-box-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  display: flex;
  align-items: center;
  justify-content: center;
}
.push-box-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-box-txt strong { font-size: 13.5px; font-weight: 800; }
.push-box-txt span { font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.8; }
.push-box-btn { width: 100%; }

/* =====================================================================
   26) پوش موبایل — بنر فعال‌سازی + راهنمای iOS + توست (نسخه 1.8.0)
   ===================================================================== */
.push-banner {
  position: fixed;
  z-index: 90;
  inset-inline: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  max-width: 460px;
  margin-inline: auto;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #123B6E);
  border: 1px solid rgba(34, 184, 220, .28);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  box-shadow: 0 18px 44px -14px rgba(8, 26, 48, .55);
  animation: pushBannerIn .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pushBannerIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.push-banner[hidden] { display: none; }
.push-banner-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.push-banner-close:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.push-banner-row { display: flex; align-items: flex-start; gap: 11px; padding-inline-end: 22px; }
.push-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(29, 91, 214, .6);
}
.push-banner-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.push-banner-txt strong { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.push-banner-txt span { font-size: 11.5px; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.push-banner-actions { display: flex; gap: 8px; margin-top: 11px; }
.push-banner-actions .btn-outline-light:hover { background: rgba(255, 255, 255, .16); }

/* دسکتاپ: کارت شناور گوشه پایین چپ */
@media (min-width: 1024px) {
  .push-banner {
    inset-inline: auto;
    inset-inline-start: 20px;
    inset-inline-end: auto;
    bottom: 20px;
    width: 420px;
  }
}

/* توست تأیید */
.push-toast {
  position: fixed;
  z-index: 140;
  inset-inline: 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  width: max-content;
  max-width: min(92vw, 480px);
  background: var(--navy-950);
  color: #fff;
  border: 1px solid rgba(34, 184, 220, .35);
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
  box-shadow: 0 14px 36px -12px rgba(8, 26, 48, .6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.push-toast.show { opacity: 1; transform: translateY(0); }

/* راهنمای iOS */
.ios-guide {
  max-width: 420px;
  width: min(92vw, 420px);
  max-height: min(86vh, 640px);
  overflow-y: auto;
}
.ios-guide-intro {
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--muted);
  margin: 0 0 14px;
}
.ios-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #F4F7FC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.ios-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ios-steps li div { display: flex; flex-direction: column; gap: 2px; }
.ios-steps li strong { font-size: 13px; font-weight: 800; color: var(--navy-900); }
.ios-steps li span { font-size: 11.5px; color: var(--muted); line-height: 1.9; }

/* کارت راه‌اندازی سریع پوش — پنل مدیریت (1.8) */
.push-quickstart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0A2540, #123B6E);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: #fff;
}
.push-quickstart-txt { display: flex; flex-direction: column; gap: 3px; min-width: 240px; flex: 1; }
.push-quickstart-txt strong { font-size: 14px; font-weight: 800; }
.push-quickstart-txt span { font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,.72); }
.push-quickstart .btn { flex-shrink: 0; }

/* ---------- 24) افکت بازشدن دایره‌ای صفحه اطلاعیه — Lollipop (نسخه 1.9.2) ---------- */
/* دایره از نقطه کلیک باز می‌شود و محتوا داخل آن ظاهر می‌شود.
   نسخه 1.9.2 — شروع «قطعی» انیمیشن: دیگر انیمیشن با لود CSS استارت نمی‌خورد (علتِ
   «یکبار کامل، یکبار نصف، یکبار کمتر») بلکه فقط وقتی صفحه واقعاً رندر شد، اسکریپتِ
   صفحه کلاس is-open را اضافه می‌کند و انیمیشن از فریم صفر و همیشه کامل اجرا می‌شود. */
:root { --lol-x: 50%; --lol-y: 100%; } /* پیش‌فرض مثل نمونه: پایین‌وسط (ورود مستقیم با URL) */

/* حالتِ پنهانِ اولیه فقط وقتی جاوااسکریپت واقعاً فعال است (کلاس js در <head><meta charset="utf-8"> ست می‌شود).
   ضامن اطمینان CSS: اگر اسکریپت وسط راه به هر دلیلی شکست، ۳.۵ ثانیه بعد صفحه خودش باز می‌شود. */
.js .lol-content {
  clip-path: circle(0px at var(--lol-x) var(--lol-y));
  animation: lol-safety 0s linear 3.5s forwards;
}
.js .lol-content.is-open {
  animation: lol-open .75s cubic-bezier(.215, .61, .355, 1) .05s forwards;
}
@keyframes lol-open   { to { clip-path: circle(150% at var(--lol-x) var(--lol-y)); } }
@keyframes lol-safety { to { clip-path: circle(150% at var(--lol-x) var(--lol-y)); } }

/* ورود نرم محتوا داخل دایره — مثل .content در نمونه؛ only-on-open با fill:both */
.js .lol-content.is-open .lol-inner {
  animation: lol-rise .45s cubic-bezier(.215, .61, .355, 1) .28s both;
}
@keyframes lol-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* جمع‌شدن دایره هنگام «بازگشت» — دایره به همان نقطه کلیک برمی‌گردد
   (بعد از is-open تعریف می‌شود تا در صورت داشتن هر دو کلاس، بستن برنده باشد) */
.js .lol-content.is-closing {
  animation: lol-close .4s cubic-bezier(.55, .055, .675, .19) forwards;
}
@keyframes lol-close {
  from { clip-path: circle(150% at var(--lol-x) var(--lol-y)); }
  to   { clip-path: circle(0px at var(--lol-x) var(--lol-y)); }
}

/* مرورگرهای بدون clip-path — نمایش ساده و قطعی، بدون افکت */
@supports not (clip-path: circle(50%)) {
  .js .lol-content { clip-path: none; animation: none; }
  .js .lol-content .lol-inner { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* احترام به تنظیم کاهش حرکت کاربر — صفحه کامل و بدون انیمیشن */
@media (prefers-reduced-motion: reduce) {
  .js .lol-content { clip-path: none; animation: none; }
  .js .lol-content .lol-inner { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* محتوای متن اطلاعیه در صفحه جزئیات — هم‌تراز با استایل خبر */
.notice-content { text-align: right; }

/* =====================================================================
   استایل‌های جامع به‌روزرسانی (نسخه ۱.۱۳.۰)
   ===================================================================== */

/* نمایش آیکن‌های تم روز/شب */
:root:not([data-theme="dark"]) .theme-icon-light { display: none !important; }
:root:not([data-theme="dark"]) .theme-icon-dark { display: inline-flex !important; }
[data-theme="dark"] .theme-icon-light { display: inline-flex !important; }
[data-theme="dark"] .theme-icon-dark { display: none !important; }

/* اوررایدهای تم تاریک برای سازگاری کامل */
[data-theme="dark"] .topbar {
  background: rgba(15, 23, 38, .88);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .topbar-title {
  background: linear-gradient(120deg, #FFFFFF, var(--cyan-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .topbar-nav a { color: var(--muted); }
[data-theme="dark"] .topbar-nav a:hover {
  color: var(--blue-500);
  background: rgba(59, 130, 246, .12);
}
[data-theme="dark"] .topbar-brand:hover { background: rgba(59, 130, 246, .12); }
[data-theme="dark"] .icon-btn {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .icon-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: rgba(59, 130, 246, .12);
}
[data-theme="dark"] .drawer-panel {
  background: var(--card);
  color: var(--text);
  box-shadow: -16px 0 44px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .drawer-head strong { color: var(--text); }
[data-theme="dark"] .drawer-link {
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .drawer-link:hover {
  background: rgba(59, 130, 246, .12);
  border-color: var(--blue-500);
  color: var(--blue-500);
}
[data-theme="dark"] .drawer-admin {
  background: rgba(59, 130, 246, .08);
  border-color: var(--border);
}
[data-theme="dark"] .bottom-nav {
  background: linear-gradient(160deg, rgba(15, 23, 38, .88), rgba(9, 14, 23, .84));
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 40px -12px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .nav-item { color: #94A3B8; text-shadow: none; }
[data-theme="dark"] .nav-item:hover { color: #F1F5F9; }
[data-theme="dark"] .nav-item.active { color: #fff; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] input::placeholder { color: #64748B; }
[data-theme="dark"] .alert-warn {
  background: rgba(245, 158, 11, .12);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, .3);
}
[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, .12);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, .3);
}
[data-theme="dark"] .cat-chip {
  background: var(--card);
  color: var(--muted);
  border-color: var(--border);
}
[data-theme="dark"] .cat-chip:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}
[data-theme="dark"] .cat-chip.active {
  background: rgba(59, 130, 246, .16);
  color: var(--blue-500);
  border-color: var(--blue-500);
}
[data-theme="dark"] .filter-chip {
  background: var(--card);
  color: var(--muted);
  border-color: var(--border);
}
[data-theme="dark"] .filter-chip.active {
  background: rgba(59, 130, 246, .16);
  color: var(--blue-500);
  border-color: var(--blue-500);
}
[data-theme="dark"] .article-summary {
  background: rgba(59, 130, 246, .1);
  color: #E2E8F0;
  border-inline-start-color: var(--blue-500);
}
[data-theme="dark"] .article-content { color: #E2E8F0; }
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4 { color: #F8FAFC; }
[data-theme="dark"] .article-content blockquote {
  background: rgba(59, 130, 246, .1);
  color: #E2E8F0;
  border-inline-start-color: var(--blue-500);
}
[data-theme="dark"] .article-content a { color: var(--cyan-400); }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .portal-item,
[data-theme="dark"] .notice-item {
  background: var(--card);
  border-color: var(--border);
}

/* کلید تعویض تم در منوی کشویی */
.drawer-theme-box {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--blue-50); border: 1px solid var(--border);
  border-radius: 13px; transition: background .2s ease;
}
[data-theme="dark"] .drawer-theme-box { background: rgba(30, 41, 59, .6); }
.drawer-theme-info {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 13.5px; color: var(--text);
}
.drawer-theme-info svg { color: var(--blue-600); }
[data-theme="dark"] .drawer-theme-info svg { color: var(--amber-400); }
.drawer-theme-toggle {
  position: relative; width: 48px; height: 26px; border-radius: 99px;
  background: var(--border-strong); border: none; padding: 2px;
  transition: background .25s ease; cursor: pointer;
}
.drawer-theme-toggle.active { background: var(--blue-600); }
.toggle-knob {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}
.drawer-theme-toggle.active .toggle-knob { transform: translateX(-22px); }

/* نوار اخبار فوری (Breaking News Ticker) */
.ticker-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 35;
  box-shadow: 0 1px 3px rgba(8, 26, 48, .03);
}
[data-theme="dark"] .ticker-bar {
  background: rgba(15, 23, 38, .75);
}
.ticker-inner {
  display: flex; align-items: center; gap: 12px;
  height: 38px;
}
.ticker-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  color: #fff; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(217, 119, 6, .5);
}
.ticker-fire {
  color: #fff;
  animation: flicker 1.8s infinite alternate;
}
@keyframes flicker {
  0% { opacity: .7; transform: scale(.95); }
  100% { opacity: 1; transform: scale(1.08); }
}
.ticker-content {
  position: relative; flex: 1; min-width: 0; height: 26px; overflow: hidden;
}
.ticker-track {
  position: relative; width: 100%; height: 100%;
}
.ticker-item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.ticker-item.active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.ticker-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .18s ease;
}
.ticker-item:hover .ticker-title {
  color: var(--blue-600);
}
.ticker-time {
  font-size: 11px; color: var(--muted); flex-shrink: 0;
  background: var(--blue-50); padding: 1px 7px; border-radius: 6px;
}
[data-theme="dark"] .ticker-time {
  background: rgba(255, 255, 255, .06);
}
@media (max-width: 600px) {
  .ticker-inner { gap: 8px; height: 36px; }
  .ticker-badge { font-size: 10.5px; padding: 2px 8px; }
  .ticker-time { display: none; }
  .ticker-title { font-size: 12.5px; }
}

/* زمان مطالعه و متادیتا */
.news-meta-info {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.news-read-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  background: var(--blue-50); padding: 2px 7px; border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}
[data-theme="dark"] .news-read-time {
  background: rgba(59, 130, 246, .12); color: var(--cyan-400);
}

/* اسکلت بارگذاری (Skeleton Loading) با Shimmer */
.news-skeleton {
  pointer-events: none; cursor: default;
}
.skeleton-thumb {
  height: 130px; width: 100%; border-radius: 0;
}
.skeleton-body {
  padding: 16px; display: flex; flex-direction: column; flex: 1;
}
.skeleton-line {
  border-radius: 6px;
}
.shimmer {
  background: linear-gradient(90deg, var(--border) 0%, rgba(255, 255, 255, .5) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite;
}
[data-theme="dark"] .shimmer {
  background: linear-gradient(90deg, #1E293B 0%, #334155 50%, #1E293B 100%);
  background-size: 200% 100%;
}
@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* نوار پیشرفت مطالعه */
.reading-progress-bar {
  position: fixed; top: var(--header-h); inset-inline: 0; height: 3.5px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500), var(--amber-500));
  transform-origin: right center; transform: scaleX(0);
  z-index: 45; transition: transform .08s linear; pointer-events: none;
}

/* نوار ابزار خبر: اندازه قلم، اشتراک‌گذاری، چاپ */
.article-tools {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-top: 18px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
[data-theme="dark"] .article-tools {
  background: rgba(255, 255, 255, .03);
}
.text-sizer, .share-tools {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tools-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  margin-inline-end: 2px;
}
.tool-btn {
  min-width: 32px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text);
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .15s ease;
}
.tool-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tool-btn.active {
  background: var(--blue-600); color: #fff; border-color: var(--blue-600);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; border: none;
  transition: transform .15s ease, opacity .15s ease;
  color: #fff; text-decoration: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-1px); opacity: .92; }
.share-eitaa    { background: #E75D14; }
.share-bale     { background: #1EA085; }
.share-telegram { background: #229ED9; }
.share-whatsapp { background: #25D366; }
.share-copy     { background: var(--navy-800); color: #fff; }
[data-theme="dark"] .share-copy { background: #334155; }
.share-print    { background: var(--muted); color: #fff; }
@media (max-width: 767.98px) {
  .article-tools { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .text-sizer, .share-tools { justify-content: flex-start; }
}

/* اندازه متن پویا در مقاله */
.article-content.fs-sm { font-size: 14px; line-height: 2.0; }
.article-content.fs-base { font-size: 15.5px; line-height: 2.15; }
.article-content.fs-lg { font-size: 17.5px; line-height: 2.25; }
.article-content.fs-xl { font-size: 19.5px; line-height: 2.35; }

/* لایت‌باکس تصاویر (Lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(4, 10, 20, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s cubic-bezier(.22, .61, .36, 1), visibility .3s;
}
.lightbox.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.lightbox-box {
  position: relative; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .85);
  transform: scale(.94); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-caption {
  margin-top: 12px; color: rgba(255, 255, 255, .88);
  font-size: 13.5px; font-weight: 600; text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute; top: 20px; inset-inline-end: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
  z-index: 125;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, .3); transform: scale(1.08);
}
.article-content img, .article-cover img { cursor: zoom-in; }

/* استایل بهینه برای چاپ رسمی (Print Friendly) */
@media print {
  body {
    background: #fff !important; color: #000 !important;
    font-size: 12pt !important; line-height: 1.6 !important;
    padding-bottom: 0 !important;
  }
  .topbar, .ticker-bar, .bottom-nav, .drawer, .reading-progress-bar,
  .article-tools, .back-link, .footer, .btn, .news-rows, [data-open-notif],
  .push-banner, .push-toast, .slider-controls {
    display: none !important;
  }
  .container {
    max-width: 100% !important; padding: 0 !important; margin: 0 !important;
  }
  .article-card {
    border: none !important; box-shadow: none !important; border-radius: 0 !important;
  }
  .article-body { padding: 0 !important; }
  .article-title {
    font-size: 18pt !important; color: #000 !important; margin-bottom: 12pt !important;
  }
  .article-content { font-size: 11pt !important; color: #111 !important; }
  .article-content a { color: #000 !important; text-decoration: underline !important; }
  .article-content img { max-height: 350px !important; page-break-inside: avoid; }
  .article-card::before {
    content: "دانشگاه شهید چمران اهواز — سامانه اطلاع‌رسانی اخبار و رویدادها";
    display: block; font-size: 14pt; font-weight: bold; text-align: center;
    border-bottom: 2px solid #000; padding-bottom: 8pt; margin-bottom: 16pt;
  }
}

/* =====================================================================
   استایل‌های بازسازی پنل مدیریت (نسخه ۱.۱۳.۰)
   ===================================================================== */

/* گروه‌بندی منوی سایدبار پنل مدیریت */
.admin-nav-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-nav-heading {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 12px 2px;
}
.admin-nav-external {
  margin-top: 8px;
  border: 1px dashed rgba(255, 255, 255, .2) !important;
  color: var(--cyan-400) !important;
}
.admin-nav-external:hover {
  background: rgba(34, 184, 220, .15) !important;
  border-color: var(--cyan-400) !important;
}

/* نوار دسترسی موبایل پنل مدیریت */
.admin-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 901px) {
  .admin-mobile-bar { display: none; }
}
.admin-mobile-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  flex: 1;
}
.admin-mobile-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: .15s ease;
}
.admin-mobile-chips .chip.active {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.btn-quick-add {
  flex-shrink: 0;
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

/* تاپ‌بار پنل مدیریت */
.admin-theme-btn { margin-left: 8px; }
.admin-user-name {
  font-weight: 700;
  color: var(--text);
  margin-inline: 10px;
  font-size: 13.5px;
}

/* دارک مود برای پنل مدیریت */
[data-theme="dark"] .admin-shell { background: #060B14; }
[data-theme="dark"] .admin-topbar { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .admin-topbar strong { color: #F8FAFC; }
[data-theme="dark"] .admin-card { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .admin-card h2 { color: #F8FAFC; }
[data-theme="dark"] .admin-table th {
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .admin-table td {
  border-bottom-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .stat-card { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .stat-card .l { color: #F8FAFC; }
[data-theme="dark"] .stat-card .s { color: var(--muted); }
[data-theme="dark"] .qa-strip { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .qa-strip .qa-title { color: var(--text); }
[data-theme="dark"] .chart-card { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .chart-head h2 { color: #F8FAFC; }
[data-theme="dark"] .sys-strip {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .sys-item b { color: var(--cyan-400); }
[data-theme="dark"] .mini-timeline { border-right-color: var(--border); }
[data-theme="dark"] .tl-dot {
  background: var(--blue-500);
  box-shadow: 0 0 0 3px #0F1726;
}
[data-theme="dark"] .tl-title { color: #F8FAFC; }
[data-theme="dark"] .admin-mobile-bar { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .admin-mobile-chips .chip {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-color: var(--border);
}

/* گالری کتابخانه رسانه */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-500);
}
.media-thumb {
  position: relative;
  height: 140px;
  background: #0A192F;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.media-card:hover .media-thumb img { transform: scale(1.05); }
.media-zoom-hint {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity .2s ease;
}
.media-card:hover .media-zoom-hint { opacity: 1; }
.media-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.media-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
  margin-bottom: 4px;
}
.media-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.media-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

/* مودال پیش‌نمایش زنده خبر */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 10, 20, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.preview-modal.is-open {
  display: flex !important;
}
.preview-modal[hidden],
.preview-modal:not(.is-open) {
  display: none !important;
}
.preview-dialog {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1050px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .5);
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.preview-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.preview-device-switch {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.btn-device {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: .15s ease;
}
.btn-device.active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29, 91, 214, .4);
}
.preview-viewport-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  background: #09101E;
}
.preview-viewport {
  transition: width .3s cubic-bezier(.22, .61, .36, 1);
  width: 100%;
}
.preview-viewport.desktop {
  max-width: 820px;
}
.preview-viewport.mobile {
  max-width: 375px;
  border: 10px solid #1E293B;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  background: var(--card);
  overflow: hidden;
}
.preview-viewport.mobile .article-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.preview-viewport.mobile .article-body { padding: 18px 16px; }
.preview-viewport.mobile .article-title { font-size: 18px; }

/* =====================================================================
   بهینه‌سازی پیشرفته و جامع تجربه کاربری موبایل پنل مدیریت (نسخه ۱.۱۳.۲)
   ===================================================================== */

/* دکمه باز کردن منوی کشویی در تاپ‌بار */
.admin-topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-menu-btn {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: .15s ease;
}
.admin-menu-btn:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}
@media (max-width: 900px) {
  .admin-menu-btn {
    display: inline-flex;
  }
}

/* کشوی اسلایدآور مدیریت مخصوص موبایل (Admin Drawer) */
.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .3s ease;
}
.admin-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.admin-drawer.open .admin-drawer-backdrop {
  opacity: 1;
}
.admin-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 290px;
  max-width: 86vw;
  background:
    radial-gradient(140% 60% at 100% 0%, rgba(34, 184, 220, .14), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  z-index: 2;
}
[dir="rtl"] .admin-drawer-panel {
  transform: translateX(100%);
}
.admin-drawer.open .admin-drawer-panel {
  transform: translateX(0);
}
.admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.admin-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.admin-drawer-brand svg {
  color: var(--cyan-400);
}
.admin-drawer-head .icon-btn {
  color: rgba(255, 255, 255, .8);
}
.admin-drawer-head .icon-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.admin-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.adu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.adu-info {
  flex: 1;
  min-width: 0;
}
.adu-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adu-role {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  margin-top: 2px;
}
.admin-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-drawer-body .admin-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: .15s ease;
}
.admin-drawer-body .admin-nav-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.admin-drawer-body .admin-nav-item.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
}
.admin-drawer-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .2);
}

/* نوار ناوبری ارگونومیک پایین موبایل (Admin Bottom Nav) */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  height: 64px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
  z-index: 95;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}
@media (max-width: 900px) {
  .admin-bottom-nav {
    display: flex;
  }
  .admin-main {
    padding-bottom: 84px !important;
  }
}
.abn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: .15s ease;
  font-family: inherit;
}
.abn-item .abn-icon {
  display: inline-flex;
  transition: transform .15s ease, color .15s ease;
}
.abn-item:hover, .abn-item.active {
  color: var(--blue-600);
}
.abn-item.active .abn-icon {
  transform: translateY(-2px);
}
.abn-item-fab {
  position: relative;
  top: -12px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -4px rgba(29, 91, 214, .6);
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.abn-item-fab:active {
  transform: scale(.92);
}
[data-theme="dark"] .admin-bottom-nav {
  background: rgba(11, 19, 34, .95);
  border-top-color: var(--border);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, .4);
}

/* کلاس‌های گرید فرم‌های واکنش‌گرا */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
}
@media (max-width: 768px) {
  .form-grid-2, .form-grid-3, .form-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* فیلدها و فرم‌ها در نسخه موبایل */
@media (max-width: 768px) {
  .admin-main {
    padding: 14px 12px !important;
  }
  .admin-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .admin-topbar {
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
  }
  .admin-topbar .admin-user-name {
    display: none;
  }
  .admin-logout-btn {
    display: none;
  }
  
  /* ارتقای اندازه و ارگونومی تاچ ورودی‌ها */
  .field input, .field select, .field textarea {
    min-height: 46px;
    font-size: 15px !important;
    padding: 10px 14px !important;
  }
  .field label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  .btn {
    min-height: 42px;
    font-size: 13.5px;
  }

  /* نوار ابزار ویرایشگر متن (RTE) به صورت نواری اسکرول‌شونده و نرم */
  .rte-toolbar {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 10px !important;
    gap: 4px !important;
  }
  .rte-toolbar::-webkit-scrollbar {
    display: none;
  }
  .rte-toolbar button {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
  }
  .rte-area {
    min-height: 200px !important;
    padding: 14px 12px !important;
    font-size: 15px !important;
  }

  /* کارت‌های آمار در داشبورد */
  .stat-cards.sc6 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .stat-card {
    padding: 14px 12px !important;
  }
  .stat-card .sc-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
  }
  .stat-card .n {
    font-size: 22px !important;
  }
  .stat-card .l {
    font-size: 12px !important;
  }
  .stat-card .s {
    font-size: 10.5px !important;
    margin-top: 4px !important;
  }

  /* دسترسی‌های سریع در داشبورد */
  .qa-strip {
    padding: 12px !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .qa-strip .qa-title {
    width: 100%;
    margin-bottom: 4px;
    font-size: 13px;
  }
  .qa-strip .btn {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center;
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  /* تب‌های دسته‌بندی و وضعیت خبر */
  .cat-chips {
    gap: 6px !important;
    padding-bottom: 4px !important;
  }
  .cat-chip {
    padding: 7px 14px !important;
    font-size: 12px !important;
  }

  /* دکمه‌های پایانی فرم خبر و اطلاعیه */
  .form-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
  }
  .form-actions-mobile .btn {
    width: 100%;
    justify-content: center;
  }

  /* نمایش واکنش‌گرای جدول‌ها به صورت کارت‌های خوانا در موبایل */
  .admin-table-cards thead {
    display: none;
  }
  .admin-table-cards,
  .admin-table-cards tbody,
  .admin-table-cards tr,
  .admin-table-cards td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .admin-table-cards tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }
  .admin-table-cards td {
    padding: 6px 0 !important;
    border-bottom: 1px dashed var(--border) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-size: 13px !important;
  }
  .admin-table-cards td:last-child {
    border-bottom: none !important;
    padding-top: 10px !important;
  }
  .admin-table-cards td[data-col]::before {
    content: attr(data-col);
    font-weight: 700;
    color: var(--muted);
    font-size: 11.5px;
    margin-inline-end: 10px;
  }

  /* بهینه‌سازی ردیف عنوان و خلاصه در کارت‌های موبایل — عنوان تمام‌عرض در سطر اول و متن زیر آن */
  .admin-table-cards td.col-news-title,
  .admin-table-cards td[data-col="عنوان"],
  .admin-table-cards td[data-col="تیتر"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
  }
  .admin-table-cards td.col-news-title::before,
  .admin-table-cards td[data-col="عنوان"]::before,
  .admin-table-cards td[data-col="تیتر"]::before {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 700;
    color: var(--muted);
    font-size: 11.5px;
  }
  .admin-table-cards .admin-news-title-cell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .admin-table-cards .admin-news-title-link {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    color: var(--text) !important;
    text-decoration: none !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  .admin-table-cards .admin-news-summary-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    color: var(--muted) !important;
    line-height: 1.7 !important;
    margin-top: 5px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* بندانگشتی تصویر در کارت‌های موبایل */
  .admin-table-cards td.col-news-thumb,
  .admin-table-cards td[data-col="تصویر"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .admin-table-cards .admin-news-thumb-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid var(--border) !important;
    background: #64748B !important;
  }
  .admin-table-cards .row-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .admin-table-cards .row-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 40px;
    font-size: 12.5px;
  }

  /* تنظیمات مودال پیش‌نمایش در موبایل */
  .preview-modal {
    padding: 0 !important;
  }
  .preview-modal.is-open {
    display: flex !important;
  }
  .preview-modal[hidden],
  .preview-modal:not(.is-open) {
    display: none !important;
  }
  .preview-dialog {
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .preview-header {
    padding: 10px 14px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .preview-header-title {
    font-size: 13px !important;
  }
  .preview-viewport-wrapper {
    padding: 12px 6px !important;
  }
  .preview-viewport.mobile {
    max-width: 100% !important;
    border-width: 4px !important;
    border-radius: 18px !important;
  }

  /* گالری رسانه‌ها در موبایل */
  .media-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .media-thumb {
    height: 115px !important;
  }
  .media-info {
    padding: 10px 8px !important;
  }
  .media-name {
    font-size: 12px !important;
  }
  .media-meta {
    font-size: 10.5px !important;
  }
  .media-actions {
    gap: 4px !important;
  }
  .media-actions .btn {
    padding: 6px 8px !important;
    font-size: 11px !important;
    min-height: 34px !important;
  }
}

/* =====================================================================
   استایل‌های بازطراحی سینمایی صفحه آرشیو ویدئوها (نسخه ۱.۱۴.۰)
   ===================================================================== */

.video-archive-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 90% 10%, rgba(34, 184, 220, .28), transparent 50%),
    radial-gradient(100% 100% at 10% 90%, rgba(29, 91, 214, .35), transparent 50%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff;
  padding: 44px 28px;
  box-shadow: 0 16px 40px -12px rgba(10, 37, 64, .45);
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 640px) {
  .video-archive-hero { padding: 28px 18px; margin-bottom: 20px; }
}
.vah-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(34, 184, 220, .15);
  border: 1px solid rgba(34, 184, 220, .35);
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.vah-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.5;
  color: #fff;
}
@media (max-width: 640px) {
  .vah-title { font-size: 22px; }
}
.vah-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .72);
  max-width: 680px;
  margin: 0 0 24px;
  line-height: 1.8;
}
.vah-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}
.vah-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.vah-search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: rgba(255, 255, 255, .6);
  pointer-events: none;
  display: flex;
}
.vah-search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font: inherit;
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: .2s ease;
}
.vah-search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, .15);
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 184, 220, .2);
}
.vah-search-box input::placeholder {
  color: rgba(255, 255, 255, .5);
}
.vah-clear-btn {
  position: absolute;
  inset-inline-end: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.vah-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vah-pill {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
  font-family: inherit;
}
.vah-pill:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.vah-pill.active {
  background: var(--blue-600);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(29, 91, 214, .6);
}

/* سالن نمایش ویدیوی ویژه (Cinema Theater Showcase) */
.video-cinema-showcase {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .1);
  margin-bottom: 34px;
  transition: box-shadow .2s ease;
}
.vcs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.vcs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 800;
  font-size: 13px;
}
.vcs-type-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--card);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.vcs-screen-wrapper {
  background: #000;
  position: relative;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .8);
}
.vcs-frame {
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.vcs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.vcs-info { flex: 1; min-width: 240px; }
.vcs-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.6;
}
.vcs-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* شبکه کارت‌های ویدیو (Video Cards Grid) */
.video-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .video-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .video-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.video-card-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.video-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.vci-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.vci-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(10, 25, 47, .85);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}
.vci-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vci-title {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.7;
}
.vci-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vci-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.vci-index {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

/* گالری تصاویر چندگانه و گزارش تصویری خبر (News Photo Gallery) */
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .news-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
.news-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-950);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-500);
}
.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.news-gallery-item:hover img {
  transform: scale(1.06);
}
.ng-zoom-btn {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  background: rgba(10, 25, 47, .75);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.news-gallery-item:hover .ng-zoom-btn {
  opacity: 1;
}

/* =====================================================================
   بهینه‌سازی ۶ باکس آمار و رفع کامل اسکرول افقی نمودارها در موبایل (۱.۱۴.۰)
   ===================================================================== */

/* جلوگیری کلی از هرگونه بیرون‌زدگی افقی در شل پنل مدیریت */
.admin-shell, .admin-main {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ۶ باکس بالای پنل مدیریت: یک ردیف کامل در دسکتاپ، ۳ ستون در تبلت، ۲ ستون در موبایل */
.stat-cards.sc6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 22px !important;
  width: 100%;
}
@media (min-width: 700px) {
  .stat-cards.sc6 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}
@media (min-width: 1100px) {
  .stat-cards.sc6 {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
  }
  .stat-cards.sc6 .stat-card {
    padding: 16px 12px !important;
  }
  .stat-cards.sc6 .stat-card .sc-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .stat-cards.sc6 .stat-card .sc-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .stat-cards.sc6 .stat-card .n {
    font-size: 22px !important;
    letter-spacing: -0.5px;
  }
  .stat-cards.sc6 .stat-card .l {
    font-size: 12px !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stat-cards.sc6 .stat-card .s {
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 699px) {
  .stat-cards.sc6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-cards.sc6 .stat-card {
    padding: 12px 10px !important;
    border-radius: 12px;
  }
  .stat-cards.sc6 .stat-card .sc-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }
  .stat-cards.sc6 .stat-card .sc-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  .stat-cards.sc6 .stat-card .n {
    font-size: 20px !important;
  }
  .stat-cards.sc6 .stat-card .l {
    font-size: 11.5px !important;
  }
  .stat-cards.sc6 .stat-card .s {
    font-size: 10px !important;
    margin-top: 3px !important;
  }
}

/* رفع کامل اسکرول افقی نمودارها و باکس‌های پربازدید */
.dash-grid,
.dash-grid.two {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.dash-grid.two > * {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

.chart-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .chart-card {
    padding: 16px 14px !important;
  }
}

.chart-svg-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  display: block;
}
.chart-svg-wrap svg.svg-chart {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* رفع بیرون‌زدگی عناوین در نوارهای افقی اخبار پربازدید */
.chart-hbars-wrap,
.hbars {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}
.hbar-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.hbar-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}
.hbar-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.hbar-head a {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.hbar-head .cnt {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* راهنمای دونات در موبایل */
.chart-donut-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 600px) {
  .donut-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .donut-legend {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =====================================================================
   تنظیم اندازه عنوان و لوگوی سایت در موبایل جهت رفع تداخل با دکمه‌های کناری
   ===================================================================== */
@media (max-width: 640px) {
  .topbar-inner {
    gap: 6px !important;
    padding: 0 10px !important;
  }
  .topbar-brand {
    gap: 6px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
    max-width: calc(100% - 115px) !important;
    overflow: hidden !important;
  }
  .topbar-logo {
    height: 28px !important;
    max-width: 65px !important;
  }
  .topbar-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.3 !important;
  }
  .topbar-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .topbar-actions .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .topbar-actions .icon-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}
@media (max-width: 380px) {
  .topbar-brand {
    gap: 4px !important;
    max-width: calc(100% - 105px) !important;
  }
  .topbar-logo {
    height: 24px !important;
    max-width: 50px !important;
  }
  .topbar-title {
    font-size: 11px !important;
  }
}


/* =====================================================================
   27) جاستیفای سراسری متن کلیه اخبار، اطلاعیه‌ها و خلاصه‌ها (نسخه 1.15.0)
   هم‌ترازسازی منظم دوطرفه با تراز خط پایانی به سمت راست (RTL)
   ===================================================================== */
.article-content,
.article-content p,
.article-content div:not(.gallery):not(.video):not(.article-tools):not(.text-sizer):not(.share-tools):not(.article-meta),
.article-content blockquote,
.article-content li,
.article-summary,
.news-summary,
.news-featured .news-summary,
.news-row-summary,
.news-card-summary,
.slide-text,
.notice-content,
.notice-content p,
.notice-text,
.preview-card .article-content,
.preview-card .article-content p,
.preview-card .article-summary,
.rte-area,
.rte-area p {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: right !important;
}

/* === Unified DS: news cards ===
   2026-10-07 - card redesign: uniform 16:9 media frame, overlaid category
   badge (existing .tag kept), bolder title, one-line excerpt, hover lift,
   16px radius, soft layered shadow. Navy brand identity preserved via the
   existing --navy-* / --card tokens. Dark mode covered below.
   Note: .news-featured (hero card) keeps its established taller layout. */
.news-card{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(8,26,48,.06),0 10px 28px -12px rgba(8,26,48,.18);
  transition:transform .25s cubic-bezier(.22,.61,.36,1),box-shadow .25s ease;
}
.news-card:hover{
  transform:translateY(-6px);
  box-shadow:0 2px 6px rgba(8,26,48,.08),0 20px 44px -14px rgba(8,26,48,.28);
}
.news-card:not(.news-featured) .news-thumb{
  aspect-ratio:16/9;
  height:auto;
  min-height:0;
}
.news-card .news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.news-card .news-title{
  font-size:16px;
  font-weight:800;
  line-height:1.8;
}
.news-card .news-summary{
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:6px;
}
.news-featured .news-summary{
  color:var(--muted);
}
[data-theme="dark"] .news-card{
  box-shadow:0 1px 2px rgba(0,0,0,.5),0 14px 32px -12px rgba(0,0,0,.55);
}
[data-theme="dark"] .news-card:hover{
  box-shadow:0 2px 6px rgba(0,0,0,.55),0 22px 48px -14px rgba(0,0,0,.65);
}
/* category badge overlay on card thumb (existing .tag kept; top reset so it anchors to bottom) */
.news-card .news-thumb{position:relative}
.news-card .tag{position:absolute;top:auto;bottom:10px;right:10px;z-index:2}

/* ===== MOBILE HERO REBUILD 2026-10-08 ===== */
@media (max-width: 767.98px) {
  .hero .slider { border-radius: 18px; }
  .hero .slides { align-items: stretch; }
  .hero .slide {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 470px;
    overflow: hidden;
  }
  .hero .slide-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
  }
  .hero .slide-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
  .hero .slide-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 76px 18px 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    background: linear-gradient(to top, rgba(7, 26, 46, .96) 54%, rgba(7, 26, 46, 0) 100%);
  }
  .hero .slide-kicker { font-size: 12px; }
  .hero .slide-title {
    font-size: 21px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    margin: 0;
  }
  .hero .slide-text {
    font-size: 13.5px;
    line-height: 1.9;
    -webkit-line-clamp: 2;
    margin: 0;
    opacity: .94;
  }
  .hero .btn-hero {
    align-self: flex-start;
    margin-top: 4px;
    padding: 10px 22px;
  }
  .hero .slider-controls {
    z-index: 3;
    bottom: 16px;
    inset-inline-end: 18px;
  }
}
@media (max-width: 380px) {
  .hero .slide { min-height: 440px; }
  .hero .slide-title { font-size: 20px; }
  .hero .slide-content { padding: 64px 16px 52px; }
}
@media (max-width: 600px) {
  .ticker-bar { height: auto; min-height: 42px; padding-top: 5px; padding-bottom: 5px; }
  .ticker-content { height: 26px; }
  .ticker-title { font-size: 13px; }
  .ticker-badge { flex-shrink: 0; }
}
/* ===== HERO V2 2026-10-09 ===== */
.slide-title-link { color: inherit; text-decoration: none; }
.slide-title-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
@media (max-width: 767.98px) {
  .hero .slider .slide-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
  }
  .hero .slider .slide-copy { width: 100%; }
  .hero .slider .slide-kicker { display: none; }
  .hero .slider .slide-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: none;
    line-clamp: none;
    max-width: 100%;
    margin: 0 0 4px;
    line-height: 1.5;
  }
  .hero .slider .slide-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: none;
    line-clamp: none;
    max-width: 100%;
    line-height: 1.7;
  }
}
/* ===== NEWS V3 2026-10-09 ===== */
.news-grid .news-card .news-title {
  font-size: var(--news-title-size, 16px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-grid .news-featured .news-title {
  font-size: calc(var(--news-title-size, 16px) * 1.15);
}
.news-grid .news-card .news-summary {
  font-size: var(--news-summary-size, 12.5px);
  text-align: right !important;
  text-justify: auto !important;
  text-align-last: right !important;
}
@media (min-width: 768px) {
  .news-grid .news-card .news-title { -webkit-line-clamp: 2; }
  .news-grid .news-featured .news-title { -webkit-line-clamp: 3; }
  .news-grid .news-card .news-summary { -webkit-line-clamp: 2; }
}
@media (max-width: 767.98px) {
  .news-grid .news-card .news-title { font-size: var(--news-title-size-m, 16px); }
  .news-grid .news-featured .news-title { font-size: calc(var(--news-title-size-m, 16px) * 1.15); }
  .news-grid .news-card .news-summary { font-size: var(--news-summary-size-m, 12.5px); }
}
@media (hover: none) {
  .news-card:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(8, 26, 48, .06), 0 10px 28px -12px rgba(8, 26, 48, .18);
    border-color: var(--border);
  }
  [data-theme="dark"] .news-card:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 32px -12px rgba(0, 0, 0, .55);
  }
  .news-card:hover .news-title { color: inherit; }
  .news-card:hover .news-thumb img { transform: none; }
  .news-card:hover .news-arrow, .news-row:hover .news-arrow { transform: none; }
  .news-row:hover .news-row-title { color: inherit; }
}

/* ================================================================
   FX SAMPLE 2026-10-20 — Star Border (دکمه‌های اصلی) + Magic Bento glow (کارت‌ها)
   دامنه: فقط صفحه اصلی. حذف کامل = برداشتن همین بلاک + کلاس‌های btn-star و fx-glow
   ================================================================ */
@property --fx-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --fx-star: var(--amber-400);
  --fx-glow: rgba(46, 107, 230, .13);
  --fx-edge: rgba(29, 91, 214, .45);
}
[data-theme="dark"] {
  --fx-glow: rgba(34, 184, 220, .15);
  --fx-edge: rgba(34, 184, 220, .55);
}

/* ---------- Star Border: ستاره‌ای که دور حاشیه دکمه می‌چرخد ---------- */
.btn-star { position: relative; isolation: isolate; }
.btn-star::before,
.btn-star::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--fx-angle),
    transparent 0deg, var(--fx-star) 38deg, rgba(255, 255, 255, .9) 52deg, transparent 92deg,
    transparent 180deg, var(--fx-star) 218deg, rgba(255, 255, 255, .9) 232deg, transparent 272deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: fx-spin 6s linear infinite;
}
.btn-star::after { filter: blur(6px); opacity: .75; }
@keyframes fx-spin { to { --fx-angle: 360deg; } }

/* ---------- Magic Bento glow: هاله و حاشیه‌ی دنبال‌کننده‌ی نشانگر روی کارت‌ها ---------- */
.fx-glow { position: relative; }
.fx-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--fx-glow), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.fx-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), var(--fx-edge), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
}
.fx-glow:hover::before,
.fx-glow:hover::after { opacity: 1; }

/* لمسی‌ها و کاهش حرکت: افکت‌ها خاموش */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .btn-star::before, .btn-star::after { animation: none; }
  .fx-glow::before, .fx-glow::after { display: none; }
}


/* ---------- FX SAMPLE part 2: قاب نوری دور سکشن‌ها (Magic Bento frame) ---------- */
:root { --fx-frame-light: var(--blue-500); }
[data-theme="dark"] { --fx-frame-light: var(--cyan-400); }

.fx-frame {
  position: relative; isolation: isolate;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px clamp(14px, 3vw, 26px) 26px;
}
.fx-frame::before,
.fx-frame::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--fx-angle),
    transparent 0deg, var(--fx-frame-light) 45deg, rgba(255, 255, 255, .85) 60deg, transparent 105deg,
    transparent 180deg, var(--fx-frame-light) 225deg, rgba(255, 255, 255, .85) 240deg, transparent 285deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: fx-spin 12s linear infinite;
}
.fx-frame::after { filter: blur(8px); opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .fx-frame::before, .fx-frame::after { animation: none; }
}


/* ================================================================
   PORTALS 2026-10-20 — بخش سامانه‌ها: باکس‌های مخاطب + پاپ‌آپ شیشه‌ای مات
   ================================================================ */
.portal-boxes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.portal-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 10px 18px; margin: 0;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 18px;
  font: inherit; cursor: pointer; text-align: center;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.portal-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.portal-box:active { transform: scale(.98); }
.portal-box-icon {
  display: flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 12px 24px -10px rgba(10, 37, 64, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.portal-box-title { font-size: 17px; font-weight: 800; }
.portal-box-count { font-size: 12px; color: var(--muted); }

.portal-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.portal-modal[hidden] { display: none; }
.portal-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 48, .48); opacity: 0; transition: opacity .3s ease; }
.portal-modal-card {
  position: relative; width: min(1060px, 100%); max-height: min(84vh, 880px); overflow: auto;
  border-radius: 22px; padding: 22px clamp(16px, 3vw, 28px) 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 32px 64px -16px rgba(8, 26, 48, .45);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
}
.portal-modal.open .portal-modal-backdrop { opacity: 1; }
.portal-modal.open .portal-modal-card { opacity: 1; transform: none; }
[data-theme="dark"] .portal-modal-card {
  background: linear-gradient(160deg, rgba(22, 54, 92, .72), rgba(10, 37, 64, .62));
  border-color: rgba(255, 255, 255, .14);
}
.portal-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-modal-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-modal-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
}
.portal-modal-icon svg { width: 24px; height: 24px; }
.portal-modal-title { margin: 0; font-size: 19px; font-weight: 800; }
.portal-modal-x {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: transform .2s ease, background .2s ease;
}
.portal-modal-x:hover { transform: rotate(90deg); background: var(--blue-50); }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.portal-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.portal-card-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), var(--cyan-100));
  color: var(--blue-600);
}
[data-theme="dark"] .portal-card-img { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--cyan-400); }
.portal-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-card-img-fallback { display: flex; opacity: .85; }
.portal-card-title { padding: 12px 14px 3px; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.portal-card-desc { padding: 0 14px 14px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.portal-empty { margin: 26px 0 10px; text-align: center; color: var(--muted); font-size: 14px; }
body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .portal-boxes { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-box-icon { width: 64px; height: 64px; border-radius: 18px; }
  .portal-modal { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-modal-card, .portal-modal-backdrop, .portal-box, .portal-card { transition: none; }
}


/* =====================================================================
   اسلایدر گالری خبر + نمایش کامل تصویر اصلی (امبد از منبع) — 2026-10-24
   ===================================================================== */
.news-slider { margin-top: 6px; }
.ns-stage {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--navy-950); border: 1px solid var(--border);
  aspect-ratio: 16 / 10; box-shadow: var(--shadow-sm);
}
.ns-main {
  width: 100%; height: 100%; display: block;
  object-fit: contain; cursor: zoom-in;
}
.ns-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(10, 25, 47, .65); backdrop-filter: blur(4px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, transform .2s ease; z-index: 2;
}
.ns-btn:hover { background: rgba(10, 25, 47, .9); transform: translateY(-50%) scale(1.06); }
.ns-btn.ns-prev { inset-inline-start: 12px; }
.ns-btn.ns-next { inset-inline-end: 12px; }
.ns-counter {
  position: absolute; bottom: 10px; inset-inline-end: 12px; z-index: 2;
  background: rgba(10, 25, 47, .7); backdrop-filter: blur(4px); color: #fff;
  font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px;
}
.ns-thumbs {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.ns-thumb {
  flex: 0 0 76px; width: 76px; height: 54px; border-radius: 9px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--navy-950);
  opacity: .65; transition: opacity .2s ease, border-color .2s ease;
}
.ns-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-thumb:hover { opacity: .9; }
.ns-thumb.active { border-color: var(--blue-500); opacity: 1; }
@media (max-width: 640px) {
  .ns-stage { aspect-ratio: 4 / 3; }
  .ns-btn { width: 36px; height: 36px; }
  .ns-thumb { flex-basis: 62px; width: 62px; height: 46px; }
}
