.draft-preview-banner {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin-bottom: 1.2rem;
        padding: 0.8rem 1.1rem;
        border-radius: 12px;
        border: 1px solid rgba(245, 158, 11, 0.45);
        background: rgba(245, 158, 11, 0.12);
        color: var(--text);
        font-size: 0.92rem;
    }

    .draft-preview-banner>i {
        color: #f59e0b;
        font-size: 1.1rem;
    }

    .draft-preview-banner span {
        flex: 1;
        min-width: 200px;
    }

    .draft-preview-edit {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        background: #f59e0b;
        color: #fff;
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none;
    }

    .draft-preview-edit:hover {
        background: #d97706;
        color: #fff;
    }

    .article-breadcrumb {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .article-breadcrumb a {
        color: var(--primary);
    }

    .article-content-body h3 {
        margin-top: 30px;
    }

    .article-layout-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }

    @media (min-width: 992px) {
        .article-layout-grid {
            grid-template-columns: minmax(0, 1fr) 320px;
        }
    }

    .article-sidebar {
        position: sticky;
        top: 92px;
        align-self: start;
        height: fit-content;
        z-index: 5;
    }

    .sidebar-sticky-wrapper {
        display: grid;
        gap: 1rem;
        align-self: start;
        position: relative;
        width: 100%;
    }

    .sidebar-sticky-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .article-tags-box {
        padding: 1rem 1.15rem;
        text-align: right;
        background: var(--card-sub-bg, #f1f5f9);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 14px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* ===== قاب تصاویر محتوای سایت ===== */
    .article-content-body img {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin-top: 10px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 8px 24px rgba(0, 0, 0, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.6);
        transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    }

    .article-content-body img:hover {
        transform: translateY(-2px);
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.06),
            0 16px 40px rgba(0, 0, 0, 0.12),
            inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    }

    /* ===== Code block styling ===== */
    .article-content-body pre {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(18, 32, 56, 1) 100%);
        padding: 1rem 1.1rem;
        border-radius: 16px;
        overflow: auto;
        border: 1px solid rgba(148, 163, 184, 0.32);
        margin: 1.5rem 0;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        position: relative;
    }

    .article-content-body pre::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: var(--primary, #10b981);
        border-radius: 16px 0 0 16px;
    }

    .article-content-body pre code {
        display: block;
        overflow-x: auto;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
        font-size: 0.92rem;
        line-height: 1.8;
        color: #e2e8f0;
        background: transparent;
        border-radius: 0;
        white-space: pre;
        direction: ltr;
        text-align: left;
        unicode-bidi: plaintext;
    }

    .article-content-body code {
        display: inline-block;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        background: rgba(96, 165, 250, 0.12);
        color: #1f2937;
        padding: 0.18rem 0.52rem;
        border-radius: 7px;
        border: 1px solid rgba(96, 165, 250, 0.18);
        direction: ltr;
        text-align: left;
        unicode-bidi: plaintext;
    }

    body.dark .article-content-body code {
        background: rgba(148, 163, 184, 0.08);
        color: #e5e7eb;
        border-color: rgba(148, 163, 184, 0.2);
    }

    body.dark .article-content-body pre {
        background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
        border-color: rgba(148, 163, 184, 0.35);
        box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
    }

    /* ===== تم دارک ===== */
    body.dark .article-content-body img {
        background: #1a1d24;
        border-color: #2b3039;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.4),
            0 8px 24px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    body.dark .article-content-body img:hover {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.5),
            0 16px 40px rgba(0, 0, 0, 0.65),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    /* ===== سایدبار: کارت اشتراک ویژه ===== */
    .sb-vip {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        padding: 1.6rem 1.3rem 1.3rem;
        border-radius: 18px;
        text-align: center;
        color: #fff;
        background: #111827;
        border: 1px solid rgba(245, 158, 11, 0.28);
        box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.45);
    }

    .sb-vip-glow {
        display: none;
    }

    .sb-vip-badge {
        position: relative;
        width: 58px;
        height: 58px;
        margin: 0 auto 0.9rem;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #78350f;
        background: #f59e0b;
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
    }

    .sb-vip-title {
        margin: 0 0 0.45rem;
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
    }

    .sb-vip-text {
        margin: 0 0 1rem;
        font-size: 0.85rem;
        line-height: 1.9;
        color: rgba(255, 255, 255, 0.8);
    }

    .sb-vip-features {
        list-style: none;
        margin: 0 0 1.2rem;
        padding: 0.8rem 0.9rem;
        display: grid;
        gap: 0.5rem;
        text-align: start;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.82rem;
    }

    .sb-vip-features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sb-vip-features i {
        color: #fde047;
        font-size: 0.9rem;
    }

    .sb-vip-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-weight: 800;
        font-size: 0.92rem;
        text-decoration: none;
        color: #451a03;
        background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .sb-vip-btn:hover {
        color: #451a03;
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(245, 158, 11, 0.55);
    }

    .sb-vip-btn i {
        transition: transform 0.25s ease;
    }

    .sb-vip-btn:hover i {
        transform: translateX(-5px);
    }

    /* ===== سایدبار: جدیدترین محصولات ===== */
    .sb-products {
        padding: 1.1rem;
        border-radius: 18px;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border);
        box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.12);
    }

    .sb-products-head {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 1rem;
        padding-bottom: 0.85rem;
        border-bottom: 1px dashed var(--border);
    }

    .sb-products-head h2,
    .sb-products-head h4 {
        margin: 0;
        font-size: 1.02rem;
        font-weight: 800;
        color: var(--text);
    }

    .sb-products-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        color: #fff;
        background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
        box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3);
    }

    .sb-products-list {
        display: grid;
        gap: 0.6rem;
    }

    .sb-product {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.55rem;
        border-radius: 14px;
        text-decoration: none;
        background: var(--bg, #f8fafc);
        border: 1px solid transparent;
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .sb-product:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        box-shadow: 0 10px 22px -10px rgba(16, 185, 129, 0.45);
    }

    .sb-product-thumb {
        position: relative;
        flex-shrink: 0;
        width: 66px;
        height: 66px;
        border-radius: 12px;
        overflow: hidden;
        background: var(--border);
    }

    .sb-product-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .sb-product:hover .sb-product-thumb img {
        transform: scale(1.1);
    }

    .sb-product-new {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 1px 7px;
        border-radius: 999px;
        font-size: 0.62rem;
        font-weight: 800;
        color: #fff;
        background: var(--primary);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    .sb-product-info {
        flex: 1;
        min-width: 0;
        display: grid;
        gap: 0.35rem;
    }

    .sb-product-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.7;
        color: var(--text);
        transition: color 0.2s ease;
    }

    .sb-product:hover .sb-product-title {
        color: var(--primary);
    }

    .sb-product-price {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
    }

    .sb-price-now {
        font-size: 0.88rem;
        font-weight: 800;
        color: var(--primary);
    }

    .sb-price-now small {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .sb-price-old {
        font-size: 0.74rem;
        color: var(--text-muted);
    }

    .sb-price-off {
        padding: 1px 7px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 800;
        color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
    }

    .sb-price-free {
        padding: 2px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        color: var(--primary);
        background: var(--primary-light, rgba(16, 185, 129, 0.12));
    }

    .sb-product-arrow {
        flex-shrink: 0;
        font-size: 0.75rem;
        color: var(--text-muted);
        transition: transform 0.25s ease, color 0.25s ease;
    }

    .sb-product:hover .sb-product-arrow {
        color: var(--primary);
        transform: translateX(-4px);
    }

    .sb-products-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.9rem;
        padding: 0.65rem 1rem;
        border-radius: 12px;
        font-size: 0.86rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--primary);
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        transition: background 0.25s ease, color 0.25s ease;
    }

    .sb-products-more:hover {
        background: var(--primary);
        color: #fff;
    }

    .sb-products-more i {
        transition: transform 0.25s ease;
    }

    .sb-products-more:hover i {
        transform: translateX(-4px);
    }

    .sb-empty {
        margin: 0;
        padding: 1rem 0;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.88rem;
    }

    body.dark .sb-products {
        box-shadow: none;
    }

    @media (prefers-reduced-motion: reduce) {

        .sb-vip::after,
        .sb-vip-badge,
        .sb-vip-badge::before {
            animation: none;
        }

        .sb-product,
        .sb-product-thumb img {
            transition: none;
        }
    }

    .article-single {
        background: var(--card-bg, #ffffff);
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .article-header-img {
        width: 100%;
        line-height: 0;
        background: var(--bg-light, #f1f5f9);
    }

    .article-header-img img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        padding-bottom: 1.2rem;
        border-bottom: 1px dashed var(--border);
        margin-bottom: 2rem;
        color: var(--text-muted);
        font-size: 0.92rem;
    }

    .toc-box {
        position: relative;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border);
        border-radius: 14px;
        margin-bottom: 2.2rem;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    }

    .toc-box::before {
        content: "";
        position: absolute;
        inset-block: 0;
        inset-inline-start: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary, #10b981), var(--primary-hover, #059669));
    }

    body.dark .toc-box {
        background: var(--card-bg, #1e293b);
        box-shadow: none;
    }

    .toc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        padding: 1rem 1.3rem;
        background: transparent;
        border: 0;
        font-family: inherit;
        color: var(--text);
        text-align: start;
        cursor: pointer;
    }

    .toc-title {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        min-width: 0;
    }

    .toc-title-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
        font-size: 1rem;
    }

    .toc-title-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .toc-title-text strong {
        font-size: 1rem;
        font-weight: 800;
    }

    .toc-title-text small {
        font-size: 0.78rem;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .toc-title-text small.is-section {
        color: var(--primary, #10b981);
        font-weight: 600;
    }

    .toc-header-end {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-shrink: 0;
    }

    .toc-percent {
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
    }

    .toc-chevron {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg, #f8fafc);
        color: var(--text-muted);
        font-size: 0.8rem;
        transition: transform 0.35s ease, background 0.2s ease;
        transform: rotate(180deg);
    }

    .toc-header:hover .toc-chevron {
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
    }

    .toc-box.is-collapsed .toc-chevron {
        transform: rotate(0deg);
    }

    .toc-progress {
        height: 3px;
        background: var(--border);
    }

    .toc-progress span {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--primary, #10b981), var(--primary-hover, #059669));
        transition: width 0.15s linear;
    }

    .toc-body {
        display: grid;
        grid-template-rows: 1fr;
        transition: grid-template-rows 0.35s ease;
    }

    .toc-box.is-collapsed .toc-body {
        grid-template-rows: 0fr;
    }

    .toc-body-inner {
        min-height: 0;
        overflow: hidden;
        padding: 0 1.2rem;
    }

    .toc-body-inner>*:first-child {
        margin-top: 1rem;
    }

    .toc-body-inner>*:last-child {
        margin-bottom: 1.1rem;
    }

    .toc-search {
        position: relative;
        margin-bottom: 0.7rem;
    }

    .toc-search i {
        position: absolute;
        inset-inline-start: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 0.8rem;
        pointer-events: none;
    }

    .toc-search input {
        width: 100%;
        padding: 0.55rem 0.9rem;
        padding-inline-start: 2.3rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg, #f8fafc);
        color: var(--text);
        font-family: inherit;
        font-size: 0.88rem;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .toc-search input:focus {
        border-color: var(--primary, #10b981);
        box-shadow: 0 0 0 3px var(--primary-light, rgba(16, 185, 129, 0.15));
    }

    .toc-list,
    .toc-sublist {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .toc-list {
        position: relative;
        max-height: 320px;
        overflow-y: auto;
        scrollbar-width: thin;
        padding-inline-end: 0.2rem;
    }

    .toc-sublist {
        margin-inline-start: 1.3rem;
        padding-inline-start: 0.4rem;
        border-inline-start: 2px solid var(--border);
    }

    .toc-list a.toc-link {
        display: flex;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.5rem 0.7rem;
        border-radius: 9px;
        color: var(--text);
        text-decoration: none;
        font-size: 0.93rem;
        line-height: 1.7;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .toc-sub-item a.toc-link {
        font-size: 0.87rem;
        color: var(--text-muted);
    }

    .toc-num {
        flex-shrink: 0;
        min-width: 1.7rem;
        height: 1.7rem;
        padding: 0 0.35rem;
        margin-top: 0.1rem;
        border-radius: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg, #f1f5f9);
        color: var(--text-muted);
        font-size: 0.74rem;
        font-weight: 700;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .toc-sub-item .toc-num {
        font-size: 0.68rem;
    }

    .toc-list a.toc-link:hover {
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
    }

    .toc-link.is-read .toc-num {
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
    }

    .toc-list a.toc-link.is-active {
        background: var(--primary-light, rgba(16, 185, 129, 0.1));
        color: var(--primary, #10b981);
        font-weight: 700;
    }

    .toc-link.is-active .toc-num {
        background: var(--primary, #10b981);
        color: #fff;
    }

    .toc-empty {
        text-align: center;
        padding: 0.8rem;
        color: var(--text-muted);
        font-size: 0.88rem;
    }

    .article-content-body h2,
    .article-content-body h3 {
        scroll-margin-top: 90px;
    }

    @media (max-width: 576px) {
        .toc-header {
            padding: 0.85rem 1rem;
        }

        .toc-body-inner {
            padding: 0 0.9rem;
        }

        .toc-list {
            max-height: 260px;
        }

        .toc-percent {
            display: none;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        .toc-body,
        .toc-chevron,
        .toc-progress span {
            transition: none;
        }
    }

    /* ===== استایل فوق‌پیشرفته و ۱۰۰٪ ریسپانسیو جداول مقالات ===== */
    .article-table-wrapper {
        position: relative;
        width: 100%;
        margin: 2.5rem 0;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
        overflow: hidden;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .article-table-wrapper:hover {
        border-color: rgba(var(--primary-rgb, 59, 130, 246), 0.35);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    }

    /* نشانگر راهنمای اسکرول برای موبایل */
    .article-table-hint {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.82rem;
        font-weight: 700;
        padding: 9px 14px;
        background: linear-gradient(135deg, rgba(var(--primary-rgb, 59, 130, 246), 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
        color: var(--primary, #3b82f6);
        border-bottom: 1px solid var(--border, #e2e8f0);
        text-align: center;
        user-select: none;
        transition: opacity 0.3s ease;
    }

    .article-table-hint i {
        animation: swipeLeftRight 1.6s ease-in-out infinite;
    }

    @keyframes swipeLeftRight {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-5px); }
    }

    @media (max-width: 991px) {
        .article-table-hint {
            display: flex;
        }
    }

    /* اسکرول‌بار افقی با اسکرول نرم لمسی */
    .article-table-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb, 59, 130, 246), 0.4) transparent;
    }

    .article-table-scroll::-webkit-scrollbar {
        height: 7px;
    }

    .article-table-scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03);
        border-radius: 4px;
    }

    .article-table-scroll::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.35);
        border-radius: 4px;
    }

    .article-table-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--primary, #3b82f6);
    }

    .article-table-inner {
        width: 100%;
    }

    /* استایل بدنه جدول */
    .article-table-wrapper table {
        width: 100% !important;
        max-width: none !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        margin: 0 !important;
        font-size: 0.94rem;
        line-height: 1.7;
        text-align: right;
        border: none !important;
        box-shadow: none !important;
    }

    /* سربرگ جدول */
    .article-table-wrapper table thead th,
    .article-table-wrapper table th {
        background: #f8fafc;
        color: var(--text, #1e293b);
        font-weight: 800;
        font-size: 0.92rem;
        padding: 15px 18px;
        border-bottom: 2px solid var(--primary, #3b82f6);
        border-top: none;
        border-left: none;
        border-right: none;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    /* سلول‌های جدول */
    .article-table-wrapper table td {
        padding: 14px 18px;
        border-bottom: 1px solid var(--border, #e2e8f0);
        border-top: none;
        border-left: none;
        border-right: none;
        color: var(--text, #334155);
        vertical-align: middle;
        transition: background-color 0.15s ease;
    }

    /* ردیف‌های زوج و فرد (Zebra) */
    .article-table-wrapper table tbody tr:nth-child(even) {
        background-color: rgba(248, 250, 252, 0.65);
    }

    .article-table-wrapper table tbody tr:hover {
        background-color: rgba(var(--primary-rgb, 59, 130, 246), 0.05);
    }

    .article-table-wrapper table tbody tr:last-child td {
        border-bottom: none;
    }

    /* برجسته‌سازی ستون اول (عنوان سطر) */
    .article-table-wrapper table tbody td:first-child {
        font-weight: 700;
        color: var(--text, #0f172a);
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.02);
    }

    /* پشتیبانی کامل از تم تاریک جداول */
    body.dark .article-table-wrapper,
    body.dark-mode .article-table-wrapper,
    [data-theme="dark"] .article-table-wrapper {
        background: #111827;
        border-color: #1f2937;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    }

    body.dark .article-table-hint,
    body.dark-mode .article-table-hint,
    [data-theme="dark"] .article-table-hint {
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        border-bottom-color: #1f2937;
    }

    body.dark .article-table-wrapper table thead th,
    body.dark .article-table-wrapper table th,
    body.dark-mode .article-table-wrapper table thead th,
    [data-theme="dark"] .article-table-wrapper table thead th {
        background: #1a2234;
        color: #f8fafc;
        border-bottom-color: var(--primary, #3b82f6);
    }

    body.dark .article-table-wrapper table td,
    body.dark-mode .article-table-wrapper table td,
    [data-theme="dark"] .article-table-wrapper table td {
        color: #cbd5e1;
        border-bottom-color: #1f2937;
    }

    body.dark .article-table-wrapper table tbody tr:nth-child(even),
    body.dark-mode .article-table-wrapper table tbody tr:nth-child(even),
    [data-theme="dark"] .article-table-wrapper table tbody tr:nth-child(even) {
        background-color: rgba(255, 255, 255, 0.02);
    }

    body.dark .article-table-wrapper table tbody tr:hover,
    body.dark-mode .article-table-wrapper table tbody tr:hover,
    [data-theme="dark"] .article-table-wrapper table tbody tr:hover {
        background-color: rgba(59, 130, 246, 0.1);
    }

    body.dark .article-table-wrapper table tbody td:first-child,
    body.dark-mode .article-table-wrapper table tbody td:first-child,
    [data-theme="dark"] .article-table-wrapper table tbody td:first-child {
        color: #f1f5f9;
        background: rgba(255, 255, 255, 0.02);
    }

    /* ===== استایل تایپوگرافی، فاصله هدینگ‌ها و زیبایی متن مقاله ===== */
    .article-content-body {
        line-height: 2.25;
        font-size: 1.08rem;
        color: var(--text, #334155);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* پاراگراف‌ها: فاصله از هم و ترازبندی مناسب */
    .article-content-body p {
        margin-top: 0;
        margin-bottom: 1.65rem;
        line-height: 2.25;
        text-align: justify;
        text-justify: inter-word;
        color: var(--text, #334155);
        font-size: 1.06rem;
        letter-spacing: -0.01em;
    }

    /* تیتر ۲ (H2): فاصله سخاوتمندانه از پاراگراف قبلی و نوار کناری شاخص */
    .article-content-body h2 {
        margin-top: 3.6rem !important;
        margin-bottom: 1.35rem !important;
        font-size: 1.55rem;
        font-weight: 800;
        line-height: 1.6;
        color: var(--text, #0f172a);
        display: flex;
        align-items: center;
        position: relative;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid var(--border, #e2e8f0);
        scroll-margin-top: 95px;
    }

    .article-content-body h2::before {
        content: "";
        display: inline-block;
        width: 5px;
        height: 1.3em;
        background: var(--primary, #10b981);
        border-radius: 4px;
        margin-left: 0.75rem;
        flex-shrink: 0;
    }

    /* تیتر ۳ (H3): فاصله مناسب و نشانگر دایره‌ای شیک */
    .article-content-body h3 {
        margin-top: 2.6rem !important;
        margin-bottom: 1.1rem !important;
        font-size: 1.28rem;
        font-weight: 700;
        line-height: 1.65;
        color: var(--text, #0f172a);
        display: flex;
        align-items: center;
        position: relative;
        scroll-margin-top: 95px;
    }

    .article-content-body h3::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        background: var(--primary, #3b82f6);
        border-radius: 50%;
        margin-left: 0.65rem;
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59, 130, 246), 0.2);
    }

    /* تیتر ۴ (H4) */
    .article-content-body h4 {
        margin-top: 2rem !important;
        margin-bottom: 0.85rem !important;
        font-size: 1.12rem;
        font-weight: 700;
        color: var(--text, #1e293b);
        scroll-margin-top: 95px;
    }

    /* کلمات کلیدی و عبارات مهم (strong, b) */
    .article-content-body strong,
    .article-content-body b {
        font-weight: 800;
        color: var(--text, #0f172a);
    }

    body.dark .article-content-body strong,
    body.dark .article-content-body b {
        color: #f8fafc;
    }

    /* لیست‌های مرتب و نامرتب (ol, ul) */
    .article-content-body ol,
    .article-content-body ul {
        margin: 1.4rem 0 1.8rem 0;
        padding-right: 1.8rem;
        padding-left: 0;
    }

    .article-content-body li {
        margin-bottom: 0.85rem;
        line-height: 2.15;
        font-size: 1.04rem;
        color: var(--text, #334155);
    }

    .article-content-body li:last-child {
        margin-bottom: 0;
    }

    .article-content-body ol > li::marker {
        font-weight: 800;
        color: var(--primary, #3b82f6);
    }

    .article-content-body ul > li::marker {
        color: var(--primary, #3b82f6);
    }

    /* لینک‌های داخلی و خارجی داخل متن */
    .article-content-body a {
        color: var(--primary, #3b82f6);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1.5px dashed rgba(var(--primary-rgb, 59, 130, 246), 0.35);
        padding-bottom: 1px;
        transition: all 0.2s ease;
    }

    .article-content-body a:hover {
        color: var(--primary-hover, #2563eb);
        border-bottom: 1.5px solid var(--primary-hover, #2563eb);
        background: rgba(var(--primary-rgb, 59, 130, 246), 0.06);
        border-radius: 3px;
        padding-inline: 3px;
    }

    /* نقل‌قول‌ها (Blockquote) */
    .article-content-body blockquote {
        margin: 2.2rem 0;
        padding: 1.3rem 1.8rem;
        background: linear-gradient(135deg, rgba(var(--primary-rgb, 59, 130, 246), 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
        border-right: 4px solid var(--primary, #3b82f6);
        border-left: none;
        border-radius: 10px 0 0 10px;
        position: relative;
    }

    .article-content-body blockquote p:last-child {
        margin-bottom: 0;
    }

    /* خطوط تفکیک (Horizontal Rule) */
    .article-content-body hr {
        border: none;
        height: 1px;
        background: linear-gradient(to left, transparent, var(--border, #e2e8f0), transparent);
        margin: 3.5rem 0;
    }

    /* تم دارک برای تیترها و پاراگراف‌ها */
    body.dark .article-content-body,
    body.dark-mode .article-content-body,
    [data-theme="dark"] .article-content-body {
        color: #cbd5e1;
    }

    body.dark .article-content-body p,
    body.dark-mode .article-content-body p,
    [data-theme="dark"] .article-content-body p {
        color: #cbd5e1;
    }

    body.dark .article-content-body h2,
    body.dark-mode .article-content-body h2,
    [data-theme="dark"] .article-content-body h2 {
        color: #f8fafc;
        border-bottom-color: #1f2937;
    }

    body.dark .article-content-body h3,
    body.dark-mode .article-content-body h3,
    [data-theme="dark"] .article-content-body h3 {
        color: #f8fafc;
    }

    body.dark .article-content-body h4,
    body.dark-mode .article-content-body h4,
    [data-theme="dark"] .article-content-body h4 {
        color: #e2e8f0;
    }

    body.dark .article-content-body li,
    body.dark-mode .article-content-body li,
    [data-theme="dark"] .article-content-body li {
        color: #cbd5e1;
    }

    body.dark .article-content-body blockquote,
    body.dark-mode .article-content-body blockquote,
    [data-theme="dark"] .article-content-body blockquote {
        background: rgba(59, 130, 246, 0.08);
        border-right-color: var(--primary, #3b82f6);
    }

    /* تنظیمات موبایل تایپوگرافی */
    @media (max-width: 768px) {
        .article-content-body {
            font-size: 1.02rem;
            line-height: 2.15;
        }

        .article-content-body p {
            font-size: 1.01rem;
            line-height: 2.15;
            margin-bottom: 1.4rem;
        }

        .article-content-body h2 {
            font-size: 1.35rem;
            margin-top: 2.8rem !important;
            margin-bottom: 1.1rem !important;
        }

        .article-content-body h3 {
            font-size: 1.18rem;
            margin-top: 2.2rem !important;
            margin-bottom: 0.95rem !important;
        }
    }

    .article-share-box {
        border-top: 1px dashed var(--border);
        display: flex;
        padding: 10px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }

    .btn-telegram {
        background: #0088cc;
        color: #fff;
    }

    .btn-whatsapp {
        background: #25d366;
        color: #fff;
    }

    .btn-twitter {
        background: #000;
        color: #fff;
    }

    .copy-toast {
        display: none;
        position: absolute;
        bottom: -35px;
        left: 0;
        background: var(--success, #10b981);
        color: #fff;
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .article-rating-section {
        background: var(--bg, #f8fafc);
        border: 1px solid var(--border);
        padding: 10px;
        border-radius: 20px;
        margin-top: 20px;
    }

    .star-rating-input {
        display: flex;
        flex-direction: row-reverse;
        gap: 0.25rem;
    }

    .star-rating-input input {
        display: none;
    }

    .star-rating-input label {
        font-size: 1.4rem;
        color: var(--input-border, #cbd5e1);
        cursor: pointer;
        transition: color 0.2s;
    }

    .star-rating-input input:checked~label,
    .star-rating-input label:hover,
    .star-rating-input label:hover~label {
        color: #f59e0b;
    }

    .comments-tree {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .comment-item {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 1.2rem;
        position: relative;
    }

    .comment-reply-item {
        margin-right: 1.8rem;
        margin-top: 0.8rem;
        border-right: 3px solid var(--primary);
        background: var(--card-bg, #ffffff);
    }

    .comment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.6rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .comment-author-info {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .badge-admin {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #ffffff;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: bold;
    }

    .comment-date {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .comment-body {
        margin: 0.5rem 0 1rem 0;
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .comment-footer-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px dashed var(--border);
        padding-top: 0.6rem;
    }

    .comment-likes-box {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .btn-like-dislike {
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 3px 10px;
        font-size: 0.85rem;
        color: var(--text-muted);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        transition: all 0.2s;
    }

    .btn-like-dislike:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: rgba(16, 185, 129, 0.08);
    }

    .btn-like-dislike.dislike:hover {
        color: #ef4444;
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.08);
    }

    .btn-reply-trigger {
        background: transparent;
        border: none;
        color: var(--primary);
        font-size: 0.88rem;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        padding: 2px 8px;
        border-radius: 4px;
    }

    .btn-reply-trigger:hover {
        background: rgba(99, 102, 241, 0.1);
    }

    .reply-target-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid var(--primary);
        border-radius: 8px;
        padding: 0.6rem 1rem;
        margin-bottom: 1rem;
        color: var(--text);
        font-size: 0.9rem;
    }

    .btn-cancel-reply {
        background: transparent;
        border: none;
        color: #ef4444;
        cursor: pointer;
        font-size: 0.85rem;
    }

    /* ========================================================
       استایل اختصاصی بخش سوالات متداول (FAQ Accordion)
       با انیمیشن باز شدن هنگام هاور و سازگار با لایت و دارک
       ======================================================== */
    .article-faq-container {
        margin: 2.5rem 0 2rem 0;
        padding: 1.8rem;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 18px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .faq-container-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border, #e2e8f0);
    }

    .faq-badge-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.25));
        color: var(--primary, #6366f1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    [data-theme="dark"] .faq-main-title {
        color: white;
    }

    ol {
        margin-right: 30px;
    }

    .faq-main-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text-main, #1e293b);
        margin: 0 0 0.25rem 0;
    }

    .faq-sub-title {
        font-size: 0.83rem;
        color: var(--text-muted, #64748b);
        display: block;
    }

    .faq-accordion-group {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .faq-accordion-card {
        background: var(--admin-bg, #f8fafc);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 14px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .faq-accordion-header {
        width: 100%;
        padding: 1.05rem 1.25rem;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: right;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.25s ease;
    }

    .faq-num-pill {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary, #6366f1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        font-weight: 700;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    .faq-question-text {
        flex: 1;
        font-size: 0.98rem;
        font-weight: 700;
        color: var(--text-main, #1e293b);
        line-height: 1.5;
        transition: color 0.25s ease;
    }

    .faq-chevron-arrow {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--card-bg, #ffffff);
        color: var(--text-muted, #64748b);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        flex-shrink: 0;
        transition: transform 0.35s ease, background-color 0.25s, color 0.25s;
        border: 1px solid var(--border, #e2e8f0);
    }

    .faq-accordion-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
        opacity: 0;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.94rem;
        line-height: 1.85;
        color: var(--text-muted, #475569);
        border-top: 1px dashed rgba(99, 102, 241, 0.15);
        margin-top: 0.2rem;
        padding-top: 0.9rem;
    }

    /* حالت هاور دسکتاپ و وضعیت فعال */
    @media (hover: hover) {

        .faq-accordion-card:hover,
        .faq-accordion-card.active {
            border-color: rgba(99, 102, 241, 0.45);
            background: var(--card-bg, #ffffff);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.09);
        }

        .faq-accordion-card:hover .faq-question-text,
        .faq-accordion-card.active .faq-question-text {
            color: var(--primary, #6366f1);
        }

        .faq-accordion-card:hover .faq-num-pill,
        .faq-accordion-card.active .faq-num-pill {
            background: var(--primary, #6366f1);
            color: #ffffff;
        }

        .faq-accordion-card:hover .faq-chevron-arrow,
        .faq-accordion-card.active .faq-chevron-arrow {
            transform: rotate(180deg);
            background: var(--primary, #6366f1);
            color: #ffffff;
            border-color: var(--primary, #6366f1);
        }

        .faq-accordion-card:hover .faq-accordion-collapse,
        .faq-accordion-card.active .faq-accordion-collapse {
            max-height: 600px;
            opacity: 1;
            transition: max-height 0.45s ease-in-out, opacity 0.35s ease;
        }
    }

    /* لمس موبایل */
    @media (hover: none) {
        .faq-accordion-card.active {
            border-color: rgba(99, 102, 241, 0.45);
            background: var(--card-bg, #ffffff);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.09);
        }

        .faq-accordion-card.active .faq-question-text {
            color: var(--primary, #6366f1);
        }

        .faq-accordion-card.active .faq-num-pill {
            background: var(--primary, #6366f1);
            color: #ffffff;
        }

        .faq-accordion-card.active .faq-chevron-arrow {
            transform: rotate(180deg);
            background: var(--primary, #6366f1);
            color: #ffffff;
        }

        .faq-accordion-card.active .faq-accordion-collapse {
            max-height: 800px;
            opacity: 1;
        }
    }

    /* دارک مود سوالات متداول */
    body.dark .article-faq-container {
        background: rgba(30, 41, 59, 0.65);
        border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark .faq-accordion-card {
        background: rgba(15, 23, 42, 0.65);
        border-color: rgba(255, 255, 255, 0.06);
    }

    body.dark .faq-accordion-card:hover,
    body.dark .faq-accordion-card.active {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(99, 102, 241, 0.55);
    }

    body.dark .faq-question-text {
        color: #f1f5f9;
    }

    body.dark .faq-answer-content {
        color: #cbd5e1;
    }

    body.dark .faq-chevron-arrow {
        background: rgba(15, 23, 42, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #94a3b8;
    }

    /* ========================================================
       استایل‌های مدرن و چشم‌نواز بخش مقالات مرتبط
       کاملاً هماهنگ با لایت و دارک مود
       ======================================================== */
    .related-articles-section {
        margin-top: 3.5rem;
    }

    .related-header-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .related-title-group {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .related-icon-bubble {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
        color: var(--primary, #10b981);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .related-main-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text-main, #1e293b);
        margin: 0;
    }

    .related-sub-title {
        font-size: 0.82rem;
        color: var(--text-muted, #64748b);
        display: block;
        margin-top: 2px;
    }

    .related-articles-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    @media (max-width: 991px) {
        .related-articles-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .related-articles-grid {
            grid-template-columns: 1fr;
        }
    }

    .modern-related-card {
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 18px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    }

    .modern-related-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        border-color: rgba(16, 185, 129, 0.4);
    }

    .related-thumb-link {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #0f172a;
    }

    .related-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modern-related-card:hover .related-thumb-img {
        transform: scale(1.08);
    }

    .related-date-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(15, 23, 42, 0.8);
        color: #ffffff;
        padding: 0.25rem 0.65rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        backdrop-filter: blur(8px);
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .related-date-badge i {
        color: var(--primary, #10b981);
    }

    .modern-related-card-body {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: space-between;
    }

    .modern-related-title {
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.6;
        margin: 0 0 1rem 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modern-related-title a {
        color: var(--text-main, #1e293b);
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .modern-related-card:hover .modern-related-title a {
        color: var(--primary, #10b981);
    }

    .modern-related-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.85rem;
        border-top: 1px solid var(--border, #f1f5f9);
        font-size: 0.8rem;
        color: var(--text-muted, #64748b);
    }

    .related-author-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .related-read-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--primary, #10b981);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.82rem;
        transition: all 0.25s ease;
    }

    .modern-related-card:hover .related-read-btn {
        gap: 0.65rem;
    }

    /* هماهنگی کامل با دارک مود */
    [data-theme="dark"] .modern-related-card,
    html.dark .modern-related-card,
    body.dark .modern-related-card,
    body.dark-mode .modern-related-card {
        background: #121826;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    }

    [data-theme="dark"] .modern-related-card:hover,
    html.dark .modern-related-card:hover,
    body.dark .modern-related-card:hover,
    body.dark-mode .modern-related-card:hover {
        background: #182234;
        border-color: rgba(16, 185, 129, 0.45);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
    }

    [data-theme="dark"] .modern-related-title a,
    html.dark .modern-related-title a,
    body.dark .modern-related-title a,
    body.dark-mode .modern-related-title a {
        color: #f1f5f9;
    }

    [data-theme="dark"] .modern-related-card:hover .modern-related-title a,
    html.dark .modern-related-card:hover .modern-related-title a,
    body.dark .modern-related-card:hover .modern-related-title a,
    body.dark-mode .modern-related-card:hover .modern-related-title a {
        color: #34d399;
    }

    [data-theme="dark"] .modern-related-footer,
    html.dark .modern-related-footer,
    body.dark .modern-related-footer,
    body.dark-mode .modern-related-footer {
        border-top-color: rgba(255, 255, 255, 0.08);
        color: #94a3b8;
    }

    [data-theme="dark"] .related-read-btn,
    html.dark .related-read-btn,
    body.dark .related-read-btn,
    body.dark-mode .related-read-btn {
        color: #34d399;
    }

    [data-theme="dark"] .related-main-title,
    html.dark .related-main-title,
    body.dark .related-main-title,
    body.dark-mode .related-main-title {
        color: #f1f5f9;
    }

    [data-theme="dark"] .related-sub-title,
    html.dark .related-sub-title,
    body.dark .related-sub-title,
    body.dark-mode .related-sub-title {
        color: #94a3b8;
    }

    /* ========================================================
       کارت افزودن سایت به منابع منتخب گوگل (Preferred Source)
       ======================================================== */
    .google-preferred-source-wrap {
        margin: 2.25rem 0 0;
    }

    .gps-card {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
        border-radius: 18px;
        background: var(--card-bg, #ffffff);
        border: 1px solid rgba(59, 130, 246, 0.25);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .gps-card:hover {
        transform: translateY(-2px);
        border-color: rgba(66, 133, 244, 0.48);
        box-shadow: 0 14px 34px rgba(37, 99, 235, 0.11);
    }

    .gps-brand-side {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
        min-width: 0;
    }

    .gps-google-badge {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .gps-text-group {
        flex: 1;
        min-width: 0;
    }

    .gps-title-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.55rem;
        margin-bottom: 0.3rem;
    }

    .gps-title {
        font-size: 1.02rem;
        font-weight: 800;
        color: var(--text-main, #0f172a);
        line-height: 1.45;
    }

    .gps-pill-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 0.18rem 0.6rem;
        border-radius: 999px;
        background: rgba(66, 133, 244, 0.12);
        color: #1d4ed8;
    }

    .gps-desc {
        margin: 0;
        font-size: 0.84rem;
        line-height: 1.65;
        color: var(--text-muted, #64748b);
    }

    .gps-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.75rem 1.25rem;
        border-radius: 12px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #ffffff !important;
        font-weight: 700;
        font-size: 0.88rem;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        flex-shrink: 0;
    }

    .gps-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
        filter: brightness(1.06);
        color: #ffffff !important;
    }

    .gps-ext-arrow {
        font-size: 0.78rem;
        opacity: 0.88;
    }

    body[data-theme="dark"] .gps-card,
    html.dark .gps-card,
    body.dark .gps-card {
        background: #121826;
        border-color: rgba(96, 165, 250, 0.28);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    }

    body[data-theme="dark"] .gps-google-badge,
    html.dark .gps-google-badge,
    body.dark .gps-google-badge {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    body[data-theme="dark"] .gps-title,
    html.dark .gps-title,
    body.dark .gps-title {
        color: #f8fafc;
    }

    body[data-theme="dark"] .gps-pill-tag,
    html.dark .gps-pill-tag,
    body.dark .gps-pill-tag {
        background: rgba(96, 165, 250, 0.16);
        color: #93c5fd;
    }

    body[data-theme="dark"] .gps-desc,
    html.dark .gps-desc,
    body.dark .gps-desc {
        color: #94a3b8;
    }

    @media (max-width: 768px) {
        .gps-card {
            flex-direction: column;
            align-items: stretch;
            padding: 1.1rem;
            gap: 1rem;
        }

        .gps-brand-side {
            align-items: flex-start;
        }

        .gps-action-btn {
            width: 100%;
        }
    }

    /* ========================================================
       طراحی فوق لوکس اشتراک‌گذاری، امتیازدهی تعاملی و نظرات مدرن
       هماهنگی کامل با حالت روز (Light) و شب (Dark)
       ======================================================== */
    .luxury-engagement-container {
        margin: 3.5rem 0 2rem;
    }

    .luxury-share-card,
    .luxury-rating-card {
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 20px;
        padding: 1.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .luxury-share-card:hover,
    .luxury-rating-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
        border-color: rgba(16, 185, 129, 0.35);
    }

    .engagement-card-head {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .engagement-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .share-icon-box {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.25));
        color: #2563eb;
    }

    .star-icon-box {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28));
        color: #f59e0b;
    }

    .engagement-title {
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
        color: var(--text-main, #1e293b);
    }

    .engagement-subtitle {
        font-size: 0.8rem;
        color: var(--text-muted, #64748b);
        display: block;
        margin-top: 3px;
    }

    /* دکمه‌های شبکه‌های اجتماعی */
    .social-share-pills {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.65rem;
        margin-bottom: 1.25rem;
    }

    .social-share-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.75rem 0.5rem;
        border-radius: 14px;
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 700;
        transition: all 0.25s ease;
        border: 1px solid transparent;
    }

    .social-share-btn i {
        font-size: 1.25rem;
    }

    .btn-tg {
        background: rgba(36, 161, 222, 0.1);
        color: #24a1de;
        border-color: rgba(36, 161, 222, 0.2);
    }
    .btn-tg:hover {
        background: #24a1de;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(36, 161, 222, 0.35);
    }

    .btn-wa {
        background: rgba(37, 211, 102, 0.1);
        color: #25d366;
        border-color: rgba(37, 211, 102, 0.2);
    }
    .btn-wa:hover {
        background: #25d366;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    }

    .btn-eitaa {
        background: rgba(234, 88, 12, 0.1);
        color: #ea580c;
        border-color: rgba(234, 88, 12, 0.2);
    }
    .btn-eitaa:hover {
        background: #ea580c;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
    }

    .btn-tw {
        background: rgba(15, 23, 42, 0.08);
        color: var(--text-main, #1e293b);
        border-color: rgba(15, 23, 42, 0.15);
    }
    .btn-tw:hover {
        background: #0f172a;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    }

    /* نوار کپی لینک */
    .copy-link-input-wrap {
        display: flex;
        align-items: center;
        background: var(--bg-surface, #f8fafc);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 14px;
        padding: 0.35rem 0.45rem;
        gap: 0.5rem;
    }

    .copy-link-input-wrap input {
        border: none;
        background: transparent;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        direction: ltr;
        text-align: left;
        color: var(--text-muted, #64748b);
        width: 100%;
        outline: none;
    }

    .copy-link-action-btn {
        background: var(--primary, #10b981);
        color: #ffffff;
        border: none;
        border-radius: 10px;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
        transition: all 0.25s ease;
    }

    .copy-link-action-btn:hover {
        background: #059669;
        transform: scale(1.02);
    }

    /* بخش امتیازدهی لوکس */
    .rating-stats-hero {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 1rem 1.25rem;
        background: var(--bg-surface, #f8fafc);
        border-radius: 16px;
        margin-bottom: 1.25rem;
        border: 1px solid var(--border, #e2e8f0);
    }

    .rating-big-score {
        font-size: 2.8rem;
        font-weight: 900;
        color: #f59e0b;
        line-height: 1;
        letter-spacing: -1px;
    }

    .rating-score-meta {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .rating-stars-visual {
        display: flex;
        gap: 0.25rem;
        font-size: 1.15rem;
    }

    .text-amber-glow {
        color: #f59e0b;
        text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }

    .text-star-dim {
        color: #cbd5e1;
    }

    .rating-votes-count {
        font-size: 0.82rem;
        color: var(--text-muted, #64748b);
    }

    .interactive-stars-widget {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding-top: 0.25rem;
    }

    .interactive-stars-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--text-main, #334155);
    }

    .stars-interactive-row {
        display: inline-flex;
        flex-direction: row-reverse;
        gap: 0.5rem;
    }

    .star-vote-btn {
        background: transparent;
        border: none;
        padding: 0.25rem;
        cursor: pointer;
        color: #cbd5e1;
        font-size: 1.85rem;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        outline: none;
    }

    .star-vote-btn:hover,
    .star-vote-btn:hover ~ .star-vote-btn {
        color: #f59e0b;
        transform: scale(1.18);
        text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    }

    .rating-hint-text {
        font-size: 0.78rem;
        color: var(--text-muted, #94a3b8);
    }

    /* هماهنگی دارک مود برای بخش اشتراک و امتیاز */
    [data-theme="dark"] .luxury-share-card,
    [data-theme="dark"] .luxury-rating-card,
    html.dark .luxury-share-card,
    html.dark .luxury-rating-card,
    body.dark .luxury-share-card,
    body.dark .luxury-rating-card {
        background: #131d2e;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .luxury-share-card:hover,
    [data-theme="dark"] .luxury-rating-card:hover,
    html.dark .luxury-share-card:hover,
    html.dark .luxury-rating-card:hover,
    body.dark .luxury-share-card:hover,
    body.dark .luxury-rating-card:hover {
        background: #172338;
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    }

    [data-theme="dark"] .engagement-title,
    html.dark .engagement-title,
    body.dark .engagement-title {
        color: #f1f5f9;
    }

    [data-theme="dark"] .btn-tw,
    html.dark .btn-tw,
    body.dark .btn-tw {
        background: rgba(255, 255, 255, 0.05);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    [data-theme="dark"] .btn-tw:hover,
    html.dark .btn-tw:hover,
    body.dark .btn-tw:hover {
        background: #ffffff;
        color: #0f172a;
    }

    [data-theme="dark"] .copy-link-input-wrap,
    [data-theme="dark"] .rating-stats-hero,
    html.dark .copy-link-input-wrap,
    html.dark .rating-stats-hero,
    body.dark .copy-link-input-wrap,
    body.dark .rating-stats-hero {
        background: #0b111e;
        border-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="dark"] .text-star-dim,
    html.dark .text-star-dim,
    body.dark .text-star-dim {
        color: #334155;
    }

    [data-theme="dark"] .star-vote-btn,
    html.dark .star-vote-btn,
    body.dark .star-vote-btn {
        color: #334155;
    }

    [data-theme="dark"] .interactive-stars-label,
    html.dark .interactive-stars-label,
    body.dark .interactive-stars-label {
        color: #cbd5e1;
    }

    /* ========================================================
       استایل‌های فوق‌حرفه‌ای بخش نظرات مرحله‌ای و درخت دیدگاه‌های تو در تو
       ======================================================== */
    #commentsSection.comments-section {
        position: relative;
        margin-top: 2.5rem;
        margin-bottom: 2rem;
        padding: 2rem;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 24px;
        box-shadow: 0 12px 38px rgba(15, 23, 42, 0.05);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        overflow: hidden;
    }

    #commentsSection.comments-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary, #10b981);
    }

    .comments-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        padding-bottom: 1.1rem;
        border-bottom: 1px dashed var(--border, #e2e8f0);
    }

    .comments-title-wrap {
        display: flex;
        align-items: center;
        gap: 0.9rem;
    }

    .comments-title-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.14));
        border: 1px solid rgba(16, 185, 129, 0.28);
        color: #10b981;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .comments-section-header .section-subheading {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--text, #0f172a);
    }

    .comments-subtitle {
        margin: 0.2rem 0 0;
        font-size: 0.84rem;
        color: var(--text-muted, #64748b);
    }

    .comments-count-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.24);
        color: #059669;
        font-size: 0.86rem;
        font-weight: 700;
    }

    .comments-count-pill strong {
        font-size: 1rem;
        font-weight: 900;
    }

    .comments-locked-banner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 1.1rem;
        border-radius: 16px;
        background: rgba(148, 163, 184, 0.1);
        border: 1px dashed var(--border, #cbd5e1);
        color: var(--text-muted, #64748b);
        font-weight: 600;
        font-size: 0.92rem;
    }

    /* ===== کارت فرم مرحله‌ای ثبت دیدگاه (Wizard) ===== */
    .comment-wizard-card {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), #ffffff);
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 20px;
        padding: 1.4rem;
        box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .comment-wizard-card:focus-within {
        border-color: rgba(16, 185, 129, 0.45);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
    }

    .reply-target-banner {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.1));
        border: 1px solid rgba(16, 185, 129, 0.35);
        padding: 0.7rem 1rem;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-bottom: 1.1rem;
        font-size: 0.88rem;
        color: #047857;
        animation: wizardStepIn 0.25s ease;
    }

    .reply-banner-info {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .reply-banner-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: #10b981;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .btn-cancel-reply {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.25);
        color: #dc2626;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        padding: 0.32rem 0.75rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .btn-cancel-reply:hover {
        background: #ef4444;
        color: #ffffff;
    }

    /* نوار پیشرفت مراحل */
    .comment-wizard-stepper {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
        margin-bottom: 1.35rem;
        padding-bottom: 0.25rem;
    }

    .wizard-step-track {
        position: absolute;
        top: 19px;
        right: 12%;
        left: 12%;
        height: 3px;
        background: var(--border, #e2e8f0);
        border-radius: 999px;
        z-index: 0;
        overflow: hidden;
    }

    .wizard-step-track-fill {
        display: block;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #10b981, #06b6d4);
        border-radius: 999px;
        transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .wizard-step-pill {
        position: relative;
        z-index: 1;
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.42rem;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
        color: var(--text-muted, #64748b);
        transition: color 0.25s ease;
    }

    .wizard-step-pill .step-num {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--card-bg, #ffffff);
        border: 2px solid var(--border, #cbd5e1);
        color: var(--text-muted, #64748b);
        font-size: 0.9rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    }

    .wizard-step-pill .step-label {
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .wizard-step-pill.is-active {
        color: #059669;
    }

    .wizard-step-pill.is-active .step-num {
        background: linear-gradient(135deg, #10b981, #059669);
        border-color: #10b981;
        color: #ffffff;
        transform: scale(1.08);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    }

    .wizard-step-pill.is-done {
        color: #10b981;
    }

    .wizard-step-pill.is-done .step-num {
        background: rgba(16, 185, 129, 0.14);
        border-color: #10b981;
        color: #059669;
    }

    /* پنل هر مرحله */
    .wizard-step-panel {
        display: none;
    }

    .wizard-step-panel.is-active {
        display: block;
        animation: wizardStepIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes wizardStepIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes wizardFieldShake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }

    .wizard-field-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
        flex-wrap: wrap;
    }

    .wizard-field-label {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.94rem;
        font-weight: 800;
        color: var(--text, #1e293b);
        margin: 0;
    }

    .wizard-field-label i {
        color: #10b981;
    }

    .req-star {
        color: #ef4444;
        font-weight: 900;
    }

    .optional-tag {
        font-size: 0.74rem;
        font-weight: 700;
        padding: 0.15rem 0.55rem;
        border-radius: 999px;
        background: rgba(99, 102, 241, 0.1);
        color: #6366f1;
    }

    .wizard-char-counter {
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--text-muted, #94a3b8);
        background: rgba(148, 163, 184, 0.1);
        padding: 0.18rem 0.6rem;
        border-radius: 999px;
    }

    #commentsSection .form-control {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        color: var(--text, #0f172a);
        background: var(--input-bg, #ffffff);
        border: 1.5px solid var(--border, #cbd5e1);
        border-radius: 14px;
        outline: none;
        transition: all 0.25s ease;
        font-family: inherit;
    }

    #commentsSection .form-control:focus {
        border-color: #10b981;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
    }

    #commentsSection .form-control.is-invalid-step {
        border-color: #ef4444 !important;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14) !important;
        animation: wizardFieldShake 0.35s ease;
    }

    .wizard-textarea {
        resize: vertical;
        min-height: 122px;
        line-height: 1.85;
    }

    .wizard-input-icon-box {
        position: relative;
        display: flex;
        align-items: center;
    }

    .wizard-input-icon-box .field-lead-icon {
        position: absolute;
        right: 1rem;
        color: #94a3b8;
        font-size: 0.95rem;
        pointer-events: none;
        transition: color 0.2s ease;
    }

    .wizard-input-icon-box:focus-within .field-lead-icon {
        color: #10b981;
    }

    #commentsSection .wizard-input-with-icon {
        padding-right: 2.75rem;
    }

    .wizard-field-help {
        margin: 0.55rem 0 0;
        font-size: 0.8rem;
        color: var(--text-muted, #64748b);
        line-height: 1.6;
    }

    .wizard-inline-error {
        display: none;
        margin-top: 0.55rem;
        font-size: 0.82rem;
        font-weight: 700;
        color: #dc2626;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.2);
        padding: 0.45rem 0.75rem;
        border-radius: 10px;
    }

    .wizard-inline-error.is-visible {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    /* پیش‌نمایش خلاصه دیدگاه در مرحله ۲ و ۳ */
    .wizard-comment-snippet {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.6rem 0.85rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        background: rgba(16, 185, 129, 0.06);
        border: 1px solid rgba(16, 185, 129, 0.2);
        font-size: 0.84rem;
    }

    .wizard-comment-snippet .snippet-badge {
        font-weight: 800;
        color: #059669;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .wizard-comment-snippet .snippet-text {
        color: var(--text-muted, #475569);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .wizard-comment-snippet .snippet-edit-link {
        background: transparent;
        border: none;
        color: #10b981;
        font-weight: 800;
        font-size: 0.8rem;
        cursor: pointer;
        text-decoration: underline;
        font-family: inherit;
        flex-shrink: 0;
    }

    .wizard-review-box {
        margin-top: 1rem;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.03);
        border: 1px dashed var(--border, #cbd5e1);
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        font-size: 0.85rem;
    }

    .review-box-row {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .review-key {
        color: var(--text-muted, #64748b);
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        white-space: nowrap;
    }

    .review-val {
        color: var(--text, #0f172a);
        word-break: break-word;
    }

    .review-excerpt {
        color: var(--text-muted, #475569);
    }

    /* دکمه‌های ناوبری مراحل */
    .wizard-actions-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        flex-wrap: wrap;
        margin-top: 1.15rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border, #e2e8f0);
    }

    .wizard-hint-note {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.78rem;
        color: var(--text-muted, #94a3b8);
    }

    .wizard-btn-group {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-wrap: wrap;
        margin-right: auto;
    }

    .btn-wizard-next,
    .btn-wizard-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.72rem 1.45rem;
        border-radius: 12px;
        border: none;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 800;
        font-family: inherit;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
        transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

    .btn-wizard-next:hover,
    .btn-wizard-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(16, 185, 129, 0.36);
        filter: brightness(1.04);
    }

    .btn-wizard-next:disabled,
    .btn-wizard-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

    .btn-wizard-prev {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.68rem 1.15rem;
        border-radius: 12px;
        border: 1px solid var(--border, #cbd5e1);
        background: transparent;
        color: var(--text-muted, #475569);
        font-size: 0.88rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-wizard-prev:hover {
        background: rgba(148, 163, 184, 0.12);
        color: var(--text, #0f172a);
    }

    .btn-wizard-quick {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.68rem 1.1rem;
        border-radius: 12px;
        border: 1px solid rgba(16, 185, 129, 0.35);
        background: rgba(16, 185, 129, 0.08);
        color: #059669;
        font-size: 0.85rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-wizard-quick:hover {
        background: rgba(16, 185, 129, 0.16);
        border-color: #10b981;
    }

    /* وضعیت خالی بودن نظرات */
    .comments-empty-state {
        text-align: center;
        padding: 2.25rem 1.25rem;
        border-radius: 18px;
        border: 1.5px dashed var(--border, #cbd5e1);
        background: rgba(248, 250, 252, 0.6);
    }

    .comments-empty-state .empty-state-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        background: rgba(16, 185, 129, 0.12);
        color: #10b981;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .comments-empty-state h4 {
        margin: 0 0 0.35rem;
        font-size: 1.02rem;
        font-weight: 800;
        color: var(--text, #1e293b);
    }

    .comments-empty-state p {
        margin: 0;
        font-size: 0.88rem;
        color: var(--text-muted, #64748b);
    }

    /* ===== درخت دیدگاه‌ها و پشتیبانی از نظرات تو در تو ===== */
    #commentsSection .comments-tree {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    #commentsSection .modern-comment-node {
        position: relative;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
    }

    #commentsSection .modern-comment-card {
        position: relative;
        background: #ffffff;
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 18px;
        padding: 1.25rem 1.35rem;
        box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    #commentsSection .modern-comment-card:hover {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    }

    #commentsSection .modern-comment-card.is-admin-card {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.045), rgba(16, 185, 129, 0.03));
        border-color: rgba(245, 158, 11, 0.35);
    }

    #commentsSection .modern-comment-node.is-newly-added > .modern-comment-card {
        animation: commentFlashHighlight 1.6s ease;
    }

    @keyframes commentFlashHighlight {
        0% {
            opacity: 0;
            transform: translateY(-10px);
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35);
        }
        40% {
            opacity: 1;
            transform: translateY(0);
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28);
        }
        100% {
            box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
        }
    }

    .comment-head-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.9rem;
        flex-wrap: wrap;
    }

    .comment-user-box {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        min-width: 0;
    }

    .comment-avatar-bubble {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #ffffff;
        font-weight: 900;
        font-size: 1.12rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 14px rgba(16, 185, 129, 0.26);
        flex-shrink: 0;
    }

    .comment-avatar-bubble.avatar-admin {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        box-shadow: 0 6px 14px rgba(245, 158, 11, 0.32);
    }

    .comment-user-meta {
        display: flex;
        flex-direction: column;
        gap: 0.28rem;
        min-width: 0;
    }

    .comment-user-name-line {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .comment-author-title {
        font-size: 0.97rem;
        font-weight: 800;
        color: var(--text, #0f172a);
    }

    .badge-admin {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 0.18rem 0.58rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    }

    .reply-to-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.74rem;
        font-weight: 600;
        padding: 0.16rem 0.55rem;
        border-radius: 999px;
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
    }

    .comment-time-pill {
        font-size: 0.76rem;
        color: var(--text-muted, #94a3b8);
        display: inline-flex;
        align-items: center;
        gap: 0.32rem;
    }

    .comment-text-content {
        font-size: 0.95rem;
        line-height: 1.95;
        color: var(--text, #334155);
        margin-bottom: 1rem;
        white-space: pre-line;
        word-break: break-word;
    }

    .comment-foot-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        flex-wrap: wrap;
        padding-top: 0.8rem;
        border-top: 1px dashed var(--border, #e2e8f0);
    }

    .comment-reactions-group {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .reaction-btn {
        background: transparent;
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 10px;
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-muted, #64748b);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-family: inherit;
        transition: all 0.2s ease;
    }

    .reaction-btn.like-btn:hover,
    .reaction-btn.like-btn.is-active {
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
        border-color: #10b981;
    }

    .reaction-btn.dislike-btn:hover,
    .reaction-btn.dislike-btn.is-active {
        background: rgba(239, 68, 68, 0.12);
        color: #dc2626;
        border-color: #ef4444;
    }

    .comment-thread-toggle-btn {
        background: rgba(99, 102, 241, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 10px;
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
        font-weight: 700;
        color: #6366f1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.38rem;
        font-family: inherit;
        transition: all 0.2s ease;
    }

    .comment-thread-toggle-btn:hover {
        background: rgba(99, 102, 241, 0.16);
    }

    .comment-thread-toggle-btn .toggle-chevron {
        font-size: 0.68rem;
        transition: transform 0.25s ease;
    }

    .comment-thread-toggle-btn[aria-expanded="false"] .toggle-chevron {
        transform: rotate(180deg);
    }

    .comment-reply-action-btn {
        background: rgba(16, 185, 129, 0.08);
        border: 1px solid rgba(16, 185, 129, 0.22);
        color: #059669;
        font-weight: 800;
        font-size: 0.82rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.36rem 0.85rem;
        border-radius: 10px;
        font-family: inherit;
        transition: all 0.2s ease;
    }

    .comment-reply-action-btn:hover {
        background: #10b981;
        border-color: #10b981;
        color: #ffffff;
    }

    /* ساختار درختی تمیز و مدرن نظرات تو در تو (بدون خطوط اضافی) */
    #commentsSection .comment-replies-nest {
        position: relative;
        margin-right: 1.25rem;
        padding-right: 1.15rem;
        margin-top: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        border-right: 2px solid rgba(148, 163, 184, 0.28);
        transition: border-color 0.25s ease;
    }

    #commentsSection .comment-replies-nest:hover {
        border-right-color: rgba(16, 185, 129, 0.55);
    }

    #commentsSection .comment-replies-nest.is-collapsed-branch {
        display: none;
    }

    #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card {
        background: #f8fafc;
        border-radius: 16px;
        padding: 1.05rem 1.2rem;
        border-right: 3px solid rgba(16, 185, 129, 0.45);
    }

    #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card.is-admin-card {
        border-right-color: rgba(245, 158, 11, 0.7);
    }

    #commentsSection .modern-comment-node[data-depth="2"] > .modern-comment-card,
    #commentsSection .modern-comment-node[data-depth="4"] > .modern-comment-card {
        background: #ffffff;
    }

    #commentsSection .modern-comment-node.is-nested-reply .comment-avatar-bubble {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.98rem;
    }

    /* ریسپانسیو موبایل برای فرم و عمق‌های مختلف درخت دیدگاه */
    @media (max-width: 640px) {
        #commentsSection.comments-section {
            padding: 1.25rem 1rem;
            border-radius: 18px;
        }

        .comment-wizard-card {
            padding: 1rem;
            border-radius: 16px;
        }

        .wizard-step-pill .step-label {
            font-size: 0.72rem;
        }

        .wizard-step-pill .step-num {
            width: 34px;
            height: 34px;
            font-size: 0.84rem;
        }

        .wizard-actions-bar {
            flex-direction: column-reverse;
            align-items: stretch;
        }

        .wizard-btn-group {
            margin-right: 0;
            width: 100%;
            justify-content: space-between;
        }

        .btn-wizard-next,
        .btn-wizard-submit,
        .btn-wizard-prev,
        .btn-wizard-quick {
            flex: 1 1 auto;
            justify-content: center;
        }

        #commentsSection .comment-replies-nest {
            margin-right: 0.65rem;
            padding-right: 0.75rem;
        }

        /* جلوگیری از باریک شدن بیش از حد کارت در سطوح عمیق ۳، ۴ و ۵ در موبایل */
        #commentsSection .comment-replies-nest[data-nest-depth="3"],
        #commentsSection .comment-replies-nest[data-nest-depth="4"],
        #commentsSection .comment-replies-nest[data-nest-depth="5"] {
            margin-right: 0.25rem;
            padding-right: 0.55rem;
        }

        #commentsSection .modern-comment-card,
        #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card {
            padding: 0.95rem 0.95rem;
        }
    }

    /* ===== پشتیبانی کامل از تم دارک (Dark Mode) ===== */
    [data-theme="dark"] #commentsSection.comments-section,
    html.dark #commentsSection.comments-section,
    body.dark #commentsSection.comments-section {
        background: #111827;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
    }

    [data-theme="dark"] .comments-section-header .section-subheading,
    html.dark .comments-section-header .section-subheading,
    body.dark .comments-section-header .section-subheading {
        color: #f8fafc;
    }

    [data-theme="dark"] .comment-wizard-card,
    html.dark .comment-wizard-card,
    body.dark .comment-wizard-card {
        background: linear-gradient(180deg, #162033, #111827);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
    }

    [data-theme="dark"] .wizard-step-track,
    html.dark .wizard-step-track,
    body.dark .wizard-step-track {
        background: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .wizard-step-pill .step-num,
    html.dark .wizard-step-pill .step-num,
    body.dark .wizard-step-pill .step-num {
        background: #0f172a;
        border-color: rgba(255, 255, 255, 0.15);
        color: #94a3b8;
    }

    [data-theme="dark"] .wizard-step-pill.is-active,
    html.dark .wizard-step-pill.is-active,
    body.dark .wizard-step-pill.is-active {
        color: #34d399;
    }

    [data-theme="dark"] .wizard-step-pill.is-active .step-num,
    html.dark .wizard-step-pill.is-active .step-num,
    body.dark .wizard-step-pill.is-active .step-num {
        background: linear-gradient(135deg, #10b981, #059669);
        border-color: #10b981;
        color: #ffffff;
    }

    [data-theme="dark"] .wizard-field-label,
    html.dark .wizard-field-label,
    body.dark .wizard-field-label,
    [data-theme="dark"] .review-val,
    html.dark .review-val,
    body.dark .review-val,
    [data-theme="dark"] .comments-empty-state h4,
    html.dark .comments-empty-state h4,
    body.dark .comments-empty-state h4 {
        color: #f1f5f9;
    }

    [data-theme="dark"] #commentsSection .form-control,
    html.dark #commentsSection .form-control,
    body.dark #commentsSection .form-control {
        background: #0b111e;
        border-color: rgba(255, 255, 255, 0.12);
        color: #f8fafc;
    }

    [data-theme="dark"] #commentsSection .form-control::placeholder,
    html.dark #commentsSection .form-control::placeholder,
    body.dark #commentsSection .form-control::placeholder {
        color: #64748b;
    }

    [data-theme="dark"] .wizard-review-box,
    html.dark .wizard-review-box,
    body.dark .wizard-review-box,
    [data-theme="dark"] .comments-empty-state,
    html.dark .comments-empty-state,
    body.dark .comments-empty-state {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .wizard-actions-bar,
    html.dark .wizard-actions-bar,
    body.dark .wizard-actions-bar {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="dark"] .reply-target-banner,
    html.dark .reply-target-banner,
    body.dark .reply-target-banner {
        color: #6ee7b7;
    }

    [data-theme="dark"] .btn-wizard-prev,
    html.dark .btn-wizard-prev,
    body.dark .btn-wizard-prev {
        border-color: rgba(255, 255, 255, 0.14);
        color: #cbd5e1;
    }

    [data-theme="dark"] .btn-wizard-prev:hover,
    html.dark .btn-wizard-prev:hover,
    body.dark .btn-wizard-prev:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    [data-theme="dark"] .btn-wizard-quick,
    html.dark .btn-wizard-quick,
    body.dark .btn-wizard-quick {
        color: #34d399;
        background: rgba(16, 185, 129, 0.12);
    }

    [data-theme="dark"] #commentsSection .modern-comment-card,
    html.dark #commentsSection .modern-comment-card,
    body.dark #commentsSection .modern-comment-card {
        background: #172033;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    }

    [data-theme="dark"] #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card,
    html.dark #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card,
    body.dark #commentsSection .modern-comment-node.is-nested-reply > .modern-comment-card {
        background: #131c2d;
    }

    [data-theme="dark"] #commentsSection .modern-comment-node[data-depth="2"] > .modern-comment-card,
    [data-theme="dark"] #commentsSection .modern-comment-node[data-depth="4"] > .modern-comment-card,
    html.dark #commentsSection .modern-comment-node[data-depth="2"] > .modern-comment-card,
    html.dark #commentsSection .modern-comment-node[data-depth="4"] > .modern-comment-card,
    body.dark #commentsSection .modern-comment-node[data-depth="2"] > .modern-comment-card,
    body.dark #commentsSection .modern-comment-node[data-depth="4"] > .modern-comment-card {
        background: #192438;
    }

    [data-theme="dark"] #commentsSection .modern-comment-card.is-admin-card,
    html.dark #commentsSection .modern-comment-card.is-admin-card,
    body.dark #commentsSection .modern-comment-card.is-admin-card {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(16, 185, 129, 0.05));
        border-color: rgba(245, 158, 11, 0.35);
    }

    [data-theme="dark"] .comment-author-title,
    html.dark .comment-author-title,
    body.dark .comment-author-title {
        color: #f8fafc;
    }

    [data-theme="dark"] .comment-text-content,
    html.dark .comment-text-content,
    body.dark .comment-text-content {
        color: #cbd5e1;
    }

    [data-theme="dark"] .comment-foot-actions,
    html.dark .comment-foot-actions,
    body.dark .comment-foot-actions {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="dark"] .reaction-btn,
    html.dark .reaction-btn,
    body.dark .reaction-btn {
        border-color: rgba(255, 255, 255, 0.12);
        color: #94a3b8;
    }

    [data-theme="dark"] .reply-to-chip,
    html.dark .reply-to-chip,
    body.dark .reply-to-chip {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399;
    }

    [data-theme="dark"] .comment-reply-action-btn,
    html.dark .comment-reply-action-btn,
    body.dark .comment-reply-action-btn {
        color: #34d399;
    }

    /* استایل‌های برتر مقالات مرتبط برای رفع هرگونه کشیدگی یا برش ناخواسته تصویر */
    .related-thumb-link {
        aspect-ratio: 16 / 10 !important;
        position: relative;
        overflow: hidden;
        display: block;
        background: #0f172a;
    }

    .related-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: top center !important;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .related-thumb-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
        pointer-events: none;
    }

    .related-badge-topic {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(16, 185, 129, 0.9);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 0.25rem 0.65rem;
        border-radius: 8px;
        backdrop-filter: blur(8px);
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }
