      /* ============================================================
   SADIDI — FINAL CSS (اصلاح‌شده: fade رنگ متن یکدست در کل سایت)
   تغییرات نسبت به نسخه اصلی با کامنت "FIX:" مشخص شده‌اند
   ============================================================ */

/* ============================================================
   RESET
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #f5f4ef;
  --paper-card: #ffffff;
  --ink: #16233a;
  --ink-soft: #57647a;
  --gold: #b8923f;
  --gold-soft: #dcc07f;
  --line: #ddd8cb;

  --sidebar-glass: rgba(255, 255, 255, .62);
  --sidebar-border: rgba(184, 146, 63, .32);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-apple: cubic-bezier(.25, .1, .25, 1);

  --sidebar-duration: .58s;
  --sidebar-ease: cubic-bezier(.22, .61, .36, 1);

  --label-delay: .36s;
  --label-duration: .24s;
}

.dark {
  --paper: #0a1220;
  --paper-card: #101c30;
  --ink: #eee9dd;
  --ink-soft: #8d97ac;
  --gold: #cba75c;
  --gold-soft: #e4cd94;
  --line: #1f2c42;

  --sidebar-glass: rgba(10, 18, 32, .72);
  --sidebar-border: rgba(203, 167, 92, .28);
}

/* ============================================================
   BODY
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  transition:
    background-color .35s ease,
    color .65s ease;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 6px;
}

/* ============================================================
   DESKTOP SIDEBAR
   ============================================================ */

.desktop-sidebar {
  width: 88px;
  height: calc(100vh - 32px);
  top: 16px;
  right: 16px;
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 14px;
  direction: ltr;
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 20px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .70);
  overflow: hidden;
  /* FIX: اضافه شدن color .65s تا هر متنی که مستقیم داخل سایدبار باشد هم آرام fade شود */
  transition:
    width var(--sidebar-duration) var(--sidebar-ease),
    background-color .45s ease,
    color .65s ease,
    border-color .45s ease,
    box-shadow .45s ease;
}

.dark .desktop-sidebar {
  background: rgba(10, 18, 32, .50);
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .70);
}

@media (min-width: 961px) {
  .desktop-sidebar:hover {
    width: 238px;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, .10),
      inset 0 1px 0 rgba(255, 255, 255, .72);
  }
}

/* ============================================================
   SIDEBAR MENU
   ============================================================ */

.desktop-menu {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex: 0 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 0 11px;
  margin: 0;
  direction: ltr;
}

.desktop-menu::-webkit-scrollbar {
  display: none;
}

.desktop-menu li {
  width: 100%;
  height: 46px;
  flex: 0 0 46px;
  position: relative;
}

/* ============================================================
   MENU LINK
   ============================================================ */

.desktop-menu li>a {
  position: relative;
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink-soft);
  text-decoration: none;
  border: 0;
  outline: none;
  background: transparent;
  /* FIX: color از .25s به .65s تغییر کرد تا با بقیه سایت هماهنگ باشد */
  transition:
    color .65s ease,
    background-color .25s ease;
}

.desktop-menu li>a:hover {
  color: var(--ink);
}

/* ============================================================
   ACTIVE BACKGROUND
   ============================================================ */

.desktop-menu li>a.active::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold);
  box-shadow: 0 5px 14px rgba(184, 146, 63, .32);
  transform: translateX(-50%);
  transition:
    left var(--sidebar-duration) var(--sidebar-ease),
    width var(--sidebar-duration) var(--sidebar-ease),
    transform var(--sidebar-duration) var(--sidebar-ease);
}

.desktop-menu li>a.active {
  color: #fdfaf2;
}

.desktop-menu li>a:not(.active):hover {
  background: rgba(184, 146, 63, .13);
  border-radius: 14px;
}

/* ============================================================
   ICON
   ============================================================ */

.desktop-menu li>a>svg {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
  transition:
    left var(--sidebar-duration) var(--sidebar-ease);
}

/* ============================================================
   LABEL
   ============================================================ */

.desktop-menu li>a::after {
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  right: 47px;
  top: 50%;
  width: 145px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  color: currentColor;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  transition:
    opacity var(--label-duration) ease,
    transform .30s var(--sidebar-ease);
  transform-origin: right center;
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .desktop-menu li>a>svg {
    left: calc(100% - 23px);
  }

  .desktop-sidebar:hover .desktop-menu li>a.active::before {
    left: 0;
    width: 100%;
    transform: none;
  }

  .desktop-sidebar:hover .desktop-menu li>a::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    transition-delay: var(--label-delay), var(--label-delay);
  }
}

/* ============================================================
   SIDEBAR FOOT
   ============================================================ */

.sidebar-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 8px;
  padding: 0 11px;
  flex: 0 0 auto;
  width: 100%;
}

.sidebar-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-foot-line {
  width: 24px;
  height: 1px;
  background: rgba(184, 146, 63, .45);
  margin: 0 auto 4px;
  transition: width var(--sidebar-duration) var(--sidebar-ease);
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .desktop-menu li>a.active::before {
    left: 50%;
    width: calc(100% - 18px);
    transform: translateX(-50%);
  }
}

/* ============================================================
   THEME / MODE BUTTONS
   ============================================================ */

.sidebar-theme-btn,
.sidebar-mode-btn {
  position: relative;
  width: 100%;
  height: 42px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
  overflow: visible;
  /* FIX: color از .25s به .65s تغییر کرد */
  transition:
    background-color .25s ease,
    color .65s ease;
}

.sidebar-theme-btn:hover,
.sidebar-mode-btn:hover {
  background: rgba(184, 146, 63, .13);
  color: var(--ink);
}

/* ============================================================
   FOOT LABEL
   ============================================================ */

.sidebar-theme-btn::after,
.sidebar-mode-btn::after {
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 47px;
  width: 145px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  color: currentColor;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  transform-origin: right center;
  transition:
    opacity var(--label-duration) ease,
    transform .30s var(--sidebar-ease);
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .sidebar-theme-btn::after,
  .desktop-sidebar:hover .sidebar-mode-btn::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    transition-delay: var(--label-delay), var(--label-delay);
  }
}

/* ============================================================
   FOOT ICONS
   ============================================================ */

.sidebar-theme-btn svg,
.sidebar-mode-btn svg {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
  transition:
    left var(--sidebar-duration) var(--sidebar-ease),
    transform .45s var(--sidebar-ease),
    opacity .25s ease;
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .sidebar-theme-btn svg,
  .desktop-sidebar:hover .sidebar-mode-btn svg {
    left: calc(100% - 23px);
    transform: translate(-50%, -50%);
  }
}

/* ============================================================
   MOON / SUN
   ============================================================ */

.sidebar-theme-btn .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
}

.sidebar-theme-btn .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(.4);
}

.dark .sidebar-theme-btn .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(.4);
}

.dark .sidebar-theme-btn .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .sidebar-theme-btn .moon-icon {
    transform: translate(-50%, -50%) rotate(0) scale(1);
  }

  .desktop-sidebar:hover .sidebar-theme-btn .sun-icon {
    transform: translate(-50%, -50%) rotate(-90deg) scale(.4);
  }

  .dark .desktop-sidebar:hover .sidebar-theme-btn .moon-icon {
    transform: translate(-50%, -50%) rotate(90deg) scale(.4);
  }

  .dark .desktop-sidebar:hover .sidebar-theme-btn .sun-icon {
    transform: translate(-50%, -50%) rotate(0) scale(1);
  }
}

/* ============================================================
   MOBILE MODE BUTTON
   ============================================================ */

.sidebar-mode-btn {
  display: none;
}

.sidebar-mode-btn.visible {
  display: block;
}

/* ============================================================
   MAIN
   ============================================================ */

.main-wrapper {
  margin-right: 120px;
  width: calc(100% - 120px);
  min-height: 100vh;
}

/* ============================================================
   HEADER POSITION WHEN SIDEBAR OPENS
   ============================================================ */

@media (min-width: 961px) {
  .glass-wrap {
    transition:
      right var(--sidebar-duration) var(--sidebar-ease),
      left .42s var(--ease-apple),
      background-color .45s ease,
      color .65s ease,
      border-color .45s ease,
      box-shadow .45s ease;
  }

  body:has(.desktop-sidebar:hover) .glass-wrap {
    right: 286px;
  }
}

/* ============================================================
   GLASS HEADER
   ============================================================ */

.glass-wrap {
  position: fixed;
  top: 16px;
  right: 136px;
  left: 24px;
  z-index: 920;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  direction: ltr;
  /* FIX: اضافه شدن color .65s */
  transition:
    background-color .45s ease,
    color .65s ease,
    border-color .45s ease,
    box-shadow .65s ease;
}

.glass-wrap.scrolled {
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .1);
}

.dark .glass-wrap {
  background: rgba(10, 18, 32, .5);
  border-color: rgba(255, 255, 255, .12);
}

.dark .glass-wrap.scrolled {
  background: rgba(10, 18, 32, .65);
}

