/*
Theme Name: Structure IND
Theme URI: https://mehdinikkhou.ir
Author: Mehdi Nikkhou
Author URI: https://mehdinikkhou.ir
Description: قالب رسمی سایت Structure IND — اندیکاتور تحلیل ساختار بازار برای متاتریدر ۵
Version: 1.0.8
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: structure-ind
Tags: rtl-language-support, dark, light, custom-menu, custom-logo, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background-color: #060a14;
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ============================================================
   CUSTOM UTILITIES (from index.css)
   ============================================================ */

.font-vazir { font-family: 'Vazirmatn', sans-serif; }

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glow-emerald { box-shadow: 0 0 40px rgba(16, 185, 129, 0.15); }

.glow-gold    { box-shadow: 0 0 40px rgba(245, 158, 11, 0.15); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

@keyframes chart-line {
  0%   { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float           { animation: float 5s ease-in-out infinite; }

.animate-float-delayed   { animation: float-delayed 6s ease-in-out infinite; }

.animate-pulse-glow      { animation: pulse-glow 4s ease-in-out infinite; }

.animate-fade-in-up      { animation: fade-in-up 0.7s ease-out both; }

.animate-chart-line {
  stroke-dasharray: 1000;
  animation: chart-line 3s ease-in-out forwards;
}

.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-track { background: #060a14; }

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */

.alignright   { float: right; margin: 0 0 1em 1em; }

.alignleft    { float: left;  margin: 0 1em 1em 0; }

.aligncenter  { display: block; margin: 1em auto; }

.wp-caption    { max-width: 100%; }

.wp-caption-text { font-size: 0.85em; color: #94a3b8; text-align: center; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Selection */

::selection { background: #10b981; color: #060a14; }

/* ============================================================
   RTL helpers
   ============================================================ */

[dir="ltr"] { direction: ltr; text-align: left; }

/* ============================================================
   WordPress admin bar spacing
   ============================================================ */

.admin-bar header.fixed { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar header.fixed { top: 46px; }
}

/* Icons visibility */

html.sind-light #sind-icon-moon { display: none !important; }

html:not(.sind-light) #sind-icon-sun { display: none !important; }

/* ============================================================
   POST CONTENT (.sind-content) — تیلویند هدینگ و لیست را reset می‌کند
   ============================================================ */

.sind-content > * + * { margin-top: 1.25rem; }

.sind-content h2 { color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.5; margin-top: 2.5rem; scroll-margin-top: 6rem; }

.sind-content h3 { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.6; margin-top: 2rem; scroll-margin-top: 6rem; }

.sind-content h4 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; }

.sind-content strong { color: #fff; }

.sind-content a { color: #34d399; text-decoration: underline; text-underline-offset: 3px; }

.sind-content a:hover { color: #6ee7b7; }

.sind-content ul, .sind-content ol { padding-inline-start: 1.5rem; }

.sind-content ul { list-style: disc; }

.sind-content ol { list-style: decimal; }

.sind-content li + li { margin-top: 0.5rem; }

.sind-content blockquote {
    border-inline-start: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.06);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: #e2e8f0;
}

.sind-content code {
    background: rgba(255, 255, 255, 0.08);
    color: #6ee7b7;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.875em;
}

.sind-content pre {
    background: #0a1020;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.sind-content pre code { background: none; padding: 0; color: #e2e8f0; }

.sind-content img { border-radius: 0.75rem; margin-inline: auto; }

.sind-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.9rem; }

.sind-content th, .sind-content td { border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.6rem 0.8rem; text-align: right; }

.sind-content th { background: rgba(255, 255, 255, 0.05); color: #fff; }

.sind-content hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 2rem 0; }

/* ============================================================
   PAGINATION (the_posts_pagination)
   ============================================================ */

.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.page-numbers {
    padding: 0.5rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: all 0.2s;
}

a.page-numbers:hover { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }

.page-numbers.current {
    background: linear-gradient(to left, #10b981, #059669);
    color: #060a14;
    font-weight: 700;
    border-color: transparent;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

html { scroll-padding-top: 5.5rem; }

:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45);
}

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

/* ==================================================================
   MOBILE FIXES — جلوگیری از سرریز افقی و مشکلات نمایشگر موبایل
   (گریدهای Tailwind با پیشوند sm:/md:/lg: خودشان در موبایل تک‌ستونه‌اند؛
    قانون‌های قبلی که همه‌ی گریدها و max-width همه‌ی divها را override می‌کردند حذف شدند)
================================================================== */

html {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100%;
  position: relative;
}

/* هر عنصر گرافیکی نباید از عرض بیرون بزنه */

img, video, iframe, svg, table, canvas { max-width: 100% !important; }

img, video { height: auto; }

/* شکستن متن‌های طولانی (URL، کد، اسم بروکر...) */

p, h1, h2, h3, h4, h5, h6, li, td, th, span, div, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

pre, code {
  overflow-x: auto;
  word-wrap: break-word;
  max-width: 100%;
}

.grid, .flex { min-width: 0; }

/* هدر — کاهش پدینگ در موبایل */

@media (max-width: 1024px) {
  #sind-header > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 640px) {
  #sind-header > div {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* پدینگ اصلی صفحات کمتر */
  main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* کارت‌های بزرگ، پدینگ کمتر */
  .glass-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* سایدبار پورتال — تمام عرض بشه */
  .portal-sidebar { position: static !important; }
}

/* هدر در موبایل دقیقاً چسبیده به لبه */

@media (max-width: 1024px) {
  #sind-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #sind-header > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}

/* دکمه‌ی تغییر تم در موبایل — کنار دکمه منو */

@media (max-width: 1023px) {
  #sind-theme-toggle {
    order: 2;
    margin-right: auto;
    margin-left: 8px;
  }

  #sind-mobile-toggle { order: 3; }
}

/* ============================================================
   نوار تب پورتال در موبایل
   ============================================================ */

.sind-portal-tabs { top: 4rem; margin-bottom: 1.5rem; }

.admin-bar .sind-portal-tabs { top: calc(4rem + 32px); }

@media screen and (max-width: 782px) {
  .admin-bar .sind-portal-tabs { top: calc(4rem + 46px); }
}

/* کارت نوار تب کم‌پدینگ بماند (قانون موبایل glass-card پدینگ جانبی ۱۶px می‌گذارد) */

.sind-portal-tabs .glass-card { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }

.sind-portal-tabs-scroll { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }

.sind-portal-tabs-scroll::-webkit-scrollbar { display: none; }

.sind-hero {
  --h-panel: #0b1222;
  --h-text: #f8fafc;
  --h-muted: #94a3b8;
  --h-line: rgba(255, 255, 255, 0.08);
  --h-grid: rgba(148, 163, 184, 0.10);
  --h-up: #10b981;
  --h-down: #fb7185;
  --h-gold: #f59e0b;
  --h-struct: #e2e8f0;
  --h-link: #34d399;
  --h-ghost-b: rgba(255, 255, 255, 0.16);
  --h-ghost-h: rgba(255, 255, 255, 0.05);

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100vh, 56rem);
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

/* پس‌زمینه: شبکه‌ی چارت که به لبه‌ها محو می‌شود + یک هاله‌ی سبز پشت نمودار */

.sind-hero .sind-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sind-hero .sind-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--h-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
}

.sind-hero .sind-hero__bg::after {
  content: "";
  position: absolute;
  top: 14%;
  left: -8%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.14), transparent);
}

/* چیدمان: متن (راست) / نمودار (چپ) */

.sind-hero .sind-hero__inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .sind-hero .sind-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.5fr);
    gap: 4rem;
  }
}

/* متن */

.sind-hero .sind-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--h-text);
  text-wrap: balance;
}

