/* OLSCMS by Kubaols — Frontend: My Account Overrides */
/* v2.0.0 */

.olscms-myaccount {
    max-width: 800px;
}

.olscms-myaccount__heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0eb;
}
.olscms-myaccount__heading:first-child { margin-top: 0; }

/* ── Subscription cards ── */
.olscms-myaccount__sub-card {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 12px;
}
.olscms-myaccount__sub-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.olscms-myaccount__sub-top strong { font-size: 1.05rem; }
.olscms-myaccount__sub-details {
    display: flex;
    gap: 24px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 14px;
}
.olscms-myaccount__sub-actions {
    display: flex;
    gap: 10px;
}

/* ── Status badges ── */
.olscms-myaccount__status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.olscms-myaccount__status--active { background: #dcfce7; color: #166534; }
.olscms-myaccount__status--on-hold { background: #fef3c7; color: #92400e; }
.olscms-myaccount__status--pending-cancel { background: #fce7f3; color: #9d174d; }
.olscms-myaccount__status--locked { background: #f1f5f9; color: #64748b; }

/* ── Plan cards ── */
.olscms-myaccount__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .olscms-myaccount__plans { grid-template-columns: 1fr; } }

.olscms-myaccount__plan {
    position: relative;
    text-align: center;
    padding: 28px 20px;
    border: 1.5px solid #e8f0eb;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.olscms-myaccount__plan--featured {
    border-color: #3B8E5A;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
}
.olscms-myaccount__plan--active {
    border-color: #3B8E5A;
    box-shadow: 0 0 0 2px rgba(59,142,90,0.15);
}
.olscms-myaccount__plan-ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3B8E5A;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.olscms-myaccount__plan-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D6E46;
}
.olscms-myaccount__plan-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}
.olscms-myaccount__plan-price small {
    font-size: 0.5em;
    font-weight: 400;
    opacity: 0.6;
}
.olscms-myaccount__plan-desc {
    font-size: 0.82rem;
    color: #64748b;
}
.olscms-myaccount__plan .button,
.olscms-myaccount__plan .button-primary {
    margin-top: 8px;
    border-radius: 50px;
    padding: 8px 24px;
}
.olscms-myaccount__plan-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.olscms-myaccount__plan-badge--active {
    background: #dcfce7;
    color: #166534;
}

/* ── Course list ── */
.olscms-myaccount__courses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.olscms-myaccount__course {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid #e8f0eb;
    border-radius: 12px;
    background: #fff;
    flex-wrap: wrap;
}
.olscms-myaccount__course strong { flex: 1; }
.olscms-myaccount__course-price {
    font-size: 0.88rem;
    color: #64748b;
}

/* ── Membership cards ── */
.olscms-myaccount__mem-card {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 10px;
}
.olscms-myaccount__mem--expiring {
    border-color: #fbbf24;
    background: #fffbeb;
}
.olscms-myaccount__mem-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.olscms-myaccount__mem-detail {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 6px;
}
.olscms-myaccount__mem-warn {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b45309;
}
.olscms-myaccount__mem-warn a { color: #3B8E5A; font-weight: 600; }

/* ── Empty state ── */
.olscms-myaccount__empty {
    text-align: center;
    padding: 40px 20px;
    background: #f7faf8;
    border-radius: 16px;
    border: 1px dashed #d0e0d5;
}
.olscms-myaccount__empty-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.olscms-myaccount__empty h3 { margin: 0 0 8px; }
.olscms-myaccount__empty p { color: #64748b; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════════ */
/*  COURSES — Kurs display & Lesson Player                              */
/* ═══════════════════════════════════════════════════════════════════ */

.olscms-course {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Course Header / Hero ── */
.olscms-course__header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
    border-radius: 20px;
    padding: 28px;
    border: 1.5px solid #e8f0eb;
}
@media (max-width: 768px) {
    .olscms-course__header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

.olscms-course__cover {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(59,142,90,0.12);
}
.olscms-course__cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.olscms-course__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.olscms-course__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .olscms-course__title { font-size: 1.5rem; }
}

.olscms-course__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.olscms-course__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
    background: #fff;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid #e8f0eb;
}
.olscms-course__stat svg {
    color: #3B8E5A;
    flex-shrink: 0;
}

/* ── Progress bar ── */
.olscms-course__progress {
    margin-top: 8px;
}
.olscms-course__progress-bar {
    height: 8px;
    background: #e8f0eb;
    border-radius: 10px;
    overflow: hidden;
}
.olscms-course__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B8E5A, #5FAD7C);
    border-radius: 10px;
    transition: width 0.4s ease;
}
.olscms-course__progress-text {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #64748b;
}

/* ── Locked state ── */
.olscms-course__locked {
    text-align: center;
    padding: 60px 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e8f0eb;
}
.olscms-course__locked-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.olscms-course__locked h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0 0 8px;
}
.olscms-course__locked p {
    color: #64748b;
    margin: 0 0 20px;
}

