/* استایل‌های پایه */
:root {
    --lms-primary: #667eea;
    --lms-primary-dark: #5568d3;
    --lms-secondary: #764ba2;
    --lms-success: #00b09b;
    --lms-warning: #f093fb;
    --lms-danger: #f5576c;
    --lms-bg: #ffffff;
    --lms-bg-secondary: #f8f9fa;
    --lms-text: #1a1a2e;
    --lms-text-secondary: #6c757d;
    --lms-border: #e9ecef;
}

[data-theme="dark"] {
    --lms-primary: #72aee6;
    --lms-secondary: #a7aaad;
    --lms-success: #00ba37;
    --lms-warning: #f0b849;
    --lms-danger: #d63638;
    --lms-bg: #1d2327;
    --lms-bg-secondary: #2c3338;
    --lms-text: #f0f0f1;
    --lms-text-secondary: #a7aaad;
    --lms-border: #3c434a;
}

* {
    box-sizing: border-box;
}

/* اطمینان از box-sizing برای همه */
.lms-search-box input,
.lms-filters select,
.lms-form-group textarea,
.lms-form-group input {
    box-sizing: border-box;
    max-width: 100%;
}

/* جلوگیری از overflow */
.lms-search-section,
.lms-section-header,
.lms-course-purchase-box,
.lms-chapter-item {
    box-sizing: border-box;
}

.lms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* دکمه‌ها */
.lms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lms-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.lms-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.lms-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}

.lms-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    color: #fff;
}

.lms-btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: #fff;
}

.lms-btn-success:hover {
    background: linear-gradient(135deg, #009688 0%, #7fb32a 100%);
    transform: translateY(-2px);
}

.lms-btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

.lms-btn-small {
    padding: 8px 18px;
    font-size: 13px;
}

/* صفحه آرشیو */
.lms-archive-wrapper {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    color: var(--lms-text);
    padding: 10px 0;
    min-height: 100vh;
}

.lms-archive-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 25px;
}