/* ============================================================
   HEADER IMAGES
   ============================================================ */

.header-seal,
.header-signature {
  height: 46px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: filter .4s ease;
}

.header-signature {
  height: 42px;
}

.dark .header-seal,
.dark .header-signature {
  filter: invert(1);
}

/* ============================================================
   HEADER SHINE
   ============================================================ */

.glass-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      rgba(184, 146, 63, .18) 40%,
      rgba(220, 192, 127, .28) 50%,
      rgba(184, 146, 63, .18) 60%,
      transparent 100%
    );
  animation: headerShine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes headerShine {
  0% { left: -40%; }
  45%, 100% { left: 110%; }
}

.cover-container,
.mobile-controls,
.mobile-menu-overlay,
.header-spacer {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 140px 48px 70px;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -15% -8%;
  background-image:
    radial-gradient(circle, rgba(184, 146, 63, .34) 1.4px, transparent 1.8px);
  background-size: 20px 20px;
  -webkit-mask-image:
    radial-gradient(ellipse 72% 68% at 65% 40%, #000 0%, transparent 80%);
  mask-image:
    radial-gradient(ellipse 72% 68% at 65% 40%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO PHOTO
   ============================================================ */

.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  animation: heroImageIn .9s var(--ease-apple) both;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      var(--gold) 0deg,
      var(--gold-soft) 28deg,
      transparent 75deg,
      transparent 285deg,
      var(--gold-soft) 332deg,
      var(--gold) 360deg
    );
  animation: spin 11s linear infinite;
  opacity: .75;
  z-index: -1;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--paper);
  z-index: -1;
  transition: background .7s var(--ease-apple);
}

.hero-photo {
  width: 212px;
  height: 212px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--paper-card);
  box-shadow:
    0 20px 50px rgba(16, 29, 48, .16),
    0 0 0 1px rgba(184, 146, 63, .25);
  display: block;
  filter: grayscale(.12) contrast(1.02);
  transition:
    transform .5s var(--ease-apple),
    box-shadow .5s var(--ease-apple),
    filter .5s var(--ease);
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.03) translateY(-3px);
  filter: grayscale(0) contrast(1.02);
  box-shadow:
    0 26px 56px rgba(16, 29, 48, .2),
    0 0 30px rgba(184, 146, 63, .28);
}

/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-content {
  flex: 1;
  text-align: right;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 16px;
  animation: heroTextIn .7s var(--ease-apple) both;
}

.hero-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
  background:
    linear-gradient(
      100deg,
      var(--ink) 30%,
      var(--gold) 45%,
      var(--gold-soft) 50%,
      var(--gold) 55%,
      var(--ink) 70%
    );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    brandShine 5s ease-in-out infinite,
    heroTextIn .75s var(--ease-apple) both;
  animation-delay: 0s, .12s;
}

@keyframes brandShine {
  0% { background-position: 130% 0; }
  45%, 100% { background-position: -30% 0; }
}

.hero-rule {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 20px auto;
  animation: ruleGrow 1s var(--ease-apple) both;
  animation-delay: .5s;
}

.hero-content .title {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
  line-height: 1.9;
  max-width: 480px;
  margin-inline-start: auto;
  animation: heroTextIn .75s var(--ease-apple) both;
  animation-delay: .22s;
  /* FIX: اضافه شدن color .65s برای هماهنگی با بقیه متن‌ها */
  transition: color .65s ease;
}

.hero-sign-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  animation: heroTextIn .75s var(--ease-apple) both;
  animation-delay: .38s;
}

.hero-signature {
  height: 40px;
  width: auto;
  clip-path: inset(0 0 0 100%);
  animation: signReveal 1.1s var(--ease-apple) both;
  animation-delay: .85s;
}

.dark .hero-signature {
  filter: invert(1);
}

.hero-sign-caption {
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
  border-right: 1px solid var(--line);
  padding-right: 14px;
  /* FIX: اضافه شدن color .65s */
  transition: color .65s ease;
}

.hero-content .cta-btn {
  animation: heroTextIn .75s var(--ease-apple) both;
  animation-delay: .5s;
}

/* ============================================================
   CONTENT
   ============================================================ */

.content-body {
  padding: 10px 48px 90px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-body p {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 2.15;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 1.4em;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  border-radius: 9999px;
  background: var(--gold);
  color: #22160a;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 600;
  /* FIX: color .65s اضافه شد */
  transition:
    transform .35s var(--ease-apple),
    box-shadow .35s var(--ease-apple),
    color .65s ease;
  box-shadow: 0 8px 24px rgba(184, 146, 63, .28);
}

.cta-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 146, 63, .4);
}

.cta-btn i,
.cta-btn-outline i {
  font-size: .92em;
  line-height: 1;
}

.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: var(--ink);
  border: 1.5px solid var(--gold);
  box-shadow:
    0 4px 18px rgba(184, 146, 63, .08),
    inset 0 1px 0 rgba(255, 255, 255, .4);
  /* FIX: color از .3s به .65s تغییر کرد */
  transition:
    background .3s ease,
    border-color .3s ease,
    color .65s ease,
    box-shadow .3s ease,
    transform .35s var(--ease-apple);
}

