/* ============================================================
   Pargar — single-course.css
   طرح «کلاسیک حرفه‌ای» — نسخه ۳ (v3.0.0-alpha.8)
   منبع الهام: Claude Design Direction v1 (Modern Academic Professional)
   ============================================================ */

/* ===================== هیرو (سبک/روشن) ===================== */
.bm-sc-hero {
    background: var(--bm-surface, #fff);
    border-bottom: 1px solid var(--bm-border, #e5e7eb);
    color: var(--bm-text, #0f172a);
    position: relative;
    overflow: hidden;
}
.bm-sc-hero-glow { display: none; } /* از طرح تیره چشم‌پوشی */
.bm-sc-hero-inner { padding: 28px 32px 20px; }
.bm-sc-bc {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; margin-bottom: 18px;
    color: var(--bm-text-mute, #94a3b8);
}
.bm-sc-bc a { color: var(--bm-text-sub, #475569); font-weight: 600; transition: color .15s; }
.bm-sc-bc a:hover { color: var(--bm-primary, #6d28d9); }
.bm-sc-bc .cur { color: var(--bm-text-mute, #94a3b8); }
.bm-sc-hero-box { max-width: 780px; }
.bm-sc-hero-badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: var(--bm-primary-soft, #ede9fe);
    color: var(--bm-primary, #6d28d9);
    font-size: .72rem; font-weight: 700; margin-bottom: 14px;
    border: none;
}
.bm-sc-hero-title {
    margin: 0 0 12px;
    font-size: 2rem; font-weight: 800; line-height: 1.5;
    letter-spacing: -.4px;
    color: var(--bm-text, #0f172a);
}
.bm-sc-hero-sub {
    margin: 0 0 18px;
    font-size: .98rem; line-height: 2;
    color: var(--bm-text-sub, #475569);
    max-width: 68ch;
}
.bm-sc-hero-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: .82rem; color: var(--bm-text-mute, #64748b);
}
.bm-sc-rate { display: flex; align-items: center; gap: 5px; }
.bm-sc-rate .bm-star { color: #f59e0b; font-size: .95rem; }
.bm-sc-rate strong { font-weight: 800; color: var(--bm-text, #0f172a); font-size: .9rem; }
.bm-sc-rate span { color: var(--bm-text-mute, #94a3b8); }
.bm-sc-div { width: 1px; height: 14px; background: var(--bm-border, #e5e7eb); }
.bm-sc-hero-inst { display: flex; align-items: center; gap: 10px; }
.bm-sc-hero-inst-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-primary, #6d28d9), var(--bm-primary-hover, #5b21b6));
    border: 2px solid var(--bm-surface, #fff);
    box-shadow: 0 0 0 1px var(--bm-border, #e5e7eb);
    flex: 0 0 auto;
}
.bm-sc-hero-inst-lbl { font-size: .68rem; color: var(--bm-text-mute, #94a3b8); }
.bm-sc-hero-inst-name { font-size: .84rem; font-weight: 700; color: var(--bm-text, #0f172a); }

/* ===================== چیدمان اصلی ===================== */
.bm-sc-main { padding: 28px 32px 90px; background: var(--bm-bg, #f8fafc); }
.bm-sc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 366px;
    gap: 32px;
    align-items: start;
    margin-top: 0;
    max-width: 1280px;
    margin-inline: auto;
}
.bm-sc-content { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ===================== ویدیو پیش‌نمایش ===================== */
.bm-sc-preview {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 32px -12px rgba(15,23,42,.18);
    background: #0f172a;
    position: relative; aspect-ratio: 16/9;
    background-size: cover; background-position: center;
    border: 1px solid var(--bm-border, #e5e7eb);
}
.bm-sc-preview-grad {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.85), rgba(109,40,217,.55));
    opacity: .92;
}
.bm-sc-preview[style*="url"] .bm-sc-preview-grad { opacity: .35; }
.bm-sc-preview-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
}
.bm-sc-play {
    width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,.96);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 40px -8px rgba(15,23,42,.4);
    transition: transform .2s;
}
.bm-sc-play:hover { transform: scale(1.08); }
.bm-sc-play-tri {
    width: 0; height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid var(--bm-primary, #6d28d9);
    margin-left: -3px;
}
.bm-sc-preview-lbl {
    color: #fff; font-size: .84rem; font-weight: 700;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
    position: relative;
}
.bm-sc-preview-dur {
    position: absolute; bottom: 14px; right: 14px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: .72rem; font-weight: 600;
}

/* ===================== تب‌های چسبان ===================== */
.bm-sc-tabs {
    position: sticky; top: calc(var(--bm-header-h, 64px) + 4px); z-index: 40;
    background: transparent; padding: 6px 0; margin-bottom: 0;
}
.bm-sc-tabs-inner {
    display: flex; gap: 4px; overflow-x: auto;
    background: var(--bm-surface, #fff);
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 12px; padding: 5px;
    box-shadow: 0 2px 12px -4px rgba(15,23,42,.08);
    scrollbar-width: none;
}
.bm-sc-tabs-inner::-webkit-scrollbar { display: none; }
.bm-sc-tab {
    padding: 8px 14px; border-radius: 8px;
    font-size: .82rem; font-weight: 700;
    color: var(--bm-text-sub, #475569);
    white-space: nowrap; transition: all .15s;
}
.bm-sc-tab:hover { color: var(--bm-primary, #6d28d9); background: var(--bm-primary-soft, #ede9fe); }
.bm-sc-tab.is-active { background: var(--bm-primary, #6d28d9); color: #fff; }

/* ===================== کارت بخش ===================== */
.bm-sc-card {
    background: var(--bm-surface, #fff);
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    margin-bottom: 0;
    scroll-margin-top: 140px;
}
.bm-sc-card h2 {
    margin: 0 0 20px; font-size: 1.25rem; font-weight: 800;
    color: var(--bm-text, #0f172a);
}
.bm-sc-richtext p { margin: 0 0 14px; font-size: .92rem; line-height: 2.1; color: var(--bm-text-sub, #475569); }
.bm-sc-h3 { margin: 18px 0 14px; font-size: 1rem; font-weight: 800; color: var(--bm-text, #0f172a); }

/* «چه یاد می‌گیرید» */
.bm-sc-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.bm-sc-learn-item { display: flex; align-items: flex-start; gap: 12px; }
.bm-sc-learn-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: #d1fae5; color: #10b981;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; margin-top: 2px;
    font-weight: 900; font-size: .95rem;
}
.bm-sc-learn-check span {
    width: 6px; height: 11px;
    border-right: 2.2px solid currentColor;
    border-bottom: 2.2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 2px;
    display: inline-block;
}
.bm-sc-learn-item > span:last-child {
    font-size: .88rem; line-height: 1.8;
    color: var(--bm-text-sub, #334155);
}

/* پیش‌نیازها */
.bm-sc-prereq-list { display: flex; flex-direction: column; gap: 12px; }
.bm-sc-prereq-item {
    display: flex; align-items: center; gap: 12px;
    font-size: .88rem; color: var(--bm-text-sub, #475569); line-height: 1.7;
}
.bm-sc-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--bm-primary, #6d28d9);
    flex: 0 0 auto;
    box-shadow: 0 0 0 4px var(--bm-primary-soft, #ede9fe);
    margin-inline-start: 4px;
}

/* ===================== سرفصل (آکاردئون) ===================== */
.bm-sc-curr-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.bm-sc-curr-head h2 { margin: 0; }
.bm-sc-curr-meta { font-size: .78rem; color: var(--bm-text-mute, #94a3b8); }
.bm-sc-accordion {
    display: flex; flex-direction: column;
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bm-surface, #fff);
}
.bm-sc-acc-item { border-bottom: 1px solid var(--bm-border, #e5e7eb); }
.bm-sc-acc-item:last-child { border-bottom: none; }
.bm-sc-acc-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; cursor: pointer;
    background: var(--bm-surface, #fff);
    list-style: none;
    transition: background .15s;
}
.bm-sc-acc-item[open] > .bm-sc-acc-head { background: var(--bm-surface-2, #f8fafc); }
.bm-sc-acc-head:hover { background: var(--bm-surface-2, #f8fafc); }
.bm-sc-acc-head::-webkit-details-marker { display: none; }
.bm-sc-acc-chevron {
    width: 8px; height: 8px;
    border-right: 2px solid var(--bm-text-mute, #94a3b8);
    border-bottom: 2px solid var(--bm-text-mute, #94a3b8);
    transform: rotate(45deg);
    transition: transform .2s;
    flex: 0 0 auto;
    margin-top: -3px;
}
.bm-sc-acc-item[open] > .bm-sc-acc-head .bm-sc-acc-chevron { transform: rotate(-135deg); margin-top: 3px; }
.bm-sc-acc-title { flex: 1; font-size: .92rem; font-weight: 700; color: var(--bm-text, #0f172a); }
.bm-sc-acc-count { font-size: .72rem; color: var(--bm-text-mute, #94a3b8); font-weight: 600; }
.bm-sc-acc-body { padding: 6px 10px 10px; }
.bm-sc-lesson {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    transition: background .12s;
}
.bm-sc-lesson:hover { background: var(--bm-surface-2, #f8fafc); }
.bm-sc-lesson.is-preview-ready { cursor: pointer; }
.bm-sc-lesson.is-preview-ready:hover .bm-sc-lesson-title { color: var(--bm-primary, #6d28d9); }
.bm-sc-lesson-icon {
    width: 26px; height: 26px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; flex: 0 0 auto;
}
.bm-sc-lesson-icon.is-play { background: var(--bm-primary-soft, #ede9fe); color: var(--bm-primary, #6d28d9); }
.bm-sc-lesson-icon.is-lock { background: var(--bm-surface-2, #f1f5f9); color: var(--bm-text-mute, #94a3b8); }
.bm-sc-lesson-title { flex: 1; font-size: .84rem; color: var(--bm-text-sub, #334155); }
.bm-sc-lesson-preview {
    font-size: .68rem; font-weight: 700;
    color: var(--bm-primary, #6d28d9);
    background: var(--bm-primary-soft, #ede9fe);
    padding: 3px 9px; border-radius: 6px;
}
.bm-sc-lesson-dur { font-size: .74rem; color: var(--bm-text-mute, #94a3b8); font-variant-numeric: tabular-nums; }

/* ===================== مدرس (کارت تیره) ===================== */
#bm-sc-instructor.bm-sc-card {
    background: #0f172a;
    border-color: #1e293b;
    color: #fff;
}
#bm-sc-instructor.bm-sc-card h2 { color: #fff; margin-bottom: 6px; }
.bm-sc-inst { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.bm-sc-inst-av {
    width: 96px; height: 96px; border-radius: 20px;
    background: linear-gradient(135deg, var(--bm-primary, #6d28d9), #4c1d95);
    border: 2px solid rgba(255,255,255,.1);
    flex: 0 0 auto;
    background-size: cover; background-position: center;
}
.bm-sc-inst-info { flex: 1; min-width: 220px; }
.bm-sc-inst-info h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: #fff; }
.bm-sc-inst-role { margin: 0 0 14px; font-size: .84rem; color: #a78bfa; font-weight: 600; }
.bm-sc-inst-stats {
    display: flex; gap: 20px; flex-wrap: wrap;
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid #1e293b;
    font-size: .8rem; color: #cbd5e1;
}
.bm-sc-inst-stats .bm-star { color: #fbbf24; }
.bm-sc-inst-bio { margin: 0; font-size: .86rem; line-height: 2; color: #94a3b8; }

/* ===================== نظرات ===================== */
.bm-sc-rating-grid {
    display: grid; grid-template-columns: auto 1fr;
    gap: 34px; margin-bottom: 26px; align-items: center;
}
.bm-sc-rating-score {
    text-align: center; padding-left: 34px;
    border-left: 1px solid var(--bm-border, #e5e7eb);
}
.bm-sc-rating-num {
    font-size: 3rem; font-weight: 800; line-height: 1;
    color: var(--bm-primary, #6d28d9);
}
.bm-sc-rating-stars { color: #f59e0b; font-size: 1rem; margin: 8px 0; letter-spacing: 2px; }
.bm-sc-rating-from { font-size: .76rem; color: var(--bm-text-mute, #94a3b8); }
.bm-sc-rating-bars { display: flex; flex-direction: column; gap: 8px; }
.bm-sc-bar-row { display: flex; align-items: center; gap: 12px; }
.bm-sc-bar-star {
    font-size: .74rem; color: var(--bm-text-sub, #475569);
    width: 30px; display: flex; align-items: center; gap: 3px;
}
.bm-sc-bar-star .bm-star { color: #f59e0b; }
.bm-sc-bar {
    flex: 1; height: 8px; border-radius: 999px;
    background: var(--bm-surface-2, #f1f5f9); overflow: hidden;
}
.bm-sc-bar > div { height: 100%; background: #f59e0b; border-radius: 999px; }
.bm-sc-bar-pct { font-size: .72rem; color: var(--bm-text-mute, #94a3b8); width: 34px; text-align: left; font-variant-numeric: tabular-nums; }
.bm-sc-reviews { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.bm-sc-review {
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 12px; padding: 18px;
    background: var(--bm-surface, #fff);
    transition: border-color .15s;
}
.bm-sc-review:hover { border-color: var(--bm-primary-soft, #ddd6fe); }
.bm-sc-review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.bm-sc-review-av { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; }
.bm-sc-review-id { flex: 1; }
.bm-sc-review-name { font-size: .88rem; font-weight: 700; color: var(--bm-text, #0f172a); }
.bm-sc-review-date { font-size: .72rem; color: var(--bm-text-mute, #94a3b8); }
.bm-sc-review-stars { color: #f59e0b; font-size: .82rem; letter-spacing: 1px; }
.bm-sc-review p { margin: 0; font-size: .86rem; line-height: 1.95; color: var(--bm-text-sub, #475569); }
.bm-sc-write {
    border: 1.5px dashed var(--bm-border, #cbd5e1);
    border-radius: 12px; padding: 20px;
    background: var(--bm-surface-2, #f8fafc);
}
.bm-sc-write-title { font-size: .95rem; font-weight: 800; margin-bottom: 12px; color: var(--bm-text, #0f172a); }
.bm-sc-write-rate { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .82rem; color: var(--bm-text-sub, #475569); }
.bm-sc-write-stars { color: #f59e0b; font-size: 1.25rem; letter-spacing: 3px; cursor: pointer; }
.bm-sc-write textarea {
    width: 100%; min-height: 80px;
    padding: 13px 16px;
    border: 1.5px solid var(--bm-border, #e5e7eb);
    border-radius: 10px;
    background: var(--bm-surface, #fff);
    color: var(--bm-text, #0f172a);
    font-family: inherit; font-size: .86rem;
    outline: none; resize: vertical; line-height: 1.9; margin-bottom: 12px;
}
.bm-sc-write textarea:focus { border-color: var(--bm-primary, #6d28d9); box-shadow: 0 0 0 3px var(--bm-primary-soft, #ede9fe); }

/* ===================== FAQ ===================== */
.bm-sc-faq {
    display: flex; flex-direction: column;
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bm-surface, #fff);
}
.bm-sc-faq-item { border-bottom: 1px solid var(--bm-border, #e5e7eb); }
.bm-sc-faq-item:last-child { border-bottom: none; }
.bm-sc-faq-q {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; cursor: pointer; list-style: none;
    transition: background .15s;
}
.bm-sc-faq-q:hover { background: var(--bm-surface-2, #f8fafc); }
.bm-sc-faq-q::-webkit-details-marker { display: none; }
.bm-sc-faq-q span:first-child {
    flex: 1; font-size: .9rem; font-weight: 700;
    color: var(--bm-text, #0f172a);
}
.bm-sc-faq-icon {
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--bm-surface-2, #f1f5f9);
    color: var(--bm-text-sub, #475569);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; font-weight: 400;
    transition: transform .2s, background .2s, color .2s;
    flex: 0 0 auto;
}
.bm-sc-faq-item[open] .bm-sc-faq-icon {
    background: var(--bm-primary, #6d28d9); color: #fff;
    transform: rotate(45deg);
}
.bm-sc-faq-a {
    padding: 0 18px 18px;
    font-size: .86rem; line-height: 2;
    color: var(--bm-text-sub, #475569);
}

/* ===================== دوره‌های مرتبط ===================== */
.bm-sc-related-sec { margin-top: 4px; }
.bm-sc-related-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.bm-sc-related-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--bm-text, #0f172a); }
.bm-sc-related-head a { font-size: .82rem; font-weight: 700; color: var(--bm-primary, #6d28d9); }
.bm-sc-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bm-sc-related-card {
    background: var(--bm-surface, #fff);
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 14px; overflow: hidden;
    display: block;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    text-decoration: none; color: inherit;
}
.bm-sc-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(15,23,42,.15);
    border-color: var(--bm-primary-soft, #ddd6fe);
}
.bm-sc-related-thumb { height: 130px; background-size: cover; background-position: center; }
.bm-sc-related-body { padding: 14px; }
.bm-sc-related-body h4 {
    margin: 0 0 10px; font-size: .88rem; font-weight: 700;
    line-height: 1.6; min-height: 44px; color: var(--bm-text, #0f172a);
}
.bm-sc-related-foot { display: flex; align-items: center; justify-content: space-between; }
.bm-sc-related-rate { display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--bm-text-sub, #475569); }
.bm-sc-related-rate .bm-star { color: #f59e0b; }
.bm-sc-related-price { font-size: .84rem; font-weight: 800; color: var(--bm-primary, #6d28d9); }

/* ===================== کارت خرید (چسبان) ===================== */
.bm-sc-purchase { position: sticky; top: calc(var(--bm-header-h, 64px) + 16px); display: flex; flex-direction: column; gap: 16px; }
.bm-sc-buy-card {
    background: var(--bm-surface, #fff);
    border: 1px solid var(--bm-border, #e5e7eb);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 24px -12px rgba(15,23,42,.12);
}
.bm-sc-buy-top { padding: 22px 22px 20px; }
.bm-sc-buy-price {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.bm-sc-price-off {
    order: -1;
    padding: 4px 10px; border-radius: 8px;
    background: #ef4444; color: #fff;
    font-size: .72rem; font-weight: 800;
    margin-inline-end: 6px;
}
.bm-sc-price-old {
    order: -1;
    font-size: .86rem; color: var(--bm-text-mute, #94a3b8);
    text-decoration: line-through;
    flex-basis: 100%;
    margin-bottom: 6px;
    font-weight: 600;
}
.bm-sc-price-main {
    font-size: 1.85rem; font-weight: 800;
    color: var(--bm-text, #0f172a);
    line-height: 1.1;
}
.bm-sc-price-main.bm-price-free { color: var(--bm-success, #10b981); }
.bm-sc-price-cur { font-size: .95rem; color: var(--bm-text-sub, #64748b); font-weight: 500; }

/* شمارنده تخفیف */
.bm-sc-countdown {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px; border-radius: 10px;
    background: #fef3c7; color: #92400e;
    margin-bottom: 16px; font-size: .8rem;
}
.bm-sc-cd-ico { font-size: .95rem; }
.bm-sc-cd-lbl { font-weight: 700; }
.bm-sc-cd-clock { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.bm-sc-cd-clock span:not(b) {
    min-width: 28px; text-align: center;
    padding: 3px 6px; border-radius: 6px;
    background: rgba(255,255,255,.7);
    font-size: .8rem; font-weight: 800;
    color: #92400e;
}
.bm-sc-cd-clock b { font-size: .8rem; font-weight: 800; color: #b45309; }

/* دکمه اصلی خرید */
.bm-sc-buy-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 12px;
    background: var(--bm-primary, #6d28d9);
    color: #fff; font-weight: 800; font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(109,40,217,.4);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .12s, box-shadow .15s;
}
.bm-sc-buy-btn:hover {
    background: var(--bm-primary-hover, #5b21b6);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(109,40,217,.5);
}

.bm-sc-buy-row { display: flex; gap: 10px; }
.bm-sc-cart-btn {
    flex: 1; padding: 12px;
    border: 1.5px solid var(--bm-primary, #6d28d9);
    border-radius: 10px; background: transparent;
    color: var(--bm-primary, #6d28d9);
    font-weight: 700; font-size: .84rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: background .15s;
    text-decoration: none;
}
.bm-sc-cart-btn:hover { background: var(--bm-primary-soft, #ede9fe); color: var(--bm-primary, #6d28d9); }
.bm-sc-wish {
    width: 46px; flex: 0 0 auto;
    border: 1.5px solid var(--bm-border, #e5e7eb);
    border-radius: 10px; background: var(--bm-surface, #fff);
    color: var(--bm-text-mute, #94a3b8);
    font-size: 1.1rem; cursor: pointer;
    transition: all .15s;
}
.bm-sc-wish:hover { color: #ef4444; border-color: #ef4444; background: #fef2f2; }
.bm-sc-wish.is-on { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

/* «این دوره شامل» */
.bm-sc-buy-includes {
    padding: 20px 22px 22px;
    border-top: 1px solid var(--bm-border, #e5e7eb);
}
.bm-sc-inc-title { font-size: .8rem; font-weight: 800; margin-bottom: 14px; color: var(--bm-text, #0f172a); }
.bm-sc-inc-list { display: flex; flex-direction: column; gap: 14px; }
.bm-sc-inc {
    display: flex; align-items: center; gap: 12px;
    font-size: .84rem; color: var(--bm-text-sub, #475569);
}
.bm-sc-inc-ico {
    width: 26px; height: 26px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    color: var(--bm-primary, #6d28d9);
    background: var(--bm-primary-soft, #ede9fe);
}
.bm-sc-inc-ico.c1,
.bm-sc-inc-ico.c2,
.bm-sc-inc-ico.c3,
.bm-sc-inc-ico.c4 { color: var(--bm-primary, #6d28d9); background: var(--bm-primary-soft, #ede9fe); }
.bm-sc-guarantee {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--bm-border, #f1f5f9);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .76rem; color: var(--bm-text-mute, #94a3b8); font-weight: 600;
}
.bm-sc-guarantee span { color: var(--bm-success, #10b981); font-weight: 800; }

/* ===================== نوار خرید موبایل ===================== */
.bm-sc-mobile-buy {
    display: none; position: fixed;
    bottom: 0; left: 0; right: 0; z-index: 80;
    background: var(--bm-surface, #fff);
    border-top: 1px solid var(--bm-border, #e5e7eb);
    box-shadow: 0 -8px 32px -8px rgba(15,23,42,.15);
    padding: 12px 16px; align-items: center; gap: 12px;
}
.bm-sc-mb-price { flex: 1; min-width: 0; }
.bm-sc-mb-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bm-sc-mb-main { font-size: 1.05rem; font-weight: 800; color: var(--bm-text, #0f172a); }
.bm-sc-mb-old { font-size: .74rem; color: var(--bm-text-mute, #94a3b8); text-decoration: line-through; }
.bm-sc-mb-btn {
    flex: 0 0 auto; padding: 12px 24px;
    border: none; border-radius: 11px;
    background: var(--bm-primary, #6d28d9); color: #fff;
    font-weight: 800; font-size: .92rem;
    box-shadow: 0 6px 16px -4px rgba(109,40,217,.4);
    transition: background .15s;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.bm-sc-mb-btn:hover { background: var(--bm-primary-hover, #5b21b6); color: #fff; }

/* ===================== ریسپانسیو ===================== */
@media (max-width: 1024px) {
    .bm-sc-layout { grid-template-columns: 1fr; gap: 22px; }
    .bm-sc-purchase { position: static; order: -1; }
    .bm-sc-buy-card { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 768px) {
    .bm-sc-hero-inner { padding: 22px 18px 16px; }
    .bm-sc-hero-title { font-size: 1.4rem; line-height: 1.55; }
    .bm-sc-hero-sub { font-size: .9rem; line-height: 1.9; }
    .bm-sc-hero-meta { gap: 10px 14px; font-size: .76rem; }
    .bm-sc-main { padding: 20px 16px 100px; }
    .bm-sc-card { padding: 20px 18px; border-radius: 14px; }
    .bm-sc-learn-grid { grid-template-columns: 1fr; }
    .bm-sc-related-grid { grid-template-columns: 1fr; }
    .bm-sc-rating-grid { grid-template-columns: 1fr; gap: 20px; }
    .bm-sc-rating-score {
        border-left: none; padding-left: 0;
        border-bottom: 1px solid var(--bm-border, #e5e7eb);
        padding-bottom: 18px;
    }
    .bm-sc-inst-av { width: 72px; height: 72px; border-radius: 16px; }
    .bm-sc-mobile-buy { display: flex; }
    .bm-sc-buy-btn { padding: 13px; font-size: .95rem; }
}

/* ==========================================================
   Preview video modal + polish — v3.0.0-alpha.11
   ========================================================== */
.bm-sc-play.is-disabled { opacity: .55; cursor: not-allowed; }

.bm-sc-vmodal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; transition: opacity .2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.bm-sc-vmodal.is-open { opacity: 1; }
.bm-sc-vmodal.is-closing { opacity: 0; }
.bm-sc-vmodal-back {
    position: absolute; inset: 0;
    background: rgba(9, 14, 30, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.bm-sc-vmodal-box {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: #0b0f1e;
    border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
    overflow: hidden;
    transform: translateY(20px) scale(.97);
    transition: transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.bm-sc-vmodal.is-open .bm-sc-vmodal-box { transform: translateY(0) scale(1); }
.bm-sc-vmodal-close {
    position: absolute; top: 10px; inset-inline-start: 12px;
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.bm-sc-vmodal-close:hover { background: rgba(255,255,255,.28); }
.bm-sc-vmodal-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.bm-sc-vmodal-media iframe,
.bm-sc-vmodal-media video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; display: block;
    background: #000;
}
/* واترمارکِ پویای شماره‌ی موبایل روی ویدیو (ضدِ نشت محتوا) */
.bm-sc-wm {
    position: absolute;
    z-index: 5;
    padding: 4px 11px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1;
    color: rgba(255, 255, 255, .5);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
    background: rgba(0, 0, 0, .12);
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    direction: ltr;
    white-space: nowrap;
    opacity: .9;
    transition: top .55s ease, bottom .55s ease, left .55s ease, right .55s ease;
}
@media (max-width: 640px) {
    .bm-sc-wm { font-size: 12px; padding: 3px 8px; letter-spacing: 1px; }
}
@media (max-width: 640px) {
    .bm-sc-vmodal { padding: 12px; }
    .bm-sc-vmodal-box { border-radius: 12px; }
}

.bm-sc-countdown.is-ended { opacity: .55; }
.bm-sc-countdown.is-ended .bm-sc-cd-lbl::after { content: ' (پایان یافت)'; }

/* ===================== تب‌ها: نشانه‌ی «ادامه دارد» + ریسپانسیو (alpha.16) ===================== */
.bm-sc-tabs-inner {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* fade لبه‌ها فقط سمتی که محتوای بیشتری دارد (کلاس‌ها با JS ست می‌شوند) */
.bm-sc-tabs-inner.bm-fade-start {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
}
.bm-sc-tabs-inner.bm-fade-end {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}
.bm-sc-tabs-inner.bm-fade-start.bm-fade-end {
    -webkit-mask-image: linear-gradient(to left, transparent, #000 44px, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to left, transparent, #000 44px, #000 calc(100% - 44px), transparent);
}
@media (max-width: 640px) {
    .bm-sc-tab { padding: 8px 12px; font-size: .78rem; }
    .bm-sc-tabs-inner { padding: 5px; gap: 3px; }
}