/* ── Curriculum / Modules ── */
.olscms-course__curriculum {
    margin-top: 20px;
}
.olscms-course__curriculum h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0eb;
}

.olscms-module {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.olscms-module:hover {
    border-color: #c5dcc9;
}

.olscms-module__header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.olscms-module__header:hover {
    background: #f7faf8;
}

.olscms-module__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B8E5A, #5FAD7C);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.olscms-module__title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.olscms-module__count {
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 50px;
}

.olscms-module__chevron {
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.olscms-module__header[aria-expanded="true"] .olscms-module__chevron {
    transform: rotate(180deg);
}

/* ── Lessons list ── */
.olscms-module__lessons {
    border-top: 1px solid #e8f0eb;
    padding: 8px 0;
}
.olscms-module__lessons[hidden] { display: none; }

.olscms-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 66px;
    text-decoration: none;
    color: #475569;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.olscms-lesson:hover {
    background: #f7faf8;
    color: #1e293b;
    border-left-color: #3B8E5A;
}
.olscms-lesson--done {
    background: #f0fdf4;
}
.olscms-lesson--done .olscms-lesson__icon svg {
    color: #22c55e;
}

.olscms-lesson__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 6px;
    flex-shrink: 0;
}
.olscms-lesson__icon svg {
    color: #64748b;
}
.olscms-lesson:hover .olscms-lesson__icon {
    background: #e8f0eb;
}
.olscms-lesson:hover .olscms-lesson__icon svg {
    color: #3B8E5A;
}

.olscms-lesson__title {
    flex: 1;
    font-size: 0.92rem;
}

.olscms-lesson__duration {
    font-size: 0.78rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 50px;
}


/* ═══════════════════════════════════════════════════════════════════ */
/*  LESSON PLAYER                                                        */
/* ═══════════════════════════════════════════════════════════════════ */

.olscms-player {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.olscms-player__header {
    margin-bottom: 24px;
}

.olscms-player__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3B8E5A;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 8px;
}
.olscms-player__back:hover {
    text-decoration: underline;
}

.olscms-player__breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.olscms-player__breadcrumb span:last-child {
    color: #475569;
    font-weight: 500;
}

/* ── Video container ── */
.olscms-player__video {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.olscms-player__video iframe,
.olscms-player__video video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

/* ── Lesson content ── */
.olscms-player__content {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .olscms-player__content { padding: 20px; }
}

.olscms-player__content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

.olscms-player__text {
    color: #475569;
    line-height: 1.7;
}
.olscms-player__text p { margin: 0 0 1em; }
.olscms-player__text ul,
.olscms-player__text ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

/* ── Attachments ── */
.olscms-player__files {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8f0eb;
}
.olscms-player__files h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}
.olscms-player__files ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.olscms-player__files li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f7faf8;
    border: 1.5px solid #e8f0eb;
    border-radius: 10px;
    color: #3B8E5A;
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
}
.olscms-player__files li a:hover {
    background: #e8f5eb;
    border-color: #3B8E5A;
}
.olscms-player__files li a::before {
    content: '📄';
}