.dark .cta-btn-outline {
  background: rgba(10, 18, 32, .12);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--gold-soft);
  color: var(--ink);
  transform: scale(1.03) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(184, 146, 63, .16),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.dark .cta-btn-outline:hover {
  background: rgba(10, 18, 32, .22);
  color: var(--ink);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.cta-btn-outline i {
  color: var(--gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes heroImageIn {
  from { opacity: 0; transform: scale(.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ruleGrow {
  from { width: 0; }
  to { width: 92px; }
}

@keyframes signReveal {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes mobileMenuDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 960.98px) {
  .desktop-sidebar { display: none; }
  .main-wrapper { margin-right: 0; width: 100%; }

  .glass-wrap {
    top: 7px;
    left: 7px;
    right: 7px;
    height: auto;
    z-index: 3000;
    border-radius: 17px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 12px 36px rgba(15, 23, 42, .15);
    display: block;
    padding: 0;
    direction: rtl;
  }

  .dark .glass-wrap {
    background: rgba(10, 18, 32, .82);
    border-color: rgba(255, 255, 255, .14);
  }

  .header-seal,
  .header-signature { display: none; }

  .cover-container { display: block; line-height: 0; }

  .cover-image {
    display: block;
    width: 100%;
    max-height: 125px;
    object-fit: cover;
    object-position: center;
  }

  .dark .cover-image { filter: invert(1); }

  .mobile-controls {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
    background: rgba(248, 250, 252, .40);
    border-top: 1px solid rgba(15, 23, 42, .14);
  }

  .dark .mobile-controls {
    background: rgba(10, 18, 32, .5);
    border-top-color: rgba(255, 255, 255, .18);
  }

  /* HAMBURGER */
  .hamburger-btn {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
    transition: transform .25s ease, opacity .2s ease;
  }

  .hamburger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger-btn.active span:nth-child(2) { opacity: 0; }
  .hamburger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* MOBILE THEME / DESKTOP BUTTON */
  .theme-btn,
  .desktop-mode-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
  }

  .theme-btn svg,
  .desktop-mode-btn svg {
    width: 18px;
    height: 18px;
    position: absolute;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .45s var(--ease-apple), opacity .35s var(--ease-apple);
  }

  .theme-btn .moon-icon { opacity: 1; transform: rotate(0) scale(1); }
  .theme-btn .sun-icon { opacity: 0; transform: rotate(-90deg) scale(.4); }
  .dark .theme-btn .moon-icon { opacity: 0; transform: rotate(90deg) scale(.4); }
  .dark .theme-btn .sun-icon { opacity: 1; transform: rotate(0) scale(1); }

  /* MOBILE MENU */
  .mobile-menu-overlay {
    display: none;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .mobile-menu-overlay.open {
    display: block;
    max-height: 600px;
    visibility: visible;
    border-top: 1px solid rgba(255, 255, 255, .22);
    animation: mobileMenuDown .25s ease both;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 8px 12px 14px;
  }

  .mobile-menu-list a {
    display: flex;
    gap: 10px;
    padding: 9px 14px;
    color: var(--ink);
    text-decoration: none;
    text-align: right;
    font-size: .95rem;
    border-radius: 10px;
    /* FIX: color .65s اضافه شد */
    transition:
      background .25s ease,
      color .65s ease;
  }

  .mobile-menu-list a .idx-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .25s ease;
  }

  .mobile-menu-list a:hover .idx-icon,
  .mobile-menu-list a.active .idx-icon { stroke: var(--ink); }

  .mobile-menu-list a.active {
    background: rgba(184, 146, 63, .16);
    color: var(--ink);
    font-weight: 600;
  }

  .mobile-menu-list a:hover {
    background: rgba(184, 146, 63, .14);
  }

  /* HEADER SPACER */
  .header-spacer { display: block; height: 125px; overflow: hidden; }
  .header-spacer img { width: 100%; height: 125px; object-fit: cover; visibility: hidden; }

  /* HERO MOBILE */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 36px 20px 48px;
    gap: 28px;
  }

  .hero::before {
    inset: -6% -20%;
    background-size: 18px 18px;
    -webkit-mask-image:
      radial-gradient(ellipse 90% 55% at 50% 30%, #000 0%, transparent 78%);
    mask-image:
      radial-gradient(ellipse 90% 55% at 50% 30%, #000 0%, transparent 78%);
  }

  .hero-photo-wrap::before { inset: -10px; }
  .hero-photo-wrap::after { inset: -5px; }
  .hero-photo { width: 150px; height: 150px; }
  .hero-content { text-align: center; }
  .hero-kicker { margin: 0 auto 14px; }
  .hero-kicker::before { display: none; }
  .hero-rule { margin: 0 auto 20px; }
  .hero-content .title { margin-left: auto; margin-right: auto; }
  .hero-sign-wrap { flex-direction: column; gap: 10px; }
  .hero-sign-caption { border-right: 0; padding-right: 0; }
  .content-body { padding: 10px 18px 70px; }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {
  .glass-wrap { top: 5px; left: 5px; right: 5px; border-radius: 15px; }
  .cover-image { max-height: 110px; }
  .header-spacer { height: 110px; }
  .header-spacer img { height: 110px; }
  .hero-photo { width: 130px; height: 130px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    clip-path: none !important;
  }
}

/* ============================================================
   THEME TRANSITIONS — قانون عمومی
   ============================================================ */

.glass-wrap,
.desktop-sidebar,
.mobile-controls,
.cover-container,
.hero,
.card,
section,
nav,
header {
  transition:
    background-color .45s ease,
    color .65s ease,
    border-color .65s ease,
    box-shadow .65s ease;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, button, svg, small, strong {
  transition:
    color .65s ease,
    fill .65s ease,
    stroke .65s ease;
}

/* Transition اختصاصی Sidebar باید دوباره بر Transition عمومی غلبه کند */

.desktop-sidebar {
  transition:
    width var(--sidebar-duration) var(--sidebar-ease),
    background-color .45s ease,
    color .65s ease,
    border-color .65s ease,
    box-shadow .65s ease;
}

.glass-wrap {
  transition:
    right var(--sidebar-duration) var(--sidebar-ease),
    left .42s var(--ease-apple),
    background-color .45s ease,
    color .65s ease,
    border-color .65s ease,
    box-shadow .65s ease;
}

@media (min-width: 961px) {
  .desktop-sidebar:hover .desktop-menu li>a>svg {
    left: calc(100% - 23px);
  }
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-body {
  padding: 10px 48px 90px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  margin-bottom: 70px;
  scroll-margin-top: 110px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.section-card {
  background: var(--paper-card);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  /* FIX: اضافه شدن transition تا پس‌زمینه کارت هم آرام (نه فوری) عوض شود؛
     هماهنگ با متن داخل کارت که .65s است */
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.dark .section-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.lead {
  font-size: 1.08rem;
  line-height: 2.1;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
}

.lead strong { color: var(--ink); }

.highlight-list { list-style: none; padding: 0; }

.highlight-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  /* FIX: transition اختصاصی اضافه شد تا مستقل از قانون عمومی هم کار کند */
  transition: color .65s ease;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transition: background-color .35s ease;
}

/* Notice bar */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(184, 146, 63, .08);
  border: 1px solid rgba(184, 146, 63, .35);
  border-radius: 14px;
  padding: 16px 20px;
  flex-wrap: wrap;
  margin: 28px 0;
  /* FIX: اضافه شد */
  transition: background-color .35s ease, border-color .35s ease;
}

.notice-bar .notice-icon {
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.notice-bar .notice-text {
  flex: 1 1 260px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.notice-bar .notice-text strong { color: var(--gold); }

.notice-bar .btn-accent {
  background: var(--gold);
  color: #22160a;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  /* FIX: color .65s اضافه شد */
  transition: transform .25s ease, box-shadow .25s ease, color .65s ease;
  white-space: nowrap;
}

.notice-bar .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(184, 146, 63, .3);
}

/* Timeline */
.timeline { position: relative; padding-right: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--line) 100%);
  border-radius: 3px;
}

.timeline-item { position: relative; padding-right: 32px; margin-bottom: 22px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  right: -1px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper-card);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, .3);
  z-index: 2;
}

.timeline-content {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  /* FIX: background-color .35s اضافه شد */
  transition: transform .25s ease, box-shadow .25s ease, background-color .35s ease, border-color .35s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.timeline-content h4 {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-content .subheading {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 8px;
}

.timeline-content p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.badge-current {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(184, 146, 63, .12);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 10px;
  border-radius: 20px;
  line-height: 1.6;
}

/* Achievements */
.achievements-group { margin-bottom: 32px; }

.achievements-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.achievements-group ul { list-style: none; padding: 0; }

.achievements-group li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
  /* FIX: transition اختصاصی اضافه شد */
  transition: color .65s ease;
}

.achievements-group li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--gold);
  font-weight: 700;
}

/* Education */
.edu-item { margin-bottom: 18px; }

.edu-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }

.edu-item .subheading {
  color: var(--gold);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
}

.edu-item p { color: var(--ink-soft); line-height: 1.8; margin: 0; }

/* Skills */
.skills-list { list-style: none; padding: 0; }

.skills-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  /* FIX: transition اختصاصی اضافه شد */
  transition: color .65s ease;
}

.skills-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
}

/* Official links */
.official-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 32px 0;
}

.official-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.official-links a:hover { transform: translateY(-3px); }

.official-links img { height: 42px; width: auto; object-fit: contain; }

.dark .official-links img:not([alt="Clubhouse"]),
.dark .footer-socials img:not([alt="Clubhouse"]) {
  filter: invert(1) hue-rotate(180deg);
}

.dark img[alt="Clubhouse"] { filter: none !important; }

/* btn-wide */
.btn-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--gold);
  color: #22160a;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  /* FIX: color .65s اضافه شد */
  transition: transform .25s ease, box-shadow .25s ease, color .65s ease;
  margin-top: 12px;
}

.btn-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 146, 63, .3);
}

/* Languages */
.language-list { display: flex; flex-direction: column; gap: 12px; }

.language-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  text-decoration: none !important;
  color: var(--ink) !important;
  /* FIX: به‌جای "all .25s"، color جدا با .65s تعریف شد */
  transition:
    background-color .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    color .65s ease;
}

.language-card:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.language-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.language-info { display: flex; flex-direction: column; flex-grow: 1; }
.lang-name { font-weight: 700; font-size: 1rem; }
.lang-sub { font-size: .8rem; color: var(--ink-soft); }

/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 2;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   DATA + FEATURES
   ============================================================ */

.data-section { scroll-margin-top: 120px; padding: 46px 0 18px; }
.data-section>div { width: 100%; }

.data-section h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 26px;
}

.data-section .subheading,
.data-section .text-primary {
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-top: 2.1rem;
  margin-bottom: 1rem;
}

.data-section .subheading.mt-4 { margin-top: 2.4rem; }
.data-section .text-primary.mt-5 { margin-top: 1.8rem; }

.data-section p,
.data-section li { color: var(--ink-soft); line-height: 2; }

.data-section .section-card,
.data-section .resume-content,
.data-section .news-card,
.data-section .card,
.data-section .language-card,
.data-section .notice-bar {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  /* FIX: اضافه شد تا کارت‌های داخل data-section هم پس‌زمینه‌شان آرام عوض شود */
  transition: background-color .35s ease, border-color .35s ease;
}

.dark .data-section .section-card,
.dark .data-section .resume-content,
.dark .data-section .news-card,
.dark .data-section .card,
.dark .data-section .language-card,
.dark .data-section .notice-bar {
  background: rgba(16, 28, 48, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.data-section .timeline { position: relative; }

.data-section .timeline-item {
  position: relative;
  padding-right: 28px;
  border-right: 2px solid rgba(184, 146, 63, 0.28);
}

.data-section .timeline-item::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--paper);
}

.data-section .timeline-item+.timeline-item { margin-top: 20px; }

.data-section .resume-content { border-radius: 16px; padding: 18px 20px; }

.data-section .resume-content h4 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.data-section .resume-content p { margin: 0; }

.data-section .badge-current {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(184, 146, 63, 0.14);
  color: var(--gold);
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: middle;
}

.data-section a:not(.btn):not(.news-card):not(.btn-wide):not(.cta-btn):not(.cta-btn-outline) {
  color: var(--gold);
}

.data-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  border: 0;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
  /* FIX: اضافه شد */
  transition: color .65s ease, background-color .3s ease;
}

.data-section .btn.bg-primary,
.data-section .btn.bg-accent {
  background: var(--gold);
  color: #fff;
}

#experience .timeline-content a,
#experience .timeline-content a:link,
#experience .timeline-content a:visited,
#experience .timeline-content a:active {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 146, 63, 0.28);
  /* FIX: color از 0.2s به .65s تغییر کرد */
  transition: color .65s ease, border-color 0.2s ease;
}

