/* ==========================================================================
   ۱. تنظیمات پایه و فونت‌ها (Base & Typography)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, input, button, select, textarea {
    font-family: 'IRANYekan', 'IRANYekanMobile', 'Vazirmatn', Tahoma, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

i[class*="fa-"], .fa-solid, .fa-regular, .fa-brands, .fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 900;
    display: inline-block;
}

.fa-regular {
    font-weight: 400;
}

.vertical-divider {
    width: 1px;
    height: 22px;
    background-color: #cbd5e1;
}

.text-purple { color: #8b5cf6; }
.text-blue { color: #0284c7; }

.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   ۲. هدر اصلی سایت (Main Header)
   ========================================================================== */
.main-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
}

.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 4px 12px;
    width: 100%;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 8px 10px;
    color: #334155;
}

.header-left-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.vip-subscription-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background-color: #f5f3ff;
    border: 1px solid #c084fc;
    color: #7e22ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.vip-subscription-btn:hover {
    background-color: #f3e8ff;
}

.vip-sparkle { color: #a855f7; }

.header-nav-item, .header-icon-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.header-nav-item {
    gap: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
}

.header-icon-btn {
    justify-content: center;
    color: #475569;
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.header-nav-item:hover, .header-icon-btn:hover {
    background-color: #f1f5f9;
    color: #0284c7;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ۳. بخش هیرو (Hero Section)
   ========================================================================== */
.hero-wrapper {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #faf5ff 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 16px;
}

.highlight-text {
    color: #0284c7;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-search-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 8px 10px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 35px;
}

.hero-search-box:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.2);
}

.hero-search-box form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon-hero {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    background: transparent;
}

.hero-search-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.stat-number.ltr {
    direction: ltr;
    text-align: right;
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #cbd5e1;
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 500px;
}

.hero-image-bg-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-illustration {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.06));
}

/* ==========================================================================
   ۴. دسته‌بندی‌ها و اسلایدر دوره‌ها (Categories & Course Slider)
   ========================================================================== */
.categories-section {
    padding: 40px 0;
    direction: rtl;
}

.categories-section .container,
.courses-slider-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    direction: rtl;
}

.courses-slider-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.section-header, .slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

.section-header {
    margin-bottom: 25px;
}