.sind-hero .sind-hero__lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--h-muted);
}

.sind-hero .sind-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sind-hero .sind-hero__cta,
.sind-hero .sind-hero__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 0.875rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.sind-hero .sind-hero__cta {
  background: linear-gradient(to left, #10b981, #059669);
  color: #060a14;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.55);
}

.sind-hero .sind-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(16, 185, 129, 0.7);
}

.sind-hero .sind-hero__ghost {
  border: 1px solid var(--h-ghost-b);
  color: var(--h-text);
  font-weight: 700;
}

.sind-hero .sind-hero__ghost:hover {
  background: var(--h-ghost-h);
  border-color: rgba(16, 185, 129, 0.45);
}

.sind-hero .sind-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--h-muted);
}

.sind-hero .sind-hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sind-hero .sind-hero__facts svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--h-up);
}

.sind-hero .sind-hero__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--h-line);
  font-size: 0.875rem;
  color: var(--h-muted);
}

.sind-hero .sind-hero__by img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sind-hero .sind-hero__by strong { color: var(--h-text); font-weight: 700; }

.sind-hero .sind-hero__by a {
  color: var(--h-link);
  text-underline-offset: 3px;
}

.sind-hero .sind-hero__by a:hover { text-decoration: underline; }

/* قاب نمودار — جای تصویر/اسکرین‌شات خروجی اکسپرت */

.sind-hero .sind-hero__frame {
  margin: 0;
  background: var(--h-panel);
  border: 1px solid var(--h-line);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.12), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.sind-hero .sind-hero__bar,
.sind-hero .sind-hero__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--h-muted);
}

.sind-hero .sind-hero__bar { border-bottom: 1px solid var(--h-line); }

.sind-hero .sind-hero__legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  border-top: 1px solid var(--h-line);
}

.sind-hero .sind-hero__plot {
  position: relative;
  aspect-ratio: 8 / 5;
}