/* ── Navigation footer ── */
.olscms-player__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
}
@media (max-width: 600px) {
    .olscms-player__nav {
        flex-direction: column;
    }
}

.olscms-player__nav-btn {
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e8f0eb;
    transition: all 0.2s;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.olscms-player__nav-btn:hover {
    background: #e8f5eb;
    border-color: #3B8E5A;
    color: #166534;
}

.olscms-player__complete {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #3B8E5A;
    background: #fff;
    color: #3B8E5A;
    transition: all 0.2s;
}
.olscms-player__complete:hover {
    background: #3B8E5A;
    color: #fff;
}
.olscms-player__complete--done {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
    cursor: default;
}

/* ── Buttons ── */
.olscms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.olscms-btn--primary {
    background: linear-gradient(135deg, #3B8E5A, #5FAD7C);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,142,90,0.3);
}
.olscms-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,142,90,0.4);
    color: #fff;
}

.olscms-error {
    padding: 24px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════ */
/*  SR CHECKOUT BUTTONS (AJAX)                                          */
/* ═══════════════════════════════════════════════════════════════════ */

.eko-sr-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.eko-sr-plan {
    position: relative;
    background: #fff;
    border: 2px solid #e8f0eb;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}
.eko-sr-plan:hover {
    border-color: #3B8E5A;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59,142,90,0.15);
}

.eko-sr-plan--featured {
    border-color: #3B8E5A;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
}

.eko-sr-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3B8E5A, #5FAD7C);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eko-sr-plan__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2D6E46;
    margin-bottom: 8px;
}

.eko-sr-plan__price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}
.eko-sr-plan__price small {
    font-size: 0.4em;
    font-weight: 400;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.eko-sr-plan__desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 12px 0 20px;
}

.eko-sr-plan__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #3B8E5A;
    background: #fff;
    color: #3B8E5A;
    transition: all 0.2s;
}
.eko-sr-plan__btn:hover {
    background: #3B8E5A;
    color: #fff;
}

.eko-sr-plan--featured .eko-sr-plan__btn {
    background: linear-gradient(135deg, #3B8E5A, #5FAD7C);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(59,142,90,0.3);
}
.eko-sr-plan--featured .eko-sr-plan__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,142,90,0.4);
}

.eko-sr-plan__btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.eko-sr-plan__btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: eko-spin 0.8s linear infinite;
}

@keyframes eko-spin {
    to { transform: rotate(360deg); }
}
.olscms-myaccount__empty .button-primary {
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 1rem;
    background: #3B8E5A;
    border-color: #2D6E46;
}

/* ── Footer ── */
.olscms-myaccount__footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8f0eb;
}

/* ═══════════════════════════════════════════════════
   MÓJ STATUS — Account Dashboard
   ═══════════════════════════════════════════════════ */

.olscms-status-card {
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 16px;
    padding: 28px;
}

.olscms-status__user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8f0eb;
}
.olscms-status__user img { border-radius: 50%; }
.olscms-status__user div { display: flex; flex-direction: column; gap: 2px; }
.olscms-status__user strong { font-size: 1.1rem; }

.olscms-status__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 768px) { .olscms-status__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .olscms-status__grid { grid-template-columns: 1fr; } }