#experience .timeline-content a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* News search bar */
.news-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  direction: rtl;
}

.news-search-wrap input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-card);
  color: var(--ink);
  font-size: 16px;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  /* FIX: color .65s اضافه شد */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color .65s ease, background-color .35s ease;
  touch-action: manipulation;
}

@media (max-width: 960.98px) {
  input, select, textarea { font-size: 16px !important; }
}

.news-search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.18);
}

.news-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
  font-size: 0.95rem;
}

.news-search-inner { position: relative; flex: 1; min-width: 0; }

.news-search-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.news-card.news-hidden { display: none !important; }

.news-empty-state {
  display: none;
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
}

.news-empty-state.show { display: block; }

.data-section .news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0.5rem;
}

.data-section .news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  padding: 17px 18px;
  border-radius: 17px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.8;
  /* FIX: color .65s اضافه شد */
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color .65s ease, background-color .35s ease;
}

.data-section .news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 146, 63, 0.5);
  box-shadow: 0 12px 28px rgba(17, 31, 50, 0.07);
}

.data-section .news-source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.data-section .favicon { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }

.data-section .news-extra { display: none; }
.data-section .news-grid.expanded .news-extra:not(.news-hidden) { display: flex; }
.data-section .news-grid.searching .news-extra:not(.news-hidden) { display: flex; }

.data-section .video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.data-section .video-row>div { min-width: 0; }

.data-section .video-row .card { height: 100%; overflow: hidden; border-radius: 18px; }

.data-section .video-row .position-relative {
  height: 170px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.data-section .video-row .card-img-top {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.data-section .video-opener {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
}

.data-section .video-opener img { width: 58px; height: 58px; object-fit: contain; }

.data-section .video-row .card-body { padding: 14px; }

.data-section .video-row .card-body a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.75;
  /* FIX: اضافه شد */
  transition: color .65s ease;
}

/* Lazy placeholders */
img.lazy-pending { filter: blur(6px); opacity: 0.55; transition: filter 0.35s ease, opacity 0.35s ease; }
img.lazy-loaded { filter: none; opacity: 1; }

.data-section .btn-show-more {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  margin: 14px 0 8px;
  padding: 0 16px;
  border: 1px solid rgba(184, 146, 63, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
  /* FIX: color .65s اضافه شد */
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .65s ease;
}

.dark .data-section .btn-show-more {
  background: rgba(16, 28, 48, 0.58);
  border-color: rgba(184, 146, 63, 0.32);
}

.data-section .btn-show-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.data-section .btn-show-more i {
  flex: 0 0 auto;
  line-height: 1;
  transition: transform 0.25s ease;
}

.data-section .btn-show-more.open i { transform: rotate(180deg); }

.data-section .section-card+.btn-show-more,
.data-section .news-grid+.btn-show-more { margin-top: 10px; }

.data-section .btn-show-more+.btn-wide,
.data-section .video-row+.btn-wide {
  display: flex;
  width: max-content;
  margin: 12px 0 0;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  direction: rtl;
}

.section-actions .btn-show-more,
.section-actions .btn-wide { margin-top: 0; margin-bottom: 0; }

#achievements .section-card+.section-actions { margin-top: 10px; }
#achievements .section-actions .btn-wide { display: flex; width: max-content; margin: 0; }
#multimedia .news-grid+.btn-show-more,
#multimedia .btn-show-more { margin-top: 16px; margin-bottom: 20px; }
#multimedia .video-row+.btn-wide,
#multimedia a.btn-wide { margin-top: 14px; }
#skills .btn-show-more { margin-top: 14px; margin-bottom: 8px; }
#skills .btn-wide,
#skills a.btn-wide { margin-top: 16px; margin-bottom: 10px; }

.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: currentColor;
  pointer-events: none;
}

.float-icon i { font-size: 18px; line-height: 1; display: block; }

.float-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.float-script-icon {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  font-size: 0 !important;
}

#backToTop,
#readAloudBtn,
#chatToggleBtn {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  z-index: 1200;
  cursor: pointer;
  /* FIX: color .65s اضافه شد */
  transition: transform 0.28s var(--ease-apple), background 0.28s ease, box-shadow 0.28s ease, opacity 0.25s ease, color .65s ease;
}

.dark #backToTop,
.dark #readAloudBtn,
.dark #chatToggleBtn {
  background: rgba(16, 28, 48, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#backToTop {
  bottom: max(24px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#readAloudBtn { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
#chatToggleBtn { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
#backToTop:hover, #readAloudBtn:hover, #chatToggleBtn:hover { transform: translateY(-3px); }
#readAloudBtn.playing { background: #0dcaf0; color: #111; }
#readAloudBtn.paused { background: #ffc107; color: #111; }

#readAloudBtn.loading .float-headphones svg,
#readAloudBtn.loading i {
  animation: readAloudSpin 0.9s linear infinite;
  transform-origin: center;
}

@keyframes readAloudSpin { to { transform: rotate(360deg); } }

#readAloudHint {
  position: fixed;
  left: calc(72px + env(safe-area-inset-left, 0px));
  bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 1201;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  /* FIX: color .65s اضافه شد */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, color .65s ease, background-color .35s ease;
}

#readAloudHint.show { opacity: 1; visibility: visible; transform: translateX(0); }

#chatPanel {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: 192px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 410px;
  max-height: calc(100vh - 210px);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1250;
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-18px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.22, 1), opacity 0.22s ease, visibility 0s linear 0.32s;
}

.dark #chatPanel {
  background: rgba(10, 18, 32, 0.3);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#chatPanel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.22, 1), opacity 0.22s ease, visibility 0s linear 0s;
}

#chatPanel .chat-header {
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  border-bottom: 1px solid rgba(184, 146, 63, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 58px;
}

.dark #chatPanel .chat-header {
  background: rgba(10, 18, 32, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#chatPanel .chat-header strong { font-size: 0.9rem; }
#chatPanel .chat-header span { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 2px; }

#chatCloseBtn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  font-size: 1rem;
  /* FIX: اضافه شد */
  transition: background .2s ease, color .65s ease;
}

.dark #chatCloseBtn { background: rgba(255, 255, 255, 0.08); }
#chatCloseBtn:hover { background: rgba(184, 146, 63, 0.35); }

#chatMessages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.dark #chatMessages { background: rgba(10, 18, 32, 0.08); }

.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.75;
  word-wrap: break-word;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-left-radius: 3px;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-right-radius: 3px;
  /* FIX: اضافه شد چون خود رنگ متن این حباب هم عوض می‌شود */
  transition: background-color .35s ease, color .65s ease, border-color .35s ease;
}

#chatForm {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dark #chatForm { background: rgba(10, 18, 32, 0.18); }

#chatInput {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: 16px 'Vazirmatn', sans-serif;
  background: var(--paper);
  color: var(--ink);
  /* FIX: اضافه شد */
  transition: background-color .35s ease, color .65s ease, border-color .2s ease;
}

#chatInput:focus { outline: none; border-color: var(--gold); }

#chatSendBtn {
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 10px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#chatSendBtn:disabled { opacity: 0.5; cursor: not-allowed; }

#installBanner {
  position: fixed;
  left: calc(78px + env(safe-area-inset-left, 0px));
  bottom: -90px;
  width: 300px;
  max-width: calc(100vw - 98px);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 8px 10px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: bottom 0.35s var(--ease-apple);
}

.dark #installBanner {
  background: rgba(10, 18, 32, 0.2);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4);
}

#installBanner.show { bottom: max(16px, env(safe-area-inset-bottom)); }

#installBanner .install-row { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
#installBanner .install-icon { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
#installBanner .install-text { min-width: 0; }
#installBanner .install-text strong { display: block; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#installBanner .install-text span { display: block; font-size: 0.68rem; color: var(--ink-soft); margin-top: 2px; }
#installBanner .install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

#installBanner button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.75rem;
}

#installBanner .btn-install-primary { background: var(--gold); color: #fff; padding: 6px 12px; }
#installBanner .btn-install-dismiss { background: transparent; color: var(--ink-soft); padding: 6px 8px; border: 1px solid var(--line); }

.site-footer {
  margin: 28px 24px 28px;
  padding: 28px 18px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  /* FIX: اضافه شد */
  transition: background-color .35s ease, border-color .35s ease;
}