.sind-hero .sind-hero__plot > svg,
.sind-hero .sind-hero__plot > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sind-hero .sh-sw {
  display: inline-block;
  width: 1.4rem;
  height: 0;
  margin-inline-end: 0.5rem;
  vertical-align: middle;
  border-top: 2px solid var(--h-struct);
}

.sind-hero .sh-sw--break { border-top: 2px dashed var(--h-gold); }

/* اجزای SVG نمودار نمونه */

.sind-hero .sh-grid line { stroke: var(--h-grid); stroke-width: 1; }

.sind-hero .sh-up line { stroke: var(--h-up); stroke-width: 1.3; }

.sind-hero .sh-up rect { fill: var(--h-up); }

.sind-hero .sh-dn line { stroke: var(--h-down); stroke-width: 1.3; }

.sind-hero .sh-dn rect { fill: var(--h-down); }

.sind-hero .sh-candles { opacity: 0.85; }

.sind-hero .sh-struct {
  fill: none;
  stroke: var(--h-struct);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sind-hero-draw 2.6s linear 0.5s forwards;
}

.sind-hero .sh-pt { fill: var(--h-panel); stroke: var(--h-struct); stroke-width: 1.6; }

.sind-hero .sh-break { fill: none; stroke: var(--h-gold); stroke-width: 1.5; stroke-dasharray: 5 4; }

.sind-hero .sh-break-dot { fill: var(--h-gold); }

.sind-hero .sh-tag rect { fill: var(--h-panel); stroke: var(--h-gold); stroke-width: 1.2; }

.sind-hero .sh-tag text {
  fill: var(--h-gold);
  font-size: 16px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.sind-hero .sh-lbl {
  fill: var(--h-muted);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

/* تنها لحظه‌ی انیمیشنی هیرو: خط ساختار کشیده می‌شود و برچسب‌ها به ترتیب می‌آیند */

.sind-hero .sh-appear {
  opacity: 0;
  animation: sind-hero-pop 0.5s ease-out forwards;
  animation-delay: var(--d, 1s);
}

@keyframes sind-hero-draw { to { stroke-dashoffset: 0; } }

@keyframes sind-hero-pop  { to { opacity: 1; } }

/* موبایل */

@media (max-width: 640px) {
  .sind-hero { padding: 6.5rem 1rem 3.5rem; min-height: 0; }
  .sind-hero .sind-hero__lead { font-size: 1rem; }
  .sind-hero .sind-hero__actions > a { flex: 1 1 100%; }
  .sind-hero .sh-lbl { display: none; }
}

/* ============================================================
   بزرگ‌نمایی نمودار هیرو (Lightbox)
   ============================================================ */

.sind-hero__zoom {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(11, 18, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.sind-hero__zoom:hover {
    background: rgba(16, 185, 129, 0.9);
    border-color: rgba(16, 185, 129, 0.6);
    transform: scale(1.05);
}

.sind-chart-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    overflow: visible;
}

.sind-chart-modal::backdrop {
    background: rgba(6, 10, 20, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sind-chart-modal img {
    max-width: 95vw;
    max-height: 90vh;
    display: block;
    border-radius: 10px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.sind-chart-modal__close {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.2s;
}

.sind-chart-modal__close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: transparent;
}

@media (max-width: 640px) {
    .sind-hero__zoom { top: 8px; left: 8px; width: 34px; height: 34px; }
}

/* ============================================================
   بخش پروژه شاخص — نسخه گرافیکی مینیمال
   ============================================================ */

.sind-featured {
    position: relative;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(11, 18, 34, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
}

/* هاله سبز ملایم گوشه بالا-راست */

.sind-featured::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.14), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* شبکه نقطه‌ای محو در پس‌زمینه */

.sind-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.sind-featured__title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.4rem, 1.4rem + 3.2vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #34d399 0%, #f8fafc 55%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.sind-featured__lead {
    margin: 0 0 2rem;
    max-width: 42rem;
    font-size: 1.08rem;
    line-height: 2;
    color: #94a3b8;
}

.sind-featured__points {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 2.25rem;
    padding: 0;
    list-style: none;
}

.sind-featured__points li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.7;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.sind-featured__points li:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.06);
    transform: translateX(-2px);
}

.sind-featured__check {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    color: #34d399;
}

.sind-featured__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sind-featured__btn-primary,
.sind-featured__btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sind-featured__btn-primary {
    background: linear-gradient(to left, #10b981, #059669);
    color: #060a14;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.5);
}

.sind-featured__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(16, 185, 129, 0.75);
}

.sind-featured__btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.sind-featured__btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.4);
}

/* موبایل */

@media (max-width: 640px) {
    .sind-featured { padding: 2rem 1.25rem; border-radius: 1.25rem; }
    .sind-featured__title { font-size: 2.2rem; }
    .sind-featured__lead { font-size: 1rem; }
}

/* ============================================================
   LIGHT THEME (v2) — پالت یکپارچه تم روشن
   تمام رنگ‌های تم روشن از متغیرهای --l-* می‌آیند.
   برای تغییر رنگ‌بندی فقط همین متغیرها را عوض کنید.
   ============================================================ */
html.sind-light {
  color-scheme: light;

  --l-bg: #f4f7fb;            /* پس‌زمینه‌ی صفحه */
  --l-surface: #ffffff;       /* کارت، هدر، سایدبار */
  --l-surface-2: #eef2f7;     /* هاور، اینپوت، هدر جدول، فوتر */
  --l-surface-3: #e2e8f0;     /* چیپ، هاور قوی */
  --l-border: #e3e8ef;        /* حاشیه‌ی معمولی */
  --l-border-strong: #cbd5e1; /* حاشیه‌ی پررنگ‌تر */

  --l-heading: #0b1222;       /* تیتر (نیوی برند) */
  --l-text: #334155;          /* متن بدنه */
  --l-muted: #5b6b80;         /* متن کم‌رنگ */

  --l-brand: #059669;         /* سبز اصلی */
  --l-brand-deep: #047857;    /* سبز لینک / هاور */
  --l-brand-darker: #065f46;
  --l-brand-tint: rgba(5, 150, 105, 0.08);
  --l-gold: #b45309;

  --l-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -14px rgba(15, 23, 42, 0.14);
  --l-shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 60px -28px rgba(15, 23, 42, 0.28);
}

/* ─── پایه ─── */
html.sind-light body {
  background-color: var(--l-bg) !important;
  color: var(--l-text) !important;
}
html.sind-light ::selection { background: rgba(5, 150, 105, 0.22); color: var(--l-heading); }
html.sind-light :focus-visible { outline-color: var(--l-brand); }
html.sind-light input:focus-visible,
html.sind-light textarea:focus-visible,
html.sind-light select:focus-visible { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.28); }
html.sind-light .wp-caption-text { color: var(--l-muted); }
html.sind-light .shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.04), transparent);
  background-size: 200% 100%;
}

/* اسکرول‌بار */
html.sind-light ::-webkit-scrollbar-track { background: var(--l-surface-2); }
html.sind-light ::-webkit-scrollbar-thumb { background: var(--l-border-strong); }
html.sind-light ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── سطح‌ها (کارت‌ها و پس‌زمینه‌های Tailwind) ─── */
html.sind-light .glass-card {
  background: var(--l-surface) !important;
  border-color: var(--l-border) !important;
  box-shadow: var(--l-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.sind-light .glow-emerald { box-shadow: 0 10px 40px -16px rgba(5, 150, 105, 0.28); }
html.sind-light .glow-gold    { box-shadow: 0 10px 40px -16px rgba(180, 83, 9, 0.22); }

html.sind-light .bg-navy-950 { background-color: var(--l-bg) !important; }
html.sind-light .bg-navy-950\/90 { background-color: rgba(255, 255, 255, 0.85) !important; }
/* ═══════════════════════════════════════════════════════════════
   جعبه کلید لایسنس (bg-navy-950/60) — کارت تیره پریمیوم
   این جعبه در هر دو تم تیره می‌ماند تا کلید لایسنس «متفاوت»
   و «ارزشمند» دیده شود، نه مثل یک فیلد فرم معمولی.
   ═══════════════════════════════════════════════════════════════ */
html.sind-light .bg-navy-950\/50,
html.sind-light .bg-navy-950\/60,
html.sind-light .bg-navy-950\/70,
html.sind-light .bg-navy-950\/80 {
    background: linear-gradient(135deg, #0b1222 0%, #064e3b 100%) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow:
        0 4px 16px -4px rgba(5, 150, 105, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* متن داخل جعبه تیره — سبز روشن بمونه (نه سبز تیره) */
html.sind-light .bg-navy-950\/50 code,
html.sind-light .bg-navy-950\/60 code,
html.sind-light .bg-navy-950\/70 code,
html.sind-light .bg-navy-950\/80 code,
html.sind-light #free-key-code {
    color: #6ee7b7 !important;
}
html.sind-light .bg-navy-900,
html.sind-light .bg-navy-900\/50,
html.sind-light .bg-navy-900\/80,
html.sind-light .bg-navy-900\/90,
html.sind-light .bg-navy-900\/95 { background-color: var(--l-surface) !important; }
html.sind-light .bg-navy-800,
html.sind-light .bg-navy-800\/50 { background-color: var(--l-surface-2) !important; }

html.sind-light .bg-white\/5  { background-color: var(--l-surface-2) !important; }
html.sind-light .bg-white\/10 { background-color: var(--l-surface-3) !important; }

/* حاشیه‌ها */
html.sind-light .border-white\/5  { border-color: var(--l-border) !important; }
html.sind-light .border-white\/10 { border-color: #d5dde8 !important; }

/* ─── متن‌ها ─── */
html.sind-light .text-white,
html.sind-light .text-navy-950 { color: var(--l-heading) !important; }
html.sind-light .text-slate-50,
html.sind-light .text-slate-100,
html.sind-light .text-slate-200 { color: #1e293b !important; }
html.sind-light .text-slate-300 { color: #334155 !important; }
html.sind-light .text-slate-400 { color: #475569 !important; }
html.sind-light .text-slate-500,
html.sind-light .text-slate-600 { color: var(--l-muted) !important; }
html.sind-light .text-slate-700 { color: #334155 !important; }

/* سفید روی پس‌زمینه‌ی رنگی (بنر کمپین، بج‌ها) سفید بماند */
html.sind-light .text-white[class*="from-"],
html.sind-light .text-white.bg-emerald-500,
html.sind-light .text-white.bg-emerald-600,
html.sind-light .text-white.bg-purple-500,
html.sind-light .text-white.bg-red-500,
html.sind-light .text-white.bg-blue-500 { color: #ffffff !important; }
html.sind-light .text-white.bg-emerald-500 { background-color: var(--l-brand) !important; }

/* سبز و طلایی و رنگ‌های وضعیت روی زمینه‌ی روشن تیره‌تر */
html.sind-light .text-emerald-300,
html.sind-light .text-emerald-400 { color: var(--l-brand-deep) !important; }
html.sind-light .text-emerald-500 { color: var(--l-brand) !important; }
html.sind-light .text-gold-300,
html.sind-light .text-gold-400,
html.sind-light .text-gold-500 { color: var(--l-gold) !important; }
html.sind-light .text-red-300,    html.sind-light .text-red-400    { color: #b91c1c !important; }
html.sind-light .text-amber-300,  html.sind-light .text-amber-400  { color: #b45309 !important; }
html.sind-light .text-blue-300,   html.sind-light .text-blue-400   { color: #1d4ed8 !important; }
html.sind-light .text-cyan-300,   html.sind-light .text-cyan-400   { color: #0e7490 !important; }
html.sind-light .text-pink-300,   html.sind-light .text-pink-400   { color: #be185d !important; }
html.sind-light .text-purple-300, html.sind-light .text-purple-400 { color: #7e22ce !important; }
html.sind-light .text-sky-300,    html.sind-light .text-sky-400    { color: #0369a1 !important; }

html.sind-light .text-gradient-emerald {
  background: linear-gradient(135deg, #047857, #059669, #065f46) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html.sind-light .text-gradient-gold {
  background: linear-gradient(135deg, #b45309, #d97706, #92400e) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* هاور متن‌ها (!important روی رنگ پایه، هاور تیلویند را می‌خورد) */
html.sind-light .hover\:text-emerald-300:hover,
html.sind-light .hover\:text-emerald-400:hover { color: var(--l-brand-deep) !important; }
html.sind-light .hover\:text-red-400:hover    { color: #b91c1c !important; }
html.sind-light .hover\:text-amber-400:hover  { color: #b45309 !important; }
html.sind-light .hover\:text-blue-400:hover   { color: #1d4ed8 !important; }
html.sind-light .hover\:text-cyan-400:hover   { color: #0e7490 !important; }
html.sind-light .hover\:text-pink-400:hover   { color: #be185d !important; }
html.sind-light .hover\:text-purple-400:hover { color: #7e22ce !important; }
html.sind-light .hover\:text-sky-400:hover    { color: #0369a1 !important; }
html.sind-light .hover\:text-slate-200:hover  { color: #1e293b !important; }
html.sind-light .hover\:text-slate-300:hover  { color: #334155 !important; }
html.sind-light .hover\:text-slate-400:hover  { color: #475569 !important; }

/* هاور پس‌زمینه‌ها */
html.sind-light .hover\:bg-white\/5:hover   { background-color: var(--l-surface-2) !important; }
html.sind-light .hover\:bg-white\/10:hover  { background-color: var(--l-surface-3) !important; }
html.sind-light .hover\:bg-emerald-500\/10:hover { background-color: rgba(5, 150, 105, 0.10) !important; }
html.sind-light .hover\:bg-emerald-500\/15:hover { background-color: rgba(5, 150, 105, 0.14) !important; }
html.sind-light .hover\:bg-red-500\/10:hover    { background-color: rgba(239, 68, 68, 0.10) !important; }
html.sind-light .hover\:bg-red-500\/20:hover    { background-color: rgba(239, 68, 68, 0.14) !important; }
html.sind-light .hover\:bg-sky-500\/15:hover    { background-color: rgba(14, 165, 233, 0.12) !important; }
html.sind-light .hover\:bg-cyan-500\/15:hover   { background-color: rgba(6, 182, 212, 0.12) !important; }
html.sind-light .hover\:bg-pink-500\/15:hover   { background-color: rgba(236, 72, 153, 0.12) !important; }
html.sind-light .hover\:bg-slate-400\/15:hover  { background-color: rgba(148, 163, 184, 0.14) !important; }

/* ─── باکس‌های رنگی (موفقیت، خطا، هشدار، اطلاعات) ─── */
html.sind-light .bg-emerald-500\/5  { background-color: rgba(5, 150, 105, 0.06) !important; }
html.sind-light .bg-emerald-500\/10 { background-color: rgba(5, 150, 105, 0.08) !important; }
html.sind-light .bg-emerald-500\/15 { background-color: rgba(5, 150, 105, 0.13) !important; }
html.sind-light .bg-red-500\/5      { background-color: rgba(239, 68, 68, 0.06) !important; }
html.sind-light .bg-red-500\/10     { background-color: rgba(239, 68, 68, 0.08) !important; }
html.sind-light .bg-red-500\/15     { background-color: rgba(239, 68, 68, 0.13) !important; }
html.sind-light .bg-amber-500\/5    { background-color: rgba(245, 158, 11, 0.06) !important; }
html.sind-light .bg-amber-500\/10   { background-color: rgba(245, 158, 11, 0.09) !important; }
html.sind-light .bg-amber-500\/15   { background-color: rgba(245, 158, 11, 0.13) !important; }
html.sind-light .bg-blue-500\/5     { background-color: rgba(59, 130, 246, 0.06) !important; }
html.sind-light .bg-blue-500\/15    { background-color: rgba(59, 130, 246, 0.10) !important; }
html.sind-light .bg-cyan-500\/15    { background-color: rgba(6, 182, 212, 0.10) !important; }
html.sind-light .bg-purple-500\/15  { background-color: rgba(168, 85, 247, 0.10) !important; }
html.sind-light .bg-slate-500\/15   { background-color: rgba(100, 116, 139, 0.10) !important; }

html.sind-light .border-emerald-500\/10 { border-color: rgba(5, 150, 105, 0.20) !important; }
html.sind-light .border-emerald-500\/20 { border-color: rgba(5, 150, 105, 0.28) !important; }
html.sind-light .border-emerald-500\/30 { border-color: rgba(5, 150, 105, 0.38) !important; }
html.sind-light .border-red-500\/20     { border-color: rgba(239, 68, 68, 0.28) !important; }
html.sind-light .border-red-500\/30     { border-color: rgba(239, 68, 68, 0.38) !important; }
html.sind-light .border-amber-500\/20   { border-color: rgba(245, 158, 11, 0.28) !important; }
html.sind-light .border-amber-500\/30   { border-color: rgba(245, 158, 11, 0.38) !important; }
html.sind-light .border-blue-500\/20    { border-color: rgba(59, 130, 246, 0.28) !important; }

/* ─── دکمه‌های سبز: متن سفید روی سبز عمیق‌تر ─── */
html.sind-light .bg-emerald-500.text-navy-950,
html.sind-light .bg-emerald-400.text-navy-950 {
  background-color: var(--l-brand) !important;
  color: #ffffff !important;
}
html.sind-light .bg-emerald-500.text-navy-950:hover,
html.sind-light .bg-emerald-400.text-navy-950:hover { background-color: var(--l-brand-deep) !important; }
html.sind-light [class*="from-emerald-"].text-navy-950 {
  background-image: linear-gradient(to left, #059669, #047857) !important;
  color: #ffffff !important;
}

/* ─── هدر ─── */
html.sind-light #sind-header {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-bottom-color: var(--l-border) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
html.sind-light #sind-header a.text-slate-300:hover,
html.sind-light #sind-theme-toggle:hover,
html.sind-light #sind-mobile-toggle:hover { color: var(--l-brand-deep) !important; }

/* ─── فوتر ─── */
html.sind-light footer,
html.sind-light footer[class] {
  background-color: var(--l-surface-2) !important;
  border-top-color: var(--l-border) !important;
}

/* ─── پورتال ─── */
html.sind-light .portal-sidebar {
  background-color: var(--l-surface);
  border-color: var(--l-border);
  box-shadow: var(--l-shadow);
}

/* ─── فرم‌ها ─── */
html.sind-light input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([type="color"]),
html.sind-light textarea,
html.sind-light select {
  background-color: #f8fafc !important;
  border-color: var(--l-border-strong) !important;
  color: var(--l-heading) !important;
}
html.sind-light input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([type="color"]):focus,
html.sind-light textarea:focus,
html.sind-light select:focus {
  background-color: #ffffff !important;
  border-color: var(--l-brand) !important;
}
html.sind-light input::placeholder,
html.sind-light textarea::placeholder { color: #94a3b8 !important; }
html.sind-light select option { background: #ffffff; color: var(--l-heading); }

/* ─── محتوای نوشته‌ها ─── */
html.sind-light .sind-content h2,
html.sind-light .sind-content h3,
html.sind-light .sind-content h4,
html.sind-light .sind-content strong,
html.sind-light .sind-content th { color: var(--l-heading); }
html.sind-light .sind-content a { color: var(--l-brand-deep); }
html.sind-light .sind-content a:hover { color: var(--l-brand-darker) !important; }
html.sind-light .sind-content blockquote {
  color: var(--l-text);
  background: rgba(5, 150, 105, 0.07);
  border-inline-start-color: var(--l-brand);
}
html.sind-light .sind-content code { background: var(--l-surface-2); color: var(--l-brand-deep); }
html.sind-light .sind-content pre { background: #f1f5f9; border-color: #d5dde8; }
html.sind-light .sind-content pre code { background: none; color: var(--l-heading); }
html.sind-light .sind-content th,
html.sind-light .sind-content td { border-color: var(--l-border); }
html.sind-light .sind-content th { background: var(--l-surface-2); }
html.sind-light .sind-content hr { border-top-color: var(--l-border); }

/* ─── صفحه‌بندی ─── */
html.sind-light .page-numbers {
  background: var(--l-surface);
  border-color: #d5dde8;
  color: var(--l-text);
}
html.sind-light a.page-numbers:hover {
  border-color: rgba(5, 150, 105, 0.45);
  color: var(--l-brand-deep);
  background: var(--l-brand-tint);
}
html.sind-light .page-numbers.current {
  background: linear-gradient(to left, #059669, #047857);
  color: #ffffff;
  border-color: transparent;
}

/* ─── هیرو ─── */
html.sind-light .sind-hero {
  --h-panel: #ffffff;
  --h-text: var(--l-heading);
  --h-muted: var(--l-muted);
  --h-line: rgba(15, 23, 42, 0.09);
  --h-grid: rgba(15, 23, 42, 0.06);
  --h-up: #059669;
  --h-down: #e11d48;
  --h-gold: #b45309;
  --h-struct: #0b1222;
  --h-link: var(--l-brand-deep);
  --h-ghost-b: var(--l-border-strong);
  --h-ghost-h: var(--l-surface-2);
}
html.sind-light .sind-hero .sind-hero__bg::after {
  background: radial-gradient(closest-side, rgba(5, 150, 105, 0.08), transparent);
}
html.sind-light .sind-hero .sind-hero__cta {
  background: linear-gradient(to left, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 10px 26px -10px rgba(4, 120, 87, 0.55);
}
html.sind-light .sind-hero .sind-hero__cta:hover {
  box-shadow: 0 14px 30px -10px rgba(4, 120, 87, 0.7);
}
html.sind-light .sind-hero .sind-hero__ghost { background: var(--l-surface); }
html.sind-light .sind-hero .sind-hero__ghost:hover { background: var(--l-surface-2); }
html.sind-light .sind-hero .sind-hero__frame { box-shadow: var(--l-shadow-lg); }
html.sind-light .sind-hero .sind-hero__by img { border-color: rgba(5, 150, 105, 0.4); }

/* دکمه‌ی بزرگ‌نمایی نمودار */
html.sind-light .sind-hero__zoom {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--l-border-strong);
  color: var(--l-heading);
}
html.sind-light .sind-hero__zoom:hover {
  background: var(--l-brand);
  border-color: var(--l-brand);
  color: #ffffff;
}

/* ─── بخش پروژه شاخص ─── */
html.sind-light .sind-featured {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, #ffffff 100%);
  border-color: var(--l-border);
  box-shadow: var(--l-shadow);
}
html.sind-light .sind-featured::before {
  background: radial-gradient(closest-side, rgba(5, 150, 105, 0.09), transparent 70%);
}
html.sind-light .sind-featured::after {
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}
html.sind-light .sind-featured__title {
  background: linear-gradient(135deg, #047857 0%, #0b1222 55%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.sind-light .sind-featured__lead { color: #475569; }
html.sind-light .sind-featured__points li {
  background: var(--l-bg);
  border-color: var(--l-border);
  color: #1e293b;
}
html.sind-light .sind-featured__points li:hover {
  border-color: rgba(5, 150, 105, 0.4);
  background: var(--l-brand-tint);
}
html.sind-light .sind-featured__check { color: var(--l-brand); }
html.sind-light .sind-featured__btn-primary {
  background: linear-gradient(to left, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 10px 26px -10px rgba(4, 120, 87, 0.55);
}
html.sind-light .sind-featured__btn-primary:hover {
  box-shadow: 0 14px 30px -10px rgba(4, 120, 87, 0.7);
}
html.sind-light .sind-featured__btn-ghost {
  background: var(--l-surface);
  border-color: var(--l-border-strong);
  color: var(--l-heading);
}
html.sind-light .sind-featured__btn-ghost:hover {
  background: var(--l-brand-tint);
  border-color: rgba(5, 150, 105, 0.45);
}

/* ============================================================
   DOCS PAGE — فهرست ثابت، ناوبری موبایل و اندازه‌ی عکس‌ها
   (صفحه‌ی «راهنما» — page-docs.php)
   ============================================================ */

/* فهرست کناری دسکتاپ: ثابت می‌ماند و با اسکرول جابه‌جا نمی‌شود */
.sind-toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.admin-bar .sind-toc {
  top: calc(5.5rem + 32px);
  max-height: calc(100vh - 7rem - 32px);
}
.sind-toc__title {
  margin: 0 0 0.75rem;
  padding-inline: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
}
.sind-toc__group {
  margin: 1rem 0 0.3rem;
  padding-inline: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}
.sind-toc nav > .sind-toc__group:first-child { margin-top: 0; }
.sind-toc a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border-inline-start: 2px solid transparent;
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.sind-toc a:hover { color: #34d399; background: rgba(255, 255, 255, 0.04); }
.sind-toc a.is-active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-inline-start-color: #10b981;
  font-weight: 700;
}

/* ناوبری موبایل: نوار چسبان با دکمه‌ی هر بخش */
.sind-docs-nav {
  position: sticky;
  top: 4.25rem;
  z-index: 30;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(11, 18, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.admin-bar .sind-docs-nav { top: calc(4.25rem + 32px); }
@media (max-width: 782px) { .admin-bar .sind-docs-nav { top: calc(4.25rem + 46px); } }
.sind-docs-nav__scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sind-docs-nav__scroll::-webkit-scrollbar { display: none; }
.sind-docs-nav a {
  flex: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.sind-docs-nav a.is-active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

/* عکس‌های راهنما: اندازه‌ی کنترل‌شده + بزرگ‌نمایی با کلیک */
.docs-shot { align-self: flex-start; width: 100%; }
.docs-shot img { cursor: zoom-in; }
.docs-shot--portrait { max-width: 15rem; }  /* عکس عمودی (منوی File) */
.docs-shot--sm       { max-width: 21rem; }  /* مرحله‌ی ۴: رفرش Navigator */
.docs-shot--md       { max-width: 29rem; }  /* مرحله‌ی ۵: اجرا روی چارت */
#sind-docs-lightbox img { max-width: 95vw !important; max-height: 90vh; width: auto; }

/* تم روشن */
html.sind-light .sind-toc__title { color: var(--l-heading); }
html.sind-light .sind-toc__group { color: var(--l-muted); }
html.sind-light .sind-toc a { color: #475569; }
html.sind-light .sind-toc a:hover { color: var(--l-brand-deep); background: var(--l-surface-2); }
html.sind-light .sind-toc a.is-active {
  color: var(--l-brand-deep);
  background: var(--l-brand-tint);
  border-inline-start-color: var(--l-brand);
}
html.sind-light .sind-docs-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--l-border);
  box-shadow: var(--l-shadow);
}
html.sind-light .sind-docs-nav a { background: var(--l-surface-2); color: #475569; }
html.sind-light .sind-docs-nav a.is-active {
  color: var(--l-brand-deep);
  background: var(--l-brand-tint);
  border-color: rgba(5, 150, 105, 0.35);
}
/* ============================================================
   صفحه محصول — نوار ناوبری چسبان + کولاپس
   ============================================================ */

/* ─── Scroll offset برای لنگرها ─── */
#product-intro,
#features,
#pricing,
#structures,
#docs-cta,
#faq {
    scroll-margin-top: 5rem;
}

/* ─── نوار ناوبری چسبان ─── */
.sind-subnav {
    position: sticky;
    top: 5rem;
    z-index: 40;
    background: rgba(6, 10, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
@media (max-width: 1023px) {
    .sind-subnav { top: 4.5rem; }
}

.sind-subnav__scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}
.sind-subnav__scroll::-webkit-scrollbar { display: none; }

.sind-subnav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.95rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.sind-subnav__link:hover {
    color: #34d399;
    background: rgba(255, 255, 255, 0.05);
}

.sind-subnav__link--primary {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 700;
}
.sind-subnav__link--primary:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

/* ─── کولاپس (بخش‌های طولانی) ─── */
.sind-collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.sind-collapsible::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, #060a14 10%, rgba(6, 10, 20, 0) 100%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.sind-collapsible.is-expanded::after {
    opacity: 0;
}

.sind-collapsible__toggle {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}
.sind-collapsible__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.sind-collapsible__btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}
.sind-collapsible__btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s;
}
.sind-collapsible.is-expanded .sind-collapsible__btn svg {
    transform: rotate(180deg);
}

/* ─── تم روشن ─── */
html.sind-light .sind-subnav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #e2e8f0;
    border-top-color: #f1f5f9;
}
html.sind-light .sind-subnav__link {
    color: #64748b;
}
html.sind-light .sind-subnav__link:hover {
    color: #047857;
    background: #f1f5f9;
}
html.sind-light .sind-subnav__link--primary {
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}
html.sind-light .sind-subnav__link--primary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #065f46;
}
html.sind-light .sind-collapsible::after {
    background: linear-gradient(to top, #f8fafc 10%, rgba(248, 250, 252, 0) 100%);
}
html.sind-light .sind-collapsible__btn {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}
html.sind-light .sind-collapsible__btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
}