.olscms-status__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #f7faf8;
    border-radius: 12px;
    border: 1px solid #e8f0eb;
}
.olscms-status__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}
.olscms-status__value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}
.olscms-status__value--ok { color: #166534; }
.olscms-status__value--none { color: #94a3b8; font-weight: 500; }
.olscms-status__hint {
    font-size: 0.82rem;
    color: #64748b;
}
.olscms-status__link {
    font-size: 0.82rem;
    color: #3B8E5A;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    display: inline-block;
}
.olscms-status__link:hover { text-decoration: underline; }

/* ── Switch plan ── */
.olscms-status__switch {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8f0eb;
}
.olscms-status__switch h4 { margin: 0 0 16px; font-size: 1rem; }

.olscms-status__switch-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #e8f0eb;
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 12px;
}
.olscms-status__switch-option--cancel {
    border-color: #fecaca;
    background: #fef2f2;
}
.olscms-status__switch-option strong { font-size: 0.95rem; }

/* ── CTA no sub ── */
.olscms-status__cta {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
    border-radius: 14px;
    border: 1.5px solid #3B8E5A;
    margin-top: 20px;
}
.olscms-status__cta h4 { margin: 0 0 8px; font-size: 1.2rem; color: #2D6E46; }
.olscms-status__cta p { color: #64748b; margin-bottom: 16px; }
.olscms-status__cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.olscms-status__cta-btns .button { border-radius: 50px; padding: 10px 24px; }
.olscms-status__cta-btns .button-primary { background: #3B8E5A; border-color: #2D6E46; }

/* ═══════════════════════════════════════════════════
   HISTORIA PŁATNOŚCI
   ═══════════════════════════════════════════════════ */

.olscms-payments__summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.olscms-payments__kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: #f7faf8;
    border: 1px solid #e8f0eb;
    border-radius: 12px;
    flex: 1;
}
.olscms-payments__kpi-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D6E46;
}
.olscms-payments__kpi span:last-child {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.olscms-payments__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.olscms-payments__table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e8f0eb;
}
.olscms-payments__table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.olscms-payments__table tbody tr:hover { background: #fafbfc; }
.olscms-payments__table a { color: #3B8E5A; font-weight: 600; text-decoration: none; }
.olscms-payments__table a:hover { text-decoration: underline; }
.olscms-payments__amount { font-weight: 600; }

.olscms-payments__status {
    display: inline-block;
    padding: 4px 12px;
    min-height: 32px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.olscms-payments__status--completed,
.olscms-payments__status--processing { background: #dcfce7; color: #166534; }
.olscms-payments__status--on-hold    { background: #fef3c7; color: #92400e; }
.olscms-payments__status--refunded   { background: #e0e7ff; color: #3730a3; }
.olscms-payments__status--failed     { background: #fecaca; color: #991b1b; }
.olscms-payments__status--cancelled  { background: #f1f5f9; color: #64748b; }

.olscms-payments__type {
    font-size: 0.78rem;
    color: #64748b;
}
.olscms-payments__type--renewal {
    color: #3B8E5A;
    font-weight: 600;
}

.olscms-payments__methods {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8f0eb;
}

@media (max-width: 600px) {
    .olscms-payments__table { font-size: 0.8rem; }
    .olscms-payments__table th:nth-child(5),
    .olscms-payments__table td:nth-child(5),
    .olscms-payments__table th:nth-child(6),
    .olscms-payments__table td:nth-child(6) { display: none; }
}

/* ═══════════════════════════════════════════════════
   CHECKOUT — Subscription Summary Box
   ═══════════════════════════════════════════════════ */

.olscms-checkout-summary {
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
    border: 1.5px solid #3B8E5A;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    text-align: center;
}
.olscms-checkout-summary__icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.olscms-checkout-summary h3 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #2D6E46;
}
.olscms-checkout-summary__details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}
.olscms-checkout-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #d0e0d5;
    font-size: 0.92rem;
}
.olscms-checkout-summary__row span { color: #64748b; }
.olscms-checkout-summary__row strong { color: #1e293b; }
.olscms-checkout-summary__note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}
.olscms-checkout-summary__note strong { color: #3B8E5A; }

/* ── Recurring consent checkbox ── */
.olscms-checkout-consent {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.olscms-checkout-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.olscms-checkout-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.olscms-checkout-consent a {
    color: #3B8E5A;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   FAILED PAYMENT NOTICE
   ═══════════════════════════════════════════════════ */

.olscms-payment-failed-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.olscms-payment-failed-notice__icon { font-size: 1.6rem; flex-shrink: 0; }
.olscms-payment-failed-notice strong { color: #991b1b; display: block; margin-bottom: 4px; }
.olscms-payment-failed-notice p { margin: 0; font-size: 0.88rem; color: #7f1d1d; }

/* ═══════════════════════════════════════════════════
   CHECKOUT OPTIONS — Plan Cards
   ═══════════════════════════════════════════════════ */
.olscms-checkout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 24px;
}
@media (max-width: 600px) {
    .olscms-checkout-options { grid-template-columns: 1fr; }
}

.olscms-checkout-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #e8f0eb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.olscms-checkout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,142,90,0.12);
}
.olscms-checkout-card--featured {
    border-color: #3B8E5A;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 100%);
}
.olscms-checkout-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #1e293b;
}
.olscms-checkout-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3B8E5A 0%, #2D6E46 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(59,142,90,0.3);
}
.olscms-checkout-price {
    margin-bottom: 8px;
}
.olscms-checkout-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #3B8E5A;
}
.olscms-checkout-price .period {
    font-size: 0.9rem;
    color: #64748b;
}
.olscms-checkout-savings {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}
.olscms-checkout-savings s { color: #94a3b8; }
.olscms-checkout-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    flex-grow: 1;
}
.olscms-checkout-features li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: #475569;
    border-bottom: 1px dashed #e8f0eb;
}
.olscms-checkout-features li:last-child { border-bottom: none; }

/* ── Checkout Buttons ── */
.olscms-checkout-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: 2px solid #3B8E5A;
    border-radius: 50px;
    background: transparent;
    color: #3B8E5A;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.olscms-checkout-btn:hover {
    background: #3B8E5A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,142,90,0.25);
}
.olscms-checkout-btn--primary {
    background: linear-gradient(135deg, #3B8E5A 0%, #2D6E46 100%);
    color: #fff;
    border-color: #2D6E46;
}
.olscms-checkout-btn--primary:hover {
    background: linear-gradient(135deg, #2D6E46 0%, #1e5a35 100%);
    box-shadow: 0 8px 24px rgba(59,142,90,0.35);
}
.olscms-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.olscms-checkout-loading {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
}
.olscms-checkout-loading p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════
   REGISTRATION FORM FIELDS
   ═══════════════════════════════════════════════════ */
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    width: 48%;
    display: inline-block;
}
.woocommerce-form-register .form-row-first { margin-right: 3%; }
@media (max-width: 480px) {
    .woocommerce-form-register .form-row-first,
    .woocommerce-form-register .form-row-last { width: 100%; margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   OLSCMS COURSES — Course display & lesson player
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Course container ── */
.olscms-course {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Course Header ── */
.olscms-course__header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fcf9 0%, #f0f7f2 100%);
    border-radius: 16px;
    border: 1px solid #e0ebe5;
}

.olscms-course__cover {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.olscms-course__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.olscms-course__title {
    margin: 0 0 12px;
    font-size: 1.8rem;
    color: #2D6E46;
    line-height: 1.2;
}

.olscms-course__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.olscms-course__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.olscms-course__stat svg {
    color: #3B8E5A;
}

/* ── Progress bar ── */
.olscms-course__progress {
    margin-top: 16px;
}

.olscms-course__progress-bar {
    width: 100%;
    height: 8px;
    background: #e0ebe5;
    border-radius: 4px;
    overflow: hidden;
}

.olscms-course__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B8E5A 0%, #4CAF50 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.olscms-course__progress-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

/* ── Locked state ── */
.olscms-course__locked {
    text-align: center;
    padding: 48px 24px;
    background: #fff8e1;
    border: 2px dashed #ffd54f;
    border-radius: 16px;
    margin: 32px 0;
}

.olscms-course__locked-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.olscms-course__locked h3 {
    margin: 0 0 8px;
    color: #f57c00;
}

.olscms-course__locked p {
    color: #795548;
    margin: 0 0 20px;
}

/* ── Curriculum ── */
.olscms-course__curriculum h2 {
    font-size: 1.3rem;
    color: #2D6E46;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0ebe5;
}

/* ── Module ── */
.olscms-module {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e0ebe5;
    border-radius: 12px;
    overflow: hidden;
}

.olscms-module__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fcf9;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.olscms-module__header:hover {
    background: #f0f7f2;
}

.olscms-module__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3B8E5A;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.olscms-module__title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.olscms-module__count {
    font-size: 0.85rem;
    color: #64748b;
}

.olscms-module__chevron {
    color: #94a3b8;
    transition: transform 0.2s;
}

.olscms-module__header[aria-expanded="true"] .olscms-module__chevron {
    transform: rotate(180deg);
}

/* ── Lessons list ── */
.olscms-module__lessons {
    border-top: 1px solid #e0ebe5;
}

.olscms-module__lessons[hidden] {
    display: none;
}

.olscms-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 60px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f3;
    transition: background 0.15s;
}

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

.olscms-lesson:hover {
    background: #f8fcf9;
}

.olscms-lesson__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f3;
    border-radius: 8px;
    color: #64748b;
}

.olscms-lesson--done .olscms-lesson__icon {
    background: #e8f5e9;
    color: #3B8E5A;
}

.olscms-lesson__title {
    flex: 1;
    font-size: 0.95rem;
}

.olscms-lesson__duration {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LESSON PLAYER
   ═══════════════════════════════════════════════════════════════════════════ */

.olscms-player {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

/* ── Header ── */
.olscms-player__header {
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e0ebe5;
}

.olscms-player__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3B8E5A;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 8px;
}

.olscms-player__back:hover {
    text-decoration: underline;
}

.olscms-player__breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
}

.olscms-player__breadcrumb span {
    margin: 0 4px;
}

/* ── Video ── */
.olscms-player__video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 24px;
}

.olscms-player__video iframe,
.olscms-player__video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Content ── */
.olscms-player__content h1 {
    font-size: 1.5rem;
    color: #2D6E46;
    margin: 0 0 16px;
}

.olscms-player__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.olscms-player__text p {
    margin: 0 0 16px;
}

/* ── Files ── */
.olscms-player__files {
    margin-top: 24px;
    padding: 20px;
    background: #f8fcf9;
    border-radius: 12px;
    border: 1px solid #e0ebe5;
}

.olscms-player__files h3 {
    font-size: 1rem;
    margin: 0 0 12px;
    color: #2D6E46;
}

.olscms-player__files ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.olscms-player__files li {
    margin-bottom: 8px;
}

.olscms-player__files a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0ebe5;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.olscms-player__files a:hover {
    background: #3B8E5A;
    border-color: #3B8E5A;
    color: #fff;
}

/* ── Navigation footer ── */
.olscms-player__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e0ebe5;
}

.olscms-player__nav-btn {
    padding: 12px 20px;
    background: #f1f5f3;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.olscms-player__nav-btn:hover {
    background: #3B8E5A;
    color: #fff;
}

.olscms-player__nav-btn--done {
    background: #4CAF50;
    color: #fff;
}

.olscms-player__complete {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0ebe5;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.olscms-player__complete:hover {
    border-color: #3B8E5A;
    color: #3B8E5A;
}

.olscms-player__complete--done {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
}

/* ── Buttons ── */
.olscms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.olscms-btn--primary {
    background: linear-gradient(135deg, #3B8E5A 0%, #2D6E46 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 142, 90, 0.25);
}

.olscms-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 142, 90, 0.35);
}

/* ── Error ── */
.olscms-error {
    padding: 20px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 10px;
    color: #c62828;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .olscms-course__header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .olscms-course__cover {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .olscms-course__meta {
        justify-content: center;
    }
    
    .olscms-course__title {
        font-size: 1.5rem;
    }
    
    .olscms-lesson {
        padding-left: 20px;
    }
    
    .olscms-player__nav {
        flex-direction: column;
    }
    
    .olscms-player__nav-btn {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .olscms-course__header {
        padding: 16px;
    }
    
    .olscms-module__header {
        padding: 14px 16px;
    }
    
    .olscms-lesson {
        padding: 12px 16px;
    }
    
    .olscms-player__video {
        border-radius: 8px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/*  EKO LESSON PLAYER v2 — Immersive learning experience                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --eko-font-display: 'Space Grotesk', -apple-system, sans-serif;
    --eko-font-body: 'Imprima', 'Inter', -apple-system, sans-serif;
    --eko-green: #3B8E5A;
    --eko-green-dark: #2D6E46;
    --eko-green-light: #f0faf3;
    --eko-yellow: #FFBC27;
    --eko-black: #1e293b;
    --eko-gray: #64748b;
    --eko-border: #e8f0eb;
}

.eko-lesson {
    font-family: var(--eko-font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    padding-bottom: 90px; /* space for floating nav */
}

/* ── Top navigation bar ── */
.eko-lesson__topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--eko-border);
}

.eko-lesson__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--eko-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 14px 8px 10px;
    background: var(--eko-green-light);
    border-radius: 10px;
    transition: all 0.2s;
}
.eko-lesson__back:hover {
    background: var(--eko-green);
    color: #fff;
}
.eko-lesson__back svg {
    flex-shrink: 0;
}
.eko-lesson__back-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .eko-lesson__back-text { display: none; }
    .eko-lesson__back { padding: 10px; border-radius: 50%; }
}

/* Progress mini */
.eko-lesson__progress-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}
.eko-lesson__progress-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--eko-gray);
    white-space: nowrap;
}
.eko-lesson__progress-bar {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.eko-lesson__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--eko-green), #5FAD7C);
    border-radius: 10px;
    transition: width 0.4s ease;
}
@media (max-width: 480px) {
    .eko-lesson__progress-bar { width: 60px; }
}

/* ── Main content area ── */
.eko-lesson__main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Video player */
.eko-lesson__video {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.eko-lesson__video iframe,
.eko-lesson__video video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}
@media (max-width: 600px) {
    .eko-lesson__video {
        border-radius: 12px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

/* Content card */
.eko-lesson__card {
    background: #fff;
    border: 1.5px solid var(--eko-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
@media (max-width: 600px) {
    .eko-lesson__card { padding: 24px 20px; }
}

.eko-lesson__module-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--eko-green-light);
    color: var(--eko-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.eko-lesson__title {
    font-family: var(--eko-font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--eko-black);
    margin: 0 0 20px;
    line-height: 1.25;
}

.eko-lesson__text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}
.eko-lesson__text p { margin: 0 0 1.2em; }
.eko-lesson__text ul,
.eko-lesson__text ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}
.eko-lesson__text li { margin-bottom: 0.5em; }
.eko-lesson__text strong { color: var(--eko-black); }
.eko-lesson__text a {
    color: var(--eko-green);
    font-weight: 500;
}

/* ── Attachments ── */
.eko-lesson__files {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1.5px solid var(--eko-border);
}
.eko-lesson__files h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eko-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--eko-black);
    margin: 0 0 16px;
}
.eko-lesson__files h3 svg {
    color: var(--eko-green);
}

.eko-lesson__files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eko-lesson__file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--eko-green-light);
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: var(--eko-green-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.eko-lesson__file:hover {
    background: #fff;
    border-color: var(--eko-green);
    box-shadow: 0 4px 12px rgba(59,142,90,0.15);
}
.eko-lesson__file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--eko-green);
    color: #fff;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}
.eko-lesson__file-name {
    flex: 1;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eko-lesson__file svg {
    flex-shrink: 0;
    opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/*  Floating bottom navigation bar                                              */
/* ═══════════════════════════════════════════════════════════════════════════ */

.eko-lesson__bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--eko-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.eko-lesson__bottomnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

/* Nav buttons */
.eko-lesson__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid var(--eko-border);
    border-radius: 12px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 180px;
}
.eko-lesson__nav-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eko-lesson__nav-btn svg {
    flex-shrink: 0;
    color: var(--eko-gray);
}
.eko-lesson__nav-btn:hover {
    background: var(--eko-green-light);
    border-color: var(--eko-green);
    color: var(--eko-green-dark);
}
.eko-lesson__nav-btn:hover svg {
    color: var(--eko-green);
}
.eko-lesson__nav-btn--disabled {
    visibility: hidden;
    width: 180px;
}
.eko-lesson__nav-btn--finish {
    background: var(--eko-green-light);
    border-color: var(--eko-green);
    color: var(--eko-green-dark);
}
.eko-lesson__nav-btn--finish svg {
    color: var(--eko-green);
}

/* Complete button */
.eko-lesson__complete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--eko-green);
    background: #fff;
    color: var(--eko-green);
    transition: all 0.25s;
    min-width: 160px;
}
.eko-lesson__complete:hover {
    background: var(--eko-green);
    color: #fff;
    transform: scale(1.02);
}
.eko-lesson__complete svg {
    flex-shrink: 0;
}
.eko-lesson__complete--done {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
    cursor: default;
}
.eko-lesson__complete--done:hover {
    background: #dcfce7;
    color: #166534;
    transform: none;
}
.eko-lesson__complete.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 700px) {
    .eko-lesson__bottomnav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .eko-lesson__nav-btn {
        order: 1;
        flex: 1;
        max-width: 45%;
        justify-content: center;
    }
    .eko-lesson__nav-btn--disabled {
        display: none;
    }
    .eko-lesson__complete {
        order: 0;
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .eko-lesson__nav-btn span { display: none; }
    .eko-lesson__nav-btn {
        padding: 12px;
        max-width: none;
        flex: 0;
    }
    .eko-lesson__complete {
        padding: 10px 20px;
        font-size: 0.88rem;
        min-width: 140px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/*  SR Category Nav in Lesson                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* SR badge in topbar */
.eko-lesson__sr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3B8E5A, #5FAD7C);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}
.eko-lesson__sr-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59,142,90,0.3);
    color: #fff;
}

/* SR category navigation bar */
.eko-lesson__sr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e8f5eb 0%, #f0faf3 100%);
    border-bottom: 1px solid #c5dcc9;
}

