
/* ============================================ */
/* غیرفعال‌سازی کامل اسکرول نرم */
/* ============================================ */

/* حذف اسکرول نرم از کل صفحه */
html {
    scroll-behavior: auto !important;
    scroll-padding-top: 90px; !important;
}

/* حذف scroll-margin از تمام المان‌ها */
* {
    scroll-margin-top: 1px; !important;
}

/* حذف از کلاس‌های خاص */
.item-title,
.training-section,
.content-item,
[class*="item"] {
    scroll-margin-top: 0 !important;
}

/* حذف از هدرها و بخش‌ها */
h1, h2, h3, h4, h5, h6,
section, article, div[id] {
    scroll-margin-top: 0 !important;
}


    /* متغیرهای رنگ برای تم روشن (پیش‌فرض) */
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --bg-tertiary: #f1f5f9;
        --text-primary: #0f172a;
        --text-secondary: #334155;
        --text-tertiary: #64748b;
        --accent-primary: #2563eb;
        --accent-secondary: #059669;
        --accent-danger: #dc2626;
        --accent-warning: #d97706;
        --border-color: #e2e8f0;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --sidebar-width: 280px;
        --transition-speed: 0.3s;
        --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        --radius: 12px;
    }
    
    /* متغیرهای رنگ برای تم تیره */
    [data-theme="dark"] {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --accent-primary: #3b82f6;
        --accent-secondary: #10b981;
        --accent-danger: #ef4444;
        --accent-warning: #f59e0b;
        --border-color: #475569;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    }
    
    /* استایل ماشین حساب برای تم روشن */
    [data-theme="light"] .risk-calculator {
        background: linear-gradient(135deg, #f8fafc, #e2e8f0);
        border: 1px solid #cbd5e1;
    }
    
    [data-theme="light"] .calculator-title {
        background: linear-gradient(135deg, #2563eb, #059669);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    [data-theme="light"] .calculator-input {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        color: #0f172a;
    }
    
    [data-theme="light"] .calculator-result {
        background: linear-gradient(135deg, #e0f2fe, #dcfce7);
        border: 1px solid #2563eb;
    }
    
    [data-theme="light"] .calculate-btn {
        background: linear-gradient(135deg, #2563eb, #059669);
        color: #ffffff;
    }
    
    [data-theme="light"] .scalping-card {
        background: #ffffff;
        border: 1px solid #cbd5e1;
    }
    
    /* استایل‌های پایه */
    .training-page {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        min-height: 100vh;
        transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
        font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        margin: 0;
        padding: 0;
    }
    
    /* کانتینر اصلی */
    .training-container {
        display: flex;
        gap: 30px;
        position: relative;
       max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        min-height: calc(100vh - 160px);
    }
    
    /* سایدبار فهرست */
    .training-sidebar {
        width: var(--sidebar-width);
        background-color: var(--bg-secondary);
        border-radius: var(--radius);
        padding: 20px;
        position: sticky;
        top: 100px;
        height: calc(100vh - 140px);
        overflow-y: auto;
        transition: all var(--transition-speed) ease;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        z-index: 80;
    }
    
    .training-sidebar.collapsed {
        transform: translateX(calc(var(--sidebar-width) + 20px));
        opacity: 0;
        visibility: hidden;
        position: fixed;
    }
    
    /* محتوای اصلی */
    .training-content {
        flex: 1;
        min-width: 0;
        transition: all var(--transition-speed) ease;
        background-color: var(--bg-primary);
    }
    
    .training-content.full-width {
        width: 100%;
    }
    
    /* هدر سایدبار */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-header h3 {
        margin: 0;
        color: var(--text-primary);
        font-size: 1.2rem;
    }
    
    .close-sidebar {
        background: none;
        border: none;
        color: var(--text-tertiary);
        cursor: pointer;
        font-size: 1.2rem;
        padding: 5px;
        border-radius: 5px;
        transition: all var(--transition-speed) ease;
    }
    
    .close-sidebar:hover {
        color: var(--accent-primary);
        background-color: var(--bg-tertiary);
    }
    
    /* منوی سایدبار */
    .sidebar-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .menu-item {
        margin-bottom: 5px;
    }
    
    .menu-item a {
        display: flex;
        align-items: center;
        padding: 12px 1px;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: 8px;
        transition: all var(--transition-speed) ease;
        font-size: 0.95rem;
    }
    
    .menu-item a:hover {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    .menu-item a.active {
        background-color: var(--accent-primary);
        color: white;
        font-weight: 600;
    }
    
    .menu-item a i {
        margin-left: 10px;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    
    /* بخش‌های محتوای آموزشی */
    .training-section {
        background-color: var(--bg-secondary);
        border-radius: var(--radius);
        padding: 30px;
        margin-bottom: 30px;
        margin-top: 50px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        transition: all var(--transition-speed) ease;
    }
    
    .section-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--accent-primary);
    }
    
    .section-header h2 {
        color: var(--text-primary);
        margin: 0 0 10px 0;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .section-header p {
        color: var(--text-tertiary);
        margin: 0;
        font-size: 1rem;
    }
    
    /* محتوای آموزشی */
    .section-content {
        color: var(--text-secondary);
        line-height: 1.8;
    }
    
    .section-content h3 {
        color: var(--text-primary);
        margin: 25px 0 15px 0;
        font-size: 1.4rem;
    }
    
    .section-content h4 {
        color: var(--text-primary);
        margin: 20px 0 10px 0;
        font-size: 1.2rem;
    }
    
    .section-content p {
        margin-bottom: 15px;
    }
    
    .section-content ul, .section-content ol {
        padding-right: 20px;
        margin-bottom: 20px;
    }
    
    .section-content li {
        margin-bottom: 10px;
    }
    
    /* بلوک‌های ویژه */
    .info-box {
        background-color: var(--bg-tertiary);
        border-right: 4px solid var(--accent-primary);
        padding: 20px;
        border-radius: var(--radius);
        margin: 20px 0;
    }
    
    .warning-box {
        background-color: rgba(239, 68, 68, 0.1);
        border-right: 4px solid var(--accent-danger);
        padding: 20px;
        border-radius: var(--radius);
        margin: 20px 0;
    }
    
    .success-box {
        background-color: rgba(16, 185, 129, 0.1);
        border-right: 4px solid var(--accent-secondary);
        padding: 20px;
        border-radius: var(--radius);
        margin: 20px 0;
    }
    
    .stage-box {
        background-color: rgba(245, 158, 11, 0.1);
        border-right: 4px solid var(--accent-warning);
        padding: 20px;
        border-radius: var(--radius);
        margin: 20px 0;
    }
    
  /* اصلاح استایل‌های تصویر آموزشی */
/* تصاویر آموزشی */
.training-image, .item-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius);
    margin: 25px auto;
    display: block;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.training-image img, .item-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* سیستم بزرگنمایی تصاویر - نسخه نهایی */
.training-image, .item-image, .training-diagram {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.training-image:hover, .item-image:hover, .training-diagram:hover {
    transform: scale(1.02);
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    background: transparent !important;
}

.training-image:hover .zoom-overlay,
.item-image:hover .zoom-overlay,
.training-diagram:hover .zoom-overlay {
    opacity: 1;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.training-image:hover .zoom-btn,
.item-image:hover .zoom-btn,
.training-diagram:hover .zoom-btn {
    transform: scale(1);
}

.zoom-btn:hover {
    transform: scale(1.1) !important;
    background: var(--accent-primary);
    color: white;
}

.zoom-btn i {
    font-size: 1.8rem;
}

/* مودال بزرگنمایی - اصلاح شده */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease; /* اضافه شده برای انیمیشن زوم */
}

/* دکمه بستن - انتقال به سمت راست */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px; /* تغییر از left به right */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px 20px;
    font-size: 1.1rem;
    z-index: 10000;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.modal-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* نمایش وضعیت زوم - انتقال به سمت چپ */
.zoom-level {
    position: fixed;
    top: 20px;
    left: 20px; /* تغییر از right به left */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10000;
    display: none;
    font-family: monospace;
}

.image-modal.active .zoom-level {
    display: block;
}

/* انیمیشن‌ها */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal.active {
    animation: modalFadeIn 0.3s ease;
}

.image-modal.active .modal-image {
    animation: imageZoomIn 0.4s ease 0.1s both;
}

/* برای تصاویر خطادار */
.modal-image.error {
    border: 2px solid var(--accent-danger);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.modal-image.error::after {
    content: 'تصویر بارگیری نشد';
    color: white;
    font-size: 1.2rem;
    text-align: center;
    display: block;
    padding: 20px;
}


    /* دکمه‌های ناوبری درس */
    .lesson-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 40px;
        padding-top: 20px;
        /*border-top: 1px solid var(--border-color);*/
    }
    
    /* پیشرفت آموزشی */
    .progress-container {
        margin: 30px 0;
    }
    
    .progress-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .progress-bar {
        height: 8px;
        background-color: var(--bg-tertiary);
        border-radius: 4px;
        overflow: hidden;
    }
    
    .progress-fill {
        height: 100%;
        background-color: var(--accent-primary);
        border-radius: 4px;
        transition: width 0.5s ease;
    }
    
    /* پانویس سایدبار */
    .sidebar-footer {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        font-size: 0.85rem;
        color: var(--text-tertiary);
        text-align: center;
    }
    
    /* دکمه بازگشایی سایدبار زمانی که بسته است */
    .open-sidebar-btn {
        position: fixed;
        top: 100px;
        right: 20px;
        background-color: var(--accent-primary);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 70;
        box-shadow: var(--shadow);
        transition: all var(--transition-speed) ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .open-sidebar-btn.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .open-sidebar-btn:hover {
        transform: scale(1.1);
    }
    
    /* دکمه‌های شناور - سمت چپ عمودی */
    .floating-buttons-training {
        position: fixed;
        bottom: 30px;
        left: 30px;
        right: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 999;
        transition: left var(--transition-speed) ease;
    }
    
    /* وقتی سایدبار باز است */
    .training-sidebar:not(.collapsed) ~ .floating-buttons-training {
        left: 30px;
    }
    
    /* وقتی سایدبار بسته است */
    .training-sidebar.collapsed ~ .floating-buttons-training {
        left: 30px;
    }
    
    /* دکمه شناور */
    .floating-button-training {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        transition: all var(--transition-speed) ease;
        position: relative;
    }
    
    .floating-button-training:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    }
    
    /* توپ برای دکمه‌های شناور */
    .floating-button-training .tooltip-training {
        position: absolute;
        right: auto;
        left: calc(100% + 10px);
        background: var(--bg-secondary);
        color: var(--text-primary);
        padding: 8px 12px;
        border-radius: var(--radius);
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-10px);
        transition: all var(--transition-speed) ease;
        pointer-events: none;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow);
    }
    
    .floating-button-training:hover .tooltip-training {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* دکمه اسکرول به بالا - همیشه نمایش داده شود */
    .floating-button-training#scrollTopTraining {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }
    
    /* استایل برای دکمه‌ها */
    .btn {
        padding: 10px 20px;
        border-radius: var(--radius);
        border: none;
        cursor: pointer;
        font-weight: 600;
        transition: all var(--transition-speed) ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        background-color: var(--accent-primary);
        color: white;
    }
    
    .btn-primary:hover {
        background-color: var(--accent-primary);
        opacity: 0.9;
        transform: translateY(-2px);
    }
    
    .btn-outline {
        background-color: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }
    
    .btn-outline:hover {
        background-color: var(--bg-tertiary);
    }
    
    /* انیمیشن‌ها */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .fade-in {
        animation: fadeIn 0.6s ease forwards;
    }
    
    /* رسپانسیو */
    @media (max-width: 1024px) {
        .training-sidebar {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 100;
            max-height: calc(100vh - 100px);
            box-shadow: 0 10px 25px var(--shadow-color);
        }
        
        .training-sidebar:not(.collapsed) {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }
        
        .open-sidebar-btn {
            opacity: 1;
            visibility: visible;
        }
        
        .training-container {
            padding: 10px;
            flex-direction: column;
        }
        
        .training-content {
            padding-top: 20px;
        }
        
        .floating-buttons-training {
            left: 15px !important;
            bottom: 15px;
        }
        
        .floating-button-training {
            width: 48px;
            height: 48px;
            font-size: 1rem;
        }
    }
    
    @media (max-width: 768px) {
        .training-section {
            padding: 20px;
        }
        
        .section-header h2 {
            font-size: 1.5rem;
        }
        
        .training-sidebar {
            width: 90vw;
            right: 5vw;
        }
        
        .timeline {
            padding-right: 20px;
        }
        
        .training-image {
            max-width: 100%;
        }
    }
    
    @media (max-width: 480px) {
        .training-sidebar {
            width: 95vw;
            right: 2.5vw;
        }
        
        .section-content h3 {
            font-size: 1.2rem;
        }
        
        .btn {
            padding: 8px 15px;
            font-size: 0.85rem;
        }
        
        .floating-buttons-training {
            left: 10px !important;
            bottom: 10px;
        }
    }
    
    /* استایل‌های جدید برای آیتم‌های آموزشی */
    .content-item {
        background-color: var(--bg-primary);
        border-radius: var(--radius);
        padding: 25px;
        margin: 25px 0;
        border: 1px solid var(--border-color);
        transition: all var(--transition-speed) ease;
    }
    
    .content-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }
    
    .item-title {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        padding-top: 75px;
        border-bottom: 2px solid var(--accent-primary);
        
    }
    
    .item-title i {
        font-size: 1.5rem;
        color: var(--accent-primary);
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .item-title h3 {
        margin: 0;
        color: var(--text-primary);
        font-size: 1.4rem;
    }
    
    .item-description {
        color: var(--text-secondary);
        line-height: 1.8;
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
   
    .item-tip {
        background-color: rgba(245, 158, 11, 0.1);
        border-right: 4px solid var(--accent-warning);
        padding: 15px;
        border-radius: var(--radius);
        margin: 20px 0;
        font-size: 0.95rem;
    }
    
    .item-tip h4 {
        color: var(--accent-warning);
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* استایل‌های جدید برای بخش فهرست آموزشی */
    .training-category {
        background-color: var(--bg-primary);
        border-radius: var(--radius);
        padding: 30px;
        margin-bottom: 30px;
        border: none;
        box-shadow: var(--shadow);
    }
    
    .category-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--accent-primary);
    }
    
    .category-header i {
        font-size: 2rem;
        color: var(--accent-primary);
    }
    
    .category-header h2 {
        margin: 0;
        color: var(--text-primary);
        font-size: 1.8rem;
    }
    
    .category-description {
        color: var(--text-secondary);
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }
    
    /* استایل برای عکس‌ها */
    .training-diagram {
        max-width: 700px;
        margin: 30px auto;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }
    
    .training-diagram img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .diagram-caption {
        text-align: center;
        color: var(--text-tertiary);
        font-size: 0.9rem;
        margin-top: 10px;
        font-style: italic;
        padding: 0 10px;
    }

    /* استایل‌های ساب‌منو */
    .menu-item.has-submenu {
        position: relative;
    }
    
    .menu-item.has-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-item.has-submenu > a .submenu-toggle {
        transition: transform 0.3s ease;
        font-size: 0.9rem;
    }
    
    .menu-item.has-submenu.active > a .submenu-toggle {
        transform: rotate(180deg);
    }
    
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.03);
        border-radius: var(--radius);
        margin: 5px 0;
    }
    
    .training-page[data-theme="dark"] .submenu {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .menu-item.has-submenu.active .submenu {
        max-height: 10000px;
    }
    
    .submenu li {
        margin: 0;
        padding: 0;
    }
    
    .submenu a {
        padding: 10px 5px 10px 5px;
        font-size: 0.9rem;
        display: flex;
        align-items: right;
        gap: 2px;
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }
    
    .submenu a:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-primary);
    }
    
    .training-page[data-theme="dark"] .submenu a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .submenu a i {
        font-size: 0.8rem;
    }
    
    /* آیکون‌های کوچک برای ساب‌منو */
    .submenu .fa-mountain { color: #4CAF50; }
    .submenu .fa-flag { color: #FF9800; }
    .submenu .fa-play { color: #2196F3; }
    .submenu .fa-chart-line { color: #9C27B0; }
    .submenu .fa-balance-scale { color: #795548; }
    .submenu .fa-exchange-alt { color: #00BCD4; }
    .submenu .fa-crosshairs { color: #FF5722; }
    .submenu .fa-thermometer-half { color: #F44336; }
    .submenu .fa-code-branch { color: #3F51B5; }
    .submenu .fa-shield-alt { color: #009688; }
    .submenu .fa-bolt { color: #FFC107; }
    .submenu .fa-arrows-alt-h { color: #673AB7; }
    .submenu .fa-puzzle-piece { color: #E91E63; }
    .submenu .fa-book-open { color: #607D8B; }
    .submenu .fa-dumbbell { color: #4CAF50; }

.wedge-types {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 25px 0;
}

.wedge-type {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    border-right: 5px solid #4a90e2;
}

.type-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #dee2e6;
}

.type-number {
    background: #4a90e2;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tip-card {
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #28a745;
}

.tip-card h5 {
    color: #28a745;
    margin-bottom: 10px;
}

.common-questions {
    margin: 30px 0;
}

.faq-item {
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-right: 4px solid #ffc107;
}

.faq-item h5 {
    color: #856404;
    margin-bottom: 10px;
}

.real-market-example {
    background: transparent;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}


/* استایل‌های مدرن برای جداول - مخصوص بخش‌های فیبوناچی و الیوت */

/* جدول اصلی */
.fibo-comparison,
.elliott-table,
.corrective-patterns-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--bg-primary);
    /*border-radius: var(--radius);*/
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.fibo-comparison:hover,
.elliott-table:hover,
.corrective-patterns-table:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* هدر جدول */
.fibo-comparison th,
.elliott-table th,
.corrective-patterns-table th {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
    padding: 18px 15px;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.fibo-comparison th:first-child,
.elliott-table th:first-child,
.corrective-patterns-table th:first-child {
    /*border-radius: var(--radius) 0 0 0;*/
}

.fibo-comparison th:last-child,
.elliott-table th:last-child,
.corrective-patterns-table th:last-child {
    /*border-radius: 0 var(--radius) 0 0;*/
}

/* سطرهای جدول */
.fibo-comparison tr,
.elliott-table tr,
.corrective-patterns-table tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.fibo-comparison tr:last-child,
.elliott-table tr:last-child,
.corrective-patterns-table tr:last-child {
    border-bottom: none;
}

.fibo-comparison tr:hover,
.elliott-table tr:hover,
.corrective-patterns-table tr:hover {
    background-color: var(--bg-tertiary);
}

/* سلول‌های جدول */
.fibo-comparison td,
.elliott-table td,
.corrective-patterns-table td {
    padding: 16px 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.fibo-comparison td:last-child,
.elliott-table td:last-child,
.corrective-patterns-table td:last-child {
    border-right: none;
}

/* سطرهای زوج و فرد */
.fibo-comparison tr:nth-child(even),
.elliott-table tr:nth-child(even),
.corrective-patterns-table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* هایلایت سطرهای مهم */
.fibo-comparison tr.highlight-row,
.elliott-table tr.highlight-row {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent) !important;
    border-left: 3px solid var(--accent-primary);
}

/* استایل برای ستون اول (معمولاً مهم‌ترین) */
.fibo-comparison td:first-child,
.elliott-table td:first-child,
.corrective-patterns-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* استایل برای مقادیر عددی (سطوح فیبوناچی) */
.fibo-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 8px;
    /*border-radius: 6px;*/
    display: inline-block;
    min-width: 60px;
}

/* استایل برای سطوح کلیدی */
.fibo-key-level {
    color: var(--accent-secondary) !important;
    font-weight: 700;
    position: relative;
}

.fibo-key-level::after {
    content: "★";
    color: var(--accent-warning);
    margin-right: 5px;
    font-size: 0.9rem;
}

/* استایل برای امواج الیوت */
.wave-cell {
    font-weight: 600;
    position: relative;
    padding-right: 25px !important;
}

.wave-cell::before {
    content: "↗";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* سطر هدر برای موج‌ها */
.wave-header-row {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)) !important;
    color: white !important;
}

.wave-header-row td {
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
}

/* جدول مقایسه‌ای فیبوناچی */
.fibo-comparison {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.fibo-comparison th {
    background: linear-gradient(135deg, #9C27B0, #673AB7);
}

/* جدول امواج الیوت */
.elliott-table {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.elliott-table th {
    background: linear-gradient(135deg, var(--accent-primary), #3B82F6);
}

/* جدول الگوهای اصلاحی */
.corrective-patterns-table th {
    background: linear-gradient(135deg, var(--accent-secondary), #10B981);
}

/* نشانگر در ستون درصدها */
.percentage-cell {
    position: relative;
    padding-left: 30px !important;
}

.percentage-cell::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    /*border-radius: 50%;*/
    background-color: var(--accent-primary);
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .fibo-comparison,
    .elliott-table,
    .corrective-patterns-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .fibo-comparison th,
    .elliott-table th,
    .corrective-patterns-table th {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .fibo-comparison td,
    .elliott-table td,
    .corrective-patterns-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .fibo-number {
        min-width: 50px;
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* استایل برای تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .fibo-comparison,
    .elliott-table,
    .corrective-patterns-table {
        font-size: 0.9rem;
    }
    
    .fibo-comparison th,
    .elliott-table th,
    .corrective-patterns-table th {
        padding: 15px 12px;
    }
    
    .fibo-comparison td,
    .elliott-table td,
    .corrective-patterns-table td {
        padding: 14px 12px;
    }
}

/* انیمیشن برای ظاهر شدن جدول */
@keyframes tableFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fibo-comparison,
.elliott-table,
.corrective-patterns-table {
    animation: tableFadeIn 0.6s ease forwards;
}

/* استایل برای تم تیره */
[data-theme="dark"] .fibo-comparison,
[data-theme="dark"] .elliott-table,
[data-theme="dark"] .corrective-patterns-table {
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .fibo-comparison tr:nth-child(even),
[data-theme="dark"] .elliott-table tr:nth-child(even),
[data-theme="dark"] .corrective-patterns-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .fibo-number {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .fibo-comparison tr:hover,
[data-theme="dark"] .elliott-table tr:hover,
[data-theme="dark"] .corrective-patterns-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* استایل‌های اضافی برای جداول خاص */
/* جدول سطوح فیبوناچی در بخش فیبوناچی */
.key-levels table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.key-levels th {
    background: linear-gradient(135deg, var(--accent-warning), #F59E0B);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.key-levels td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

.key-levels tr:last-child td {
    border-bottom: none;
}

/* هایلایت برای سطوح طلایی فیبوناچی */
.golden-level {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-right: 3px solid var(--accent-warning);
    font-weight: 700;
    color: var(--accent-warning) !important;
}

/* استایل برای اعداد مهم */
.important-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

/* نشانگر روند در جداول الیوت */
.trend-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    /*border-radius: 50%;*/
    margin-left: 8px;
}

.trend-up {
    background-color: var(--accent-secondary);
}

.trend-down {
    background-color: var(--accent-danger);
}

.trend-neutral {
    background-color: var(--text-tertiary);
}




   .image-caption {
        background: rgba(0, 255, 0, 0.1);
        padding: 20px;
        border-radius: 0;
        margin-top: 0;
        border: none;
        text-align: right;
    }
    
    
    /* استایل rule-number برای تم روشن */
[data-theme="light"] .rule-number {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* استایل rule-number برای تم تیره */
[data-theme="dark"] .rule-number {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* استایل پایه rule-number (مشترک بین دو تم) */
.rule-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* افکت hover مشترک */
.rule-number:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* افکت glow برای اهمیت بیشتر */
.rule-number::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.1));
    z-index: -1;
}

/* استایل خاص برای هر شماره قانون */
.rule-number:nth-child(1) {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.rule-number:nth-child(2) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rule-number:nth-child(3) {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* تنظیمات تم برای شماره‌های خاص */
[data-theme="dark"] .rule-number:nth-child(1) {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

[data-theme="dark"] .rule-number:nth-child(2) {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

[data-theme="dark"] .rule-number:nth-child(3) {
    background: linear-gradient(135deg, #34d399, #059669);
}

/* انیمیشن برای نمایش ترتیبی */
@keyframes ruleNumberAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.rule-number {
    animation: ruleNumberAppear 0.6s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .rule-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-right: 10px;
    }
}

/* استایل برای تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .rule-number {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}

/* استایل strength-indicators برای تم روشن */
.strength-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.indicator-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.indicator-card h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-card h5 i {
    color: #3498db;
}

.indicator-card ul {
    list-style: none;
    padding: 0;
}

.indicator-card li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
    color: #495057;
}

.indicator-card li:last-child {
    border-bottom: none;
}

.indicator-card .strong {
    color: #27ae60;
    font-weight: 600;
}

.indicator-card .weak {
    color: #e74c3c;
    font-weight: 600;
}

.indicator-card .warning {
    color: #f39c12;
    font-weight: 600;
}

/* استایل strength-indicators برای تم تیره */
[data-theme="dark"] .strength-indicators {
    color: #e4e6eb;
}

[data-theme="dark"] .indicator-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .indicator-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: #5d6b82;
}

[data-theme="dark"] .indicator-card h5 {
    color: #e2e8f0;
}

[data-theme="dark"] .indicator-card h5 i {
    color: #63b3ed;
}

[data-theme="dark"] .indicator-card ul {
    color: #cbd5e0;
}

[data-theme="dark"] .indicator-card li {
    border-bottom: 1px dashed #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .indicator-card .strong {
    color: #68d391;
}

[data-theme="dark"] .indicator-card .weak {
    color: #fc8181;
}

[data-theme="dark"] .indicator-card .warning {
    color: #f6ad55;
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .strength-indicators {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .indicator-card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .indicator-card h5 {
        font-size: 1rem;
    }
    
    .indicator-card {
        padding: 1rem;
    }
}


/* استایل برای جدول خلاصه نکات کلیدی */
.summary-table {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
}

.summary-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.summary-table h4 {
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-table h4 i {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: calc(var(--radius) - 5px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
}

/* هدر جدول */
.summary-table thead {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.summary-table th {
    color: white;
    font-weight: 600;
    padding: 18px 20px;
    text-align: center;
    font-size: 1rem;
    position: relative;
    border: none;
    text-align: right;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-table th:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-table th:not(:first-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* سطرهای جدول */
.summary-table tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.summary-table tr:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.002);
}

.summary-table tr:last-child {
    border-bottom: none;
}

/* سلول‌های جدول */
.summary-table td {
    padding: 20px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-right: 1px solid var(--border-color);
    vertical-align: top;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border-right: 2px solid var(--accent-primary);
}

.summary-table td:nth-child(2) {
    background-color: rgba(37, 99, 235, 0.05);
    border-right: 2px solid var(--border-color);
}

.summary-table td:nth-child(3) {
    background-color: rgba(16, 185, 129, 0.05);
}

/* سطرهای زوج و فرد */
.summary-table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.summary-table tbody tr:nth-child(even):hover {
    background-color: var(--bg-tertiary);
}

/* هایلایت سطرهای مهم */
.summary-table tr.highlight {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent) !important;
    border-right: 3px solid var(--accent-primary);
}

/* استایل برای تم تیره */
[data-theme="dark"] .summary-table {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .summary-table thead {
    background: linear-gradient(135deg, #3b82f6, #10b981);
}

[data-theme="dark"] .summary-table td:first-child {
    background-color: rgba(255, 255, 255, 0.05);
    border-right-color: var(--accent-primary);
}

[data-theme="dark"] .summary-table td:nth-child(2) {
    background-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .summary-table td:nth-child(3) {
    background-color: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .summary-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .summary-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .summary-table {
        padding: 15px;
        margin: 25px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .summary-table h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .summary-table table {
        min-width: 600px; /* حداقل عرض برای اسکرول */
        font-size: 0.9rem;
    }
    
    .summary-table th {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .summary-table td {
        padding: 15px;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .summary-table td:first-child {
        min-width: 120px; /* حداقل عرض برای ستون اول */
    }
}

/* استایل برای تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
    .summary-table {
        padding: 20px;
    }
    
    .summary-table th {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .summary-table td {
        padding: 18px;
        font-size: 0.9rem;
    }
}

/* انیمیشن برای ظاهر شدن جدول */
@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.summary-table {
    animation: tableSlideIn 0.6s ease forwards;
}

/* استایل‌های اضافی برای بهتر شدن ظاهر در RTL */
.summary-table th,
.summary-table td {
    text-align: right;
    direction: rtl;
}

/* نشانگر برای سلول‌های مهم */
.summary-table td[data-importance="high"] {
    position: relative;
    padding-right: 30px;
}

.summary-table td[data-importance="high"]::before {
    content: "💎";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* برای نکات بسیار مهم */
.summary-table tr.critical td:first-child {
    color: var(--accent-danger);
    font-weight: 700;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
}

[data-theme="dark"] .summary-table tr.critical td:first-child {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent);
}

/* برای نکات پیشرفته */
.summary-table tr.advanced td:first-child {
    color: var(--accent-warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
}

[data-theme="dark"] .summary-table tr.advanced td:first-child {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), transparent);
}

/* بهبود فونت‌های فارسی */
.summary-table th,
.summary-table td {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-table th {
    font-weight: 700;
    letter-spacing: -0.3px;
        color: var(--accent-secondary);

}

/* استایل برای اعداد فارسی در جدول */
.summary-table .persian-number {
    font-family: 'Vazir FD', 'Vazir', sans-serif;
    direction: ltr;
    display: inline-block;
    margin: 0 3px;
}

/* علامت‌های ویژه در جدول */
.summary-table td .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 0.9rem;
    vertical-align: middle;
}

.summary-table td .icon-badge.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-secondary);
}

.summary-table td .icon-badge.warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.summary-table td .icon-badge.danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

/* خطوط جداکننده */
.summary-table td:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

/* سایه داخلی برای جدول */
.summary-table table {
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .summary-table table {
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}
/* استایل برای بخش استراتژی‌های معامله با روند */
.trading-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.strategy {
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strategy:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.strategy::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.strategy h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strategy h4::before {
    content: '📈';
    font-size: 1.2rem;
}

.strategy p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* استایل مراحل استراتژی */
.strategy-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateX(-5px);
    background: linear-gradient(90deg, var(--bg-tertiary), transparent);
    border-color: var(--accent-primary);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* استایل برای شکست روند */
.breakout-conditions {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.breakout-conditions h5 {
    color: var(--accent-warning);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakout-conditions h5::before {
    content: '⚡';
}

.breakout-conditions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakout-conditions li {
    padding: 10px 0;
    padding-right: 25px;
    color: var(--text-secondary);
    position: relative;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: flex-start;
}

.breakout-conditions li:last-child {
    border-bottom: none;
}

.breakout-conditions li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-warning);
    font-weight: bold;
    font-size: 1.1rem;
}

/* استایل برای مدیریت ریسک */
.risk-management {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    padding: 25px;
    margin: 35px 0;
}

.risk-management h4 {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-management h4 i {
    background: linear-gradient(135deg, var(--accent-secondary), #0ca678);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.risk-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.risk-tip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.risk-tip:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-secondary);
}

.risk-tip h5 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 10px;
}

.risk-tip h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to left, var(--accent-secondary), transparent);
    border-radius: 3px;
}

.risk-tip:nth-child(2) h5 {
    color: var(--accent-primary);
}

.risk-tip:nth-child(2) h5::after {
    background: linear-gradient(to left, var(--accent-primary), transparent);
}

.risk-tip:nth-child(3) h5 {
    color: var(--accent-warning);
}

.risk-tip:nth-child(3) h5::after {
    background: linear-gradient(to left, var(--accent-warning), transparent);
}

.risk-tip p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.risk-tip p br {
    display: block;
    margin: 8px 0;
}

/* استایل برای تم تیره */
[data-theme="dark"] .strategy {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border-color: #4a5568;
}

[data-theme="dark"] .step {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4a5568;
}

[data-theme="dark"] .step:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .breakout-conditions {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .risk-management {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .risk-tip {
    background: rgba(255, 255, 255, 0.03);
    border-color: #4a5568;
}

[data-theme="dark"] .risk-tip:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .trading-strategies {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strategy {
        padding: 20px;
    }
    
    .strategy h4 {
        font-size: 1.2rem;
    }
    
    .step {
        padding: 15px;
        gap: 15px;
    }
    
    .step-number {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h5 {
        font-size: 1rem;
    }
    
    .risk-tips {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .risk-tip {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .strategy {
        padding: 15px;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .strategy-steps {
        gap: 15px;
    }
}

/* انیمیشن‌ها */
@keyframes stepAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step {
    animation: stepAppear 0.5s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

@keyframes strategyAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.strategy {
    animation: strategyAppear 0.6s ease forwards;
}

.strategy:nth-child(1) { animation-delay: 0.1s; }
.strategy:nth-child(2) { animation-delay: 0.2s; }

/* آیکون‌های تزئینی */
.strategy::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.strategy > * {
    position: relative;
    z-index: 1;
}

    .training-card {
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 10px;
    margin: 25px;
    background: transparent;
}

.training-image img {
    width: 100%;
    border-radius: 8px;
}


.more-images-btn-outside {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.more-images-btn-outside:hover {
    background-color: #1565c0;
}

  
    .btn {
        padding: 12px 24px;
        border-radius: var(--radius);
        border: none;
        cursor: pointer;
        font-weight: 600;
        transition: all var(--transition-speed) ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        text-decoration: none;
    }
    
    .btn-primary {
        background-color: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    }
    
    .btn-outline {
        background-color: transparent;
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }
    
    .btn-outline:hover {
        background-color: var(--bg-tertiary);
        border-color: var(--accent-primary);
    }
    
    
    /* ==================== استایل دکمه‌های تم تیره ==================== */

/* دکمه اصلی */
.btn-dark-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark-mode:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* دکمه اصلی (آبی) */
.btn-primary-dark {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}

.btn-primary-dark:hover {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* دکمه موفقیت (سبز) */
.btn-success-dark {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.btn-success-dark:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* دکمه هشدار (نارنجی) */
.btn-warning-dark {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.btn-warning-dark:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* دکمه خطر (قرمز) */
.btn-danger-dark {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger-dark:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* دکمه outline (حاشیه‌دار) */
.btn-outline-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* دکمه کوچک */
.btn-sm-dark {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* دکمه بزرگ */
.btn-lg-dark {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

/* دکمه گرد (برای آیکون) */
.btn-round-dark {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* دکمه با عرض کامل */
.btn-block-dark {
    width: 100%;
    display: flex;
}

/* دکمه غیرفعال */
.btn-dark-mode:disabled,
.btn-dark-mode.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* دکمه‌های درون کارت */
.card-btn-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-btn-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* دکمه خرید / ثبت‌نام */
.btn-cta-dark {
    background: linear-gradient(135deg, #ff6b35, #ff3d00);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3);
}

.btn-cta-dark:hover {
    background: linear-gradient(135deg, #ff3d00, #e63500);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 61, 0, 0.4);
}

/* دکمه تمدید اشتراک */
.btn-renew-dark {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-renew-dark:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

/* دکمه لغو */
.btn-cancel-dark {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-cancel-dark:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
}

/* ==================== استایل دکمه‌های موجود در سایت ==================== */

/* دکمه ثبت‌نام در هدر */
.btn-register {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* دکمه ورود در هدر */
.btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* دکمه سبد خرید / پرداخت */
.btn-payment-dark {
    background: linear-gradient(135deg, #ff6b35, #ff3d00);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-payment-dark:hover {
    background: linear-gradient(135deg, #ff3d00, #e63500);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 61, 0, 0.4);
}



    /* ============================================ */
/* استایل حرفه‌ای سایدبار - نسخه نهایی */
/* ============================================ */

/* سایدبار اصلی */
.training-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 24px;
    padding: 0;
    position: sticky;
    top: 95px;
    height: calc(100vh - 130px);
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 35px -12px var(--shadow-color), 0 0 0 1px var(--border-color);
    z-index: 80;
}

/* اسکرول بار سفارشی */
.training-sidebar::-webkit-scrollbar {
    width: 4px;
}
.training-sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}
.training-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}
.training-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* هدر سایدبار */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 24px 24px 20px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.sidebar-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.sidebar-header h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}
.sidebar-header h3 i {
    font-size: 1.2rem;
}
.close-sidebar {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    transition: all 0.3s;
}
.close-sidebar:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* منوی اصلی */
.sidebar-menu {
    list-style: none;
    padding: 12px 12px;
    margin: 0;
}

/* آیتم منو */
.menu-item {
    margin-bottom: 2px;
}

/* هدر منو (عنوان اصلی - غیر قابل کلیک) */
.menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    border-radius: 14px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.menu-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.menu-header i:first-child {
    width: 24px;
    font-size: 1rem;
}
.menu-header span {
    flex: 1;
}
.menu-header .submenu-toggle {
    font-size: 0.75rem;
    transition: transform 0.3s;
}
.menu-item.has-submenu.active .menu-header .submenu-toggle {
    transform: rotate(180deg);
}

/* ساب منو */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(var(--accent-primary-rgb, 37, 99, 235), 0.03);
    border-radius: 14px;
    margin: 0 0 0 0;
    padding: 0;
}
.menu-item.has-submenu.active .submenu {
    max-height: 2000px;
}
.submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* لینک‌های زیرمجموعه */
.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
    border-right: 2px solid transparent;
    margin: 2px 8px;
    border-radius: 10px;
}
.submenu li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-right-color: var(--accent-primary);
    transform: translateX(-3px);
}
.submenu li a i {
    width: 20px;
    font-size: 0.75rem;
    opacity: 0.7;
}
.submenu li a.active {
    /*background: linear-gradient(90deg, var(--accent-primary) 0%, transparent 100%);*/
    color: white;
    font-weight: 500;
}
.submenu li a.active i {
    color: white;
}

/* هدر سابمنو (دسته‌بندی) */
.submenu-header {
    padding: 10px 14px 4px 14px;
    margin-top: 6px;
}
.submenu-header span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    text-transform: uppercase;
    background: rgba(var(--accent-primary-rgb), 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* پانویس سایدبار */
.sidebar-footer {
    margin: 12px;
    padding: 14px;
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 16px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: center;
    border: 1px solid var(--border-color);
}
.progress-container {
    margin-bottom: 10px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.65rem;
}
.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
}

/* دکمه اسکرول به بالا */
.sidebar-scroll-top {
    position: sticky;
    bottom: 15px;
    display: flex;
    justify-content: center;
    margin: 10px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.sidebar-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-secondary);
}

/* دکمه بازگشایی سایدبار (موبایل) */
.open-sidebar-btn {
    position: fixed;
    top: 95px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 16px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    z-index: 70;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}
.open-sidebar-btn.visible {
    opacity: 1;
    visibility: visible;
}
.open-sidebar-btn:hover {
    transform: scale(1.05);
}

/* دکمه بستن سایدبار */
.training-sidebar.collapsed {
    transform: translateX(calc(var(--sidebar-width) + 25px));
    opacity: 0;
    visibility: hidden;
    position: fixed;
}

/* آیکون‌های رنگی در ساب منو */
.submenu .fa-wave-square { color: #3b82f6; }
.submenu .fa-arrow-up { color: #10b981; }
.submenu .fa-arrow-down { color: #ef4444; }
.submenu .fa-chart-line { color: #f59e0b; }
.submenu .fa-random { color: #8b5cf6; }
.submenu .fa-play { color: #06b6d4; }
.submenu .fa-code-branch { color: #ec4899; }
.submenu .fa-cube { color: #f97316; }
.submenu .fa-brain { color: #a855f7; }
.submenu .fa-water { color: #3b82f6; }
.submenu .fa-broom { color: #14b8a6; }

/* انیمیشن برای باز شدن ساب منو */
@keyframes fadeInSub {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-item.has-submenu.active .submenu li {
    animation: fadeInSub 0.25s ease forwards;
    opacity: 0;
}
.menu-item.has-submenu.active .submenu li:nth-child(1) { animation-delay: 0.01s; }
.menu-item.has-submenu.active .submenu li:nth-child(2) { animation-delay: 0.02s; }
.menu-item.has-submenu.active .submenu li:nth-child(3) { animation-delay: 0.03s; }
.menu-item.has-submenu.active .submenu li:nth-child(4) { animation-delay: 0.04s; }
.menu-item.has-submenu.active .submenu li:nth-child(5) { animation-delay: 0.05s; }

/* ریسپانسیو */
@media (max-width: 1024px) {
    .training-sidebar {
        position: fixed;
        top: 80px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: 320px;
        height: calc(100vh - 100px);
        border-radius: 20px;
    }
    .training-sidebar:not(.collapsed) {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    .open-sidebar-btn {
        opacity: 1;
        visibility: visible;
    }
    .sidebar-header {
        border-radius: 20px 20px 16px 16px;
    }
}


/* ============================================ */
/* متغیرهای رنگ و تنظیمات پایه - نسخه نهایی 3.0 */
/* ============================================ */

/* تنظیم اسکرول نرم در کل صفحه */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* متغیرهای رنگ برای تم روشن (پیش‌فرض) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-transparent: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --accent-primary: #2563eb;
    --accent-primary-rgb: 37, 99, 235;
    --accent-secondary: #059669;
    --accent-secondary-rgb: 5, 150, 105;
    --accent-danger: #dc2626;
    --accent-warning: #d97706;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --header-height: 80px;
}

/* متغیرهای رنگ برای تم تیره */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-transparent: rgba(15, 23, 42, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-primary-rgb: 59, 130, 246;
    --accent-secondary: #10b981;
    --accent-secondary-rgb: 16, 185, 129;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* پشتیبانی از تم سیستم */
@media (prefers-color-scheme: dark) {
    .training-page:not([data-theme]) {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --accent-primary: #3b82f6;
        --accent-secondary: #10b981;
        --border-color: #475569;
    }
}

/* استایل‌های پایه */
.training-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* کانتینر اصلی */
.training-container {
    display: flex;
    gap: 30px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 160px);
}

/* ============================================ */
/* سایدبار فهرست - نسخه یکپارچه */
/* ============================================ */

.training-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 24px;
    padding: 0;
    position: sticky;
    top: calc(var(--header-height) + 15px);
    height: calc(100vh - var(--header-height) - 30px);
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 35px -12px var(--shadow-color), 0 0 0 1px var(--border-color);
    z-index: 80;
}

/* اسکرول بار سفارشی */
.training-sidebar::-webkit-scrollbar {
    width: 4px;
}

.training-sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.training-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.training-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* هدر سایدبار */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px 0 0 4px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-header h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.sidebar-header h3 i {
    font-size: 1.2rem;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    transition: all 0.3s;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.training-sidebar.collapsed {
    transform: translateX(calc(var(--sidebar-width) + 25px));
    opacity: 0;
    visibility: hidden;
    position: fixed;
}

/* محتوای اصلی */
.training-content {
    flex: 1;
    min-width: 0;
    transition: all var(--transition-speed) ease;
    background-color: var(--bg-primary);
}

.training-content.full-width {
    width: 100%;
}

/* منوی اصلی */
.sidebar-menu {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.menu-item {
    margin-bottom: 2px;
}

/* هدر منو (غیر قابل کلیک) */
.menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    border-radius: 14px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.menu-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.menu-header i:first-child {
    width: 24px;
    font-size: 1rem;
}

.menu-header span {
    flex: 1;
}

.menu-header .submenu-toggle {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.menu-item.has-submenu.active .menu-header .submenu-toggle {
    transform: rotate(180deg);
}

/* لینک‌های اصلی منو */
.menu-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-item > a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.menu-item > a.active {
    background: linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.15), transparent);
    color: var(--accent-primary);
    font-weight: 600;
    border-right: 3px solid var(--accent-primary);
}

/* در تم تیره برای لینک‌های اصلی */
[data-theme="dark"] .menu-item > a.active {
    background: linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.25), transparent);
    color: var(--accent-primary);
}

.menu-item > a i {
    width: 24px;
    font-size: 1rem;
}

/* ساب منو */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #eef2ff;  /* رنگ بنفش بسیار ملایم برای تم روشن */
    border-radius: 14px;
    margin: 0;
    padding: 0;
}

.menu-item.has-submenu.active .submenu {
    max-height: 2000px;
}

.submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* لینک‌های زیرمجموعه */
.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    margin: 2px 8px;
    border-radius: 10px;
}

.submenu li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-right-color: var(--accent-primary);
    transform: translateX(-3px);
}

.submenu li a.active {
    background: rgba(var(--accent-primary-rgb), 0.12);
    color: var(--accent-primary);
    font-weight: 600;
    border-right-color: var(--accent-primary);
}

/* در تم تیره برای لینک‌های زیرمجموعه */
[data-theme="dark"] .submenu li a.active {
    background: rgba(var(--accent-primary-rgb), 0.25);
    color: var(--accent-primary);
    font-weight: 600;
    border-right-color: var(--accent-primary);
}

.submenu li a i {
    width: 20px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* برجسته‌سازی کلی لینک فعال */
.sidebar-menu a.active {
    position: relative;
}

.sidebar-menu a.active i {
    color: var(--accent-primary);
}

[data-theme="dark"] .sidebar-menu a.active i {
    color: var(--accent-primary);
}

/* هدر ساب منو */
.submenu-header {
    padding: 10px 14px 4px;
    margin-top: 6px;
}

.submenu-header span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    text-transform: uppercase;
    background: rgba(var(--accent-primary-rgb), 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* پانویس سایدبار */
.sidebar-footer {
    margin: 12px;
    padding: 14px;
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 16px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: center;
    border: 1px solid var(--border-color);
}

/* دکمه اسکرول به بالای سایدبار */
.sidebar-scroll-top {
    position: sticky;
    bottom: 15px;
    display: flex;
    justify-content: center;
    margin: 10px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-secondary);
}

/* ============================================ */
/* بخش‌های فرعی (subsection) - بدون کادر خارجی */
/* ============================================ */

.subsection {
    margin: 2rem 0 1.8rem;
    padding: 0;
    transition: all 0.3s ease;
}

.subsection h4 {
    font-size: 1.35rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(var(--accent-primary-rgb), 0.25);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.subsection h4 i {
    color: var(--accent-primary);
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subsection p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.subsection ul, 
.subsection ol {
    padding-right: 1.5rem;
    margin: 1rem 0;
}

.subsection li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.subsection li strong {
    color: var(--text-primary);
}

.subsection .training-card {
    margin: 1.5rem 0;
}

.subsection .item-tip {
    background: rgba(var(--accent-primary-rgb), 0.04);
    border-right: 4px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}

.subsection .item-tip h4 {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.subsection .rule-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    padding: 0.8rem 0;
    margin: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.2s ease;
}

.subsection .rule-card:last-child {
    border-bottom: none;
}

.subsection .rule-card:hover {
    transform: translateX(-5px);
}

.subsection .rule-number {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.subsection .rule-content h5 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.subsection .rule-content p {
    margin: 0;
    font-size: 0.9rem;
}

.subsection table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.subsection th {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    text-align: center;
}

.subsection td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.subsection tr:last-child td {
    border-bottom: none;
}

.subsection tr:hover td {
    background-color: var(--bg-tertiary);
}

/* استایل برای موبایل در subsection */
@media (max-width: 768px) {
    .subsection {
        margin: 1.5rem 0;
    }
    
    .subsection h4 {
        font-size: 1.2rem;
    }
    
    .subsection .rule-card {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .subsection .rule-number {
        align-self: flex-start;
    }
}

/* ============================================ */
/* بخش‌های محتوای آموزشی */
/* ============================================ */

.training-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    margin-top: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-primary);
}

.section-header h2 {
    color: var(--text-primary);
    margin: 0 0 10px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--text-tertiary);
    margin: 0;
    font-size: 1rem;
}

/* محتوای آموزشی */
.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content h3 {
    color: var(--text-primary);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.section-content h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul, .section-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.section-content li {
    margin-bottom: 10px;
}

/* بلوک‌های ویژه */
.info-box {
    background-color: var(--bg-tertiary);
    border-right: 4px solid var(--accent-primary);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.warning-box {
    background-color: rgba(var(--accent-danger), 0.1);
    border-right: 4px solid var(--accent-danger);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.success-box {
    background-color: rgba(var(--accent-secondary-rgb), 0.1);
    border-right: 4px solid var(--accent-secondary);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.stage-box {
    background-color: rgba(var(--accent-warning), 0.1);
    border-right: 4px solid var(--accent-warning);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ============================================ */
/* بخش‌های دسته‌بندی آموزشی */
/* ============================================ */

.training-category {
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-primary);
}

.category-header i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.category-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* آیتم‌های آموزشی */
.content-item {
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.item-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-top: 10px;
    border-bottom: 2px solid var(--accent-primary);
    scroll-margin-top: 80px;
}

.item-title i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.item-title h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.item-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.item-tip {
    background: rgba(var(--accent-warning), 0.1);
    border-right: 4px solid var(--accent-warning);
    padding: 15px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.item-tip h4 {
    color: var(--accent-warning);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-tip.highlight {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.08), rgba(var(--accent-secondary-rgb), 0.05));
    border-right: 4px solid var(--accent-warning);
}

/* ============================================ */
/* پیشرفت مطالعه */
/* ============================================ */

.progress-container {
    margin: 30px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============================================ */
/* دکمه‌های ناوبری */
/* ============================================ */

.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* ============================================ */
/* دکمه‌های شناور */
/* ============================================ */

.floating-buttons-training {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-button-training {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.4);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.floating-button-training:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.6);
}

.floating-button-training .tooltip-training {
    position: absolute;
    right: auto;
    left: calc(100% + 10px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) ease;
    pointer-events: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.floating-button-training:hover .tooltip-training {
    opacity: 1;
    transform: translateX(0);
}

/* دکمه بازگشایی سایدبار */
.open-sidebar-btn {
    position: fixed;
    top: calc(var(--header-height) + 15px);
    right: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 16px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    z-index: 70;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.open-sidebar-btn.visible {
    opacity: 1;
    visibility: visible;
}

.open-sidebar-btn:hover {
    transform: scale(1.05);
}

/* ============================================ */
/* تصاویر آموزشی */
/* ============================================ */

.training-image, .item-image, .training-diagram {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 25px auto;
    display: block;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.training-image:hover, .item-image:hover, .training-diagram:hover {
    transform: scale(1.02);
}

.training-image img, .item-image img, .training-diagram img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.image-caption {
    background: rgba(var(--accent-secondary-rgb), 0.1);
    padding: 20px;
    border-radius: 0;
    margin-top: 0;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.training-card {
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    margin: 25px 0;
    background: var(--bg-primary);
}

.more-images-btn-outside {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.more-images-btn-outside:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.more-images-btn-outside.locked-btn {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* ============================================ */
/* مودال تصاویر */
/* ============================================ */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.image-modal.active {
    display: flex;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-image {
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: grab;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-caption {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 10001;
}

.modal-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    z-index: 10001;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zoom-level {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: monospace;
    z-index: 10001;
}

/* ============================================ */
/* جداول پیشرفته */
/* ============================================ */

.fibo-comparison,
.elliott-table,
.corrective-patterns-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.fibo-comparison:hover,
.elliott-table:hover,
.corrective-patterns-table:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.fibo-comparison th,
.elliott-table th,
.corrective-patterns-table th {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
    padding: 18px 15px;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.fibo-comparison tr,
.elliott-table tr,
.corrective-patterns-table tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.fibo-comparison tr:last-child,
.elliott-table tr:last-child,
.corrective-patterns-table tr:last-child {
    border-bottom: none;
}

.fibo-comparison tr:hover,
.elliott-table tr:hover,
.corrective-patterns-table tr:hover {
    background-color: var(--bg-tertiary);
}

.fibo-comparison td,
.elliott-table td,
.corrective-patterns-table td {
    padding: 16px 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    border-right: 1px solid var(--border-color);
}

.fibo-comparison td:last-child,
.elliott-table td:last-child,
.corrective-patterns-table td:last-child {
    border-right: none;
}

.fibo-comparison tr:nth-child(even),
.elliott-table tr:nth-child(even),
.corrective-patterns-table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.fibo-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    padding: 4px 8px;
    display: inline-block;
    min-width: 60px;
}

.fibo-key-level {
    color: var(--accent-secondary) !important;
    font-weight: 700;
}

/* جدول خلاصه */
.summary-table {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
}

.summary-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.summary-table h4 {
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: calc(var(--radius) - 5px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-table thead {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.summary-table th {
    color: white;
    font-weight: 600;
    padding: 18px 20px;
    text-align: center;
    font-size: 1rem;
    border: none;
    text-align: right;
}

.summary-table tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.summary-table tr:hover {
    background-color: var(--bg-tertiary);
}

.summary-table td {
    padding: 20px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-right: 1px solid var(--border-color);
    vertical-align: top;
}

.summary-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border-right: 2px solid var(--accent-primary);
}

/* ============================================ */
/* استراتژی‌های معامله */
/* ============================================ */

.trading-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.strategy {
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strategy:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.strategy::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.strategy h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--accent-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.strategy-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(-5px);
    border-color: var(--accent-primary);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* مدیریت ریسک */
.risk-management {
    background: linear-gradient(145deg, rgba(var(--accent-secondary-rgb), 0.05), rgba(var(--accent-secondary-rgb), 0.02));
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.3);
    border-radius: var(--radius);
    padding: 25px;
    margin: 35px 0;
}

.risk-management h4 {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(var(--accent-secondary-rgb), 0.3);
}

.risk-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.risk-tip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.risk-tip:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.risk-tip h5 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--accent-secondary-rgb), 0.2);
}

/* ============================================ */
/* انیمیشن‌ها */
/* ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal.active {
    animation: modalFadeIn 0.3s ease;
}

.image-modal.active .modal-image {
    animation: imageZoomIn 0.4s ease 0.1s both;
}

@keyframes tableFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fibo-comparison,
.elliott-table,
.corrective-patterns-table,
.summary-table {
    animation: tableFadeIn 0.6s ease forwards;
}

/* ============================================ */
/* ریسپانسیو */
/* ============================================ */

@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .training-sidebar {
        position: fixed;
        top: 80px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: 320px;
        height: calc(100vh - 100px);
        border-radius: 20px;
    }
    
    .training-sidebar:not(.collapsed) {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .open-sidebar-btn {
        opacity: 1;
        visibility: visible;
    }
    
    .training-container {
        padding: 10px;
        flex-direction: column;
    }
    
    .training-content {
        padding-top: 20px;
    }
    
    .floating-buttons-training {
        left: 15px;
        bottom: 15px;
    }
    
    .floating-button-training {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .training-section, .training-category {
        padding: 20px;
    }
    
    .section-header h2, .category-header h2 {
        font-size: 1.5rem;
    }
    
    .item-title {
        padding-top: 20px;
    }
    
    .item-title h3 {
        font-size: 1.2rem;
    }
    
    .trading-strategies {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .risk-tips {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .fibo-comparison,
    .elliott-table,
    .corrective-patterns-table,
    .summary-table table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .summary-table {
        padding: 15px;
        margin: 25px 0;
        overflow-x: auto;
    }
    
    .summary-table h4 {
        font-size: 1.1rem;
    }
    
    .summary-table table {
        min-width: 600px;
    }
    
    .floating-button-training .tooltip-training {
        display: none;
    }
}

@media (max-width: 480px) {
    .training-sidebar {
        width: 95vw;
        right: 2.5vw;
    }
    
    .section-content h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .strategy {
        padding: 15px;
    }
    
    .risk-tip {
        padding: 15px;
    }
}

/* ============================================ */
/* دکمه‌های تم تیره (اختیاری) */
/* ============================================ */

.btn-dark-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark-mode:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    transform: translateY(-2px);
}


/* ======================================== */
/* مودال بزرگنمایی تصاویر - نسخه پایدار */
/* ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.modal-container img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 10px;
    z-index: 100000;
}

.modal-close-btn:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.modal-caption-text {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 8px;
    background: transparent;
}


   
    .lesson-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .quote-box {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(5, 150, 105, 0.08));
        border-radius: var(--radius);
        padding: 25px;
        margin: 25px 0;
        text-align: center;
        font-style: italic;
        border: 1px solid var(--border-color);
    }
    
    .quote-box i {
        font-size: 2rem;
        color: var(--accent-primary);
        opacity: 0.5;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .quote-text {
        font-size: 1.1rem;
        color: var(--text-primary);
        margin: 15px 0;
    }
    
    .risk-calculator {
        background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
        border-radius: var(--radius);
        padding: 30px;
        margin: 30px 0;
        border: 1px solid var(--border-color);
    }
    
    .calculator-title {
        font-size: 1.6rem;
        color: var(--text-primary);
        margin-bottom: 25px;
        text-align: center;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .calculator-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .calculator-input-group {
        display: flex;
        flex-direction: column;
    }
    
    .calculator-label {
        color: var(--text-secondary);
        margin-bottom: 8px;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .calculator-input {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 12px 15px;
        color: var(--text-primary);
        font-size: 1rem;
        transition: all var(--transition-speed) ease;
    }
    
    .calculator-input:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .calculator-result {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(5, 150, 105, 0.1));
        border-radius: var(--radius);
        padding: 25px;
        text-align: center;
        border: 1px solid var(--accent-primary);
        margin-top: 20px;
    }
    
    .result-value {
        color: var(--accent-primary);
        font-size: 1.8rem;
        font-weight: bold;
        margin: 10px 0;
    }
    
    .calculate-btn {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        color: white;
        border: none;
        padding: 14px 30px;
        border-radius: var(--radius);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-speed) ease;
        width: 100%;
        margin-top: 20px;
    }
    
    .calculate-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .fade-in {
        animation: fadeIn 0.6s ease forwards;
    }
    
    @media (max-width: 768px) {
        .training-section {
            padding: 20px;
        }
        
        .section-header h2 {
            font-size: 1.5rem;
        }
        
        .grid-cards {
            grid-template-columns: 1fr;
        }
        
        .calculator-grid {
            grid-template-columns: 1fr;
        }
        
        .lesson-nav {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: stretch;
            margin-top: 30px;
            padding-top: 20px;
        }
    
        .lesson-nav .btn {
            width: 100%;
            justify-content: center;
            text-align: center;
            padding: 14px 16px;
            font-size: 0.95rem;
            margin: 0;
            border-radius: var(--radius);
        }
        
        .lesson-nav .btn:first-child {
            order: 1;
        }
        
        .lesson-nav .btn:nth-child(2) {
            order: 2;
        }
        
        .lesson-nav .btn:last-child {
            order: 3;
        }
        

