/* ============================================================
       نسخهٔ اصلاح‌شده – طراحی مدرن ایرانی‌پسند، فرم‌های گرد و ریسپانسیو پیشرفته
       ============================================================ */

    /* ----- متغیرهای اصلی سیستم ----- */
    :root {
      --primary: #059669;
      --primary-dark: #047857;
      --primary-light: #34d399;
      --primary-gradient: linear-gradient(135deg, #059669, #10b981);
      --primary-glow: rgba(5, 150, 105, 0.15);
      --bg: #0b0f19;
      --surface: #121826;
      --surface-card: #1a2333;
      --text: #f8fafc;
      --text-light: #cbd5e1;
      --text-muted: #64748b;
      --border: #243249;
      
      /* نرمی و انعطاف منطبق بر سلیقه کاربر ایرانی */
      --radius-lg: 20px;
      --radius-md: 14px;
      --radius-sm: 8px;
      
      /* سایه‌های نرم و عمقی جایگزین خطوط خشن */
      --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
      --shadow-hover: 0 20px 30px -10px rgba(5, 150, 105, 0.25);
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] {
      --bg: #f4f7fa;
      --surface: #ffffff;
      --surface-card: #f8fafc;
      --text: #0f172a;
      --text-light: #334155;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
      --shadow-hover: 0 20px 30px -10px rgba(5, 150, 105, 0.15);
    }

    /* پالت‌های رنگی داینامیک */
    [data-color="blue"] { --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #60a5fa; --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6); --primary-glow: rgba(37,99,235,0.15); }
    [data-color="emerald"] { --primary: #059669; --primary-dark: #047857; --primary-light: #34d399; --primary-gradient: linear-gradient(135deg, #059669, #10b981); --primary-glow: rgba(5,150,105,0.15); }
    [data-color="purple"] { --primary: #7c3aed; --primary-dark: #6d28d9; --primary-light: #a78bfa; --primary-gradient: linear-gradient(135deg, #7c3aed, #8b5cf6); --primary-glow: rgba(124,58,237,0.15); }
    [data-color="amber"] { --primary: #d97706; --primary-dark: #b45309; --primary-light: #fbbf24; --primary-gradient: linear-gradient(135deg, #d97706, #f59e0b); --primary-glow: rgba(217,119,6,0.15); }
    [data-color="rose"] { --primary: #e11d48; --primary-dark: #be123c; --primary-light: #fb7185; --primary-gradient: linear-gradient(135deg, #e11d48, #f43f5e); --primary-glow: rgba(225,29,72,0.15); }

    /* ----- تنظیمات ساختاری ----- */
    * { margin:0; padding:0; box-sizing:border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Vazirmatn', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.8;
      min-height: 100vh;
      padding-bottom: 7.5rem;
      transition: background 0.3s, color 0.3s;
    }
    
    .container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

    /* ----- هدر اصلی بالا باریک و مدرن ----- */
    .top-utility-bar {
      background: rgba(18, 24, 38, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 1rem 0;
      position: sticky;
      top: 0;
      z-index: 1100;
    }
    [data-theme="light"] .top-utility-bar { background: rgba(255, 255, 255, 0.85); }
    
    .utility-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
    .brand-logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
    .brand-logo span { color: var(--text); }
    .utility-actions { display: flex; gap: 0.6rem; }

    .util-btn {
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: var(--text);
      width: 42px; height: 42px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1rem; border-radius: var(--radius-md); transition: var(--transition);
    }
    .util-btn:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

    /* ----- سیستم اختصاصی مگامنو مدرن ----- */
    .top-nav-container {
      display: flex;
      list-style: none;
      gap: 1.8rem;
      align-items: center;
      margin: 0 1.5rem;
    }
    .top-nav-item {
      position: relative;
      padding: 0.5rem 0;
    }
    .top-nav-link {
      color: var(--text-light);
      text-decoration: none;
      font-weight: 700;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      transition: var(--transition);
    }
    .top-nav-link i {
      font-size: 0.8rem;
      transition: transform 0.3s;
    }
    .top-nav-link:hover, .top-nav-item:hover .top-nav-link {
      color: var(--primary);
    }
    .top-nav-item:hover .top-nav-link i {
      transform: rotate(180deg);
    }
    
    /* پنل اصلی مگامنو */
    .megamenu-panel {
      position: absolute;
      top: 100%;
      right: -120px;
      width: 720px;
      background: rgba(18, 24, 38, 0.95);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-hover);
      padding: 2rem;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      opacity: 0;
      visibility: hidden;
      transform: translateY(15px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1200;
    }
    [data-theme="light"] .megamenu-panel {
      background: rgba(255, 255, 255, 0.95);
    }
    .top-nav-item:hover .megamenu-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(8px);
    }
    .megamenu-column h4 {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 1rem;
      border-bottom: 1px dashed var(--border);
      padding-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .megamenu-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .megamenu-links li a {
      color: var(--text-light);
      text-decoration: none;
      font-size: 0.88rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.6rem;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: var(--transition);
    }
    .megamenu-links li a:hover {
      background: var(--primary-glow);
      color: var(--primary);
      padding-right: 12px;
    }

    /* ----- دک ناوبری معلق پایین (طراحی کپسولی نرم) ----- */
    .dock-navigation {
      position: fixed;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(18, 24, 38, 0.8);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      padding: 0.5rem;
      border-radius: 30px;
      z-index: 1000;
      box-shadow: var(--shadow-md);
    }
    [data-theme="light"] .dock-navigation { background: rgba(255, 255, 255, 0.8); }
    
    .dock-links { display: flex; list-style: none; gap: 0.3rem; align-items: center; justify-content: space-around; }
    .dock-item {
      color: var(--text-light);
      font-weight: 700;
      font-size: 0.9rem;
      padding: 0.6rem 1.4rem;
      display: flex; align-items: center; gap: 0.5rem;
      text-decoration: none; cursor: pointer; border-radius: 25px; transition: var(--transition);
    }
    .dock-item .step-num { font-size: 0.75rem; opacity: 0.5; font-family: monospace; }
    .dock-item.active {
      background: var(--primary-gradient);
      color: #fff;
      box-shadow: 0 4px 12px var(--primary-glow);
    }
    .dock-item:hover:not(.active) { background: var(--surface-card); color: var(--primary); }

    /* ----- اوورلی جستجو ----- */
    .search-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(11, 15, 25, 0.9); backdrop-filter: blur(8px);
      z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1.5rem;
    }
    .search-overlay.active { display: flex; }
    .search-box {
      background: var(--surface); border: 1px solid var(--border);
      padding: 2rem; max-width: 600px; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    }
    .search-box input {
      width: 100%; padding: 0.9rem 1.4rem; background: var(--bg);
      border: 1px solid var(--border); color: var(--text); outline: none;
      font-family: 'Vazirmatn', sans-serif; font-size: 1rem; border-radius: var(--radius-md);
    }
    .search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--surface); }
    .search-results { margin-top: 1.5rem; max-height: 300px; overflow-y: auto; }
    .search-result-item {
      padding: 0.9rem; border-radius: var(--radius-sm); margin-bottom: 0.4rem; cursor: pointer;
      display: flex; align-items: center; gap: 0.8rem; transition: var(--transition);
    }
    .search-result-item:hover { background: var(--surface-card); color: var(--primary); }
    .result-badge { font-size: 0.75rem; background: var(--primary-glow); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 700; }

    /* ----- بخش هیرو مدرن قرنیه ----- */
    .hero-panel {
      margin-top: 2.5rem; background: var(--surface);
      border: 1px solid var(--border); padding: 3rem 2.5rem;
      border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
      display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; align-items: center;
    }
    .hero-identity { display: flex; justify-content: center; }
    .hero-avatar {
      width: 140px; height: 140px; object-fit: cover;
      border: 4px solid var(--surface-card); border-radius: 50%; box-shadow: var(--shadow-md);
      transition: var(--transition);
    }
    .hero-avatar:hover { transform: scale(1.05); }
    .hero-details h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.5rem; }
    .hero-badge { display: inline-block; background: var(--primary-glow); color: var(--primary); padding: 0.3rem 1rem; font-size: 0.85rem; font-weight: 700; border-radius: 30px; margin-bottom: 1rem; }
    .hero-desc { color: var(--text-light); font-size: 1rem; text-align: justify; margin-bottom: 1.5rem; }
    .social-cluster { display: flex; gap: 0.6rem; }
    .social-icon-btn {
      width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface-card);
      color: var(--text-light); display: flex; align-items: center; justify-content: center;
      text-decoration: none; border-radius: var(--radius-md); transition: var(--transition);
    }
    .social-icon-btn:hover { background: var(--primary-gradient); color: #fff; transform: translateY(-3px); border-color: transparent; }

    /* ----- بخش‌های محتوایی منسجم ----- */
    .brutal-section {
      margin-top: 2.5rem; background: var(--surface);
      border: 1px solid var(--border); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    }
    .brutal-section h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.7rem; }
    .brutal-section h3 i { color: var(--primary); }

    /* مهارت‌ها با نوارهای لغزنده نرم */
    .skills-block { display: flex; flex-direction: column; gap: 1.5rem; }
    .skill-row { background: var(--surface-card); border: 1px solid var(--border); padding: 1.2rem; border-radius: var(--radius-md); }
    .skill-meta { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; }
    .skill-track { background: var(--bg); height: 10px; border-radius: 20px; overflow: hidden; }
    .skill-progress-line { background: var(--primary-gradient); height: 100%; border-radius: 20px; transition: width 1s ease-in-out; }

    /* تایم‌لاین نرم خطی */
    .brutal-timeline { display: flex; flex-direction: column; gap: 2rem; border-right: 3px solid var(--border); padding-right: 1.8rem; margin-right: 0.5rem; }
    .timeline-node { position: relative; }
    .timeline-node::before {
      content: ''; position: absolute; right: calc(-1.8rem - 7px); top: 0.5rem;
      width: 12px; height: 12px; background: var(--primary); border: 3px solid var(--surface); border-radius: 50%;
    }
    .node-date { font-weight: 700; color: var(--primary); font-size: 0.85rem; margin-bottom: 0.2rem; }
    .node-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; }
    .node-text { font-size: 0.95rem; color: var(--text-light); text-align: justify; }

    /* گواهینامه‌ها */
    .certs-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
    .cert-brutal-card {
      background: var(--surface-card); border: 1px solid var(--border); padding: 1.2rem;
      display: flex; gap: 1.2rem; align-items: center; text-decoration: none; color: var(--text);
      border-radius: var(--radius-md); transition: var(--transition);
    }
    .cert-brutal-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
    .cert-img-avatar { width: 55px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); }
    .cert-fallback-icon { width: 55px; height: 55px; background: var(--bg); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 1.3rem; }

    /* ----- روتر صفحات و گرید کارت‌ها ----- */
    .page-route { display: none; width: 100%; }
    .page-route.active-route { display: block; }
    
    .view-header { text-align: center; margin: 3.5rem 0 2.5rem; }
    .view-header h2 { font-size: 2.1rem; font-weight: 800; position: relative; display: inline-block; padding-bottom: 0.5rem; }
    .view-header h2::after { content:''; position:absolute; bottom:0; left:25%; width:50%; height:4px; background:var(--primary-gradient); border-radius:2px; }

    .cards-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
    .matrix-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition);
      display: flex; flex-direction: column; overflow: hidden;
    }
    .matrix-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
    .matrix-thumb { height: 210px; overflow: hidden; position: relative; }
    .matrix-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
    .matrix-card:hover .matrix-thumb img { transform: scale(1.05); }
    .matrix-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(11, 15, 25, 0.75); backdrop-filter: blur(6px); color: #fff; padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 700; border-radius: 20px; }
    .matrix-body { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
    .matrix-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.6rem; }
    .matrix-body p { font-size: 0.9rem; color: var(--text-light); text-align: justify; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.7; }
    .matrix-data { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.2rem; }

    /* سیستم دکمه‌های کپسولی */
    .action-trigger {
      display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
      padding: 0.75rem 1.6rem; background: var(--surface-card); color: var(--text);
      border: 1px solid var(--border); font-weight: 700; font-size: 0.9rem;
      border-radius: var(--radius-md); text-decoration: none; cursor: pointer; transition: var(--transition);
      font-family: 'Vazirmatn', sans-serif;
    }
    .action-trigger:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
    .action-trigger.primary-trigger { background: var(--primary-gradient); color: #fff; border-color: transparent; }
    .action-trigger.primary-trigger:hover { opacity: 0.95; }
    .action-trigger.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; border-radius: var(--radius-sm); }

    /* ----- معماری نمایش داخلی سینگل ----- */
    .workspace-wrapper { background: var(--surface); border: 1px solid var(--border); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 2rem; }
    .hero-showcase-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
    
    .tech-spec-bar {
      display: flex; gap: 1.5rem; flex-wrap: wrap; background: var(--surface-card);
      padding: 1.2rem; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1.5rem; font-size: 0.9rem;
    }
    .tech-spec-bar strong { color: var(--primary); }

    .interaction-panel { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 2.5rem; }
    .interact-btn {
      background: var(--surface-card); border: 1px solid var(--border); color: var(--text-light);
      padding: 0.5rem 1.2rem; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
      border-radius: var(--radius-sm); font-family: 'Vazirmatn', sans-serif; transition: var(--transition);
    }
    .interact-btn:hover { border-color: var(--primary); color: var(--primary); }
    .interact-btn.liked { background: #ef4444; color: #fff; border-color: #ef4444; }

    .grid-gallery-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
    .matrix-gallery-cell { border-radius: var(--radius-sm); border: 1px solid var(--border); height: 110px; overflow: hidden; cursor: pointer; transition: var(--transition); }
    .matrix-gallery-cell:hover { border-color: var(--primary); transform: scale(1.03); }
    .matrix-gallery-cell img { width: 100%; height: 100%; object-fit: cover; }

    /* ----- سیستم دیدگاه‌های بهینه‌سازی شده درختی (ریسپانسیو ۱۰۰٪) ----- */
    .comments-nexus { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
    .nexus-comment-list { display: flex; flex-direction: column; gap: 1.5rem; list-style: none; }
    .nexus-comment-node { background: var(--surface-card); border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius-md); position: relative; }
    .node-meta-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.8rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.6rem; }
    
    /* ساختار درختی منعطف کامنت‌ها برای جلوگیری از مچاله شدن در موبایل */
    .nexus-comment-node .node-replies-tree {
      margin-right: 2rem; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 1.2rem;
      border-right: 2px solid var(--border); padding-right: 1.2rem;
    }
    
    .node-reply-box { max-height: 0; opacity: 0; overflow: hidden; transition: var(--transition); }
    .node-reply-box.active { max-height: 400px; opacity: 1; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }

    /* ----- المان‌های فرم نرم و عریض ----- */
    .field-group { margin-bottom: 1.2rem; }
    .field-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-light); }
    .field-group input, .field-group select, .field-group textarea {
      width: 100%; padding: 0.85rem 1.2rem; background: var(--bg); color: var(--text);
      border: 1px solid var(--border); font-size: 0.95rem; outline: none; font-family: 'Vazirmatn', sans-serif;
      border-radius: var(--radius-md); transition: var(--transition);
    }
    .field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--surface); }
    .fields-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    /* ----- کاستومایزر پالت رنگ شناور کپسولی ----- */
    .color-matrix-panel {
      position: fixed; top: 50%; left: 1.5rem; transform: translateY(-50%);
      background: var(--surface); border: 1px solid var(--border); padding: 0.6rem;
      display: flex; flex-direction: column; gap: 0.5rem; z-index: 1001; border-radius: 30px; box-shadow: var(--shadow-md);
    }
    .color-matrix-dot { width: 20px; height: 20px; cursor: pointer; border-radius: 50%; border: 2px solid transparent; transition: var(--transition); }
    .color-matrix-dot:hover { transform: scale(1.2); }
    .color-matrix-dot.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--primary); }

    /* لایت‌باکس */
    .lightbox-nexus {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(11,15,25,0.95); z-index: 3000; display: none;
      align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
    }
    .lightbox-nexus.active { display: flex; opacity: 1; }
    .lightbox-nexus-img { max-width: 90%; max-height: 85%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
    .lightbox-nexus-close { position: absolute; top: 1.5rem; left: 1.5rem; color: #fff; font-size: 2.2rem; cursor: pointer; }

    /* پروگرس بار مطالعه */
    .scroll-indicator-line { position: fixed; top: 0; left: 0; height: 4px; background: var(--primary-gradient); z-index: 1002; width: 0%; }

    /* توست نوتیفیکیشن */
    #toast-nexus {
      position: fixed; bottom: 6rem; right: 2rem; background: var(--surface);
      color: var(--text); border: 1px solid var(--border); padding: 0.8rem 1.8rem;
      z-index: 9999; font-family: 'Vazirmatn', sans-serif; font-weight: 700; border-radius: var(--radius-md);
      box-shadow: var(--shadow-md); transition: var(--transition); opacity: 0; transform: translateY(10px); pointer-events: none;
    }
    #toast-nexus.show { opacity: 1; transform: translateY(0); }

    /* ----- فوتر منسجم منحنی ----- */
    .footer-nexus { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 6rem; }
    .footer-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
    .footer-col h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--primary); }
    .footer-col p, .footer-col ul li { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
    .footer-col ul li a { color: var(--text-light); text-decoration: none; cursor: pointer; transition: var(--transition); }
    .footer-col ul li a:hover { color: var(--primary); padding-right: 4px; }
    .footer-nexus-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

    /* ============================================================
       سیستم ریسپانسیو فوق پیشرفته و بهینه‌سازی شده برای کل دستگاه‌ها
       ============================================================ */
    @media(max-width: 992px) {
      .hero-panel { padding: 2.5rem 2rem; gap: 2rem; }
      .hero-details h1 { font-size: 2rem; }
      .megamenu-panel { width: 560px; right: -160px; }
    }

    @media(max-width: 768px) {
      .cards-matrix { grid-template-columns: 1fr; }

      body { padding-bottom: 6.5rem; }
      .fields-split { grid-template-columns: 1fr; gap: 0; }
      .hero-panel { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; gap: 1.5rem; }
      .hero-avatar { width: 120px; height: 120px; }
      .hero-desc { text-align: center; }
      .social-cluster { justify-content: center; }
      
      /* پنهان‌سازی منوی دسکتاپ و مگامنو در موبایل */
      .top-nav-container { display: none; }

      /* بهبود دسترسی دک ناوبری پایینی در موبایل */
      .dock-navigation { bottom: 0.8rem; width: 92%; max-width: 480px; padding: 0.4rem; }
      .dock-item { padding: 0.5rem 0.8rem; font-size: 0.8rem; gap: 0.3rem; }
      .dock-item .step-num { display: none; }

      /* رفع مشکل له شدن و بیرون‌زدگی درخت کامنت‌ها در نمایشگرهای کوچک موبایل */
      .nexus-comment-node { padding: 1rem; }
      .nexus-comment-node .node-replies-tree {
        margin-right: 0.8rem; /* کاهش شدید فاصله راست */
        padding-right: 0.6rem;
        gap: 1rem;
        border-right-width: 2px; /* خط تکیه باریک‌تر */
      }
      .node-meta-info { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
      
      .brutal-section { padding: 1.5rem; }
      .workspace-wrapper { padding: 1.5rem; }
      .hero-showcase-img { height: 240px; }
      .tech-spec-bar { flex-direction: column; gap: 0.6rem; }
      
      .color-matrix-panel { left: auto; right: 1rem; top: auto; bottom: 5rem; transform: none; flex-direction: row; padding: 0.4rem 0.8rem; border-radius: 20px; }
      #toast-nexus { right: 1rem; left: 1rem; text-align: center; bottom: 5.5rem; }

      /* فشرده‌سازی دکمه‌های کامنت و مخفی‌سازی متن در موبایل */
      .comment-actions-holder { gap: 0.4rem !important; }
      .comment-actions-holder .interact-btn span { display: none; }
      .comment-actions-holder .interact-btn { padding: 0.5rem 0.8rem; font-size: 1rem; }
    }