.lms-archive-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.lms-category-description {
    text-align: center;
    font-size: 18px;
    color: var(--lms-text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.lms-search-section {
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px;
    background: var(--lms-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lms-search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.lms-search-box input {
    width: 100%;
    padding: 15px 25px;
    border: 2px solid var(--lms-border);
    border-radius: 30px;
    font-size: 16px;
    background: var(--lms-bg);
    color: var(--lms-text);
    transition: all 0.3s;
}

.lms-search-box input:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.lms-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: var(--lms-bg);
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.lms-search-dropdown.show {
    display: block;
}

.lms-search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--lms-border);
    display: flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--lms-text);
    transition: background 0.2s;
}

.lms-search-result-item:last-child {
    border-bottom: none;
}

.lms-search-result-item:hover {
    background: var(--lms-bg-secondary);
}

.lms-search-result-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.lms-filters {
    display: flex;
    gap: 12px;
}

.lms-filters select {
    padding: 12px 20px;
    border: 2px solid var(--lms-border);
    border-radius: 25px;
    background: var(--lms-bg);
    color: var(--lms-text);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.lms-filters select:hover {
    border-color: var(--lms-primary);
}

/* بخش‌های دوره‌ها */
.lms-courses-section {
    margin-bottom: 80px;
}

.lms-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 35px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.lms-section-header::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.15;
}

.lms-section-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lms-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.lms-view-all:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.lms-view-all .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.lms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

/* حالت شب برای section header */
[data-theme="dark"] .lms-section-header {
    background: linear-gradient(135deg, #563e8b 0%, #312931 100%);
    
}

[data-theme="dark"] .lms-section-header::before {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
}

[data-theme="dark"] .lms-section-header h2 {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .lms-view-all {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    box-shadow: 0 6px 20px rgba(114, 174, 230, 0.3);
}

[data-theme="dark"] .lms-view-all:hover {
    box-shadow: 0 8px 30px rgba(114, 174, 230, 0.5);
}

/* حالت شب برای کارت‌های دوره */
[data-theme="dark"] .lms-course-card {
    background: var(--lms-bg);
    border-color: var(--lms-border);
}

[data-theme="dark"] .lms-course-card::before {
    background: linear-gradient(135deg, rgba(114, 174, 230, 0.1) 0%, rgba(167, 170, 173, 0.1) 100%);
}

[data-theme="dark"] .lms-course-card:hover {
    border-color: var(--lms-primary);
    box-shadow: 0 20px 40px rgba(114, 174, 230, 0.2);
}

[data-theme="dark"] .lms-course-title {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .lms-course-card:hover .lms-course-title {
    background: linear-gradient(135deg, #8cc5f5 0%, #bfc2c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .price-amount {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .lms-meta-item {
    background: var(--lms-bg-secondary);
    color: var(--lms-text-secondary);
}

[data-theme="dark"] .lms-meta-item .dashicons {
    color: var(--lms-primary);
}

/* حالت شب برای صفحه تک دوره */
[data-theme="dark"] .lms-course-header {
    background: linear-gradient(135deg, #72aee6 0%, #5a8fc4 100%);
}

[data-theme="dark"] .lms-course-purchase-box {
    background: var(--lms-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

[data-theme="dark"] .lms-chapter-item {
    border-color: var(--lms-border);
    background: var(--lms-bg);
}

[data-theme="dark"] .lms-chapter-item:hover {
    border-color: var(--lms-primary);
}

[data-theme="dark"] .lms-chapter-header {
    background: linear-gradient(135deg, rgba(114, 174, 230, 0.1) 0%, rgba(167, 170, 173, 0.1) 100%);
}

[data-theme="dark"] .lms-lesson-item {
    border-top-color: var(--lms-border);
}

[data-theme="dark"] .lms-lesson-item:hover {
    background: var(--lms-bg-secondary);
}

[data-theme="dark"] .lms-lesson-item.free {
    background: linear-gradient(135deg, rgba(0, 186, 55, 0.08) 0%, rgba(150, 201, 61, 0.08) 100%);
}

/* حالت شب برای آرشیو */
[data-theme="dark"] .lms-archive-wrapper {
    background: linear-gradient(180deg, rgba(114, 174, 230, 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .lms-archive-title {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .lms-archive-title::after {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
}

[data-theme="dark"] .lms-search-section {
    background: var(--lms-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .lms-notice {
    background: linear-gradient(135deg, rgba(114, 174, 230, 0.1) 0%, rgba(167, 170, 173, 0.1) 100%);
    border-color: var(--lms-border);
}

/* دکمه حالت شب */
[data-theme="dark"] .lms-theme-toggle {
    background: linear-gradient(135deg, #72aee6 0%, #a7aaad 100%);
    box-shadow: 0 6px 20px rgba(114, 174, 230, 0.4);
}

[data-theme="dark"] .lms-theme-toggle:hover {
    box-shadow: 0 8px 30px rgba(114, 174, 230, 0.6);
}

/* اسپینر لودینگ */
[data-theme="dark"] .lms-spinner {
    border-color: rgba(114, 174, 230, 0.2);
    border-top-color: #72aee6;
}

/* کارت دوره */
.lms-course-card {
    background: var(--lms-bg);
    border: 1px solid var(--lms-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
}

.lms-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    pointer-events: none;
}

.lms-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--lms-primary);
}

.lms-course-card:hover::before {
    opacity: 1;
}

.lms-course-link {
    text-decoration: none;
    color: var(--lms-text);
    display: block;
    position: relative;
    z-index: 1;
}

.lms-course-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lms-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lms-course-card:hover .lms-course-thumbnail img {
    transform: scale(1.15) rotate(2deg);
}

.lms-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 2;
}

.lms-badge.free {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.lms-badge.upcoming {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lms-course-content {
    padding: 25px;
}

.lms-course-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.5;
    color: var(--lms-text);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 57px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.lms-course-card:hover .lms-course-title {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lms-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--lms-border);
}

.lms-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--lms-text-secondary);
    background: var(--lms-bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.lms-meta-item .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--lms-primary);
}

.lms-course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.lms-stars {
    display: flex;
    gap: 3px;
}

.lms-stars .star {
    font-size: 18px;
    color: #ffa500;
    text-shadow: 0 2px 4px rgba(255, 165, 0, 0.3);
}

.lms-stars .star.empty {
    color: #e0e0e0;
}

.lms-rating-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--lms-text-secondary);
}

.lms-course-footer {
    padding-top: 18px;
    border-top: 2px solid var(--lms-border);
}

.lms-course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-free {
    color: #00b09b;
    font-weight: 800;
    font-size: 22px;
    text-shadow: 0 2px 6px rgba(0, 176, 155, 0.3);
}

.price-amount {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 15px;
    color: var(--lms-text-secondary);
    font-weight: 600;
}

/* صفحه تک دوره */
.lms-single-course {
    background: var(--lms-bg);
    color: var(--lms-text);
}

.lms-course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.lms-course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

.lms-course-header-content {
    display: block;
    position: relative;
    z-index: 1;
}

.lms-course-info {
    width: 100%;
    margin-bottom: 40px;
}

.lms-course-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.lms-course-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.lms-course-image img {
    width: 100%;
    height: auto;
    display: block;
}

.lms-course-sidebar {
    position: sticky;
    top: 20px;
}

.lms-course-purchase-box {
    background: var(--lms-bg);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.lms-course-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 25px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lms-course-excerpt {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.lms-course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.lms-price {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--lms-border);
}

.lms-course-includes h4 {
    margin: 25px 0 15px;
    color: var(--lms-text);
    font-size: 18px;
    font-weight: 700;
}

.lms-course-includes ul {
    list-style: none;
    padding: 0;
}

.lms-course-includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--lms-text);
    font-size: 15px;
}

.lms-course-includes .dashicons {
    color: var(--lms-success);
    font-size: 20px;
}

/* تب‌ها */
.lms-course-tabs {
    margin-top: 60px;
}

.lms-tabs-nav {
    display: flex;
    gap: 15px;
    border-bottom: 3px solid var(--lms-border);
    margin-bottom: 40px;
}

.lms-tab-link {
    padding: 18px 35px;
    text-decoration: none;
    color: var(--lms-text-secondary);
    font-weight: 600;
    font-size: 16px;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.lms-tab-link:hover,
.lms-tab-link.active {
    color: var(--lms-primary);
    border-bottom-color: var(--lms-primary);
}

.lms-tab-pane {
    display: none;
    padding: 30px 0;
}

.lms-tab-pane.active {
    display: block;
}

/* سرفصل‌ها */
.lms-curriculum {
    max-width: 900px;
}

.lms-chapter-item {
    margin-bottom: 35px;
    border: 2px solid var(--lms-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.lms-chapter-item:hover {
    border-color: var(--lms-primary);
}

.lms-chapter-header {
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-chapter-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-chapter-count {
    color: var(--lms-text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.lms-lessons-list {
    padding: 0;
}

.lms-lesson-item {
    padding: 18px 25px;
    border-top: 1px solid var(--lms-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.lms-lesson-item:hover {
    background: var(--lms-bg-secondary);
}

.lms-lesson-item.free {
    background: linear-gradient(135deg, rgba(0, 176, 155, 0.05) 0%, rgba(150, 201, 61, 0.05) 100%);
}

.lms-lesson-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-lesson-badge {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.lms-lesson-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* نوتیفیکیشن و فرم‌ها */
.lms-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 35px;
    border: 2px solid var(--lms-border);
}

.lms-notice p {
    margin: 0 0 18px;
    font-size: 16px;
}

.lms-form-group {
    margin-bottom: 25px;
}

.lms-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
}

.lms-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--lms-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.lms-form-group textarea:focus {
    outline: none;
    border-color: var(--lms-primary);
}

.lms-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.lms-rating-input input {
    display: none;
}

.lms-rating-input label {
    font-size: 36px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.lms-rating-input label:hover {
    transform: scale(1.2);
}

.lms-rating-input input:checked ~ label,
.lms-rating-input label:hover,
.lms-rating-input label:hover ~ label {
    color: #ffa500;
}

/* لودینگ */
#lms-loading {
    text-align: center;
    padding: 60px 20px;
}

.lms-spinner {
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#lms-loading p {
    color: var(--lms-text-secondary);
    font-size: 16px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* حالت شب */
.lms-theme-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s;
}

.lms-theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* منوی مگا */
.lms-courses-menu-item {
    position: relative;
}

.lms-courses-menu-item > .lms-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--lms-bg);
    min-width: 300px;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 20px;
    display: none;
    z-index: 9999;
    columns: 2;
    column-gap: 25px;
}

.lms-courses-menu-item:hover > .lms-mega-menu {
    display: block;
}

.lms-mega-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    break-inside: avoid;
}

.lms-mega-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--lms-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: 500;
}

.lms-mega-menu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding-right: 25px;
    color: var(--lms-primary);
}

/* ریسپانسیو */
/* ریسپانسیو */
@media (max-width: 768px) {
    .lms-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .lms-course-bottom {
        grid-template-columns: 1fr;
    }
    
    .lms-search-section {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .lms-search-box {
        width: 100%;
        min-width: auto;
    }
    
    .lms-search-box input {
        width: 100%;
        padding: 12px 18px;
        font-size: 15px;
        box-sizing: border-box;
    }
    
    .lms-filters {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .lms-filters select {
        width: 100%;
        padding: 12px 18px;
        font-size: 15px;
        box-sizing: border-box;
    }
    
    .lms-section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .lms-section-header h2 {
        font-size: 24px;
    }
    
    .lms-archive-title {
        font-size: 32px;
        padding: 0 15px 25px;
    }
    
    .lms-course-title {
        font-size: 28px;
    }
    
    .lms-course-excerpt {
        font-size: 16px;
    }
    
    .lms-container {
        padding: 0 15px;
    }
    
    .lms-course-card {
        margin: 0 10px;
    }
    
    .lms-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .lms-tab-link {
        padding: 15px 25px;
        white-space: nowrap;
        font-size: 14px;
    }
    
    .lms-course-purchase-box {
        padding: 20px 15px;
    }
    
    .lms-chapter-header {
        padding: 18px 15px;
    }
    
    .lms-lesson-item {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .lms-lesson-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .lms-course-stats {
        gap: 15px;
    }
    
    .stat-item {
        font-size: 14px;
    }
    
    .lms-course-meta {
        gap: 8px;
    }
    
    .lms-meta-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .lms-view-all {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .lms-theme-toggle {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .lms-archive-title {
        font-size: 26px;
    }
    
    .lms-section-header h2 {
        font-size: 20px;
    }
    
    .lms-course-title {
        font-size: 24px;
    }
    
    .lms-courses-grid {
        gap: 20px;
    }
    
    .lms-course-card {
        margin: 0;
    }
}