.slider-header {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.section-title, .slider-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.slider-title {
    font-size: 1.1rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.view-all-btn:hover {
    color: #0369a1;
    transform: translateX(-3px);
}

.circles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    max-width: 1000px;
}

.circle-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.circle-icon-box {
    width: 72px;
    height: 72px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.circle-cat-item:hover .circle-icon-box {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.circle-icon-box i { font-size: 28px; }
.circle-icon-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.circle-cat-item span {
    font-size: 13px;
    color: #333333;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.slider-wrapper-rel {
    position: relative;
}

.courses-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    scrollbar-width: none;
}

.courses-scroll-container::-webkit-scrollbar {
    display: none;
}

.course-card {
    position: relative;
    flex: 0 0 270px;
    width: 270px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

.card-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f1f5f9;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #ffffff;
    z-index: 2;
}

.badge.discount { background-color: #ef4444; }
.badge.special { background-color: #d97706; }
.badge.level-badge { left: 10px; right: auto; }

.badge.cert-badge {
    right: 10px;
    left: auto;
    background-color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.favorite-btn {
    position: absolute;
    top: 7px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.favorite-btn:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.1);
}

.favorite-btn.active i {
    font-weight: 900;
    color: #ef4444;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #1e293b;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slider-arrow:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.prev-arrow { right: -16px; }
.next-arrow { left: -16px; }

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.5;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.instructor-info, .course-duration, .course-level-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
}

.course-level-info {
    margin-top: 4px;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cart-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.price-box {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.old-price, .old-price-line {
    font-size: 0.75rem;
    color: #94a3b8;
}

.old-price-line {
    font-size: 0.8rem;
    text-decoration: line-through;
    margin-left: 6px;
}

.final-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.final-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
}

.discount-badge-overlay {
    position: absolute;
    top: 10px;
    left: 180px;
    background-color: #ef4444;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.course-timer-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #fef2f2;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: bold;
    margin: 6px 0;
    border: 1px dashed #fca5a5;
    direction: ltr;
    justify-content: center;
}

a.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.cart-inline-alert {
    width: 100%;
    margin-bottom: 8px;
}

.btn-add-cart {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 12px 15px;
    height: auto;
    writing-mode: horizontal-tb;
}

/* ==========================================================================
   ۵. صفحه جستجو و گرید کارت‌ها (Search Page & Cards Grid)
   ========================================================================== */
.search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.search-header-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    width: 100%;
}

.search-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-title {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-title i, .search-title .query-text {
    color: #2563eb;
}

.search-title .query-text {
    font-weight: 800;
}

.search-count {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.search-sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.search-sort-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.search-sort-select {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #1e293b;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    direction: rtl;
}

.filter-sidebar {
    width: 280px;
    min-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i { color: #2563eb; }

.filter-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-category-item {
    margin-bottom: 10px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.price-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
}

.price-field span {
    font-size: 12px;
    color: #64748b;
}

.price-field input {
    width: 110px;
    border: none;
    background: transparent;
    text-align: left;
    direction: ltr;
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
    outline: none;
}

.btn-apply-filter {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.btn-apply-filter:hover {
    background: #1d4ed8;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

.courses-grid .course-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.courses-grid .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.courses-grid .card-banner {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.courses-grid .card-banner .course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.courses-grid .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.courses-grid .course-title {
    font-size: 15px;
    font-weight: bold;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.courses-grid .instructor-info,
.courses-grid .course-level-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.courses-grid .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    width: 100%;
}

.courses-grid .card-footer .cart-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    writing-mode: horizontal-tb;
    padding: 0;
}

.courses-grid .card-footer .price-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.courses-grid .card-footer .old-price-line {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.courses-grid .card-footer .final-price {
    font-size: 14px;
    font-weight: bold;
    color: #0f172a;
}

/* ==========================================================================
   ۶. صفحات ورود، پروفایل و داشبورد کاربری (Auth & Profile)
   ========================================================================== */
.login-page-body {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
}

.login-card-container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.08);
    text-align: center;
}

.login-brand {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.login-brand h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.login-brand h2 span { color: #0284c7; }
.login-brand p { font-size: 0.85rem; color: #64748b; margin: 0; }

.login-alert {
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.82rem;
    margin-bottom: 20px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-alert.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 8px;
    margin-bottom: 20px;
}

.login-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.login-form label i { color: #0284c7; margin-left: 5px; }

.login-form input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0369a1;
}

.otp-hint { font-size: 0.78rem; color: #94a3b8; margin-top: 4px; }

.btn-login-submit {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login-submit:hover { background: #0369a1; }

.btn-change-phone {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-change-phone:hover { color: #0284c7; }

.profile-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: start;
}

.profile-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.profile-avatar-icon {
    width: 75px;
    height: 75px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
}

.profile-user-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.profile-user-badge {
    display: inline-block;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #64748b;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-menu-item:hover { background: #f8fafc; color: #0f172a; }

.profile-menu-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.profile-menu-item.admin-btn {
    color: #2563eb;
    background: #f0f9ff;
    font-weight: 700;
}

.profile-menu-item.logout { color: #ef4444; margin-top: 10px; }
.profile-menu-item.logout:hover { background: #fef2f2; }

.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-stats-grid, .profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 25px;
}

.profile-box-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-box-title i { color: #2563eb; }

.empty-courses-text {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 20px 0;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.form-input-custom {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    outline: none;
}

.form-input-custom:focus {
    border-color: #2563eb;
    background: #ffffff;
}

.form-input-custom.readonly {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
    text-align: center;
}

.form-input-custom.ltr { text-align: left; }
.form-input-custom.center { text-align: center; }

.btn-save-profile {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-save-profile:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.my-courses-container {
    padding: 40px 15px 60px;
    min-height: 70vh;
}

.page-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.page-title svg, .page-title i { color: #2563eb; }

.empty-courses-card, .empty-cart-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    padding: 60px 20px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.empty-courses-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease;
}

.empty-courses-card:hover { border-color: #93c5fd; }

.empty-illustration {
    width: 130px;
    height: 130px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.empty-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.7;
}

.btn-explore-courses {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.btn-explore-courses:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.my-course-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.my-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.my-course-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.my-course-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.my-course-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-view-course {
    margin-top: auto;
    width: 100%;
    background: #f1f5f9;
    color: #1e293b;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    display: block;
}

.btn-view-course:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   ۷. سبد خرید (Shopping Cart)
   ========================================================================== */
.cart-container {
    padding: 30px 15px 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.cart-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cart-items-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 10px 20px;
}

.cart-summary-card {
    width: 340px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 90px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
    transition: all 0.2s ease;
}

.cart-item-row:last-child { border-bottom: none; }

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cart-item-img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.cart-item-title:hover { color: #2563eb; }

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.btn-remove-item {
    background: #fef2f2;
    color: #ef4444;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.btn-remove-item:hover {
    background: #ef4444;
    color: #ffffff;
}

.summary-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    color: #64748b;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    margin-top: 15px;
    margin-bottom: 24px;
}

.summary-row.total .price-amount {
    color: #2563eb;
    font-size: 20px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   ۸. پنل مدیریت دوره‌ها (Admin Dashboard)
   ========================================================================== */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.admin-modal-overlay.active .admin-modal-card { transform: scale(1); }

.admin-modal-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.admin-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.admin-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.admin-modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    outline: none;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.admin-modal-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.admin-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-admin-submit {
    flex: 2;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-admin-submit:hover { background: #1d4ed8; }

.btn-admin-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-admin-cancel:hover { background: #e2e8f0; color: #0f172a; }

.add-course-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    max-width: 850px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.add-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.add-course-header h2 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
}

.btn-back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back-link:hover { color: #2563eb; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.type-checkbox-group {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.type-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.type-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-field-title, .price-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.price-package-box, .price-box-package {
    grid-column: span 2;
    background: #eff6ff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
}

.price-package-box .price-field-title, 
.price-box-package label {
    color: #1d4ed8;
    font-weight: 700;
}

.price-box-package input { border-color: #93c5fd; }

.btn-submit-course {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-submit-course:hover { background: #1d4ed8; }

.btn-add-course-top {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.btn-add-course-top:hover { background: #1d4ed8; }

.admin-table-responsive {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    padding: 14px 16px;
    color: #475569;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.badge-type {
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-action-del {
    color: #ef4444;
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-action-del:hover { background: #fee2e2; }

/* ==========================================================================
   ۹. بنرها و بخش تبلیغات (Banners & Certificates)
   ========================================================================== */
.jeld-cert-banner {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    direction: rtl;
}

.jeld-cert-card {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #e2e8f0;
}

.jeld-cert-content { flex: 1; }

.jeld-cert-badge {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.jeld-cert-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px;
    line-height: 1.3;
}

.jeld-highlight { color: #2563eb; }

.jeld-cert-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
}

.jeld-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.jeld-cert-btn:hover { background-color: #1d4ed8; }

.jeld-cert-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.jeld-card-stack {
    position: relative;
    width: 300px;
    height: 200px;
}

.jeld-paper {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jeld-paper-back {
    top: -10px;
    right: -15px;
    background: #e2e8f0;
    transform: rotate(4deg);
    z-index: 1;
}

.jeld-paper-front {
    top: 0;
    right: 0;
    z-index: 2;
    transform: rotate(-2deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.jeld-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jeld-brand {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jeld-brand i { color: #2563eb; }

.jeld-tag {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    color: #64748b;
}

.jeld-paper-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jeld-seal {
    font-size: 2.2rem;
    color: #f59e0b;
}

.jeld-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jeld-lines .line {
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    display: block;
}

.jeld-lines .l1 { width: 85%; background: #cbd5e1; }
.jeld-lines .l2 { width: 65%; }
.jeld-lines .l3 { width: 45%; }

.jeld-paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

.jeld-qr { font-size: 1.8rem; color: #334155; }
.jeld-sign { text-align: left; font-size: 0.65rem; color: #94a3b8; }
.jeld-sign-line { width: 50px; height: 2px; background: #94a3b8; margin-top: 3px; }

.single-banner-section {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 15px;
    direction: rtl;
}

.banner-card-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.banner-card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.banner-card-link { display: block; width: 100%; }

.banner-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.jald-teacher-banner-section {
    max-width: 1200px;
    margin: 45px auto;
    padding: 0 15px;
    direction: rtl;
}

.jald-teacher-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #bae6fd;
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.08);
}

.jald-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.15);
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(14, 165, 233, 0.15);
    bottom: -80px;
    left: -50px;
}

.jald-teacher-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.jald-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 15px;
}

.jald-teacher-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.jald-teacher-title .highlight { color: #2563eb; }

.jald-teacher-desc {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.jald-teacher-features {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: 10px;
}

.feat-item i { color: #16a34a; }

.jald-teacher-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.jald-teacher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.jald-teacher-visual {
    display: flex;
    justify-content: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.jald-vector-box {
    width: 220px;
    height: 220px;
    margin: 10px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vector-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
    border: 4px solid #ffffff;
    z-index: 2;
}

.vector-icon {
    font-size: 65px;
    color: #ffffff;
}

.floating-card {
    position: absolute;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 3;
}

.floating-card strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
}

.floating-card small {
    font-size: 10px;
    color: #64748b;
}

.badge-top { top: -10px; right: -10px; }
.badge-bottom { bottom: -10px; left: -10px; }

.sparkle {
    position: absolute;
    color: #f59e0b;
    z-index: 3;
}

.sp-1 { top: 10px; right: 20px; font-size: 22px; }
.sp-2 { bottom: 15px; left: 20px; font-size: 18px; }

/* ==========================================================================
   ۱۰. صفحه اختصاصی محصول (Course Single Page)
   ========================================================================== */
.course-page-wrapper {
    background-color: #f8fafc;
    padding-bottom: 50px;
    direction: rtl;
    color: #334155;
}

.course-page-wrapper .course-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.course-page-wrapper .course-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 30px 0;
    margin-bottom: 25px;
    border-bottom: 4px solid #2563eb;
}

.course-page-wrapper .course-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #ffffff;
}

.course-page-wrapper .course-meta-bar {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.course-page-wrapper .course-meta-bar .meta-item i {
    color: #f59e0b;
    margin-left: 5px;
}

.course-page-wrapper .course-main-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.course-page-wrapper .course-content-column {
    flex: 1;
    min-width: 0;
}

.course-page-wrapper .course-sidebar-column {
    width: 320px;
    position: sticky;
    top: 20px;
}

.course-page-wrapper .course-tabs-nav {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    position: sticky;
    top: 10px;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.course-page-wrapper .tab-link {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.course-page-wrapper .tab-link i { margin-left: 5px; }

.course-page-wrapper .tab-link.active, 
.course-page-wrapper .tab-link:hover {
    background: #2563eb;
    color: #ffffff;
}

.course-page-wrapper .course-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.course-page-wrapper .course-section-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.course-page-wrapper .course-section-card h2 i {
    color: #2563eb;
    margin-left: 6px;
}

.course-page-wrapper .section-body {
    color: #475569;
    line-height: 1.8;
    font-size: 14px;
}

.course-page-wrapper .syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-page-wrapper .syllabus-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
    border-right: 3px solid #2563eb;
    font-size: 13.5px;
}

.course-page-wrapper .teacher-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-page-wrapper .teacher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.course-page-wrapper .teacher-info-box h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #0f172a;
}

.course-page-wrapper .teacher-info-box p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.course-page-wrapper .course-sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.course-page-wrapper .course-cover-box img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
}

.course-page-wrapper .sidebar-info-group {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.course-page-wrapper .info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #64748b;
}

.course-page-wrapper .info-row i { color: #2563eb; }

.course-page-wrapper .sidebar-price-box {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.course-page-wrapper .discount-badge {
    position: absolute;
    top: -8px;
    right: 5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.course-page-wrapper .original-price {
    color: #94a3b8;
    font-size: 13px;
    display: block;
}

.course-page-wrapper .final-price {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}

.course-page-wrapper .final-price span {
    font-size: 12px;
    font-weight: normal;
}

.course-page-wrapper .sidebar-actions {
    display: flex;
    gap: 8px;
}

.course-page-wrapper .btn-add-cart {
    flex: 1;
    background: #2563eb;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: background-color 0.2s;
}

.course-page-wrapper .btn-add-cart:hover { background: #1d4ed8; }
.course-page-wrapper .btn-add-cart.in-cart { background: #ef4444; }

.course-page-wrapper .btn-wishlist {
    background: #f1f5f9;
    border: none;
    width: 42px;
    border-radius: 8px;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.course-page-wrapper .btn-wishlist:hover { background: #fee2e2; }

/* ==========================================================================
   ۱۱. بخش نظرات و انتخاب فرمت (Reviews & Selectors)
   ========================================================================== */
.reviews-container, .comments-container, .comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments-container { margin-top: 20px; }
.comments-list { gap: 15px; margin-top: 10px; }

.comment-form-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.comment-form-box h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #0f172a;
}

.form-row { margin-bottom: 15px; }

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-row input, .form-row textarea, .form-row select,
.comment-form-box input, .comment-form-box textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus, .form-row textarea:focus, .form-row select:focus,
.comment-form-box input:focus, .comment-form-box textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-comment {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit-comment:hover { background: #1d4ed8; }

.comment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-user {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.comment-rating {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 8px;
}

.comment-body {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

.content-type-selector {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #f8fafc;
}

.type-option-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.type-option-card input[type="checkbox"] {
    margin-left: 8px;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
}

.type-option-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #334155;
}

.type-option-price {
    font-size: 14px;
    color: #059669;
    font-weight: bold;
}

/* ==========================================================================
   ۱. تنظیم فونت جهانی IRANYekan
   ========================================================================== */
body, 
button, 
input, 
select, 
textarea, 
.cart-container, 
.cart-item-title, 
.summary-title, 
.btn-checkout,
.jeld-cert-card,
.mobile-bottom-nav {
    font-family: 'IRANYekan', 'IRANYekanMobile', 'Vazirmatn', sans-serif !important;
}

/* ==========================================================================
   ۲. مخفی‌سازی کامل تسک‌بار پایین در حالت دسکتاپ
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   ۳. کانتینر و بخش‌های اصلی سبد خرید (دسکتاپ)
   ========================================================================== */
.cart-container {
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header-box {
    margin-bottom: 25px;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: #2563eb;
}

/* چیدمان دو ستونه در دسکتاپ */
.cart-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ستون لیست محصولات */
.cart-items-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 10px 20px;
}

/* هر سطر دوره در سبد خرید */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
    transition: all 0.2s ease;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cart-item-img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

.cart-item-title:hover {
    color: #2563eb;
}

/* بخش قیمت داخل سطر */
.cart-item-price {
    text-align: left;
    white-space: nowrap;
}

/* دکمه حذف سطل آشغال */
.btn-remove-item {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   ۴. بنر مدرک و گواهی آموزشی (اصلی - دسکتاپ)
   ========================================================================== */
.jeld-cert-card {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
}

.jeld-cert-visual {
    flex: 1;
    max-width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jeld-cert-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.jeld-cert-content {
    flex: 1.2;
    text-align: right;
}

.jeld-cert-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.jeld-cert-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================================================
   ۵. خلاصه فاکتور خرید در دسکتاپ
   ========================================================================== */
@media (min-width: 768px) {
    .cart-summary-card {
        width: 340px;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        padding: 24px;
        position: sticky !important;
        top: 90px !important;
    }

    .summary-title {
        font-size: 17px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
        display: block !important;
    }

    .summary-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        font-size: 14px;
        color: #64748b;
    }

    .summary-row.total {
        margin-top: 15px;
        margin-bottom: 20px;
        font-weight: 800;
        color: #0f172a;
        font-size: 15px;
    }

    .summary-row.total .price-amount {
        font-size: 18px;
        color: #16a34a;
    }

    .btn-checkout {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        background: #2563eb;
        color: #ffffff;
        padding: 14px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        transition: all 0.2s;
    }
}

/* ==========================================================================
   ۶. حالت سبد خرید خالی
   ========================================================================== */
.empty-cart-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    padding: 50px 20px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.empty-illustration {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.btn-explore-courses {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   ۷. تنظیمات اختصاصی موبایل و تبلت (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 991px) {
    .cart-layout {
        flex-direction: column;
    }
    
    .cart-summary-card {
        width: 100%;
        position: static;
    }
}

@media screen and (max-width: 768px) {
    /* اضافه شدن پدینگ پایین صفحه فقط برای موبایل */
    body {
        padding-bottom: 80px !important;
    }

    /* هدر موبایل */
    .header-container {
        height: 60px;
        padding: 0 12px;
        gap: 10px;
    }

    .logo img {
        height: 20px;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box form {
        padding: 2px 8px;
    }

    .search-box input {
        font-size: 12px;
        padding: 6px 8px;
    }

    .desktop-only {
        display: none !important;
    }

    /* هیرو موبایل */
    .hero-wrapper {
        padding: 20px 12px 15px !important;
        overflow: hidden;
    }

    .hero-container {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .hero-image-area {
        width: 42% !important;
        max-width: 150px !important;
        margin: 0 !important;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-illustration {
        width: 100% !important;
        height: auto !important;
        max-height: 130px !important;
        object-fit: contain;
    }

    .hero-image-bg-glow {
        display: none !important;
    }

    .hero-content {
        width: 55% !important;
        max-width: none !important;
        text-align: right !important;
        order: 2;
        padding: 0 !important;
    }

    .hero-badge {
        display: inline-flex !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
        margin-bottom: 8px !important;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        font-weight: 800 !important;
    }

    .hero-search-box,
    .hero-description {
        display: none !important;
    }

    .hero-stats {
        width: 100% !important;
        order: 3;
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 20px !important;
        padding-top: 15px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

    .stat-item {
        text-align: center !important;
        flex: 1 !important;
        margin: 0 !important;
    }

    .stat-divider, 
    .hero-stats > div:not(.stat-item) {
        display: none !important; 
    }

    .stat-number {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        display: block;
    }

    .stat-label {
        font-size: 11px !important;
        color: #64748b !important;
        margin-top: 2px;
        display: block;
    }

    /* دسته‌بندی دایره‌ای افقی */
    .categories-section {
        padding: 20px 0;
    }

    .circles-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .circles-grid::-webkit-scrollbar {
        display: none;
    }

    .circle-cat-item {
        flex: 0 0 auto;
        width: 70px;
    }

    .circle-icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
        border: 1px solid #e2e8f0;
    }

    .circle-icon-box img {
        width: 28px;
        height: 28px;
    }

    .circle-cat-item span {
        font-size: 11px;
    }

    /* اسلایدر دوره‌ها */
    .courses-slider-section {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .slider-header {
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .slider-title {
        font-size: 14px;
    }

    .course-card {
        flex: 0 0 210px;
        width: 210px;
    }

    .course-title {
        font-size: 0.85rem;
        height: 2.6em;
    }

    .slider-arrow {
        display: none !important;
    }

  .jeld-cert-card {
        display: flex !important;
        flex-direction: row !important; /* متن سمت راست، عکس سمت چپ */
        align-items: center !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 10px 0 !important;
        gap: 10px !important;
        direction: rtl !important;
        overflow: hidden !important;
    }

    /* ۲. بخش متن و دکمه (سمت راست) */
    .jeld-cert-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        flex: 1 !important;
        min-width: 0 !important;
        text-align: right !important;
        gap: 6px !important;
    }

    /* تگ بالای عنوان */
    .jeld-cert-badge {
        display: inline-block !important;
        font-size: 9px !important;
        color: #4338ca !important;
        background-color: #e0e7ff !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        margin: 0 !important;
    }

    /* عنوان اصلی */
    .jeld-cert-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin: 0 !important;
    }

    .jeld-cert-desc {
        display: none !important;
    }

    /* دکمه پایین عنوان */
    .jeld-cert-btn,
    .jeld-cert-content a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        margin-top: 2px !important;
    }

    /* ۳. بخش تصویر (سمت چپ) - سایز دستی عکس را اینجا تغییر بده */
   .jeld-cert-visual {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        
        /* سایز کادر عکس در بنر */
        width: 200px !important;  
        height: 150px !important;  
        flex: 0 0 200px !important;
        overflow: hidden !important; /* جلوگیری از بیرون زدن زوم عکس از کادر */
    }

    /* اگر عکس (img) داری - با scale مقدار زوم را تعیین کن */
    .jeld-cert-visual img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* پر کردن کامل کادر */
        transform: scale(3.0) !important; /* 👈 میزان زوم عکس (مثلاً 1.3 یعنی ۳۰ درصد زوم) */
        transition: transform 0.3s ease !important;
    }

    /* اگر کارت HTML داری - مقدار scale را بزرگ‌تر کن */
    .jeld-card-stack {
        width: 100% !important;
        height: 100% !important;
        transform: scale(0.55) !important; /* 👈 زوم بیشتر روی کارت HTML (قبلاً 0.4 بود) */
        transform-origin: center center !important;
    }

    .jeld-cert-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }

    /* حذف کامل متن توضیحات در موبایل */
    .jeld-cert-desc {
        display: none !important;
    }

    .jald-teacher-card {
        padding: 20px 16px;
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .jald-teacher-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jald-teacher-title {
        font-size: 17px !important;
        line-height: 1.5 !important;
    }

    .jald-teacher-desc {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    .jald-teacher-features {
        flex-direction: column;
        gap: 8px;
    }

    .jald-teacher-visual {
        display: none;
    }

    /* سبد خرید موبایل */
    .cart-container {
        padding: 15px 10px 100px;
    }

    .page-title {
        font-size: 18px;
    }

    .cart-items-card {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .cart-item-row {
        position: relative;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 14px 0;
        gap: 10px;
    }

    .cart-item-img {
        width: 75px;
        height: 52px;
    }

    .cart-item-details {
        padding-left: 30px;
    }

    .cart-item-title {
        font-size: 13px;
        line-height: 1.5;
    }

    .cart-item-price {
        width: 100%;
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 5px;
        padding-top: 8px;
        border-top: 1px dashed #f1f5f9;
    }

    .cart-item-price del {
        margin-bottom: 0 !important;
    }

    .btn-remove-item {
        position: absolute;
        left: 0;
        top: 12px;
        width: 30px;
        height: 30px;
        font-size: 13px;
        background: transparent;
    }

    /* فاکتور چسبان در پایین موبایل */
    .cart-summary-card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 999 !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1) !important;
        padding: 15px 20px !important;
        background: #ffffff !important;
        border: none !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .cart-summary-card .summary-title,
    .cart-summary-card .summary-row:not(.total),
    .cart-summary-card hr {
        display: none !important;
    }

    .cart-summary-card .summary-row.total {
        margin: 0 0 10px 0;
    }

    .btn-checkout {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* تسک‌بار پایین موبایل (Bottom Nav) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        align-items: center;
        justify-content: space-around;
        z-index: 10000;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 12px;
        font-weight: 500;
        gap: 4px;
        flex: 1;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: #0284c7;
    }

    .mobile-bottom-nav .nav-item-center {
        position: relative;
        top: -18px;
    }

    .mobile-bottom-nav .center-icon {
        width: 58px;
        height: 58px;
        background: linear-gradient(135deg, #0284c7, #0369a1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
        border: 4px solid #ffffff;
    }

    .mobile-bottom-nav .center-icon i {
        font-size: 22px;
    }
}

