/* =========================================
   استایل‌های مشترک سایت - تم خاکستری غالب سهند نیرو
   ========================================= */

:root {
  --color-primary: #4a4a4a;
  --color-primary-light: #6a6a6a;
  --color-primary-dark: #2f2f2f;
  --color-accent: #e63329;
  --color-accent-light: #f04a41;
  --color-accent-dark: #c4291f;
  --color-bg: #e8eaed;
  --color-bg-soft: #d5d8dd;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f3f5;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-text-light: #7a7a7a;
  --color-border: rgba(74, 74, 74, 0.18);
  --color-border-strong: rgba(74, 74, 74, 0.28);
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #d97706;
  --color-info: #2563eb;
  --shadow-soft: 0 8px 24px rgba(74, 74, 74, 0.1);
  --shadow-medium: 0 14px 34px rgba(74, 74, 74, 0.14);
  --shadow-hard: 0 20px 48px rgba(74, 74, 74, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.8;
}

body.page-preloading {
  overflow: hidden;
}

body.page-preloading .page-shell {
  opacity: 0;
  visibility: hidden;
}

.page-shell {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-normal);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  transition: all var(--transition-fast);
}

button svg,
button i,
a svg,
a i {
  pointer-events: none;
}

::selection {
  background: rgba(230, 51, 41, 0.18);
}

/* ---------- چیدمان عمومی ---------- */

.site-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .site-container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .site-container {
    padding: 0 32px;
  }
}

.page-section {
  padding: 56px 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(74, 74, 74, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, rgba(230, 51, 41, 0.06), transparent 30%),
    linear-gradient(180deg, #f5f6f8, var(--color-bg));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(74, 74, 74, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(74, 74, 74, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.page-title {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--color-text);
}

.page-title .accent-text {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-description {
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}

.section-head {
  margin-bottom: 28px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(230, 51, 41, 0.1);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin: 14px 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-text);
}

.section-text {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}

/* ---------- کارت‌ها ---------- */

.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.surface-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(74, 74, 74, 0.28);
}

.surface-card--static:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 24px;
}

.info-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
}

.info-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.info-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
}

.note-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, var(--color-surface-soft));
}

.note-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.note-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
}

.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  position: relative;
  padding-right: 18px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
}

.simple-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

/* ---------- دکمه‌ها ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(230, 51, 41, 0.24);
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn--secondary:hover {
  border-color: rgba(74, 74, 74, 0.4);
  background: var(--color-surface-soft);
}

.btn--ghost {
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
}

.btn--ghost:hover {
  background: rgba(74, 74, 74, 0.16);
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.btn--icon {
  width: 46px;
  min-height: 46px;
  padding: 0;
}

/* ---------- هدر ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(74, 74, 74, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.site-brand__logo--large {
  width: 64px;
  height: 64px;
}

@media (max-width: 640px) {
  .site-brand__logo {
    width: 42px;
    height: 42px;
  }
}

.site-brand__title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}

.site-brand__subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav {
  border-top: 1px solid var(--color-border);
  padding: 12px 0 16px;
  background: #ffffff;
}

.mobile-nav .nav-link {
  width: 100%;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- فرم ---------- */

.form-grid {
  display: grid;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border-strong);
  background: #ffffff;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
  font-size: 14px;
}

.field-textarea {
  min-height: 136px;
  resize: vertical;
  padding-top: 12px;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(74, 74, 74, 0.1);
}

.field-input.is-error,
.field-select.is-error,
.field-textarea.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.field-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--color-error);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .field-input,
.input-with-icon .field-select {
  padding-right: 44px;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--color-text-light);
}

/* ---------- فیلتر ---------- */

.toolbar-card {
  padding: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: #ffffff;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
  border-color: rgba(74, 74, 74, 0.3);
}

/* ---------- آمار ساده ---------- */

.metric-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.metric-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, var(--color-surface-soft));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.metric-card__label {
  color: var(--color-text-muted);
  font-size: 14px;
}

.metric-card__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent);
}

/* ---------- Empty State ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 42px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(74, 74, 74, 0.3);
  background: linear-gradient(180deg, #ffffff, var(--color-surface-soft));
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
}

.empty-state__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.empty-state__text {
  max-width: 560px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
}

/* ---------- لودر ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(232, 234, 237, 0.96);
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  border: 4px solid rgba(74, 74, 74, 0.16);
  border-top-color: var(--color-accent);
  animation: spin 0.85s linear infinite;
}

.loader-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ---------- Toast ---------- */

.toast-stack {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  animation: slideUp 0.28s ease;
}

.toast--success {
  background: rgba(22, 163, 74, 0.96);
}

.toast--error {
  background: rgba(230, 51, 41, 0.96);
}

.toast--info {
  background: rgba(74, 74, 74, 0.96);
}

.toast__title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}

.toast__message {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.96;
}

.toast__close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* ---------- مدال ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(47, 47, 47, 0.6);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.24s ease;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  animation: slideUp 0.28s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(74, 74, 74, 0.08);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

/* ---------- فوتر ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 3px solid var(--color-accent);
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__grid {
  display: grid;
  gap: 28px;
  padding: 36px 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.footer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 2;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

/* ---------- ابزارهای ریسپانسیو ---------- */

.desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-only {
    display: inline-flex;
  }
}

.mobile-only {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .toast-stack {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 14px;
  }

  .modal-panel {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
}

/* =========================================
   فیکس‌های عمومی و دیباگ
   ========================================= */

/* ---------- جلوگیری از overflow متن ---------- */

h1, h2, h3, h4, h5, h6,
p, span, a, div, li, td, th,
label, input, textarea, select {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---------- حداکثر عرض تصاویر ---------- */

img {
  max-width: 100%;
  height: auto;
}

/* ---------- جلوگیری از overflow افقی ---------- */

body {
  overflow-x: hidden;
}

.site-container {
  overflow: hidden;
}

/* ---------- فیکس جدول‌ها در موبایل ---------- */

table {
  width: 100%;
  table-layout: auto;
}

/* ---------- فیکس breadcrumb طولانی ---------- */

.breadcrumb span,
.breadcrumb a {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .breadcrumb span,
  .breadcrumb a {
    max-width: 150px;
  }
}

/* ---------- فیکس فوتر تیره ---------- */

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent-light);
}

.site-footer i,
.site-footer svg {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- فیکس هدر موبایل ---------- */

.mobile-nav {
  max-height: 80vh;
  overflow-y: auto;
}

/* ---------- فیکس کارت‌ها ---------- */

.surface-card,
.info-card,
.note-card {
  min-width: 0;
  overflow: hidden;
}

/* ---------- فیکس دکمه‌ها در موبایل ---------- */

@media (max-width: 640px) {
  .btn--lg {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions .btn {
    width: 100%;
  }
}

/* ---------- فیکس فرم‌ها ---------- */

.field-input,
.field-select,
.field-textarea {
  max-width: 100%;
}

/* ---------- فیکس grid overflow ---------- */

.home-modules-grid,
.home-dual-grid,
.home-overview-grid,
.home-hero-grid {
  min-width: 0;
}

.home-modules-grid > *,
.home-dual-grid > *,
.home-overview-grid > * {
  min-width: 0;
  overflow: hidden;
}

/* ---------- فیکس اسکرول صفحه ---------- */

html {
  overflow-x: hidden;
}

/* ---------- بهبود خوانایی متن ---------- */

.page-description,
.info-card__text,
.note-card__text,
.footer-text,
.section-text {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---------- فیکس لوگوی فوتر در پس‌زمینه تیره ---------- */

.site-footer .site-brand__logo,
.site-footer img[alt="سهند نیرو"] {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
}

/* =========================================
   منوی موبایل اسلایدی (مثل پنل ادمین)
   ========================================= */

/* ---------- Overlay پس‌زمینه ---------- */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- پنل منوی موبایل ---------- */

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-surface);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-menu-panel.is-open {
  right: 0;
}

/* ---------- هدر منو ---------- */

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff, var(--color-surface-soft));
  flex-shrink: 0;
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mobile-menu__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mobile-menu__brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
}

.mobile-menu__brand-tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.mobile-menu__close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(74, 74, 74, 0.08);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.mobile-menu__close:hover {
  background: rgba(230, 51, 41, 0.1);
  color: var(--color-accent);
}

/* ---------- لینک‌های منو ---------- */

.mobile-menu__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu__link:hover {
  background: rgba(74, 74, 74, 0.06);
  color: var(--color-primary-dark);
}

.mobile-menu__link.is-active {
  background: linear-gradient(135deg, rgba(74, 74, 74, 0.1), rgba(230, 51, 41, 0.05));
  color: var(--color-accent);
  font-weight: 700;
}

.mobile-menu__link i {
  flex-shrink: 0;
  color: var(--color-text-light);
}

.mobile-menu__link.is-active i {
  color: var(--color-accent);
}

/* ---------- فوتر منو ---------- */

.mobile-menu__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.mobile-menu__contact-item i {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- مخفی کردن منوی قدیمی ---------- */

.mobile-nav {
  display: none !important;
}

/* ---------- انیمیشن‌ها ---------- */

.fade-in {
  animation: fadeIn 0.36s ease;
}

.slide-up {
  animation: slideUp 0.34s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   آیکون‌های شبکه‌های اجتماعی (هدر)
   ========================================= */

.header-socials {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .header-socials {
    display: flex;
  }
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon--bale {
  color: #4a4a4a;
  background: rgba(74, 74, 74, 0.08);
}

.social-icon--bale:hover {
  background: #4a4a4a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 74, 74, 0.25);
}

.social-icon--eitaa {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.social-icon--eitaa:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.social-icon--rubika {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.social-icon--rubika:hover {
  background: #8b5cf6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
/* =========================================
   آیکون‌های پیام‌رسان‌ها
   ========================================= */

/* ---------- هدر دسکتاپ ---------- */

.header-socials {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .header-socials {
    display: flex;
  }
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  background: rgba(74, 74, 74, 0.06);
  border: 1px solid var(--color-border);
  padding: 6px;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(74, 74, 74, 0.2);
  border-color: var(--color-accent);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- منوی موبایل ---------- */

.mobile-socials {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: rgba(74, 74, 74, 0.04);
}

.mobile-social-link:hover {
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-primary-dark);
}

.mobile-social-link__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 4px;
}

.mobile-social-link__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