.eko-lesson__sr-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1.5px solid #c5dcc9;
    border-radius: 10px;
    color: #3B8E5A;
    text-decoration: none;
    transition: all 0.2s;
}
.eko-lesson__sr-home:hover {
    background: #3B8E5A;
    color: #fff;
    border-color: #3B8E5A;
}

.eko-lesson__sr-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid #e0ebe3;
    border-radius: 50px;
    color: #2D6E46;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.eko-lesson__sr-cat:hover {
    background: #3B8E5A;
    color: #fff;
    border-color: #3B8E5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,142,90,0.2);
}

.eko-lesson__sr-cat-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.eko-lesson__sr-cat-label {
    display: inline;
}

/* Responsive */
@media (max-width: 600px) {
    .eko-lesson__sr-nav {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
    }
    .eko-lesson__sr-cat {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .eko-lesson__sr-cat-label {
        display: none;
    }
    .eko-lesson__sr-cat-icon {
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════
   WCAG 2.1 AA — Focus-visible
   ═══════════════════════════════════════════════ */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #2D6E86;
    outline-offset: 2px;
}
.olscms-btn:focus-visible,
.olscms-checkout-btn:focus-visible,
.olscms-portal-btn:focus-visible {
    outline-color: #2D6E86;
    outline-offset: 3px;
    box-shadow: 0 0 0 1px #fff;
}
.olscms-status__link:focus-visible {
    outline-offset: 0;
    background: #f0fdf4;
}
.olscms-switch-btn:focus-visible {
    outline-offset: 3px;
}

/* R9: Accessibility — disable motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