.dark .site-footer {
  background: rgba(16, 28, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-socials { display: block; text-align: center; margin-top: 1.8rem; line-height: 0; }
.footer-socials a { width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: inline-block; margin: 0 9px; vertical-align: middle; }
.footer-socials img { height: auto; max-width: none; object-fit: contain; display: block; }
.footer-socials a:nth-child(1) img,
.footer-socials a:nth-child(2) img,
.footer-socials a:nth-child(3) img,
.footer-socials a:nth-child(4) img,
.footer-socials a:nth-child(5) img,
.footer-socials a:nth-child(6) img { width: 64px; }
.footer-socials a:nth-child(7) img { width: 30px; }
.footer-socials a:nth-child(8) img { width: 25px; }
.official-links { width: 100%; display: block; margin: 32px 0; }
.official-links a:hover { transform: translateY(-2px); }
.official-links img { max-width: none; object-fit: contain; }

#videoModal { display: none; position: fixed; inset: 0; z-index: 1300; align-items: center; justify-content: center; padding: 20px; }
#videoModal.show { display: flex; }
#videoModal .modal-dialog { width: min(900px, 96vw); max-height: 92vh; }

#videoModal .modal-content {
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  /* FIX: اضافه شد */
  transition: background-color .35s ease, color .65s ease, border-color .35s ease;
}

#videoModal .modal-header { padding: 14px 18px; border-bottom: 1px solid var(--line); }
#videoModal .modal-title { font-size: 1rem; font-weight: 700; }
#videoModal .modal-body { padding: 14px; }
#videoModal .total-video video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
#videoModal .modal-footer { display: flex; justify-content: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); }

#videoModal .btn-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
  /* FIX: اضافه شد */
  transition: color .65s ease, border-color .2s ease;
}

#experience .timeline-item::before {
  opacity: 0.22;
  transform: scale(0.55);
  background: var(--line);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.08);
  transition: opacity 0.42s ease, transform 0.48s var(--ease-apple), background-color 0.42s ease, box-shadow 0.48s ease;
}

#experience .timeline-item.timeline-active::before {
  opacity: 1;
  transform: scale(1);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px rgba(184, 146, 63, 0.2), 0 0 18px rgba(184, 146, 63, 0.32);
}

#experience .timeline-item.timeline-active .timeline-content {
  border-color: rgba(184, 146, 63, 0.3);
  box-shadow: 0 10px 28px rgba(184, 146, 63, 0.08);
}

.official-statement-section { display: block; position: relative; clear: both; scroll-margin-top: 120px; margin-bottom: 0; }
#official-statement .section-title { margin-bottom: 2rem; }
#other { display: block; position: relative; clear: both; scroll-margin-top: 120px; margin-top: 0; }
#official-statement+#other { border-top: 1px solid rgba(148, 163, 184, 0.22); padding-top: 2.5rem; }
#official-statement+#other .section-title { margin-top: 0; }

.content-body>.section,
.content-body>section[id]:not(.hero):not(#about),
main .section:not(.hero),
main section[id]:not(.hero):not(#about) {
  border-top: 1px solid rgba(184, 146, 63, 0.18);
  padding-top: 28px;
  margin-top: 8px;
  margin-bottom: 28px;
  scroll-margin-top: 100px;
}

.content-body>.section:first-of-type,
.content-body>section[id]:not(.hero):not(#about):first-of-type {
  border-top: none;
  padding-top: 10px;
  margin-top: 0;
}

.hero { padding-top: 140px; }

@media (min-width: 961px) {
  .hero { padding-top: 175px !important; padding-bottom: 80px; }
}

@media (max-width: 960.98px) {
  .header-spacer { height: 175px; }
  .header-spacer img { height: 175px; }
  .hero { padding-top: 28px !important; padding-bottom: 48px; }
  main section[id]:not(.hero):not(#about),
  .content-body>section[id]:not(.hero):not(#about),
  main .section:not(.hero) { scroll-margin-top: 190px; }
}

@media (max-width: 575.98px) {
  .header-spacer { height: 160px; }
  .header-spacer img { height: 160px; }
}

ul.fa-ul.section-card,
.fa-ul.section-card,
.data-section ul.fa-ul,
.data-section .fa-ul.section-card {
  list-style: none;
  margin: 0;
  padding: 22px 24px;
  display: block;
  box-sizing: border-box;
}

ul.fa-ul.section-card>li,
.fa-ul.section-card>li,
.data-section .fa-ul>li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding: 0;
  margin: 0 0 16px 0;
  line-height: 2;
  color: var(--ink-soft);
  text-align: right;
  /* FIX: اضافه شد */
  transition: color .65s ease;
}

ul.fa-ul.section-card>li:last-child,
.fa-ul.section-card>li:last-child,
.data-section .fa-ul>li:last-child { margin-bottom: 0; }

ul.fa-ul.section-card>li .fa-li,
.fa-ul.section-card>li .fa-li,
.data-section .fa-ul>li .fa-li,
.fa-ul .fa-li {
  position: static;
  left: auto;
  right: auto;
  width: auto;
  top: auto;
  flex: 0 0 auto;
  line-height: 2;
  color: var(--gold);
  font-size: 1em;
  margin: 0 -2px 0 0;
  padding: 0;
  transform: translateX(6px);
}

ul.fa-ul.section-card>li::before,
.fa-ul.section-card>li::before,
.data-section .fa-ul>li::before { content: none; display: none; }

.section-card>ul:not(.fa-ul)>li,
.section-card ul:not(.fa-ul)>li,
#interests .section-card ul>li,
.data-section ul.section-card:not(.fa-ul)>li,
ul.section-card:not(.fa-ul)>li,
.highlight-list li {
  position: relative;
  padding-right: 1.55em;
  margin-bottom: 12px;
  line-height: 2;
  color: var(--ink-soft);
  list-style: none;
  /* FIX: اضافه شد تا این سلکتور هم مستقل transition داشته باشد */
  transition: color .65s ease;
}

.section-card>ul:not(.fa-ul)>li:last-child,
.section-card ul:not(.fa-ul)>li:last-child,
#interests .section-card ul>li:last-child,
ul.section-card:not(.fa-ul)>li:last-child { margin-bottom: 0; }

.section-card>ul:not(.fa-ul)>li::before,
.section-card ul:not(.fa-ul)>li::before,
#interests .section-card ul>li::before,
.data-section ul.section-card:not(.fa-ul)>li::before,
ul.section-card:not(.fa-ul)>li::before,
.highlight-list li::before {
  content: "";
  position: absolute;
  right: 0.55em;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
  transition: background-color .35s ease;
}

/* حالت انگلیسی - دسکتاپ */
.english-mode #skills .fa-ul,
.english-mode .section-card .fa-ul { padding-left: 0.8em !important; padding-right: 0 !important; }
.english-mode #skills .fa-ul .fa-li,
.english-mode .section-card .fa-ul .fa-li { left: -0.8em !important; right: auto !important; text-align: left !important; }
.english-mode #skills .fa-ul li,
.english-mode .section-card .fa-ul li { text-align: left !important; padding-right: 0 !important; padding-left: 0.6em !important; }

@media (max-width: 960.98px) {
  .english-mode #skills .fa-ul,
  .english-mode .section-card .fa-ul { padding-left: 0.6em !important; padding-right: 0 !important; }
  .english-mode #skills .fa-ul .fa-li,
  .english-mode .section-card .fa-ul .fa-li { left: -0.6em !important; right: auto !important; text-align: left !important; }
  .english-mode #skills .fa-ul li,
  .english-mode .section-card .fa-ul li { text-align: left !important; padding-right: 0 !important; padding-left: 0.2em !important; }
}

#interests .section-card ul,
#skills .section-card>ul { list-style: none; margin: 0; padding: 0; }

ul.fa-ul.section-card>li.list-extra,
.fa-ul.section-card>li.list-extra,
.data-section ul.fa-ul>li.list-extra,
.data-section .fa-ul>li.list-extra,
ul.section-card>li.list-extra,
.section-card>ul>li.list-extra,
li.list-extra { display: none; }

ul.fa-ul.section-card.expanded>li.list-extra,
.fa-ul.section-card.expanded>li.list-extra,
.data-section ul.fa-ul.section-card.expanded>li.list-extra,
.data-section .fa-ul.expanded>li.list-extra,
ul.section-card.expanded>li.list-extra { display: flex; }

.section-card.expanded>ul>li.list-extra { display: list-item; }

@media (min-width: 961px) {
  .hero { padding-top: 175px; padding-bottom: 80px; }
  .content-body { padding-top: 18px; }
}

.sidebar-mode-btn { display: none; }
.sidebar-mode-btn.visible { display: block; }

@media (max-width: 960.98px) {
  .content-body { padding: 10px 16px 70px; max-width: 100%; box-sizing: border-box; }
  .section-card,
  .data-section .section-card,
  .data-section .resume-content,
  .data-section .news-card { padding: 16px 14px; box-sizing: border-box; max-width: 100%; }
  .data-section { padding-left: 0; padding-right: 0; }
  .data-section>div { width: 100%; max-width: 100%; box-sizing: border-box; }
  .data-section .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card span { word-break: break-word; overflow-wrap: anywhere; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .timeline { padding-right: 20px; }
  .timeline-item { padding-right: 24px; }
  .content-body>.section:not(.hero),
  .content-body>section[id]:not(.hero):not(#about),
  main section[id]:not(.hero):not(#about) { scroll-margin-top: 190px; padding-top: 24px; }
  .mobile-controls {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(165%);
    -webkit-backdrop-filter: blur(16px) saturate(165%);
    border-top: 1px solid rgba(255, 255, 255, 0.42);
  }
  .dark .mobile-controls { background: rgba(10, 18, 32, 0.42); border-top-color: rgba(255, 255, 255, 0.12); }
}

@media (max-width: 767.98px) {
  .data-section { padding: 34px 0 12px; }
  .data-section .news-grid { grid-template-columns: 1fr; }
  .data-section .video-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: var(--gold) rgba(184, 146, 63, 0.14);
  }
  .data-section .video-row::-webkit-scrollbar { height: 8px; }
  .data-section .video-row::-webkit-scrollbar-track { background: rgba(184, 146, 63, 0.12); border-radius: 999px; }
  .data-section .video-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
  .data-section .video-row>div { flex: 0 0 78%; scroll-snap-align: start; }
  .data-section .video-row .position-relative,
  .data-section .video-row .card-img-top { height: 200px; }
  .data-section .resume-content { padding: 16px; }
  .data-section .btn-show-more { height: 38px; min-height: 38px; padding: 0 13px; margin-top: 10px; font-size: 0.88rem; }
  #backToTop { bottom: max(20px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
  #readAloudBtn { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); left: max(16px, env(safe-area-inset-left)); }
  #chatToggleBtn { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); left: max(16px, env(safe-area-inset-left)); }
  #readAloudHint { left: calc(68px + env(safe-area-inset-left, 0px)); bottom: calc(79px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 88px); white-space: normal; }
  #chatPanel {
    left: max(12px, env(safe-area-inset-left));
    width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    height: min(390px, calc(100dvh - 210px));
    max-height: calc(100dvh - 210px);
    bottom: 182px;
  }
  #chatPanel.open { bottom: 182px; }
  #chatInput { font-size: 16px; }
  .site-footer { margin: 22px 8px 20px; padding: 24px 12px 20px; }
  #installBanner { left: calc(68px + env(safe-area-inset-left, 0px)); width: calc(100vw - 84px); }
  .float-icon, .float-icon svg { width: 20px; height: 20px; }
  .news-search-wrap { flex-wrap: wrap; }
  .news-search-meta { width: 100%; text-align: right; }
}

@media (max-width: 575.98px) {
  .content-body { padding: 8px 12px 60px; }
  .section-card,
  .data-section .section-card,
  .data-section .news-card { padding: 14px 12px; }
  ul.fa-ul.section-card,
  .fa-ul.section-card { padding: 18px 16px; }
  ul.fa-ul.section-card>li,
  .fa-ul.section-card>li { gap: 16px; margin-bottom: 14px; }
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.desktop-menu li>a:focus-visible,
.sidebar-theme-btn:focus-visible,
.sidebar-mode-btn:focus-visible,
.hamburger-btn:focus-visible,
.theme-btn:focus-visible,
.desktop-mode-btn:focus-visible,
#backToTop:focus-visible,
#readAloudBtn:focus-visible,
#chatToggleBtn:focus-visible,
.cta-btn:focus-visible,
.cta-btn-outline:focus-visible,
.btn-show-more:focus-visible,
.btn-wide:focus-visible,
.news-card:focus-visible,
.news-search-wrap input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    clip-path: none !important;
  }
  .desktop-sidebar,
  .desktop-menu li>a>svg,
  .desktop-menu li>a::after,
  .desktop-menu li>a.active::before { transition: none !important; }
}

/* ============================================================
   SADIDI — FEATURE LAYER
   ============================================================ */

.sadidi-tools {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: calc(192px + env(safe-area-inset-bottom, 0px));
  z-index: 1190;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: block;
  box-sizing: border-box;
}

.sadidi-tools-toggle {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .58);
  cursor: pointer;
  z-index: 1191;
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX: color .65s اضافه شد */
  transition: transform .28s var(--ease-apple), background .28s ease, box-shadow .28s ease, color .65s ease;
}

.sadidi-tools-toggle:hover { transform: translateY(-3px); }

.dark .sadidi-tools-toggle {
  background: rgba(16, 28, 48, .62);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sadidi-tools-menu {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(48px + 8px);
  width: 230px;
  max-height: min(320px, calc(100dvh - 220px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .54);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .75);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transform-origin: bottom left;
  z-index: 1192;
  box-sizing: border-box;
  transition: opacity .2s ease, transform .25s var(--ease-apple), visibility 0s linear .25s, background-color .35s ease;
  scrollbar-width: thin;
}

.dark .sadidi-tools-menu {
  background: rgba(10, 18, 32, .6);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sadidi-tools.open .sadidi-tools-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .2s ease, transform .25s var(--ease-apple), visibility 0s linear 0s;
}

.sadidi-tool-btn {
  min-height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, .22);
  color: var(--ink);
  font: 500 .78rem 'Vazirmatn', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-sizing: border-box;
  /* FIX: color از .2s به .65s تغییر کرد */
  transition: background .2s ease, border-color .2s ease, color .65s ease;
}

.dark .sadidi-tool-btn { background: rgba(255, 255, 255, .05); }
.sadidi-tool-btn:hover { background: rgba(184, 146, 63, .14); border-color: rgba(184, 146, 63, .22); }
.sadidi-tool-btn i { color: var(--gold); font-size: .9rem; }

.sadidi-global-search {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(10, 18, 32, .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12vh, 100px) 20px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.sadidi-global-search.open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s linear 0s; }

.sadidi-search-dialog {
  width: min(760px, 100%);
  max-height: 78vh;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  /* FIX: اضافه شد */
  transition: background-color .35s ease, border-color .35s ease;
}

.sadidi-search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }

.sadidi-search-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem 'Vazirmatn', sans-serif;
  /* FIX: اضافه شد */
  transition: color .65s ease;
}

.sadidi-search-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: rgba(184, 146, 63, .12);
  color: var(--ink);
  cursor: pointer;
  /* FIX: اضافه شد */
  transition: color .65s ease, background-color .2s ease;
}

.sadidi-search-results { overflow: auto; padding: 10px; max-height: 62vh; }
.sadidi-search-meta { padding: 4px 14px 10px; color: var(--ink-soft); font-size: .74rem; }

.sadidi-result {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  /* FIX: اضافه شد */
  transition: color .65s ease, background-color .2s ease, border-color .2s ease;
}

.sadidi-result:hover { background: rgba(184, 146, 63, .1); border-color: rgba(184, 146, 63, .18); }
.sadidi-result strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.sadidi-result span { display: block; color: var(--ink-soft); font-size: .76rem; line-height: 1.8; }
.sadidi-empty { padding: 30px 16px; text-align: center; color: var(--ink-soft); }

.section-tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -10px 0 26px; }

.section-tool-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink-soft);
  font: 500 .75rem 'Vazirmatn', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* FIX: اضافه شد */
  transition: color .65s ease, border-color .2s ease, background-color .2s ease;
}

.section-tool-btn:hover,
.section-tool-btn.active { border-color: var(--gold); color: var(--ink); background: rgba(184, 146, 63, .08); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }

.stat-card {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--paper-card), rgba(255, 255, 255, .5));
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
  overflow: hidden;
  /* FIX: اضافه شد */
  transition: background-color .35s ease, border-color .35s ease;
}

.dark .stat-card { background: linear-gradient(145deg, var(--paper-card), rgba(255, 255, 255, .02)); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 146, 63, .09);
}

.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--gold); line-height: 1.2; margin-bottom: 6px; }
.stat-label { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }

.reading-mode .desktop-sidebar,
.reading-mode .glass-wrap,
.reading-mode .hero::before,
.reading-mode .sadidi-tools,
.reading-mode #backToTop,
.reading-mode #readAloudBtn,
.reading-mode #chatToggleBtn { display: none !important; }

.reading-mode .main-wrapper { margin: 0 !important; width: 100% !important; }
.reading-mode .content-body { max-width: 720px; margin: 0 auto; }
.reading-mode .hero { padding-top: 40px !important; }
.reading-mode .section-card,
.reading-mode .notice-bar { box-shadow: none; }

.reading-exit {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink);
  font: 500 .85rem 'Vazirmatn', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  /* FIX: اضافه شد */
  transition: color .65s ease, background-color .35s ease;
}

.reading-mode .reading-exit,
.reading-exit.show { display: inline-flex; }

.sadidi-share-menu {
  position: fixed;
  z-index: 1750;
  width: 220px;
  max-height: min(280px, calc(100dvh - 120px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  display: none;
  /* FIX: اضافه شد */
  transition: background-color .35s ease, border-color .35s ease;
}

.sadidi-share-menu.open { display: block; }

.sadidi-share-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: var(--ink);
  font: 500 .76rem 'Vazirmatn', sans-serif;
  text-align: right;
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  /* FIX: color .65s اضافه شد */
  transition: background .2s ease, color .65s ease;
}

.sadidi-share-menu button:hover { background: rgba(184, 146, 63, .1); }
.english-mode .sadidi-share-menu button { text-align: left; }

/* Map preview */
.map-preview-card { padding: 22px 24px 18px; overflow: hidden; }
.map-preview-hero { margin-bottom: 18px; }
.map-preview-lead { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.95; font-size: 0.98rem; }
.map-preview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }

.map-metric {
  background: rgba(184, 146, 63, 0.08);
  border: 1px solid rgba(184, 146, 63, 0.22);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.map-metric b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--gold); line-height: 1.2; margin-bottom: 4px; }
.map-metric span { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.4; }
.map-preview-cta { margin-top: 4px; }
.map-preview-cta i { margin-left: 6px; }

.map-preview-svg-wrap {
  margin: 8px 0 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(184, 146, 63, .07), transparent 62%),
    var(--paper);
  padding: 12px 8px 4px;
}

.map-preview-hint { margin: 0; text-align: center; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 767.98px) {
  .map-preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-preview-card { padding: 16px 14px 14px; }
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  height: min(680px, 78vh);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 12px 0 16px;
}

.map-iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--paper-card); }
.map-preview-footer { display: flex; justify-content: center; margin-top: 4px; }

@media (max-width: 767.98px) {
  .map-iframe-wrap { height: min(560px, 72vh); border-radius: 14px; }
}

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

.related-item {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-card);
  /* FIX: اضافه شد */
  transition: color .65s ease, border-color .2s ease, background-color .35s ease, transform .2s ease;
}

.related-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.related-item strong { display: block; font-size: .8rem; margin-bottom: 4px; }
.related-item span { color: var(--ink-soft); font-size: .7rem; line-height: 1.6; }

