/* ============================================
   CURSOS-APP.CSS - FlowTrading Global
   Estilos IDENTICOS a la App Movil (CoursesScreen)
============================================ */

/* ============================================
   IMPORTS - Estilos base y layout
============================================ */
@import url('../main.css');
@import url('../layout.css');
@import url('../components.css');

/* ============================================
   CSS VARIABLES - Aliases a main.css
============================================ */
:root {
    /* Aliases que se adaptan a light/dark mode */
    --card-dark: var(--card, #1a1a1a);
    --card-light: var(--card-elevated, #2a2a2a);
    --text-light: var(--text-color, #ffffff);
    --text-muted: var(--text-light-muted, #888888);
    --border-dark: var(--border, #2a2a2a);
    /* Colores fijos (no cambian) */
    --success: #4caf50;
    --orange: #ff9800;
    --purple: #9c27b0;
}

/* Light mode - Override de aliases */
body.light-mode {
    --card-dark: var(--bg-light-secondary, #ffffff);
    --card-light: var(--bg-light-tertiary, #f0f0f0);
    --text-light: var(--text-dark, #1a1a1a);
    --text-muted: var(--text-dark-muted, #666666);
    --border-dark: var(--border, #e0e0e0);
}

/* ============================================
   HEADER - IGUAL QUE LA APP
============================================ */
.courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: 20px;
    background: transparent;
    position: relative;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 12px;
    position: absolute;
    right: 20px;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-btn ion-icon {
    font-size: 24px;
    color: var(--text-light);
}

/* ============================================
   MAIN PAGE
============================================ */
.courses-page {
    padding: 0 16px;
    padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 2rem);
    padding-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.search-btn {
    width: 48px;
    height: 48px;
    background: var(--card-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn ion-icon {
    font-size: 22px;
    color: var(--text-light);
}

/* ============================================
   STATS ROW - 4 tarjetas
============================================ */
.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.stats-row::-webkit-scrollbar {
    display: none;
}

.stat-card {
    flex: 1;
    min-width: 80px;
    background: var(--card-dark);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-icon ion-icon {
    font-size: 24px;
}

.stat-icon.orange {
    background: rgba(212, 160, 23, 0.2);
}
.stat-icon.orange ion-icon {
    color: #d4a017;
}

.stat-icon.green {
    background: rgba(76, 175, 80, 0.2);
}
.stat-icon.green ion-icon {
    color: #4caf50;
}

.stat-icon.purple {
    background: rgba(156, 39, 176, 0.2);
}
.stat-icon.purple ion-icon {
    color: #9c27b0;
}

.stat-icon.gold {
    background: rgba(139, 119, 42, 0.3);
}
.stat-icon.gold ion-icon {
    color: #d4af37;
}

.stat-icon.silver {
    background: rgba(168, 168, 168, 0.2);
}
.stat-icon.silver ion-icon {
    color: #a8a8a8;
}

.stat-icon.gray {
    background: rgba(136, 136, 136, 0.2);
}
.stat-icon.gray ion-icon {
    color: #888888;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   FEATURED COURSE - Curso Destacado
============================================ */
.featured-course {
    margin-bottom: 24px;
}

.featured-card {
    position: relative;
    background: var(--card-light);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.featured-badge.premium {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.featured-badge.free {
    background: var(--success);
    color: #fff;
}

.featured-badge ion-icon {
    font-size: 14px;
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.featured-label ion-icon {
    font-size: 16px;
    color: #ff6b35;
}

.featured-label span {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 600;
}

.featured-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.2;
}

.featured-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item ion-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
}

.level-badge.principiante,
.level-badge.beginner {
    background: var(--success);
    color: #fff;
}

.level-badge.intermedio,
.level-badge.intermediate {
    background: var(--orange);
    color: #fff;
}

.level-badge.avanzado,
.level-badge.advanced {
    background: #f44336;
    color: #fff;
}

.featured-play-btn {
    position: absolute;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    width: 56px;
    height: 56px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.featured-play-btn ion-icon {
    font-size: 26px;
    color: #000;
    margin-left: 3px;
}

/* ============================================
   FILTER TABS
============================================ */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-tab ion-icon {
    font-size: 18px;
}

.filter-tab:hover {
    border-color: var(--gold);
}

.filter-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.filter-tab.active ion-icon {
    color: #000;
}

/* ============================================
   SECTION HEADER
============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.section-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   COURSES GRID
============================================ */
.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   COURSE CARD
============================================ */
.course-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.course-card:hover {
    transform: scale(1.02);
}

.card-thumbnail {
    position: relative;
    height: 180px;
    background: var(--card-light);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-placeholder ion-icon {
    font-size: 50px;
    color: var(--gold);
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.card-badge.premium {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.card-badge.free {
    background: var(--success);
    color: #fff;
}

.card-badge ion-icon {
    font-size: 12px;
}

.card-duration {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
}

.card-duration ion-icon {
    font-size: 12px;
    color: var(--text-light);
}

.card-duration span {
    font-size: 12px;
    color: var(--text-light);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.card-progress .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.card-progress .progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
}

.card-progress .progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
}

/* ============================================
   LOADING & EMPTY STATES
============================================ */
.loading-state {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--card-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.empty-state ion-icon {
    font-size: 60px;
    color: var(--text-muted);
}

.empty-state span {
    font-size: 16px;
    color: var(--text-muted);
}

.bottom-space {
    height: 40px;
}

/* ============================================
   LIGHT MODE - Elementos adicionales
============================================ */
body.light-mode .featured-title {
    text-shadow: none;
    color: #1a1a1a;
}

body.light-mode .featured-description {
    text-shadow: none;
    color: #666666;
}

body.light-mode .featured-meta .meta-item ion-icon {
    color: #888888;
}

body.light-mode .featured-meta .meta-item span {
    color: #666666;
}

body.light-mode .card-title {
    text-shadow: none;
    color: #1a1a1a;
}

body.light-mode .card-duration {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .card-duration ion-icon,
body.light-mode .card-duration span {
    color: #666666;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 400px) {
    .hero-title {
        font-size: 24px;
    }

    .stats-row {
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-icon ion-icon {
        font-size: 18px;
    }

    .stat-value {
        font-size: 16px;
    }

    .featured-card {
        min-height: 200px;
        padding: 16px;
    }

    .featured-title {
        font-size: 18px;
    }

    .featured-play-btn {
        width: 48px;
        height: 48px;
        right: 16px;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .card-thumbnail {
        height: 160px;
    }
}

/* ============================================
   ACCESS MODAL - Modal de Acceso Restringido
============================================ */
.access-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.access-modal.show {
    opacity: 1;
    visibility: visible;
}

.access-modal-content {
    background: var(--card-dark);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.access-modal.show .access-modal-content {
    transform: scale(1);
}

.access-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.access-modal-icon.verify {
    background: rgba(76, 175, 80, 0.2);
}

.access-modal-icon.verify ion-icon {
    font-size: 40px;
    color: var(--success);
}

.access-modal-icon.premium {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
}

.access-modal-icon.premium ion-icon {
    font-size: 40px;
    color: #ff6b35;
}

.access-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.access-modal-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.access-modal-text strong {
    color: var(--text-light);
}

.access-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-modal-actions .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--gold);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.access-modal-actions .btn-primary:hover {
    background: #e5c040;
    transform: translateY(-2px);
}

.access-modal-actions .btn-primary ion-icon {
    font-size: 20px;
}

.access-modal-actions .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.access-modal-actions .btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-light);
}

/* ============================================
   TOAST - Notificaciones
============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-dark);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid var(--gold);
}

/* Light mode - Modals y Toast */
body.light-mode .access-modal-content {
    background: var(--bg-light-secondary);
}

body.light-mode .access-modal-title {
    color: var(--text-dark);
}

body.light-mode .access-modal-text {
    color: var(--text-dark-secondary);
}

body.light-mode .access-modal-text strong {
    color: var(--text-dark);
}

body.light-mode .toast {
    background: var(--bg-light-secondary);
    color: var(--text-dark);
}

/* ============================================
   BOTTOM NAVIGATION (Oculto en web - solo app)
============================================ */
.bottom-nav {
    display: none; /* Oculto en version web */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    transition: color 0.2s;
}

.nav-item ion-icon {
    font-size: 24px;
}

.nav-item.active {
    color: var(--gold);
}

.bottom-space {
    display: none; /* No necesario en version web */
}

/* ============================================
   SIDEBAR NAVEGACION RAPIDA
============================================ */

/* Floating Open Button */
.sidebar-open-btn {
    position: fixed;
    right: 100px;
    top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 20px);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--card-dark) 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 88;
    transition: all 0.3s ease;
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-open-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, var(--card-dark) 100%);
    border-color: var(--gold);
    transform: scale(1.05);
}

.sidebar-open-btn ion-icon {
    font-size: 22px;
}

.sidebar-open-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

body.light-mode .sidebar-open-btn {
    background: linear-gradient(135deg, var(--card-light) 0%, #f5f5f5 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar Toggle Button (inside header) */
.sidebar-toggle-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light-muted);
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.sidebar-toggle-btn ion-icon {
    font-size: 18px;
}

body.light-mode .sidebar-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark-muted);
}

body.light-mode .sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Sidebar Flotante */
.courses-sidebar {
    position: fixed;
    right: 100px;
    top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 20px);
    width: 300px;
    max-height: 70vh;
    background: linear-gradient(180deg, var(--card-dark) 0%, #0d0d0d 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.courses-sidebar.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

body.light-mode .courses-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Sidebar Header - Draggable */
.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    cursor: grab;
    user-select: none;
    border-radius: 16px 16px 0 0;
}

.sidebar-header:active {
    cursor: grabbing;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo ion-icon {
    font-size: 24px;
    color: var(--gold);
}

.sidebar-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

body.light-mode .sidebar-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    min-height: 0;
}

.sidebar-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

/* Course Item */
.sidebar-course {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-course:hover {
    background: rgba(212, 175, 55, 0.08);
}

.sidebar-course:last-child {
    border-bottom: none;
}

body.light-mode .sidebar-course {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sidebar-course-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-course-icon.free {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.sidebar-course-icon.premium {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.sidebar-course-info {
    flex: 1;
    min-width: 0;
}

.sidebar-course-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

body.light-mode .sidebar-course-title {
    color: var(--text-dark);
}

.sidebar-course-meta {
    font-size: 11px;
    color: var(--text-light-muted);
    margin-top: 2px;
}

body.light-mode .sidebar-course-meta {
    color: var(--text-dark-muted);
}

/* Expand Icon */
.sidebar-expand-icon {
    font-size: 16px;
    color: var(--text-light-muted);
    flex-shrink: 0;
}

body.light-mode .sidebar-expand-icon {
    color: var(--text-dark-muted);
}

/* Lessons Container */
.sidebar-lessons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

body.light-mode .sidebar-lessons {
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-lessons-loading {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.sidebar-lessons-loading .loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.sidebar-lessons-error,
.sidebar-lessons-empty {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-light-muted);
    text-align: center;
}

/* Individual Lesson */
.sidebar-lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 32px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-lesson:hover {
    background: rgba(212, 175, 55, 0.1);
}

.sidebar-lesson:last-child {
    border-bottom: none;
}

body.light-mode .sidebar-lesson {
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

.sidebar-lesson-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light-muted);
    flex-shrink: 0;
}

.sidebar-lesson-number.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.sidebar-lesson-number.completed ion-icon {
    font-size: 14px;
}

body.light-mode .sidebar-lesson-number {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark-muted);
}

.sidebar-lesson-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-lesson-title {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .sidebar-lesson-title {
    color: var(--text-dark);
}

.sidebar-lesson-duration {
    font-size: 10px;
    color: var(--text-light-muted);
}

body.light-mode .sidebar-lesson-duration {
    color: var(--text-dark-muted);
}

/* Overlay (opcional para modal flotante) */
.sidebar-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .courses-sidebar {
        width: 280px;
        right: 10px;
        left: auto;
    }

    .sidebar-open-btn {
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .sidebar-open-btn ion-icon {
        font-size: 20px;
    }
}

/* ============================================
   COMING SOON OVERLAY
============================================ */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(26, 26, 26, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coming-soon-overlay.hidden {
    display: none;
}

.coming-soon-content {
    text-align: center;
    max-width: 500px;
}

.coming-soon-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--gold), #b8962e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

.coming-soon-icon ion-icon {
    font-size: 60px;
    color: #000;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }
}

.coming-soon-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.coming-soon-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.coming-soon-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.coming-soon-features .feature-item ion-icon {
    font-size: 32px;
    color: var(--gold);
}

.coming-soon-features .feature-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.btn-back-home ion-icon {
    font-size: 18px;
}

/* Light mode overlay */
body.light-mode .coming-soon-overlay {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

body.light-mode .coming-soon-content > p {
    color: #666666;
}

body.light-mode .coming-soon-features .feature-item span {
    color: #888888;
}

@media (max-width: 480px) {
    .coming-soon-overlay {
        overflow-y: auto;
        padding: 60px 20px;
    }

    .coming-soon-icon {
        width: 100px;
        height: 100px;
    }

    .coming-soon-icon ion-icon {
        font-size: 50px;
    }

    .coming-soon-content h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .coming-soon-content > p {
        font-size: 14px;
    }

    .coming-soon-features {
        gap: 20px;
    }

    .coming-soon-features .feature-item ion-icon {
        font-size: 28px;
    }
}
