/* ============================================================
   فایل: custom.css
   توضیح: استایل‌های عمومی سایت، کارت‌ها، هدر لیست، فیلترها، صفحات من و ...
   تاریخ: ۱۴۰۵/۰۶/۰۴
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   1. تنظیمات پایه
   ============================================================ */
* {
    font-family: 'Vazirmatn', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    direction: rtl;
}

/* ============================================================
   2. دارک مود پایه
   ============================================================ */
.dark body {
    background-color: #0f172a;
}

.dark .bg-white { background-color: #1e293b !important; }
.dark .text-gray-900 { color: #f1f5f9 !important; }
.dark .text-gray-600 { color: #94a3b8 !important; }
.dark .text-gray-700 { color: #cbd5e1 !important; }
.dark .border-gray-200 { border-color: #334155 !important; }
.dark .bg-gray-50 { background-color: #0f172a !important; }
.dark .bg-gray-100 { background-color: #1e293b !important; }
.dark .bg-gray-200 { background-color: #334155 !important; }

html.dark header {
    background-color: rgba(17, 24, 39, 0.95) !important;
    border-bottom-color: rgba(55, 65, 81, 0.5) !important;
}
html.dark #mobileMenu {
    background-color: rgba(17, 24, 39, 0.95) !important;
    border-bottom-color: rgba(55, 65, 81, 0.5) !important;
}
html.dark #searchBar {
    background-color: rgba(17, 24, 39, 0.95) !important;
    border-top-color: rgba(55, 65, 81, 0.5) !important;
}

/* ============================================================
   3. کلاس‌های پرکاربرد
   ============================================================ */
.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ============================================================
   4. برچسب‌ها (Badge)
   ============================================================ */
.badge {
    padding: 2px 10px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
.badge-free { background: linear-gradient(135deg, #10b981, #059669) !important; }
.badge-premium { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.badge-subscription { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; }
.badge-featured { background: linear-gradient(135deg, #ef4444, #dc2626) !important; }
.badge-pending { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }

/* ============================================================
   5. دکمه‌های مشاهده
   ============================================================ */
.btn-view {
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.btn-view:hover {
    transform: scale(1.04) !important;
    color: white !important;
    text-decoration: none !important;
}
.btn-view.course { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
.btn-view.course:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important; }
.btn-view.exam { background: linear-gradient(135deg, #7c3aed, #6d28d9) !important; }
.btn-view.exam:hover { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4) !important; }
.btn-view.video { background: linear-gradient(135deg, #ec4899, #db2777) !important; }
.btn-view.video:hover { box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4) !important; }

/* ============================================================
   6. دکمه ایجاد
   ============================================================ */
.btn-create {
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: white !important;
}
.btn-create.course { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }
.btn-create.course:hover { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important; }
.btn-create.exam { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; }
.btn-create.exam:hover { box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important; }
.btn-create.video { background: linear-gradient(135deg, #ec4899, #db2777) !important; }
.btn-create.video:hover { box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4) !important; }

/* ============================================================
   7. کارت‌های محتوا (content-card)
   ============================================================ */
.content-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #f1f5f9 !important;
}
.dark .content-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}
.content-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.08) !important;
    border-color: #4f46e5 !important;
}
.dark .content-card:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.06) !important;
}

.content-image {
    position: relative !important;
    overflow: hidden !important;
    height: 200px !important;
    flex-shrink: 0 !important;
}
.content-image .image-placeholder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 4rem !important;
    color: rgba(255,255,255,0.25) !important;
}
.content-image .circles {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
}
.content-image .circles span {
    position: absolute !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.12) !important;
    animation: floatCircle 8s ease-in-out infinite !important;
    backdrop-filter: blur(2px) !important;
}
.content-image .circles span:nth-child(1) { width: 140px !important; height: 140px !important; top: -40px !important; right: -40px !important; animation-delay: 0s !important; }
.content-image .circles span:nth-child(2) { width: 90px !important; height: 90px !important; bottom: -30px !important; left: -30px !important; animation-delay: 2s !important; }
.content-image .circles span:nth-child(3) { width: 60px !important; height: 60px !important; top: 50% !important; left: 50% !important; animation-delay: 4s !important; }
.content-image .circles span:nth-child(4) { width: 110px !important; height: 110px !important; top: 15% !important; right: 15% !important; animation-delay: 1s !important; }
.content-image .circles span:nth-child(5) { width: 50px !important; height: 50px !important; bottom: 20% !important; left: 20% !important; animation-delay: 3s !important; }

@keyframes floatCircle {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.6; }
    25% { transform: translate(20px,-30px) scale(1.2); opacity: 0.9; }
    50% { transform: translate(-15px,20px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(30px,10px) scale(1.1); opacity: 0.8; }
}

.content-card .stat-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 10px !important;
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    background: #f3f4f6 !important;
}
.dark .content-card .stat-item { background: #374151 !important; }
.content-card .stat-item .num {
    font-weight: 600 !important;
    color: #1f2937 !important;
}
.dark .content-card .stat-item .num { color: #f3f4f6 !important; }
.content-card .stat-item .label { color: #6b7280 !important; }
.dark .content-card .stat-item .label { color: #9ca3af !important; }

/* ============================================================
   8. فیلترها و فرم‌ها
   ============================================================ */
.filter-section {
    background: white !important;
    border-radius: 16px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
}
.dark .filter-section {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.filter-section .filter-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    transition: all 0.2s ease !important;
}
.dark .filter-section .filter-search {
    background: #0f172a !important;
    border-color: #334155 !important;
}
.filter-section .filter-search:focus-within {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.06) !important;
}
.filter-section .filter-search input {
    flex: 1 !important;
    padding: 8px 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    outline: none !important;
}
.dark .filter-section .filter-search input { color: #f1f5f9 !important; }
.filter-section .filter-search input::placeholder { color: #94a3b8 !important; }
.filter-section .filter-search .search-icon {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
}
.filter-section .filter-results {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}
.filter-section .filter-results strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}
.dark .filter-section .filter-results strong { color: #f1f5f9 !important; }

.filter-section .btn-filter {
    padding: 0.625rem 1.25rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
.filter-section .btn-filter-primary { background: #2563eb !important; color: white !important; }
.filter-section .btn-filter-primary:hover { background: #1d4ed8 !important; }
.filter-section .btn-filter-secondary { background: #f1f5f9 !important; color: #475569 !important; }
.dark .filter-section .btn-filter-secondary { background: #334155 !important; color: #cbd5e1 !important; }
.filter-section .btn-filter-secondary:hover { background: #e2e8f0 !important; }
.dark .filter-section .btn-filter-secondary:hover { background: #475569 !important; }

.form-control {
    width: 100% !important;
    padding: 0.625rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #1f2937 !important;
    transition: all 0.2s !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    min-height: 44px !important;
}
.form-control:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}
.dark .form-control {
    border-color: #334155 !important;
    background: #0f172a !important;
    color: #f1f5f9 !important;
}
.dark .form-control:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}
.form-control option { color: #1f2937 !important; }
.dark .form-control option {
    color: #f1f5f9 !important;
    background: #1e293b !important;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    direction: rtl;
}
.dark .filter-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.filter-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    flex-wrap: wrap;
    direction: rtl;
}
.dark .filter-btn-group {
    background: #0f172a;
    border-color: #374151;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    color: #6b7280;
    white-space: nowrap;
    min-height: 40px;
    font-family: 'Vazirmatn', sans-serif;
}
.dark .filter-btn { color: #9ca3af; }
.filter-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #1f2937;
}
.dark .filter-btn:hover:not(.active) {
    background: #374151;
    color: #f1f5f9;
}
.filter-btn.active {
    background: #3b82f6;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}
.sort-wrapper label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}
.dark .sort-wrapper label { color: #9ca3af; }
.sort-wrapper select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-height: 40px;
    font-family: 'Vazirmatn', sans-serif;
}
.dark .sort-wrapper select {
    background: #0f172a;
    border-color: #374151;
    color: #f1f5f9;
}
.sort-wrapper select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================================
   9. هدر لیست (list-header)
   ============================================================ */
.list-header {
    background: linear-gradient(135deg, #0f0728 0%, #1a1040 30%, #2d1b69 60%, #1a1040 80%, #0f0728 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 50px 0 40px !important;
    border-radius: 0 !important;
    margin-bottom: 1.5rem !important;
}
.list-header::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%) !important;
    pointer-events: none !important;
}
.list-header .float-icon {
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,0.03) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,0.08) !important;
    font-size: 1.1rem !important;
    pointer-events: none !important;
    animation: floatIconHeader 22s ease-in-out infinite !important;
}
@keyframes floatIconHeader {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-16px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(4deg); }
}
.list-header .header-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: white !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}
.list-header .header-icon.course { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }
.list-header .header-icon.exam { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; }
.list-header .header-icon.video { background: linear-gradient(135deg, #ec4899, #db2777) !important; }

.list-header .header-stats {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}
.list-header .header-stats .stat-badge {
    padding: 0.375rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    background: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
}
.list-header .header-stats .stat-badge .number {
    font-weight: 700 !important;
    color: white !important;
}
.list-header .breadcrumb-hero {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.3) !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}
.list-header .breadcrumb-hero a {
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.list-header .breadcrumb-hero a:hover {
    color: rgba(255,255,255,0.8) !important;
}
.list-header .breadcrumb-hero .sep {
    color: rgba(255,255,255,0.1) !important;
    font-size: 0.6rem !important;
}

/* ============================================================
   10. صفحات "من" (my_pages)
   ============================================================ */
.my-page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1040 100%);
    padding: 28px 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.my-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}
.my-page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.my-page-header .header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.my-page-header .header-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.my-page-header .header-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.my-page-header .header-icon.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.my-page-header .header-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.my-page-header .header-icon.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.my-page-header .header-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}
.my-page-header .header-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}
.my-page-header .header-action {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.my-page-header .header-action:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.my-stat-card {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dark .my-stat-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.my-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}
.my-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dark .my-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.my-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.my-stat-card .stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.my-stat-card .stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.my-stat-card .stat-icon.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.my-stat-card .stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.my-stat-card .stat-icon.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.my-stat-card .stat-icon.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.my-stat-card .stat-icon.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.my-stat-card .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.dark .my-stat-card .stat-number { color: #f1f5f9; }
.my-stat-card .stat-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.my-stat-card .stat-info { flex: 1; }

.my-item {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dark .my-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.my-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .my-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.my-item .item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .my-item .item-row { flex-direction: column; align-items: stretch; }
}

.my-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.my-item .item-icon.course { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.my-item .item-icon.exam { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.my-item .item-icon.video { background: linear-gradient(135deg, #ec4899, #db2777); }

.my-item .item-info { flex: 1; min-width: 0; }
.my-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.dark .my-item .item-info .title { color: #f1f5f9; }
.my-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .my-item .item-info .meta { color: #94a3b8; }
.my-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.my-item .item-progress {
    min-width: 130px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .my-item .item-progress { width: 100%; }
}
.my-item .item-progress .progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.my-item .item-progress .progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.dark .my-item .item-progress .progress-text { color: #f1f5f9; }
.my-item .item-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}
.dark .my-item .item-progress .progress-bar { background: #374151; }
.my-item .item-progress .progress-bar .fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.my-item .item-progress .progress-bar .fill.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.my-item .item-progress .progress-bar .fill.green { background: linear-gradient(135deg, #10b981, #059669); }
.my-item .item-progress .progress-bar .fill.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.my-item .item-progress .progress-bar .fill.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.my-item .item-progress .progress-bar .fill.pink { background: linear-gradient(135deg, #ec4899, #db2777); }

.my-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    min-height: 38px;
    font-family: 'Vazirmatn', sans-serif;
}
.my-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
.my-btn.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.my-btn.blue:hover { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.my-btn.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.my-btn.purple:hover { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.my-btn.pink { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }
.my-btn.pink:hover { box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); }
.my-btn.green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.my-btn.green:hover { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.my-btn.gray { background: #6b7280; color: white; }
.my-btn.gray:hover { box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3); }

.my-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}
.dark .my-empty {
    background: #1e293b;
    border-color: #334155;
}
.my-empty .empty-icon {
    font-size: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
    opacity: 0.5;
}
.my-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.dark .my-empty h3 { color: #f1f5f9; }
.my-empty p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

.best-score {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.dark .best-score {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
}
.dark .stat-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dark .stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.stat-card .number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.dark .stat-card .number { color: #f1f5f9; }
.stat-card .number.passed { color: #10b981; }
.stat-card .number.failed { color: #ef4444; }
.stat-card .number.total { color: #8b5cf6; }
.stat-card .number.active { color: #3b82f6; }
.stat-card .number.completed { color: #10b981; }
.stat-card .number.pending { color: #f59e0b; }
.stat-card .label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}
.dark .stat-card .label { color: #94a3b8; }
.stat-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    color: white;
}
.stat-card .icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card .icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card .icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card .icon.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.stat-card .icon.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}
.dark .empty-state {
    background: #1e293b;
    border-color: #334155;
}
.empty-state .empty-icon {
    font-size: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.dark .empty-state h3 { color: #f1f5f9; }
.empty-state p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   11. فرم‌ها (base_form.html)
   ============================================================ */
.form-header-custom {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1040 100%);
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.form-header-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}
.form-header-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.form-section-custom {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
.dark .form-section-custom {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.form-section-custom:hover { border-color: #818cf8; }
.dark .form-section-custom:hover { border-color: #6366f1; }

.form-section-custom .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.dark .form-section-custom .section-title {
    color: #f1f5f9;
    border-bottom-color: #334155;
}
.form-section-custom .section-title .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}
.dark .form-section-custom .section-title .icon {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

.form-group-custom { margin-bottom: 14px; }
.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.dark .form-group-custom label { color: #e2e8f0; }
.form-group-custom label .required { color: #ef4444; margin-left: 4px; }
.form-group-custom .help-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.dark .form-group-custom .help-text { color: #64748b; }
.form-group-custom .error-text {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #0f172a;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
}
.dark .form-control-custom {
    background: #0f172a;
    border-color: #374151;
    color: #f1f5f9;
}
.dark .form-control-custom::placeholder { color: #64748b; }
.form-control-custom:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background: white;
}
.dark .form-control-custom:focus {
    background: #1e293b;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.form-control-custom.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}
textarea.form-control-custom { min-height: 120px; resize: vertical; }
select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
    cursor: pointer;
}
.dark select.form-control-custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.form-row-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .form-row-custom { grid-template-columns: 1fr; } }

.form-actions-custom {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 2px solid #f1f5f9;
    margin-top: 16px;
    flex-wrap: wrap;
}
.dark .form-actions-custom { border-top-color: #334155; }

.btn-submit-custom {
    padding: 10px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 44px;
}
.btn-submit-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    color: white;
}
.btn-submit-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-cancel-custom {
    padding: 10px 20px;
    background: #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 44px;
}
.dark .btn-cancel-custom {
    background: #374151;
    color: #f1f5f9;
}
.btn-cancel-custom:hover {
    background: #d1d5db;
    transform: translateY(-2px);
    text-decoration: none;
}
.dark .btn-cancel-custom:hover { background: #4b5563; }

.switch-wrapper-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.switch-custom {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.switch-custom input { opacity: 0; width: 0; height: 0; }
.switch-custom .slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.dark .switch-custom .slider { background: #4b5563; }
.switch-custom .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.switch-custom input:checked + .slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.switch-custom input:checked + .slider::before { transform: translateX(20px); }
.switch-label-custom {
    font-size: 13px;
    color: #6b7280;
}
.dark .switch-label-custom { color: #94a3b8; }

.image-preview-custom {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #e5e7eb;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f9fafb;
}
.dark .image-preview-custom {
    border-color: #374151;
    background: #0f172a;
}
.image-preview-custom img {
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
}
.image-preview-custom .placeholder {
    color: #94a3b8;
    font-size: 14px;
    padding: 24px;
    text-align: center;
}

.form-sidebar-custom { position: sticky; top: 24px; }
@media (max-width: 1024px) { .form-sidebar-custom { position: relative; top: 0; } }

.sidebar-card-custom {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.dark .sidebar-card-custom {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.sidebar-card-custom .card-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dark .sidebar-card-custom .card-title { color: #64748b; }
.sidebar-card-custom .info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.dark .sidebar-card-custom .info-item { border-bottom-color: #334155; }
.sidebar-card-custom .info-item:last-child { border-bottom: none; }
.sidebar-card-custom .info-item .label { color: #94a3b8; }
.sidebar-card-custom .info-item .value {
    font-weight: 600;
    color: #0f172a;
}
.dark .sidebar-card-custom .info-item .value { color: #f1f5f9; }

.status-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge-sm.draft { background: #f1f5f9; color: #64748b; }
.dark .status-badge-sm.draft { background: #374151; color: #94a3b8; }
.status-badge-sm.pending { background: #fef3c7; color: #d97706; }
.dark .status-badge-sm.pending { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
.status-badge-sm.approved { background: #d1fae5; color: #059669; }
.dark .status-badge-sm.approved { background: rgba(5, 150, 105, 0.2); color: #34d399; }
.status-badge-sm.rejected { background: #fee2e2; color: #dc2626; }
.dark .status-badge-sm.rejected { background: rgba(220, 38, 38, 0.2); color: #f87171; }

/* ============================================================
   12. مدیریت محتوا (admin)
   ============================================================ */
.admin-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1040 100%);
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.admin-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}
.admin-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.admin-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.dark .admin-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.admin-item:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}
.dark .admin-item:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}
.admin-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}
.admin-item .item-icon.course { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.admin-item .item-icon.exam { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.admin-item .item-icon.video { background: linear-gradient(135deg, #ec4899, #db2777); }
.admin-item .item-info { flex: 1; min-width: 0; }
.admin-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}
.dark .admin-item .item-info .title { color: #f1f5f9; }
.admin-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .admin-item .item-info .meta { color: #94a3b8; }
.admin-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.admin-item .item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-admin {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 32px;
}
.btn-admin:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
.btn-admin.blue { background: #3b82f6; color: white; }
.btn-admin.blue:hover { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-admin.purple { background: #8b5cf6; color: white; }
.btn-admin.purple:hover { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-admin.green { background: #10b981; color: white; }
.btn-admin.green:hover { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-admin.red { background: #ef4444; color: white; }
.btn-admin.red:hover { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.btn-admin.amber { background: #f59e0b; color: white; }
.btn-admin.amber:hover { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.btn-admin.gray { background: #6b7280; color: white; }
.btn-admin.gray:hover { box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge.draft { background: #f1f5f9; color: #64748b; }
.dark .status-badge.draft { background: #374151; color: #94a3b8; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.dark .status-badge.pending { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
.status-badge.approved { background: #d1fae5; color: #059669; }
.dark .status-badge.approved { background: rgba(5, 150, 105, 0.2); color: #34d399; }
.status-badge.rejected { background: #fee2e2; color: #dc2626; }
.dark .status-badge.rejected { background: rgba(220, 38, 38, 0.2); color: #f87171; }

.empty-admin {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}
.dark .empty-admin {
    background: #1e293b;
    border-color: #334155;
}
.empty-admin .empty-icon {
    font-size: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-admin h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.dark .empty-admin h3 { color: #f1f5f9; }
.empty-admin p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   13. مدیریت بخش‌ها و سوالات (manage_sections, manage_questions, manage_faqs)
   ============================================================ */
.section-item-mgmt,
.question-item-mgmt,
.faq-item-mgmt {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.dark .section-item-mgmt,
.dark .question-item-mgmt,
.dark .faq-item-mgmt {
    background: #1e293b;
    border-color: #334155;
}
.section-item-mgmt:hover,
.question-item-mgmt:hover,
.faq-item-mgmt:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.06);
}
.section-item-mgmt .item-info,
.question-item-mgmt .item-info,
.faq-item-mgmt .item-info { flex: 1; }
.section-item-mgmt .item-info .title,
.question-item-mgmt .item-info .title,
.faq-item-mgmt .item-info .title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.dark .section-item-mgmt .item-info .title,
.dark .question-item-mgmt .item-info .title,
.dark .faq-item-mgmt .item-info .title { color: #f1f5f9; }
.section-item-mgmt .item-info .desc,
.question-item-mgmt .item-info .desc,
.faq-item-mgmt .item-info .desc {
    font-size: 12px;
    color: #94a3b8;
}
.section-item-mgmt .item-actions,
.question-item-mgmt .item-actions,
.faq-item-mgmt .item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 28px;
}
.btn-sm:hover {
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}
.btn-sm.blue { background: #3b82f6; color: white; }
.btn-sm.blue:hover { box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3); }
.btn-sm.red { background: #ef4444; color: white; }
.btn-sm.red:hover { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3); }
.btn-sm.amber { background: #f59e0b; color: white; }
.btn-sm.amber:hover { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3); }
.btn-sm.gray { background: #6b7280; color: white; }
.btn-sm.gray:hover { box-shadow: 0 2px 10px rgba(107, 114, 128, 0.3); }

.form-container-admin {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.dark .form-container-admin {
    background: #1e293b;
    border-color: #334155;
}
.form-container-admin .form-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.dark .form-container-admin .form-title { color: #f1f5f9; }

/* ============================================================
   14. pending_list.html
   ============================================================ */
.pending-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #78350f 50%, #1a1040 100%);
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.pending-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15), transparent 60%);
    pointer-events: none;
}
.pending-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pending-header .header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.pending-header .header-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}
.pending-header .header-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}
.pending-header .header-action {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pending-header .header-action:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.pending-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    border-right: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.dark .pending-item {
    background: #1e293b;
    border-color: #334155;
    border-right-color: #d97706;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.pending-item:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}
.dark .pending-item:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}
.pending-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}
.pending-item .item-icon.course { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pending-item .item-icon.exam { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.pending-item .item-icon.video { background: linear-gradient(135deg, #ec4899, #db2777); }
.pending-item .item-info { flex: 1; min-width: 0; }
.pending-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}
.dark .pending-item .item-info .title { color: #f1f5f9; }
.pending-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .pending-item .item-info .meta { color: #94a3b8; }
.pending-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pending-item .item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pending-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark .pending-section-title { color: #f1f5f9; }
.pending-section-title .badge-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.dark .pending-section-title .badge-count {
    background: #374151;
    color: #9ca3af;
}
.pending-section-title .course { color: #3b82f6; }
.pending-section-title .exam { color: #8b5cf6; }
.pending-section-title .video { color: #ec4899; }

.empty-pending {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}
.dark .empty-pending {
    background: #1e293b;
    border-color: #334155;
}
.empty-pending .empty-icon {
    font-size: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-pending h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.dark .empty-pending h3 { color: #f1f5f9; }
.empty-pending p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   15. base_detail.html (هیرو، بخش‌ها، سوالات، گزینه‌ها)
   ============================================================ */
.content-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    min-height: 350px;
    display: flex;
    align-items: center;
    width: 100%;
}
.content-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.content-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.content-hero .hero-floating-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.content-hero .floating-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.08);
    animation: floatIcon 15s ease-in-out infinite;
}
.content-hero .floating-icon.icon-1 { top: 5%; left: 5%; animation-delay: 0s; }
.content-hero .floating-icon.icon-2 { top: 15%; right: 10%; animation-delay: 2s; font-size: 3rem; }
.content-hero .floating-icon.icon-3 { bottom: 20%; left: 8%; animation-delay: 4s; }
.content-hero .floating-icon.icon-4 { bottom: 10%; right: 5%; animation-delay: 1s; font-size: 3.5rem; }
.content-hero .floating-icon.icon-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 3s; font-size: 5rem; opacity: 0.04; }

@keyframes floatIcon {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(-20px, -20px) rotate(5deg); }
    50% { transform: translate(20px, 10px) rotate(-5deg); }
    75% { transform: translate(-10px, 20px) rotate(3deg); }
}

/* ============================================================
   تگ‌ها
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.tag-free { background: rgba(16,185,129,0.25); color: #34d399; }
.tag-subscription { background: rgba(139,92,246,0.25); color: #a78bfa; }
.tag-beginner { background: rgba(59,130,246,0.25); color: #60a5fa; }
.tag-intermediate { background: rgba(245,158,11,0.25); color: #fbbf24; }
.tag-advanced { background: rgba(239,68,68,0.25); color: #f87171; }
.tag-featured { background: rgba(251,191,36,0.25); color: #fbbf24; }
.tag-category { background: rgba(236,72,153,0.25); color: #f472b6; }

.dark .tag-free { background: #064e3b; color: #34d399; }
.dark .tag-subscription { background: #2e1a47; color: #a78bfa; }
.dark .tag-beginner { background: #1e3a5f; color: #60a5fa; }
.dark .tag-intermediate { background: #451a03; color: #fbbf24; }
.dark .tag-advanced { background: #3b1a2a; color: #f472b6; }
.dark .tag-featured { background: #451a03; color: #fbbf24; }
.dark .tag-category { background: #374151; color: #9ca3af; }

/* ============================================================
   بخش‌ها (برای base_detail.html)
   ============================================================ */
.section-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}
.dark .section-item {
    border-color: #374151;
    background: #1e293b;
}
.section-item:hover {
    border-color: #818cf8;
}
.section-item.active {
    border-color: #818cf8;
    box-shadow: 0 4px 20px rgba(79,70,229,0.08);
}
.dark .section-item.active {
    box-shadow: 0 4px 20px rgba(99,102,241,0.06);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 12px;
    user-select: none;
}
.section-header:hover {
    background: rgba(79,70,229,0.04);
}
.dark .section-header:hover {
    background: rgba(99,102,241,0.06);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #818cf8;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.dark .section-number {
    background: #1e3a5f;
    color: #60a5fa;
}

.section-content {
    padding: 0 18px 18px;
    border-top: 1px solid #e5e7eb;
}
.dark .section-content {
    border-top-color: #374151;
}

/* ============================================================
   سوالات (برای base_detail.html)
   ============================================================ */
.question-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}
.dark .question-item {
    border-color: #374151;
    background: #1e293b;
}
.question-item:hover:not(.locked) {
    border-color: #818cf8;
}
.question-item.locked {
    opacity: 0.6;
}
.question-item.locked .question-header {
    cursor: not-allowed;
}
.question-item.viewed .question-header {
    border-right: 3px solid #10b981;
}
.dark .question-item.viewed .question-header {
    border-right-color: #34d399;
}
.question-item.answered .option-row:not(.correct):not(.wrong):not(.show-correct) {
    opacity: 0.5;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 12px;
}
.question-header:hover:not(.locked .question-header) {
    background: rgba(79,70,229,0.04);
}
.dark .question-header:hover:not(.locked .question-header) {
    background: rgba(99,102,241,0.06);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d1d5db;
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.dark .question-number {
    background: #4b5563;
    color: #e5e7eb;
}
.question-item.locked .question-number {
    background: #9ca3af;
}

.question-title-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}
.dark .question-title-text {
    color: #e2e8f0;
}
.question-item.locked .question-title-text {
    color: #9ca3af;
}

.question-body {
    padding: 0 16px 16px;
    border-top: 1px solid #e5e7eb;
}
.dark .question-body {
    border-top-color: #374151;
}

.question-points {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.dark .question-points {
    color: #64748b;
}

.viewed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    flex-shrink: 0;
}

.question-locked-message {
    padding: 12px 16px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}
.dark .question-locked-message {
    color: #9ca3af;
}
.question-locked-message i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
    color: #9ca3af;
}
.question-locked-message .lock-text {
    font-size: 0.8rem;
}

/* ============================================================
   گزینه‌ها (برای base_detail.html)
   ============================================================ */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-row {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
}
.dark .option-row {
    background: #1f2937;
    border-color: #4b5563;
    color: #e5e7eb;
}
.option-row:hover:not(.disabled):not(.correct):not(.wrong) {
    border-color: #818cf8;
    background: rgba(79,70,229,0.04);
}
.option-row.disabled {
    cursor: default;
    opacity: 0.7;
}
.option-row.selected {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.08);
}
.option-row.correct {
    border-color: #10b981;
    background: rgba(16,185,129,0.12);
}
.option-row.correct .option-prefix {
    background: #10b981;
    color: white;
}
.option-row.wrong {
    border-color: #ef4444;
    background: rgba(239,68,68,0.12);
}
.option-row.wrong .option-prefix {
    background: #ef4444;
    color: white;
}
.option-row.show-correct {
    border-color: #10b981;
    background: rgba(16,185,129,0.06);
}
.option-row.show-correct .option-prefix {
    background: #10b981;
    color: white;
}

.option-prefix {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.dark .option-prefix {
    background: #4b5563;
}
.option-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.option-row .result-check {
    display: none;
    font-size: 1.1rem;
    margin-right: auto;
    flex-shrink: 0;
}
.option-row.correct .result-check {
    display: block;
    color: #10b981;
}
.option-row.wrong .result-check {
    display: block;
    color: #ef4444;
}

/* ============================================================
   پاسخ و توضیح (برای base_detail.html)
   ============================================================ */
.answer-explanation {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #4b5563;
}
.dark .answer-explanation {
    background: rgba(251,191,36,0.04);
    color: #d1d5db;
}
.answer-explanation i {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   FAQ (برای base_detail.html)
   ============================================================ */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.dark .faq-item {
    border-color: #374151;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-btn {
    width: 100%;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1f2937;
    text-align: right;
    gap: 12px;
    transition: color 0.2s;
}
.dark .faq-btn {
    color: #e5e7eb;
}
.faq-btn:hover {
    color: #818cf8;
}

.faq-answer {
    padding: 0 4px 16px;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.8;
}
.dark .faq-answer {
    color: #9ca3af;
}

/* ============================================================
   کارت سایدبار (برای base_detail.html)
   ============================================================ */
.enroll-card {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .enroll-card {
        position: relative;
        top: 0;
    }
}
.dark .enroll-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}
.dark .feature-list li {
    color: #9ca3af;
    border-color: #1f2937;
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list li i {
    width: 18px;
    color: #818cf8;
    font-size: 0.75rem;
    text-align: center;
    flex-shrink: 0;
}
.dark .feature-list li i {
    color: #a78bfa;
}

/* ============================================================
   دکمه‌های اشتراک‌گذاری (برای base_detail.html)
   ============================================================ */
.share-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-height: 36px;
}
.share-btn:hover {
    transform: translateY(-2px);
}
.share-telegram {
    background: #0088cc;
    color: white;
}
.share-telegram:hover {
    box-shadow: 0 4px 15px rgba(0,136,204,0.4);
}
.share-whatsapp {
    background: #25D366;
    color: white;
}
.share-whatsapp:hover {
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}
.share-copy {
    background: #6b7280;
    color: white;
}
.share-copy:hover {
    box-shadow: 0 4px 15px rgba(107,114,128,0.4);
}

/* ============================================================
   دکمه‌های اصلی (برای base_detail.html)
   ============================================================ */
.btn-enroll {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none !important;
    min-height: 48px;
}
.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
    color: white;
    text-decoration: none !important;
}
.btn-enroll:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-subscription {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none !important;
}
.btn-subscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.4);
    color: white;
    text-decoration: none !important;
}

.btn-login {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none !important;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
    color: white;
    text-decoration: none !important;
}

.btn-exam-start {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none !important;
}
.btn-exam-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.4);
    color: white;
    text-decoration: none !important;
}

.btn-admin-main {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none !important;
    min-height: 48px;
    background: #6b7280;
    color: white;
}
.btn-admin-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,114,128,0.4);
    color: white;
    text-decoration: none !important;
}
.btn-admin-main.bg-gray-700 { background: #374151; }
.btn-admin-main.bg-gray-700:hover { background: #4b5563; }

/* ============================================================
   انیمیشن‌ها (برای base_detail.html)
   ============================================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.animate-fade-in-up.delay-1 { animation-delay: 0.05s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.1s; }
.animate-fade-in-up.delay-3 { animation-delay: 0.15s; }
.animate-fade-in-up.delay-4 { animation-delay: 0.2s; }

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

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

/* ============================================================
   صفحه‌بندی سوالات (برای base_detail.html)
   ============================================================ */
.question-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.dark .question-pagination {
    border-top-color: #374151;
}
.question-pagination .page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark .question-pagination .page-btn {
    border-color: #374151;
    background: #1e293b;
    color: #e5e7eb;
}
.question-pagination .page-btn:hover:not(.active):not(:disabled) {
    background: #f3f4f6;
    border-color: #818cf8;
}
.dark .question-pagination .page-btn:hover:not(.active):not(:disabled) {
    background: #374151;
    border-color: #818cf8;
}
.question-pagination .page-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}
.dark .question-pagination .page-btn.active {
    background: #818cf8;
    border-color: #818cf8;
    color: #0f172a;
}
.question-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-info {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}
.dark .page-info {
    color: #64748b;
}
.question-item.hidden-page {
    display: none !important;
}

/* ============================================================
   ریسپانسیو (برای base_detail.html)
   ============================================================ */
@media (max-width: 768px) {
    .content-hero {
        padding: 40px 0;
        min-height: 200px;
    }
    .content-hero .floating-icon {
        display: none;
    }
    .content-hero .hero-title {
        font-size: 1.3rem;
    }
    .content-hero .hero-subtitle {
        font-size: 0.8rem;
    }
    .content-hero .hero-stats {
        font-size: 0.7rem;
        gap: 8px;
    }
    
    .section-header {
        padding: 10px 12px;
    }
    .section-title-text {
        font-size: 0.85rem;
    }
    .section-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .question-header {
        padding: 8px 12px;
    }
    .question-title-text {
        font-size: 0.8rem;
    }
    .question-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .option-row {
        padding: 8px 12px;
    }
    .option-row .option-text {
        font-size: 0.8rem;
    }
    .option-prefix {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .btn-enroll,
    .btn-subscription,
    .btn-login,
    .btn-exam-start {
        font-size: 0.85rem;
        padding: 10px 16px;
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .content-hero {
        padding: 16px 0 20px;
        min-height: 160px;
    }
    .content-hero .hero-title {
        font-size: 1.1rem;
    }
    .content-hero .hero-stats {
        font-size: 0.65rem;
        gap: 6px;
    }
    
    .section-number {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .question-number {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .option-prefix {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .tag {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}



/* ============================================================
   استایل‌های صفحه آزمون (exam_start.html)
   ============================================================ */

/* ===== هدر ===== */
.exam-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.3) !important;
    color: white !important;
}
.exam-header h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 4px 0 !important;
}
.exam-header .exam-subtitle {
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px !important;
}
.exam-header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}
.exam-stats {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.exam-stat-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 30px !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.exam-stat-item .num {
    color: white !important;
    font-weight: 700 !important;
}

/* ===== تایمر ===== */
.exam-timer-wrap {
    background: rgba(255,255,255,0.06) !important;
    border-radius: 16px !important;
    padding: 8px 20px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.exam-timer-wrap .exam-time {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #fbbf24 !important;
    font-family: 'Courier New', monospace !important;
    min-width: 80px !important;
    display: inline-block !important;
    text-align: center !important;
}

/* ===== کارت سوال ===== */
.exam-card-question {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px 36px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    min-height: 360px !important;
    margin-bottom: 20px !important;
}
.exam-question-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.exam-badge-question {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    padding: 4px 16px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.exam-question-text {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.8 !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border-right: 4px solid #8b5cf6 !important;
    margin-bottom: 24px !important;
}

/* ===== گزینه‌ها ===== */
.exam-options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}
.exam-option-row {
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #fafbfc !important;
    transition: all 0.2s !important;
    min-height: 56px !important;
    margin: 0 !important;
    width: 100% !important;
}
.exam-option-row:hover:not(.exam-disabled) {
    border-color: #8b5cf6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139,92,246,0.15) !important;
}
.exam-option-row .exam-prefix {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    color: #4b5563 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}
.exam-option-row .exam-check {
    display: none !important;
    margin-right: auto !important;
    font-size: 20px !important;
}
.exam-option-row.exam-selected {
    border-color: #3b82f6 !important;
    background: rgba(59,130,246,0.06) !important;
}
.exam-option-row.exam-selected .exam-prefix {
    background: #3b82f6 !important;
    color: white !important;
}
.exam-option-row.exam-correct {
    border-color: #10b981 !important;
    background: rgba(16,185,129,0.08) !important;
}
.exam-option-row.exam-correct .exam-prefix {
    background: #10b981 !important;
    color: white !important;
}
.exam-option-row.exam-correct .exam-check {
    display: block !important;
    color: #10b981 !important;
}
.exam-option-row.exam-wrong {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.08) !important;
}
.exam-option-row.exam-wrong .exam-prefix {
    background: #ef4444 !important;
    color: white !important;
}
.exam-option-row.exam-wrong .exam-check {
    display: block !important;
    color: #ef4444 !important;
}
.exam-option-row.exam-show-correct {
    border-color: #10b981 !important;
    background: rgba(16,185,129,0.04) !important;
}
.exam-option-row.exam-show-correct .exam-prefix {
    background: #10b981 !important;
    color: white !important;
}
.exam-option-row.exam-show-correct .exam-check {
    display: block !important;
    color: #10b981 !important;
}
.exam-option-row.exam-disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* ===== دات‌های پیشرفت ===== */
#examProgressDots .exam-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #d1d5db !important;
    transition: all 0.3s !important;
    display: inline-block !important;
    margin: 0 2px !important;
}
#examProgressDots .exam-dot.exam-current {
    background: #8b5cf6 !important;
    transform: scale(1.3) !important;
}
#examProgressDots .exam-dot.exam-answered-correct {
    background: #10b981 !important;
}
#examProgressDots .exam-dot.exam-answered-wrong {
    background: #ef4444 !important;
}

/* ===== فوتر ===== */
.exam-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: white !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    margin-top: 20px !important;
}
.exam-progress-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}
.exam-progress-bar {
    width: 120px !important;
    height: 4px !important;
    background: #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.exam-progress-bar .exam-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed) !important;
    border-radius: 10px !important;
    transition: width 0.6s !important;
    width: 0% !important;
}

/* ===== دکمه‌ها ===== */
.exam-btn {
    padding: 10px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    font-family: 'Vazirmatn', sans-serif !important;
}
.exam-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
}
.exam-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3) !important;
}
.exam-btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}
.exam-btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3) !important;
}
.exam-btn-reset {
    display: none !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
}
.exam-btn-reset.exam-show {
    display: inline-flex !important;
}
.exam-btn-secondary {
    background: #e5e7eb !important;
    color: #4b5563 !important;
}
.exam-btn-secondary:hover {
    background: #d1d5db !important;
}

/* ===== مودال ===== */
.exam-modal-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
}
.exam-modal-overlay.exam-active {
    display: flex !important;
}
.exam-modal-box {
    background: white !important;
    padding: 48px 40px 36px !important;
    border-radius: 24px !important;
    max-width: 480px !important;
    width: 90% !important;
    text-align: center !important;
}
.exam-modal-box .exam-pct {
    font-size: 56px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 8px 0 !important;
}
.exam-modal-box .exam-stats-row {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 16px 0 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 12px 0 20px !important;
}
.exam-modal-box .exam-stats-row .num {
    font-size: 20px !important;
    font-weight: 700 !important;
    display: block !important;
}
.exam-modal-box .exam-stats-row .exam-green { color: #10b981 !important; }
.exam-modal-box .exam-stats-row .exam-red { color: #ef4444 !important; }
.exam-modal-box .exam-stats-row .exam-gray { color: #6b7280 !important; }

/* ===== Toast ===== */
.exam-toasts {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
}
.exam-toast-item {
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    animation: examToastIn 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.exam-toast-item.exam-info { background: rgba(59,130,246,0.92) !important; }
.exam-toast-item.exam-success { background: rgba(16,185,129,0.92) !important; }
.exam-toast-item.exam-warning { background: rgba(245,158,11,0.92) !important; }
.exam-toast-item.exam-error { background: rgba(239,68,68,0.92) !important; }
.exam-toast-item.exam-hide { animation: examToastOut 0.3s ease forwards !important; }

@keyframes examToastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes examToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* ===== حالت پایان ===== */
.exam-ended .exam-option-row {
    opacity: 0.5 !important;
    pointer-events: none !important;
}
.exam-ended .exam-option-row.exam-correct,
.exam-ended .exam-option-row.exam-wrong,
.exam-ended .exam-option-row.exam-show-correct {
    opacity: 1 !important;
}

/* ===== دارک مود ===== */
.dark .exam-card-question {
    background: #1e293b !important;
    border-color: #334155 !important;
}
.dark .exam-question-text {
    color: #f1f5f9 !important;
    background: #0f172a !important;
}
.dark .exam-option-row {
    border-color: #4b5563 !important;
    background: #1f2937 !important;
    color: #e5e7eb !important;
}
.dark .exam-option-row .exam-prefix {
    background: #4b5563 !important;
    color: #d1d5db !important;
}
.dark .exam-footer {
    background: #1e293b !important;
    border-color: #334155 !important;
}
.dark .exam-progress-info {
    color: #94a3b8 !important;
}
.dark .exam-progress-bar {
    background: #374151 !important;
}
.dark .exam-modal-box {
    background: #1e293b !important;
}
.dark .exam-modal-box .exam-stats-row {
    border-color: #374151 !important;
}
.dark #examProgressDots .exam-dot {
    background: #4b5563 !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 640px) {
    .exam-options-grid { grid-template-columns: 1fr !important; }
    .exam-card-question { padding: 20px !important; }
    .exam-header { padding: 20px !important; }
    .exam-timer-wrap .exam-time { font-size: 24px !important; min-width: 60px !important; }
}


/* ============================================================
   استایل‌های صفحه‌بندی (برای base_list.html)
   ============================================================ */
.pagination-nav {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    direction: rtl !important;
}
.pagination-nav .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    color: #374151 !important;
    background: white !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-family: 'Vazirmatn', sans-serif !important;
}
.pagination-nav .page-link:hover {
    background: #f3f4f6 !important;
    border-color: #818cf8 !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}
.pagination-nav .page-link.active {
    background: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}
.pagination-nav .page-link.active:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}
.pagination-nav .page-link.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.dark .pagination-nav .page-link {
    border-color: #374151 !important;
    color: #d1d5db !important;
    background: #1e293b !important;
}
.dark .pagination-nav .page-link:hover {
    background: #374151 !important;
    border-color: #818cf8 !important;
    color: #f1f5f9 !important;
}
.dark .pagination-nav .page-link.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}
.dark .pagination-nav .page-link.active:hover {
    background: #2563eb !important;
}


/* ============================================================
   استایل‌های صفحات "من" (my_completed, my_attempts, my_enrollments)
   ============================================================ */

/* ============================================================
   آیتم تکمیل شده (completed-item)
   ============================================================ */
.completed-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dark .completed-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.completed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .completed-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.completed-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.completed-item .item-icon.course {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.completed-item .item-icon.exam {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.completed-item .item-icon.video {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.completed-item .item-info {
    flex: 1;
    min-width: 0;
}
.completed-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.dark .completed-item .item-info .title {
    color: #f1f5f9;
}
.completed-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .completed-item .item-info .meta {
    color: #94a3b8;
}
.completed-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-completed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: #d1fae5;
    color: #059669;
}
.dark .badge-completed {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}

.completed-item .item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .completed-item .item-actions {
        width: 100%;
        margin-top: 8px;
    }
    .completed-item .item-actions .my-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================
   آیتم تلاش آزمون (attempt-item)
   ============================================================ */
.attempt-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    border-right: 4px solid #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dark .attempt-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.attempt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .attempt-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.attempt-item.passed {
    border-right-color: #10b981;
}
.attempt-item.failed {
    border-right-color: #ef4444;
}

.attempt-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.attempt-item .item-info {
    flex: 1;
    min-width: 0;
}
.attempt-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.dark .attempt-item .item-info .title {
    color: #f1f5f9;
}
.attempt-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .attempt-item .item-info .meta {
    color: #94a3b8;
}
.attempt-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.attempt-item .score-display {
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}
.attempt-item .score-display .score {
    font-size: 24px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.attempt-item .score-display .score.passed {
    color: #10b981;
}
.attempt-item .score-display .score.failed {
    color: #ef4444;
}
.attempt-item .score-display .label {
    font-size: 11px;
    color: #94a3b8;
}

.attempt-item .item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .attempt-item .item-actions {
        width: 100%;
        margin-top: 8px;
    }
    .attempt-item .item-actions .my-btn,
    .attempt-item .item-actions .btn-result {
        flex: 1;
        justify-content: center;
    }
}

.btn-result {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    min-height: 38px;
    font-family: 'Vazirmatn', sans-serif;
}
.btn-result:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
.btn-result.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}
.btn-result.purple:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-result.gray {
    background: #6b7280;
    color: white;
}
.btn-result.gray:hover {
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* ============================================================
   آیتم ثبت‌نام (enrollment-item)
   ============================================================ */
.enrollment-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dark .enrollment-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.enrollment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .enrollment-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.enrollment-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.enrollment-item .item-icon.course {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.enrollment-item .item-icon.exam {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.enrollment-item .item-icon.video {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.enrollment-item .item-info {
    flex: 1;
    min-width: 0;
}
.enrollment-item .item-info .title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.dark .enrollment-item .item-info .title {
    color: #f1f5f9;
}
.enrollment-item .item-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #94a3b8;
}
.dark .enrollment-item .item-info .meta {
    color: #94a3b8;
}
.enrollment-item .item-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.enrollment-item .item-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.enrollment-item .item-status.active {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.dark .enrollment-item .item-status.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.enrollment-item .item-status.completed {
    background: #d1fae5;
    color: #059669;
}
.dark .enrollment-item .item-status.completed {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}
.enrollment-item .item-status.pending {
    background: #fef3c7;
    color: #d97706;
}
.dark .enrollment-item .item-status.pending {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

.enrollment-item .item-progress {
    min-width: 130px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .enrollment-item .item-progress {
        width: 100%;
    }
}
.enrollment-item .item-progress .progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.enrollment-item .item-progress .progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.dark .enrollment-item .item-progress .progress-text {
    color: #f1f5f9;
}
.enrollment-item .item-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}
.dark .enrollment-item .item-progress .progress-bar {
    background: #374151;
}
.enrollment-item .item-progress .progress-bar .fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.enrollment-item .item-progress .progress-bar .fill.green {
    background: linear-gradient(135deg, #10b981, #059669);
}
.enrollment-item .item-progress .progress-bar .fill.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.enrollment-item .item-progress .progress-bar .fill.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.enrollment-item .item-progress .progress-bar .fill.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.enrollment-item .item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .enrollment-item .item-actions {
        width: 100%;
        margin-top: 8px;
    }
    .enrollment-item .item-actions .my-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================
   فیلتر خالی
   ============================================================ */
.empty-filter-msg {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.empty-filter-msg i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}
.empty-filter-msg p {
    font-size: 14px;
}

/* ============================================================
   ریسپانسیو برای صفحات "من"
   ============================================================ */
@media (max-width: 480px) {
    .completed-item .item-row,
    .attempt-item .item-row,
    .enrollment-item .item-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .completed-item .item-info .meta {
        gap: 4px 8px;
        font-size: 11px;
    }
    .attempt-item .item-info .meta {
        gap: 4px 8px;
        font-size: 11px;
    }
    .enrollment-item .item-info .meta {
        gap: 4px 8px;
        font-size: 11px;
    }
    
    .attempt-item .score-display {
        text-align: right;
        min-width: auto;
    }
    .attempt-item .score-display .score {
        font-size: 20px;
    }
    
    .my-btn {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 34px;
    }
    .btn-result {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 34px;
    }
}



/* ============================================
   PAYMENTS - WALLET
   ============================================ */

/* ----- Header ----- */
.wallet-header-custom {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1040 100%);
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.wallet-header-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}
.wallet-header-custom .h-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}
.wallet-header-custom .h-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wallet-header-custom .h-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
}
.wallet-header-custom .h-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.wallet-header-custom .h-sub {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}
.wallet-header-custom .h-balance {
    background: rgba(255,255,255,0.06);
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}
.wallet-header-custom .h-balance-label {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 600;
}
.wallet-header-custom .h-balance-amount {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.wallet-header-custom .h-balance-amount .cur {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    margin-right: 4px;
}

/* ----- Quick Buttons ----- */
.wallet-quick-btns {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.wallet-quick-btns .qb {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 16px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wallet-quick-btns .qb:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* ----- Wallet Card ----- */
.wallet-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dark .wallet-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.wallet-card:hover {
    border-color: #c4b5fd;
}

/* ----- Balance Display ----- */
.wallet-balance-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}
.wallet-balance-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: #4f46e5;
    margin: 8px 0;
    letter-spacing: -1px;
}
.dark .wallet-balance-display {
    color: #818cf8;
}
.wallet-balance-display .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 4px;
}

/* ----- Divider ----- */
.wallet-divider {
    border: none;
    border-top: 2px solid #f1f5f9;
    margin: 24px 0;
}
.dark .wallet-divider {
    border-color: #334155;
}

/* ----- Charge Section ----- */
.charge-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.dark .charge-title {
    color: #f1f5f9;
}
.charge-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.charge-input-group {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}
.charge-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.dark .charge-input-group input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.charge-input-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.charge-input-group input::placeholder {
    color: #94a3b8;
}

.btn-charge {
    padding: 12px 28px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-charge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    color: #fff;
}
.btn-charge:active {
    transform: scale(0.97);
}

/* ----- Quick Amounts ----- */
.quick-amounts {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.quick-amount {
    padding: 8px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.dark .quick-amount {
    border-color: #334155;
    color: #94a3b8;
}
.quick-amount:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}
.dark .quick-amount:hover {
    border-color: #818cf8;
    color: #818cf8;
}
.quick-amount.active {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
}
.dark .quick-amount.active {
    border-color: #818cf8;
    background: #818cf8;
    color: #0f172a;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .wallet-header-custom {
        padding: 18px 16px;
    }
    .wallet-header-custom .h-balance-amount {
        font-size: 20px;
    }
    .wallet-card {
        padding: 20px;
    }
    .wallet-balance-display {
        font-size: 2.5rem;
    }
    .charge-input-group {
        flex-direction: column;
    }
    .charge-input-group .btn-charge {
        width: 100%;
        justify-content: center;
    }
    .wallet-quick-btns .qb {
        font-size: 11px;
        padding: 6px 12px;
    }
}


.question-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.dark .question-pagination { border-top-color: #374151; }
.question-pagination .page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark .question-pagination .page-btn {
    border-color: #374151;
    background: #1e293b;
    color: #e5e7eb;
}
.question-pagination .page-btn:hover:not(.active):not(:disabled) {
    background: #f3f4f6;
    border-color: #818cf8;
}
.dark .question-pagination .page-btn:hover:not(.active):not(:disabled) {
    background: #374151;
    border-color: #818cf8;
}
.question-pagination .page-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}
.dark .question-pagination .page-btn.active {
    background: #818cf8;
    border-color: #818cf8;
    color: #0f172a;
}
.question-pagination .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}
.dark .page-info { color: #64748b; }
.question-item.hidden-page { display: none !important; }

.question-item.locked .question-header { opacity: 0.6; cursor: not-allowed; }
.question-item.locked .question-number { background: #9ca3af !important; }

.question-locked-message {
    padding: 16px 20px;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    margin-top: 4px;
}
.dark .question-locked-message {
    background: #1e293b;
    border-color: #334155;
}
.question-locked-message i {
    color: #9ca3af;
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
}
.question-locked-message p { color: #6b7280; }
.dark .question-locked-message p { color: #9ca3af; }
.question-locked-message .lock-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: #7c3aed;
    transition: all 0.2s ease;
    text-decoration: none;
}
.question-locked-message .lock-btn:hover { background: #6d28d9; }
.question-locked-message .lock-btn i {
    color: white;
    font-size: 12px;
    display: inline;
    margin-bottom: 0;
}

.section-locked-message {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin: 10px 0;
}
.dark .section-locked-message {
    background: linear-gradient(135deg, #1f2937, #1a1a2e);
    border-color: #dc2626;
}
.section-locked-message i {
    color: #dc2626;
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
.section-locked-message h4 {
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}
.dark .section-locked-message h4 { color: #f87171; }
.section-locked-message p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}
.dark .section-locked-message p { color: #9ca3af; }
.section-locked-message .lock-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #7c3aed;
    transition: all 0.2s ease;
    text-decoration: none;
}
.section-locked-message .lock-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}
.section-locked-message .lock-btn i {
    color: white;
    font-size: 14px;
    display: inline;
    margin-bottom: 0;
}

.filter-btn-group {
    display: flex;
    gap: 4px;
    align-items: center;
}
.filter-btn {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dark .filter-btn {
    border-color: #374151;
    background: #1e293b;
    color: #e5e7eb;
}
.filter-btn.active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: white !important;
}
.dark .filter-btn.active {
    background: #818cf8 !important;
    border-color: #818cf8 !important;
    color: #0f172a !important;
}
.filter-btn:hover:not(.active) { background: #f3f4f6; }
.dark .filter-btn:hover:not(.active) { background: #374151; }

.questions-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 9999px;
}
.dark .questions-stats {
    background: #1e293b;
}
.questions-stats .open-count { color: #10b981; }
.questions-stats .locked-count { color: #ef4444; }
.questions-stats .total-count { color: #6b7280; }
.dark .questions-stats .total-count { color: #9ca3af; }

.section-item .section-content { padding-top: 8px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}
.dark .modal-box { background: #1e293b; }
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}
.dark .modal-close { color: #9ca3af; }
.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}
.dark .modal-title { color: #f1f5f9; }
.modal-empty {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
}
.modal-empty i { font-size: 48px; display: block; margin-bottom: 8px; }
.modal-question-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.dark .modal-question-item { border-bottom-color: #334155; }
.modal-question-item .q-number {
    background: #4f46e5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.modal-question-item .q-title {
    color: #374151;
    font-size: 14px;
}
.dark .modal-question-item .q-title { color: #e5e7eb; }