@media (max-width: 960.98px) {
  .sadidi-tools { left: max(16px, env(safe-area-inset-left, 0px)) !important; right: auto !important; bottom: calc(186px + env(safe-area-inset-bottom, 0px)) !important; }
  .sadidi-tools-menu { width: min(210px, calc(100vw - 40px)); max-height: min(260px, calc(100dvh - 240px)); left: 0 !important; right: auto !important; bottom: calc(48px + 8px) !important; top: auto !important; transform-origin: bottom left; }
  .sadidi-tool-btn { font-size: .72rem; min-height: 36px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .sadidi-search-dialog { border-radius: 17px; }
  .reading-mode .hero { padding-top: 50px; }
  .sadidi-share-menu { width: min(220px, calc(100vw - 32px)); max-height: min(260px, calc(100dvh - 100px)); }
}

@media (max-width: 575.98px) {
  .sadidi-tools-menu { width: min(200px, calc(100vw - 32px)); max-height: min(240px, calc(100dvh - 220px)); }
  .sadidi-tool-btn { font-size: .7rem; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.5rem; }
}

@media print {
  #backToTop, #readAloudBtn, #chatToggleBtn, .sadidi-tools, #readAloudHint,
  .sadidi-share-menu, .sadidi-global-search, .reading-exit { display: none !important; }
}

/* ========== Feature / Media / Extra layer ========== */
      /* Media filters — original pill style */
      .media-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin: 8px 0 14px;
      }
      .media-filter {
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--ink-soft);
        font: 500 .73rem 'Vazirmatn', sans-serif;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
      }
      .media-filter:hover {
        border-color: var(--gold);
        color: var(--ink);
      }
      .media-filter.active {
        background: var(--gold);
        color: #fff;
        border-color: var(--gold);
      }
      .multimedia-panel[data-filter="news"] .video-zone {
        display: none;
      }
      .multimedia-panel[data-filter="video"] .news-zone {
        display: none;
      }

      /* News source always visible */
      .news-source,
      .data-section .news-source {
        display: flex !important;
        align-items: center;
        gap: 7px;
        margin-top: 10px;
        font-size: 0.8rem !important;
        line-height: 1.4;
        color: var(--ink-soft) !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      .news-source .favicon,
      .data-section .favicon {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        flex-shrink: 0;
      }
      .news-source .agency-name {
        color: var(--ink-soft);
        font-weight: 500;
      }

      /* Footer nav centered */
      .site-footer nav {
        text-align: center !important;
        display: block;
        width: 100%;
      }
      .site-footer nav a {
        display: inline-block;
      }



      /* Experience — glass map link (distinct from solid timeline cards) */
      .exp-map-link {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 18px;
        margin-right: 28px;
        padding: 16px 18px;
        border-radius: 16px;
        text-decoration: none !important;
        color: var(--ink) !important;
        overflow: hidden;

        /* glass — same language as header / sidebar */
        background: rgba(255, 255, 255, 0.38);
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        border: 1px solid rgba(184, 146, 63, 0.35);
        box-shadow:
          0 8px 28px rgba(15, 23, 42, 0.06),
          inset 0 1px 0 rgba(255, 255, 255, 0.65);

        transition: transform .28s var(--ease-apple, cubic-bezier(.25, .1, .25, 1)),
          border-color .25s ease,
          box-shadow .28s ease,
          background .25s ease;
      }
      .dark .exp-map-link {
        background: rgba(16, 28, 48, 0.45);
        border-color: rgba(203, 167, 92, 0.32);
        box-shadow:
          0 8px 28px rgba(0, 0, 0, 0.28),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }
      .exp-map-link::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 3px;
        background: linear-gradient(180deg, var(--gold), var(--gold-soft));
        border-radius: 3px 0 0 3px;
        opacity: .9;
      }
      html[dir="ltr"] .exp-map-link::before {
        inset: 0 0 0 auto;
        border-radius: 0 3px 3px 0;
      }
      .exp-map-link:hover {
        transform: translateY(-2px);
        border-color: rgba(184, 146, 63, 0.55);
        background: rgba(255, 255, 255, 0.52);
        box-shadow:
          0 14px 36px rgba(184, 146, 63, 0.14),
          inset 0 1px 0 rgba(255, 255, 255, 0.75);
      }
      .dark .exp-map-link:hover {
        background: rgba(16, 28, 48, 0.62);
        box-shadow:
          0 14px 36px rgba(0, 0, 0, 0.35),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }
      .exp-map-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        background: linear-gradient(145deg, rgba(184, 146, 63, .2), rgba(184, 146, 63, .08));
        color: var(--gold);
        font-size: 1.08rem;
        border: 1px solid rgba(184, 146, 63, .3);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
      }
      .dark .exp-map-icon {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
      }
      .exp-map-body {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
        min-width: 0;
        text-align: right;
      }
      .exp-map-chip {
        display: inline-block;
        align-self: flex-start;
        margin: 0 0 4px auto;
        padding: 2px 9px;
        border-radius: 999px;
        font-style: normal;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .02em;
        color: var(--gold);
        background: rgba(184, 146, 63, .12);
        border: 1px solid rgba(184, 146, 63, .28);
        line-height: 1.5;
      }
      html[dir="ltr"] .exp-map-chip {
        margin: 0 auto 4px 0;
      }
      .exp-map-body strong {
        font-size: 1rem;
        font-weight: 700;
        color: var(--ink);
      }
      .exp-map-body>span {
        font-size: .8rem;
        color: var(--ink-soft);
        line-height: 1.6;
      }
      .exp-map-go {
        color: var(--gold);
        flex-shrink: 0;
        font-size: .95rem;
        opacity: .85;
        transition: transform .25s ease, opacity .25s ease;
      }
      .exp-map-link:hover .exp-map-go {
        opacity: 1;
        transform: translateX(-3px);
      }
      html[dir="ltr"] .exp-map-link {
        margin-right: 0;
        margin-left: 28px;
      }
      html[dir="ltr"] .exp-map-body {
        text-align: left;
      }
      html[dir="ltr"] .exp-map-link:hover .exp-map-go {
        transform: translateX(3px);
      }
      html[dir="ltr"] .exp-map-go .fa-arrow-left::before {
        content: "061";
      }
      @media (max-width: 960.98px) {
        .exp-map-link {
          margin-right: 0;
          margin-left: 0;
        }
        html[dir="ltr"] .exp-map-link {
          margin-left: 0;
        }
      }

      /* Media stats: space between label and count */
      .watch-page-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 14px;
        margin: 10px 0 16px;
        font-size: .9rem;
        color: var(--ink-soft);
      }
      .watch-page-meta>span:first-child {
        font-weight: 700;
        color: var(--ink);
      }
      #mediaCount {
        margin-right: 0;
        padding-right: 12px;
        border-right: 1px solid var(--line);
        letter-spacing: 0.01em;
      }

      /* Org network map — was black because SVG had no fill/stroke */
      .org-network svg {
        width: 100%;
        height: auto;
        display: block;
        max-width: 900px;
        margin: 0 auto;
      }
      .org-network .edge {
        stroke: var(--gold);
        stroke-width: 2;
        stroke-opacity: 0.55;
        fill: none;
      }
      .org-network .node {
        fill: var(--paper-card);
        stroke: var(--gold);
        stroke-width: 1.6;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .06));
      }
      .org-network .node-main {
        fill: rgba(184, 146, 63, 0.14);
        stroke: var(--gold);
        stroke-width: 2;
      }
      .org-network text {
        fill: var(--ink);
        font-family: 'Vazirmatn', Tahoma, sans-serif;
        font-size: 14px;
        font-weight: 600;
        pointer-events: none;
      }
      .org-network .main-label {
        fill: var(--ink);
        font-weight: 700;
      }
      .dark .org-network .node {
        fill: var(--paper-card);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
      }
      .dark .org-network .node-main {
        fill: rgba(203, 167, 92, 0.18);
      }

      /* News source agency line */
      .source-links {
        margin-top: 8px;
        font-size: 0.75rem;
      }
      .source-link {
        color: var(--gold) !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(184, 146, 63, .25);
      }
      .source-link:hover {
        border-bottom-color: var(--gold);
      }
      .news-source {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-top: 10px;
        font-size: 0.78rem;
        color: var(--ink-soft);
      }

      /* Mobile global search — clear fixed header */
      @media (max-width: 960.98px) {
        .sadidi-global-search {
          padding: max(190px, calc(env(safe-area-inset-top) + 170px)) 12px 24px !important;
          align-items: flex-start;
        }
        .sadidi-search-dialog {
          max-height: calc(100dvh - 210px);
        }
        .sadidi-search-results {
          max-height: calc(100dvh - 300px);
        }
      }

      /* English: sidebar LEFT, floating tools/chat RIGHT, timeline LEFT */
      .english-mode .desktop-sidebar {
        right: auto !important;
        left: 16px !important;
      }
      .english-mode .main-wrapper {
        margin-right: 0 !important;
        margin-left: 120px !important;
        width: calc(100% - 120px) !important;
      }
      .english-mode .glass-wrap {
        right: 24px !important;
        left: 136px !important;
      }
      @media (min-width: 961px) {
        .english-mode body:has(.desktop-sidebar:hover) .glass-wrap {
          left: 286px !important;
          right: 24px !important;
        }
        .english-mode .desktop-sidebar:hover .desktop-menu li>a>svg,
        .english-mode .desktop-sidebar:hover .sidebar-theme-btn svg,
        .english-mode .desktop-sidebar:hover .sidebar-mode-btn svg {
          left: 23px !important;
        }
        .english-mode .desktop-menu li>a::after,
        .english-mode .sidebar-theme-btn::after,
        .english-mode .sidebar-mode-btn::after {
          left: 47px !important;
          right: auto !important;
          justify-content: flex-start !important;
          transform-origin: left center !important;
        }
        .english-mode .desktop-sidebar:hover .desktop-menu li>a.active::before {
          left: 50% !important;
          width: calc(100% - 18px) !important;
          transform: translateX(-50%) !important;
        }
      }

      /* Floating controls to the RIGHT in English */
      .english-mode #backToTop,
      .english-mode #readAloudBtn,
      .english-mode #chatToggleBtn,
      .english-mode .sadidi-tools-toggle {
        left: auto !important;
        right: max(16px, env(safe-area-inset-right, 0px)) !important;
      }
      .english-mode .sadidi-tools {
        left: auto !important;
        right: max(16px, env(safe-area-inset-right, 0px)) !important;
        width: 48px !important;
        height: 48px !important;
      }
      .english-mode .sadidi-tools-toggle {
        position: absolute !important;
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        width: 48px !important;
        height: 48px !important;
      }
      .english-mode .sadidi-tools-menu {
        left: auto !important;
        right: 0 !important;
        transform-origin: bottom right !important;
      }
      .english-mode #readAloudHint {
        left: auto !important;
        right: calc(72px + env(safe-area-inset-right, 0px)) !important;
        transform: translateX(8px);
      }
      .english-mode #readAloudHint.show {
        transform: translateX(0);
      }
      .english-mode #chatPanel {
        left: auto !important;
        right: max(20px, env(safe-area-inset-right, 0px)) !important;
        transform-origin: bottom right;
      }
      .english-mode #installBanner {
        left: auto !important;
        right: calc(78px + env(safe-area-inset-right, 0px)) !important;
      }

      /* Timeline dots & line to the LEFT in English — same effect as Persian */
      .english-mode .timeline {
        padding-right: 0 !important;
        padding-left: 28px !important;
      }
      .english-mode .timeline::before {
        right: auto !important;
        left: 8px !important;
      }
      .english-mode .timeline-item {
        padding-right: 0 !important;
        padding-left: 32px !important;
        border-left: 0 !important;
        border-right: 0 !important;
      }
      .english-mode .timeline-item::before {
        right: auto !important;
        left: -1px !important;
        /* keep size/glow identical to Persian #experience rules */
        width: 18px !important;
        height: 18px !important;
        top: 14px !important;
        border: 3px solid var(--paper-card) !important;
        z-index: 2;
      }
      .english-mode #experience .timeline-item {
        border-right: 0 !important;
        border-left: 0 !important;
        padding-left: 32px !important;
      }
      .english-mode #experience .timeline-item::before {
        right: auto !important;
        left: -1px !important;
        width: 18px !important;
        height: 18px !important;
        top: 14px !important;
        /* inactive state same as Persian */
        opacity: 0.22;
        transform: scale(0.55);
        background: var(--line);
        box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.08);
        border: 3px solid var(--paper-card) !important;
      }
      .english-mode #experience .timeline-item.timeline-active::before {
        opacity: 1;
        transform: scale(1);
        background: var(--gold);
        box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px rgba(184, 146, 63, 0.2), 0 0 18px rgba(184, 146, 63, 0.32);
      }
      .english-mode .timeline-item:hover .timeline-content {
        transform: translateX(4px);
      }
      .english-mode .highlight-list li::before,
      .english-mode .skills-list li::before,
      .english-mode .achievements-group li::before,
      .english-mode .section-card ul:not(.fa-ul)>li::before {
        right: auto !important;
        left: 0.55em !important;
      }
      .english-mode .highlight-list li,
      .english-mode .skills-list li,
      .english-mode .achievements-group li,
      .english-mode .section-card ul:not(.fa-ul)>li {
        padding-right: 0 !important;
        padding-left: 1.55em !important;
      }

      @media (max-width: 960.98px) {
        .english-mode .main-wrapper {
          margin-left: 0 !important;
          width: 100% !important;
        }
        .english-mode .glass-wrap {
          left: 7px !important;
          right: 7px !important;
        }
        .english-mode .sadidi-tools {
          right: max(16px, env(safe-area-inset-right, 0px)) !important;
          left: auto !important;
        }
        .english-mode .sadidi-tools-toggle {
          right: 0 !important;
          left: auto !important;
        }
        .english-mode #backToTop,
        .english-mode #readAloudBtn,
        .english-mode #chatToggleBtn {
          right: max(16px, env(safe-area-inset-right, 0px)) !important;
          left: auto !important;
        }
      }


      .sadidi-toast {
        position: fixed;
        left: 50%;
        bottom: 24px;
        transform: translate(-50%, 18px);
        opacity: 0;
        pointer-events: none;
        z-index: 10000;
        background: var(--paper-card);
        color: var(--ink);
        border: 1px solid var(--gold);
        padding: 9px 15px;
        border-radius: 999px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
        font: 500 .8rem Vazirmatn, sans-serif;
        transition: .22s ease
      }
      .sadidi-toast.show {
        opacity: 1;
        transform: translate(-50%, 0)
      }
      .sadidi-search-item {
        display: block;
        width: 100%;
        text-align: right;
        background: var(--paper-card);
        color: var(--ink);
        border: 1px solid var(--line);
        padding: 12px 14px;
        border-radius: 12px;
        margin: 7px 0;
        text-decoration: none;
        cursor: pointer;
        font: inherit
      }
      .sadidi-search-item:hover {
        border-color: var(--gold);
        transform: translateY(-1px)
      }
      .sadidi-search-item strong {
        display: block;
        font-size: .88rem;
        margin-bottom: 4px
      }
      .sadidi-search-item span {
        display: block;
        color: var(--ink-soft);
        font-size: .72rem;
        line-height: 1.7
      }
      .sadidi-search-empty {
        padding: 24px;
        text-align: center;
        color: var(--ink-soft)
      }
      .english-mode .sadidi-search-item {
        text-align: left
      }
      .reading-exit {
        display: none
      }
      .reading-exit.show {
        display: inline-flex
      }
      .feature-focus {
        animation: featureFocus 1.2s ease
      }
      @keyframes featureFocus {
        0%,
        100% {
          box-shadow: 0 0 0 0 transparent
        }
        30%,
        70% {
          box-shadow: 0 0 0 4px rgba(184, 146, 63, .22)
        }
      }
      .english-mode .mobile-menu-list,
      .english-mode .hero-content,
      .english-mode .content-body,
      .english-mode .site-footer,
      .english-mode .section-card,
      .english-mode .sadidi-search-item {
        direction: ltr;
        text-align: left;
      }
      .english-mode .hero-content .title {
        text-align: left;
        margin-inline-start: 0;
        margin-inline-end: auto;
      }
      .english-mode .section-title:after {
        left: 0;
        right: auto;
        background: linear-gradient(90deg, var(--gold), transparent);
      }
      .english-mode .hero-rule {
        margin-left: 0;
        margin-right: auto;
      }
