body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #070711;
    color: white;
}

.learn-page {
    min-height: 100vh;
    padding: 80px 20px;
}

.learn-container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 700;
}

.learn-header {
    margin-bottom: 32px;
}

.learn-header h1 {
    font-size: 44px;
    margin: 20px 0 10px;
}

.learn-header p {
    color: #cbd5e1;
    font-size: 18px;
}

.learn-progress {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 30px;
}

.learn-progress div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #6366f1);
}

.lesson-list {
    display: grid;
    gap: 16px;
}

.lesson-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.lesson-card:hover {
    border-color: #a855f7;
    background: rgba(168,85,247,0.12);
}

.lesson-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.lesson-info {
    flex: 1;
}

.lesson-info h3 {
    margin: 0 0 6px;
}

.lesson-info p {
    margin: 0;
    color: #94a3b8;
}

.lesson-action {
    font-weight: 700;
    color: #a855f7;
}

.lesson-card.locked {
    opacity: 0.45;
    pointer-events: none;
}

.locked-text {
    color: #94a3b8;
}
/* Mobile improvements for course learn page */
.learn-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at 0 0, rgba(168, 85, 247, 0.18), transparent 42%),
            radial-gradient(circle at 100% 12%, rgba(36, 200, 255, 0.10), transparent 34%),
            #050713;
    color: #ffffff;
}

.learn-container {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 96px 0 80px;
}

.learn-header {
    margin-bottom: 24px;
}

.learn-header h1 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.08;
}

.learn-header p {
    max-width: 760px;
    color: #c7d6e6;
    font-size: 16px;
    line-height: 1.55;
}

.back-link {
    color: #b266ff;
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: #ffffff;
}

.learn-progress {
    border-radius: 22px;
    background: rgba(20, 22, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 20px 22px;
    margin-bottom: 22px;
}

.learn-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.learn-progress span {
    color: #ffffff;
    font-weight: 800;
}

.learn-progress strong {
    color: #ffffff;
}

.progress-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a855f7, #24c8ff);
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lesson-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(20, 22, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.lesson-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #ffffff;
    font-weight: 900;
}

.lesson-info {
    min-width: 0;
}

.lesson-info h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.lesson-info p {
    margin: 0;
    color: #9fb3c8;
}

.lesson-action {
    color: #d8b7ff;
    font-weight: 850;
    white-space: nowrap;
}

.lesson-card.locked {
    opacity: 0.55;
    pointer-events: none;
}

.locked-text {
    color: #9fb3c8;
}

@media (max-width: 767px) {
    .learn-container {
        width: min(100% - 24px, 100%);
        padding-top: 56px;
        padding-bottom: 48px;
    }

    .learn-header h1 {
        font-size: 34px;
    }

    .learn-header p {
        font-size: 15px;
    }

    .learn-progress {
        padding: 18px;
        border-radius: 20px;
    }

    .lesson-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .lesson-number {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .lesson-info h3 {
        font-size: 17px;
    }

    .lesson-action {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .learn-container {
        width: min(100% - 20px, 100%);
    }

    .lesson-card {
        grid-template-columns: 1fr;
    }

    .lesson-number {
        width: 42px;
        height: 42px;
    }

    .lesson-action {
        grid-column: auto;
    }
}