:root {
    --primary-color: #4A6741;
    --primary-light: #6B8E5F;
    --accent-color: #8FAF94;
    --accent-hover: #7A9B7F;
    --bg-body: #F5F7F2;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #2C362B;
    --text-secondary: #5C6B5A;
    --border-color: rgba(74, 103, 65, 0.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Outfit', sans-serif;
}

.dark-mode {
    --bg-body: #0d110c;
    --bg-card: rgba(26, 36, 24, 0.9);
    --text-primary: #e2e8e1;
    --text-secondary: #a0b09f;
    --border-color: rgba(143, 175, 148, 0.15);
    --glass-bg: rgba(18, 24, 17, 0.85);
    --glass-border: rgba(143, 175, 148, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand h2 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-bottom: 1rem;
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(74, 103, 65, 0.2);
    border-radius: 10px;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.social-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.wa {
    color: #25D366;
}

.social-icon.ig {
    color: #E1306C;
}

.social-icon.yt {
    color: #FF0000;
}

.social-icon.fb {
    color: #1877F2;
}

.btn-whatsapp-support {
    width: 100%;
    padding: 0.8rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp-support:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.sidebar-separator {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 1.5rem 0.5rem 0.5rem 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
}

.nav-item {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

/* PWA Smart Banner */
.pwa-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slide-down 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-banner-text strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.pwa-banner-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.btn-install-pwa {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 6000;
    padding: 1.5rem;
}

.modal-content {
    background: var(--bg-body);
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

/* iOS Specific Modal */
.ios-modal {
    text-align: center;
}

.ios-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ios-app-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ios-steps {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ios-steps li {
    margin-bottom: 1rem;
    line-height: 1.4;
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes animate-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bottom Nav (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.nav-fab {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -15px;
    box-shadow: 0 5px 15px rgba(74, 103, 65, 0.4);
    transition: transform 0.2s ease;
}

.nav-fab i {
    font-size: 1.4rem;
}

.bottom-nav-item:active .nav-fab {
    transform: scale(0.9);
}

/* Module Drawer (Bottom Sheet) */
.module-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s;
}

.module-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-body);
    border-radius: 30px 30px 0 0;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
}

.module-drawer.active .drawer-content {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: var(--bg-body);
    padding: 0.5rem 0;
    z-index: 10;
}

.drawer-handle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--border-color);
    border-radius: 10px;
}

.drawer-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.drawer-close {
    background: var(--border-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
}

.drawer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.drawer-item {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.drawer-item i {
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.drawer-item.active {
    border-color: var(--primary-color);
    background: rgba(74, 103, 65, 0.05);
}

.drawer-item.locked {
    opacity: 0.6;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.8;
    background: rgba(74, 103, 65, 0.03);
    border-radius: 6px;
    transition: all 0.2s;
}

.accordion-header:hover {
    background: rgba(74, 103, 65, 0.08);
    opacity: 1;
}

.accordion-header.active {
    color: var(--primary-color);
    opacity: 1;
}

.module-name-item {
    margin-top: 2px;
    margin-left: 0.5rem;
    background: transparent;
}

.module-name-item.active {
    background: var(--primary-color) !important;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

.nav-item:hover {
    background: rgba(74, 103, 65, 0.05);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Video Player section */
.video-section {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* No-right-click overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: auto;
}

.btn-fullscreen-custom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fullscreen-custom:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

#main-video-container.is-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    padding-bottom: 0 !important;
}

#main-video-container.is-fullscreen iframe {
    width: 100%;
    height: 100%;
}

#main-video-container.is-fullscreen .video-overlay {
    z-index: 30;
}

#main-video-container.is-fullscreen .btn-fullscreen-custom {
    bottom: 20px;
    right: 20px;
    z-index: 40;
}

.video-top-shield {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 60px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9), transparent);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    pointer-events: auto;
}

.v-logo-shield {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 15;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    color: white;
}

.v-logo {
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.v-protection {
    width: 250px;
    height: 100%;
    background: transparent;
    pointer-events: auto;
}

.central-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(74, 103, 65, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    cursor: pointer;
    z-index: 12;
}

.central-play-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

/* Timeline Styles */
.video-timeline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 15;
    pointer-events: auto;
}

.timeline-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.1s linear;
}

.timeline-time {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.module-info {
    padding: 2rem;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.module-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-module {
    background: rgba(74, 103, 65, 0.1);
    color: var(--primary-color);
}

.tag-live {
    background: #fee2e2;
    color: #ef4444;
}

/* Grid for Docs and Tasks */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(74, 103, 65, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Auth Page */
.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #2C362B 0%, #0d110c 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.03;
    animation: slow-scroll 60s linear infinite;
}

@keyframes slow-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 500px 500px;
    }
}

.auth-card {
    background: rgba(26, 36, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 40px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(143, 175, 148, 0.15);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-card img {
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: #a0b09f;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 175, 148, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8e1;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-group input::placeholder {
    color: rgba(160, 176, 159, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #8FAF94;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(143, 175, 148, 0.1);
    transform: translateY(-2px);
}

.btn-login {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #4A6741 0%, #2C362B 100%);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 103, 65, 0.4);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Sticky Top Progress */
.top-progress-area {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-bottom: 3px solid var(--border-color);
    margin: -2rem -3rem 2rem -3rem;
}

.top-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.top-progress-info span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.motivational-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(74, 103, 65, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.motivational-card::before {
    content: '\"';
    position: absolute;
    right: 10px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.1;
    font-family: serif;
}

.motivational-card i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.motivation-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.motivation-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Progress Bar */
.progress-container {
    background: rgba(0, 0, 0, 0.05);
    height: 10px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* User Profile in Sidebar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(74, 103, 65, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

/* Roadmap Styles */
.roadmap-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.roadmap-badge {
    background: var(--bg-body);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.roadmap-content p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    opacity: 0.8;
    line-height: 1.4;
}

.roadmap-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

.roadmap-action {
    text-align: right;
    min-width: 100px;
}

.lock-info {
    text-align: right;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.show-mobile {
    display: none;
}


/* Responsive fixes */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.8rem;
        padding-top: env(safe-area-inset-top);
        background: var(--bg-body);
        backdrop-filter: none;
    }

    .brand {
        margin-bottom: 0;
        padding: 0.5rem;
        background: transparent;
        border: none;
    }

    .brand img {
        height: 35px !important;
    }

    .brand h2 {
        display: none;
    }

    .nav-links {
        display: none;
        /* Ocultamos el menú superior horizontal incómodo */
    }

    .bottom-nav {
        display: flex;
    }

    .accordion-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .accordion-header {
        padding: 0.6rem 1rem;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 10px;
    }

    .sidebar-separator {
        display: none;
    }

    #sidebar-footer {
        display: none;
    }

    #sidebar-footer p,
    #sidebar-footer button {
        display: none;
    }

    .user-profile {
        display: none;
    }

    .main-content {
        padding: 1rem;
        margin-top: 0;
    }

    header {
        margin-bottom: 1rem;
    }

    .top-progress-area {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 0.6rem 1rem;
    }

    .show-mobile {
        display: inline;
    }

    .hide-mobile {
        display: none;
    }

    .top-progress-info span {
        font-size: 0.75rem;
    }

    /* Roadmap Adaptability */
    .roadmap-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
        position: relative;
    }

    .roadmap-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
        border-radius: 50% !important;
    }

    .roadmap-content h4 {
        padding-right: 40px;
        font-size: 1rem;
    }

    .roadmap-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .roadmap-action {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .roadmap-action button {
        width: 100%;
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }

    .lock-info {
        text-align: center;
        font-size: 0.8rem;
        background: rgba(0, 0, 0, 0.05);
        padding: 0.8rem;
        border-radius: 10px;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .video-section {
        border-radius: 12px;
    }

    .module-layout-grid {
        grid-template-columns: 1fr !important;
    }

    /* PWA Support */
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }

    .floating-support-hub {
        bottom: 90px !important;
        right: 15px !important;
    }

    .support-hub-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
}

/* Floating Support Hub */
.floating-support-hub {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.support-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.support-tooltip {
    background: #2C362B;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.support-hub-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
}

.dark-mode .support-hub-btn {
    border-color: #1a2418;
}

.floating-support-hub:hover .support-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-support-hub:hover .support-hub-btn {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulse-green-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.support-hub-btn {
    animation: pulse-green-glow 2.5s infinite;
}

/* --- Premium Features --- */

/* Progress Bar */
.sidebar-progress-container {
    padding: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-percentage {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
}

.main-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(143, 175, 148, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8FAF94);
    width: 0%;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
}

/* Badges / Gamification */
.student-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 1.2rem;
    background: var(--glass-bg);
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: help;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: scale(1.15) rotate(10deg);
}

/* Resume Video Toast */
.resume-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 68, 45, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slide-up-toast 0.4s ease-out;
}

@keyframes slide-up-toast {
    from {
        bottom: 80px;
        opacity: 0;
    }

    to {
        bottom: 100px;
        opacity: 1;
    }
}

@keyframes slideDownIn {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUpOut {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

.btn-resume {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}