/* ==========================================================================
   PRAXISLY LEARN - OFFICIAL PRAXISLY LIGHT THEME
   Brand Colors Strictly Aligned to Praxisly Logo:
   - Deep Burgundy: #7B0D2E (Logo Primary)
   - Royal Gold / Amber: #FDBB10 & #D4A017 (Logo Secondary)
   - Clean White Canvas: #FFFFFF with subtle radial brand glows
   - Charcoal Typography: #0B0F19 (Headings) & #64748B (Paragraphs)
   ========================================================================== */

:root {
    --primary: #7B0D2E;          /* Deep Burgundy / Maroon */
    --primary-light: #9B153D;    /* Vibrant Wine */
    --primary-dark: #58061F;     /* Rich Maroon */
    --secondary: #FDBB10;        /* Royal Gold / Amber */
    --secondary-hover: #E5A80D;
    
    /* Clean Light Theme Surfaces */
    --bg-page: #FFFFFF;
    --theme-gradient: radial-gradient(circle at 10% 20%, rgba(253, 187, 16, 0.06) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(123, 13, 46, 0.05) 0%, transparent 45%),
                      #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-card-active: rgba(123, 13, 46, 0.05);
    
    /* Borders & Dividers */
    --border-subtle: #E2E8F0;
    --border-card: #E2E8F0;
    --border-accent: rgba(253, 187, 16, 0.4);
    
    /* Typography */
    --text-dark: #0B0F19;
    --text-main: #0B0F19;
    --text-muted: #64748B;
    --text-dim: #94A3B8;
    
    --success: #10B981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --sidebar-width: 380px;
    --header-height: 68px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Accessibility Focus Ring */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.lms-body {
    background: var(--theme-gradient);
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ================= 1. LMS HEADER ================= */
.lms-header {
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lms-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lms-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.lms-brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.lms-divider-v {
    width: 1px;
    height: 26px;
    background: var(--border-subtle);
}

.lms-course-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-course-tag {
    background: rgba(253, 187, 16, 0.15);
    color: #925807;
    border: 1px solid rgba(253, 187, 16, 0.4);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lms-course-title-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.lms-header-center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 440px;
    margin: 0 30px;
}

.lms-progress-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
}

.lms-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.lms-progress-labels .percentage {
    color: var(--primary);
    font-weight: 800;
}

.lms-progress-bar-bg {
    width: 100%;
    height: 7px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.lms-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lms-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-lms-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-lms-nav:active {
    transform: scale(0.97);
}

.btn-lms-outline {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
}

.btn-lms-outline:hover {
    background: #F8FAFC;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lms-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-lms-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 14px rgba(123, 13, 46, 0.25);
}

.btn-toggle-sidebar-mobile {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

/* ================= 2. MAIN LMS WORKSPACE (2 COLUMNS) ================= */
.lms-container {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
}

/* Left Column: Player Stage & Lesson Details */
.lms-stage {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 24px 32px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================= 3. SIGNATURE PRAXISLY BURGUNDY SALES SLIDE CARD ================= */
.lms-lecture-poster-card {
    position: relative;
    width: 100%;
    min-height: 380px;
    border-radius: 18px;
    overflow: hidden;
    /* Rich Praxisly Burgundy Brand Gradient */
    background: linear-gradient(135deg, #7B0D2E 0%, #54081E 60%, #3B0414 100%);
    border: 1px solid rgba(253, 187, 16, 0.35);
    box-shadow: 0 12px 35px rgba(123, 13, 46, 0.22);
    display: flex;
    flex-direction: column;
}

.poster-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/sales_mega.jpg');
    background-size: cover;
    background-position: center 25%;
    opacity: 0.12; /* Subtle watermark texture */
    mix-blend-mode: overlay;
}

.poster-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(253, 187, 16, 0.15) 0%, transparent 50%);
}

.poster-inner-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    gap: 18px;
}

.poster-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.poster-brand-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(253, 187, 16, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.poster-brand-chip img {
    height: 22px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
}

.poster-brand-chip span {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.poster-meta-chips {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poster-chip-mod {
    background: rgba(253, 187, 16, 0.2);
    border: 1px solid rgba(253, 187, 16, 0.4);
    color: #FDBB10;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.poster-chip-dur {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.poster-center-body {
    display: flex;
    flex-direction: column;
    margin: 6px 0;
}

.poster-lesson-index {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poster-lesson-headline {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    max-width: 850px;
}

.poster-lesson-subtext {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
    max-width: 780px;
    margin-bottom: 18px;
}

/* Framework Flow Steps inside Slide Card */
.poster-framework-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.framework-step-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.framework-step-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
}

.framework-step-pill i {
    color: var(--secondary);
    font-size: 15px;
}

.framework-flow-arrow {
    color: var(--secondary);
    font-size: 14px;
    font-weight: bold;
}

.poster-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.poster-instructor-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
}

.poster-instructor-tag i {
    color: var(--secondary);
    font-size: 18px;
}

.badge-format-pill {
    background: rgba(253, 187, 16, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= 4. ACTION BAR (WHITE CARD) ================= */
.lms-video-actions-bar {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.video-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-badge {
    background: rgba(123, 13, 46, 0.1);
    color: var(--primary);
    border: 1px solid rgba(123, 13, 46, 0.25);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
}

.lesson-title-display {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.video-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action-complete {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-complete:hover {
    background: #DCFCE7;
    border-color: #4ADE80;
}

.btn-action-complete:active {
    transform: scale(0.97);
}

.btn-action-complete.is-completed {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
}

.btn-action-complete.is-completed:hover {
    background: #047857;
    border-color: #047857;
}

.btn-nav-step {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-step:hover:not(:disabled) {
    background: #F8FAFC;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav-step:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-nav-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ================= 5. LESSON DETAILS & TABS (WHITE CARD) ================= */
.lms-tabs-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.lms-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-btn:active {
    transform: scale(0.97);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(123, 13, 46, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(123, 13, 46, 0.08);
    font-weight: 800;
    border-bottom: 2px solid var(--primary);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Tab 1: Overview */
.overview-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-summary-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.takeaways-box {
    background: #FFFDF8;
    border: 1px solid rgba(253, 187, 16, 0.35);
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
}

.takeaways-box h4 {
    color: #92400E;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.takeaways-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #1E293B;
    line-height: 1.5;
}

.takeaways-list li i {
    color: #10B981;
    font-size: 17px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tab 2: Resources & Downloads */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.resource-item-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.resource-item-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 160, 23, 0.14);
}

.resource-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.resource-icon-wrap {
    width: 42px;
    height: 42px;
    background: rgba(123, 13, 46, 0.08);
    border: 1px solid rgba(123, 13, 46, 0.2);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.resource-meta {
    overflow: hidden;
}

.resource-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-details {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-download-res {
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    flex-shrink: 0;
}

.btn-download-res:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.btn-download-res:active {
    transform: scale(0.92);
}

/* Tab 3: Q&A / WhatsApp Support */
.qa-callout {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.qa-callout i.ph-whatsapp-logo {
    font-size: 48px;
    color: #25D366;
}

.qa-callout h4 {
    font-size: 18px;
    font-weight: 800;
    color: #14532D;
}

.qa-callout p {
    color: #166534;
    font-size: 14px;
    max-width: 520px;
}

.btn-ask-mentor-wa {
    background: #25D366;
    color: #FFFFFF;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-ask-mentor-wa:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-ask-mentor-wa:active {
    transform: translateY(0) scale(0.98);
}

/* ================= 6. CURRICULUM SIDEBAR (CLEAN WHITE CARD) ================= */
.lms-sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: #FFFFFF;
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 40;
}

.lms-sidebar-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    flex-shrink: 0;
}

.sidebar-title-group h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.sidebar-completion-stat {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

.sidebar-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 30px;
}

/* Module Accordion Item */
.module-accordion-group {
    border-bottom: 1px solid var(--border-subtle);
}

.module-header-toggle {
    width: 100%;
    background: #F8FAFC;
    border: none;
    padding: 16px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #F1F5F9;
}

.module-header-toggle:hover {
    background: #F1F5F9;
}

.module-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 12px;
}

.module-number-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
}

.module-meta-info {
    font-size: 12px;
    color: var(--text-muted);
}

.module-chevron {
    color: var(--text-muted);
    font-size: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.module-accordion-group.is-open .module-chevron {
    transform: rotate(180deg);
}

.module-lessons-container {
    display: none;
    background: #FFFFFF;
}

.module-accordion-group.is-open .module-lessons-container {
    display: block;
}

/* Lesson Row */
.lesson-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1px solid #F8FAFC;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    background: #FFFFFF;
}

.lesson-item-row:hover {
    background: #F8FAFC;
}

.lesson-item-row:active {
    transform: scale(0.995);
}

.lesson-item-row.is-active {
    background: rgba(123, 13, 46, 0.05);
    border-left: 3px solid var(--secondary);
}

.lesson-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.lesson-checkbox-btn {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lesson-checkbox-btn:hover {
    border-color: var(--primary);
}

.lesson-checkbox-btn:active {
    transform: scale(0.90);
}

.lesson-checkbox-btn.checked {
    background: #059669;
    border-color: #059669;
    color: #FFFFFF;
}

.lesson-text-wrap {
    overflow: hidden;
}

.lesson-title-text {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-item-row.is-active .lesson-title-text {
    color: var(--primary);
    font-weight: 800;
}

.lesson-duration-badge {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 500;
}

/* ================= 7. PASSCODE ACCESS GATE MODAL ================= */
.lms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lms-modal-overlay.is-visible {
    display: flex;
}

.lms-modal-box {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.lms-modal-icon-badge {
    width: 64px;
    height: 64px;
    background: rgba(253, 187, 16, 0.15);
    border: 1.5px solid var(--secondary);
    color: #925807;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
}

.lms-modal-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.lms-modal-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.passcode-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.passcode-input-wrapper {
    position: relative;
}

.passcode-input-wrapper input {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.passcode-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 13, 46, 0.15);
}

.btn-unlock-course {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-unlock-course:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(123, 13, 46, 0.25);
}

.btn-unlock-course:active {
    transform: translateY(0) scale(0.98);
}

.passcode-error-msg {
    color: #DC2626;
    font-size: 13px;
    display: none;
    font-weight: 700;
}

.demo-passcode-hint {
    background: #FFFBEB;
    border: 1px dashed rgba(253, 187, 16, 0.5);
    border-radius: 8px;
    padding: 10px;
    margin-top: 18px;
    font-size: 12px;
    color: #92400E;
}

.demo-passcode-hint code {
    background: rgba(253, 187, 16, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #78350F;
}

/* ================= 8. COURSE COMPLETION BANNER ================= */
.course-complete-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    padding: 16px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    z-index: 60;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.course-complete-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.complete-toast-icon {
    font-size: 28px;
    color: var(--secondary);
}

.complete-toast-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.complete-toast-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= 9. RESPONSIVENESS ================= */
@media (max-width: 1024px) {
    .lms-course-title-header {
        max-width: 240px;
    }

    .lms-sidebar {
        position: fixed;
        right: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .lms-sidebar.is-open {
        transform: translateX(0);
    }

    .btn-toggle-sidebar-mobile {
        display: flex;
    }

    .lms-stage {
        padding: 16px 16px 50px;
    }
}

@media (max-width: 640px) {
    .lms-header-center {
        display: none;
    }

    .lms-course-title-header {
        display: none;
    }

    .lms-divider-v {
        display: none;
    }

    .lms-course-tag {
        display: none;
    }

    .lms-header {
        padding: 0 16px;
    }

    .lms-header-right {
        gap: 8px;
    }

    .btn-lms-nav span {
        display: none;
    }

    .btn-lms-nav {
        padding: 8px 11px;
        font-size: 15px;
    }

    .btn-toggle-sidebar-mobile {
        display: flex;
        flex-shrink: 0;
    }

    .lms-lecture-poster-card {
        min-height: auto;
    }

    .poster-inner-content {
        min-height: auto;
        padding: 20px 18px;
        gap: 14px;
    }

    .poster-brand-chip {
        padding: 4px 10px;
    }

    .poster-brand-chip img {
        height: 18px;
    }

    .poster-brand-chip span {
        font-size: 10px;
    }

    .framework-step-pill {
        font-size: 11.5px;
        padding: 5px 11px;
    }

    .video-meta-left {
        width: 100%;
    }

    .video-nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .poster-lesson-headline {
        font-size: 22px;
    }
}

/* ================= 10. ACCESSIBILITY: REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
