/* Page-specific Spedia styles (were inline <style> blocks on course / account / offer pages). */

/* ===== from course.html (block 1) ===== */
.course-view-page {
            background:
                radial-gradient(
                    circle at 80% 0%,
                    rgba(13, 187, 195, .08),
                    transparent 28%
                ),
                #f8fafb;
            color: #0b1f3a;
        }

        .course-view-main {
            width: min(1180px, calc(100% - 40px));
            margin: 0 auto;
            padding: 118px 0 90px;
        }

        .course-view-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 25px;
            color: #64748b;
            text-decoration: none;
            font-size: 14px;
            font-weight: 700;
            transition: color .2s ease;
        }

        .course-view-back:hover {
            color: #0dbbc3;
        }

        .course-view-heading {
            max-width: 850px;
            margin-bottom: 30px;
        }

        .course-view-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 9px;
            margin-bottom: 13px;
        }

        .course-view-university,
        .course-view-category {
            display: inline-flex;
            align-items: center;
            min-height: 29px;
            padding: 0 10px;
            border: 1px solid #e2e8f0;
            border-radius: 999px;
            background: #fff;
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
        }

        .course-view-category {
            border-color: rgba(13, 187, 195, .2);
            background: rgba(13, 187, 195, .08);
            color: #087f86;
        }

        .course-view-title {
            margin: 0;
            color: #0b1f3a;
            font-size: clamp(34px, 5vw, 58px);
            line-height: 1.07;
            letter-spacing: -1.5px;
        }

        .course-view-description {
            max-width: 720px;
            margin: 13px 0 0;
            color: #64748b;
            font-size: 16px;
            line-height: 1.7;
        }

        .course-view-workspace {
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr);
            gap: 22px;
            align-items: stretch;
            margin-bottom: 40px;
        }

        .course-player-card {
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            background: #0b1220;
            box-shadow: 0 22px 60px rgba(11, 31, 58, .10);
        }

        .course-player {
            position: relative;
            aspect-ratio: 16 / 9;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(
                    circle at 50% 40%,
                    rgba(13, 187, 195, .15),
                    transparent 35%
                ),
                #07101e;
            color: #fff;
        }


        .course-player[data-playing="true"] {
            display: block;
            overflow: hidden;
            padding: 0;
        }

        .course-vdocipher-frame {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 100%;
            aspect-ratio: 16 / 9;
            border: 0;
        }

        .course-player[data-playing="true"] {
            display: block;
            padding: 0;
            overflow: hidden;
        }

        .course-player-loading.is-overlay {
            position: absolute;
            inset: 0;
            z-index: 2;
            background: rgba(7, 16, 30, .82);
        }

        .course-player-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            min-height: 100%;
            color: rgba(255,255,255,.8);
            text-align: center;
        }

        .course-player-spinner {
            width: 28px;
            height: 28px;
            margin: 0 auto 13px;
            border: 2px solid rgba(255,255,255,.18);
            border-top-color: #0dbbc3;
            border-radius: 50%;
            animation: coursePlayerSpin .75s linear infinite;
        }

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

        .course-player-error {
            max-width: 380px;
            padding: 30px;
            text-align: center;
        }

        .course-player-error strong {
            display: block;
            font-size: 17px;
        }

        .course-player-error span {
            display: block;
            margin-top: 8px;
            color: rgba(255,255,255,.58);
            font-size: 13px;
            line-height: 1.6;
        }

        .course-player-state {
            max-width: 440px;
            padding: 30px;
            text-align: center;
        }

        .course-player-icon {
            width: 66px;
            height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 50%;
            background: rgba(255,255,255,.07);
            font-size: 24px;
        }

        .course-player-play {
            cursor: pointer;
            color: #fff;
            transition:
                transform .2s ease,
                background .2s ease,
                box-shadow .2s ease;
        }

        .course-player-play svg {
            width: 26px;
            height: 26px;
            margin-right: -2px;
        }

        .course-player-play:hover {
            transform: scale(1.06);
            background: rgba(13, 187, 195, .18);
            box-shadow: 0 10px 30px rgba(13, 187, 195, .16);
        }

        .course-player-play:active {
            transform: scale(.97);
        }

        .course-player-state strong {
            display: block;
            font-size: 18px;
        }

        .course-player-state span {
            display: block;
            margin-top: 7px;
            color: rgba(255,255,255,.58);
            font-size: 13px;
            line-height: 1.6;
        }

        .course-player-info {
            padding: 19px 21px 21px;
            background: #fff;
        }

        .course-player-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 7px;
            color: #07939a;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: .8px;
        }

        .course-player-label::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #0dbbc3;
        }

        .course-player-title {
            margin: 0;
            color: #0b1f3a;
            font-size: 20px;
            line-height: 1.35;
        }

        .course-player-caption {
            margin: 6px 0 0;
            color: #64748b;
            font-size: 13px;
        }

        .course-access-card {
            position: relative;
            display: flex;
            flex-direction: column;
            padding: 25px;
            overflow: hidden;
            border-radius: 24px;
            background: #0b1f3a;
            color: #fff;
            box-shadow: 0 22px 60px rgba(11, 31, 58, .10);
        }

        .course-access-card::after {
            content: "S";
            position: absolute;
            right: -18px;
            bottom: -75px;
            color: rgba(255,255,255,.035);
            font-size: 210px;
            font-weight: 900;
            line-height: 1;
            pointer-events: none;
        }

        .course-access-kicker {
            position: relative;
            z-index: 1;
            color: #67e8e8;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .7px;
        }

        .course-access-card h2 {
            position: relative;
            z-index: 1;
            margin: 12px 0 10px;
            color: #fff;
            font-size: 28px;
            line-height: 1.18;
        }

        .course-access-card p {
            position: relative;
            z-index: 1;
            margin: 0;
            color: rgba(255,255,255,.67);
            font-size: 14px;
            line-height: 1.7;
        }

        .course-access-features {
            position: relative;
            z-index: 1;
            display: grid;
            gap: 10px;
            margin: 22px 0;
        }

        .course-access-feature {
            display: flex;
            align-items: center;
            gap: 9px;
            color: rgba(255,255,255,.84);
            font-size: 13px;
            font-weight: 650;
        }

        .course-access-check {
            width: 21px;
            height: 21px;
            flex: 0 0 21px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(13,187,195,.16);
            color: #67e8e8;
            font-size: 11px;
        }

        .course-access-price {
            position: relative;
            z-index: 1;
            margin-top: auto;
            padding-top: 10px;
        }

        .course-access-price span {
            display: block;
            color: rgba(255,255,255,.5);
            font-size: 11px;
        }

        .course-access-price strong {
            display: block;
            margin-top: 2px;
            font-size: 31px;
        }

        .course-access-button {
            position: relative;
            z-index: 1;
            min-height: 51px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 15px;
            border-radius: 14px;
            background: #0dbbc3;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 900;
            transition:
                transform .2s ease,
                background .2s ease;
        }

        .course-access-button:hover {
            transform: translateY(-1px);
            background: #0aaab2;
        }

        .course-access-note {
            position: relative;
            z-index: 1;
            margin-top: 11px !important;
            text-align: center;
            color: rgba(255,255,255,.42) !important;
            font-size: 10px !important;
        }

        .course-content-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 18px;
        }

        .course-content-kicker {
            color: #07939a;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .7px;
        }

        .course-content-header h2 {
            margin: 5px 0 0;
            color: #0b1f3a;
            font-size: 30px;
        }

        .course-content-header p {
            max-width: 470px;
            margin: 0;
            color: #64748b;
            font-size: 13px;
            line-height: 1.6;
        }

        .course-chapters {
            display: grid;
            gap: 11px;
        }

        .course-chapter {
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 17px;
            background: #fff;
            box-shadow: 0 4px 18px rgba(11,31,58,.025);
        }

        .course-chapter-toggle {
            width: 100%;
            min-height: 69px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 15px 18px;
            border: 0;
            background: #fff;
            color: #0b1f3a;
            text-align: left;
            cursor: pointer;
            font: inherit;
        }

        .course-chapter-toggle:hover {
            background: #fbfdfd;
        }

        .course-chapter-heading {
            min-width: 0;
        }

        .course-chapter-name {
            display: block;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.35;
        }

        .course-chapter-count {
            display: block;
            margin-top: 3px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 650;
        }

        .course-chapter-chevron {
            width: 31px;
            height: 31px;
            flex: 0 0 31px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: #f1f5f7;
            color: #64748b;
            transition:
                transform .25s ease,
                background .2s ease;
        }

        .course-chapter.is-open .course-chapter-chevron {
            transform: rotate(180deg);
            background: rgba(13,187,195,.10);
            color: #07939a;
        }

        .course-chapter-panel {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows .28s ease;
        }

        .course-chapter.is-open .course-chapter-panel {
            grid-template-rows: 1fr;
        }

        .course-chapter-panel-inner {
            min-height: 0;
            overflow: hidden;
        }

        .course-topic {
            width: 100%;
            min-height: 61px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 11px 18px;
            border: 0;
            border-top: 1px solid #edf1f3;
            background: #fff;
            color: #0b1f3a;
            text-align: left;
            font: inherit;
        }

        button.course-topic {
            cursor: pointer;
        }

        button.course-topic:hover {
            background: #f8fdfd;
        }

        .course-topic-main {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .course-topic-icon {
            width: 35px;
            height: 35px;
            flex: 0 0 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: #f1f5f7;
            color: #64748b;
        }

        .course-topic.is-free .course-topic-icon {
            background: rgba(13,187,195,.10);
            color: #07939a;
        }

        .course-topic-name {
            display: block;
            font-size: 13px;
            font-weight: 750;
            line-height: 1.4;
        }

        .course-topic-type {
            display: block;
            margin-top: 3px;
            color: #94a3b8;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .6px;
        }

        .course-topic-status {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            font-weight: 900;
        }

        .course-topic-status.is-free {
            padding: 6px 9px;
            border-radius: 999px;
            background: rgba(13,187,195,.09);
            color: #078b91;
        }

        .course-topic-status.is-locked {
            color: #94a3b8;
        }

        .course-topic.is-active {
            background:
                linear-gradient(
                    90deg,
                    rgba(13,187,195,.08),
                    rgba(13,187,195,.025)
                );
        }

        .course-topic.is-active .course-topic-name {
            color: #078b91;
        }

        .course-empty {
            padding: 30px;
            color: #64748b;
            text-align: center;
        }


        .topic-svg {
            width: 19px;
            height: 19px;
            display: block;
        }

        .topic-lock-svg {
            width: 17px;
            height: 17px;
            display: block;
        }

        .course-topic-type-video .course-topic-icon {
            color: #079da5;
            background: rgba(13,187,195,.11);
        }

        .course-topic-type-pdf .course-topic-icon {
            color: #dc3545;
            background: rgba(220,53,69,.09);
        }

        .course-topic-type-mcq .course-topic-icon {
            color: #7656d6;
            background: rgba(118,86,214,.10);
        }

        .course-topic.is-locked {
            cursor: pointer;
        }

        .course-topic.is-locked:hover {
            background: #f8fafc;
        }

        .course-topic-status.is-locked {
            width: 31px;
            height: 31px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: #f1f5f9;
            color: #94a3b8;
        }

        .course-modal-open {
            overflow: hidden;
        }

        .course-lock-modal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22px;
            opacity: 0;
            visibility: hidden;
            transition:
                opacity .22s ease,
                visibility .22s ease;
        }

        .course-lock-modal.is-open {
            opacity: 1;
            visibility: visible;
        }

        .course-lock-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(5,18,38,.68);
            backdrop-filter: blur(7px);
            -webkit-backdrop-filter: blur(7px);
        }

        .course-lock-modal-card {
            position: relative;
            z-index: 1;
            width: min(100%, 440px);
            padding: 34px 30px 26px;
            border-radius: 25px;
            background: #fff;
            box-shadow: 0 28px 80px rgba(4,20,40,.25);
            text-align: center;
            transform: translateY(12px) scale(.98);
            transition: transform .24s ease;
        }

        .course-lock-modal.is-open
        .course-lock-modal-card {
            transform: translateY(0) scale(1);
        }

        .course-lock-modal-close {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 50%;
            background: #f3f6f8;
            color: #64748b;
            cursor: pointer;
        }

        .course-lock-modal-close svg {
            width: 17px;
            height: 17px;
        }

        .course-lock-modal-icon {
            width: 62px;
            height: 62px;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 19px;
            background: rgba(13,187,195,.10);
            color: #079da5;
        }

        .course-lock-modal-icon svg {
            width: 31px;
            height: 31px;
        }

        .course-lock-modal-eyebrow {
            display: block;
            margin-bottom: 7px;
            color: #079da5;
            font-size: 12px;
            font-weight: 900;
        }

        .course-lock-modal-card h2 {
            margin: 0;
            color: #0b1f3a;
            font-size: 23px;
            line-height: 1.4;
        }

        .course-lock-modal-card p {
            margin: 11px auto 0;
            max-width: 340px;
            color: #64748b;
            font-size: 14px;
            line-height: 1.9;
        }

        .course-lock-modal-topic {
            margin: 18px 0;
            padding: 11px 14px;
            border-radius: 12px;
            background: #f5f8fa;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            direction: ltr;
        }

        .course-lock-modal-cta {
            min-height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 18px;
            border-radius: 14px;
            background: #0dbbc3;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 900;
            transition:
                transform .18s ease,
                box-shadow .18s ease;
        }

        .course-lock-modal-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(13,187,195,.22);
        }

        .course-lock-modal-secondary {
            margin-top: 9px;
            padding: 9px 15px;
            border: 0;
            background: transparent;
            color: #64748b;
            font: inherit;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        @media (max-width: 900px) {
            .course-view-workspace {
                grid-template-columns: 1fr;
            }

            .course-access-card {
                min-height: 0;
            }
        }

        @media (max-width: 640px) {
            .course-view-main {
                width: min(100% - 28px, 1180px);
                padding-top: 100px;
            }

            .course-view-title {
                font-size: 34px;
                letter-spacing: -.8px;
            }

            .course-view-workspace {
                gap: 14px;
            }

            .course-player-card,
            .course-access-card {
                border-radius: 18px;
            }

            .course-player-info {
                padding: 16px;
            }

            .course-content-header {
                display: block;
            }

            .course-content-header p {
                margin-top: 7px;
            }

            .course-chapter-toggle {
                min-height: 63px;
                padding: 13px 14px;
            }

            .course-topic {
                padding: 10px 14px;
            }

            .course-topic-status.is-locked {
                max-width: 80px;
                text-align: right;
                line-height: 1.25;
            }

            .course-topic-name {
                font-size: 12px;
            }
        }
    
        .course-purchase-options {
            position: relative;
            z-index: 1;
            display: grid;
            gap: 9px;
            margin-top: auto;
            padding-top: 12px;
        }

        .course-purchase-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 13px;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 13px;
            background: rgba(255,255,255,.055);
            cursor: pointer;
            transition: border-color .2s ease, background .2s ease;
        }

        .course-purchase-option:has(input:checked) {
            border-color: rgba(103,232,232,.75);
            background: rgba(13,187,195,.13);
        }

        .course-purchase-option input {
            accent-color: #0dbbc3;
        }

        .course-purchase-option span {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .course-purchase-option small {
            color: rgba(255,255,255,.68);
            font-size: 11px;
            font-weight: 700;
        }

        .course-purchase-option strong {
            color: #fff;
            font-size: 17px;
            font-weight: 900;
        }

        .course-access-button {
            width: 100%;
            border: 0;
            cursor: pointer;
            font-family: inherit;
        }

        .course-cart-feedback {
            min-height: 18px;
            text-align: center;
            color: #67e8e8;
            font-size: 11px;
            font-weight: 800;
        }

    
        .course-header-cart {
            position: relative;
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 12px;
            border-radius: 11px;
            background: #f1f5f7;
            color: #0b1f3a;
            text-decoration: none;
            font-size: 12px;
            font-weight: 850;
        }

        .course-header-cart svg {
            width: 18px;
            height: 18px;
        }

        .nav-cart-count {
            min-width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            border-radius: 999px;
            background: #0dbbc3;
            color: #fff;
            font-size: 9px;
            font-weight: 900;
        }

    
        .mobile-cart-bar {
            display: none;
        }

        @media (max-width: 780px) {
            body.course-view-page {
                padding-bottom: 88px;
            }

            .mobile-cart-bar {
                position: fixed;
                z-index: 9998;
                right: 12px;
                bottom: calc(12px + env(safe-area-inset-bottom));
                left: 12px;

                min-height: 64px;
                align-items: center;
                justify-content: space-between;
                gap: 14px;

                padding: 10px 11px 10px 16px;

                border: 1px solid rgba(255,255,255,.12);
                border-radius: 17px;

                background: rgba(11,31,58,.97);
                box-shadow: 0 16px 40px rgba(11,31,58,.28);

                color: #fff;
                text-decoration: none;

                -webkit-backdrop-filter: blur(14px);
                backdrop-filter: blur(14px);
            }

            .mobile-cart-bar:not([hidden]) {
                display: flex;
            }

            .mobile-cart-bar-info {
                display: flex;
                min-width: 0;
                flex-direction: column;
                gap: 2px;
            }

            .mobile-cart-bar-label {
                color: rgba(255,255,255,.6);
                font-size: 10px;
                font-weight: 750;
            }

            .mobile-cart-bar-info strong {
                color: #fff;
                font-size: 17px;
                font-weight: 900;
                line-height: 1.2;
            }

            .mobile-cart-bar-action {
                min-height: 42px;
                display: inline-flex;
                flex: 0 0 auto;
                align-items: center;
                justify-content: center;
                gap: 7px;

                padding: 0 15px;

                border-radius: 12px;
                background: #0dbbc3;

                color: #fff;
                font-size: 12px;
                font-weight: 900;
            }
        }

/* ===== from account_.html (block 1) ===== */
.account-loading[hidden] {
    display: none !important;
}

.account-loading {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 36px 20px;
    text-align: center;
    border-radius: 24px;
}

.account-loading__spinner {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-loading__spinner::before,
.account-loading__spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid currentColor;
}

.account-loading__spinner::before {
    opacity: 0.12;
}

.account-loading__spinner::after {
    border-top-color: transparent;
    border-right-color: transparent;
    animation: account-loading-spin 0.9s linear infinite;
}

.account-loading__spinner span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    transform-origin: 34px 34px;
    animation: account-loading-dot 1.4s ease-in-out infinite;
}

.account-loading__spinner span:nth-child(1) {
    transform: rotate(0deg) translateX(27px);
    animation-delay: 0s;
}

.account-loading__spinner span:nth-child(2) {
    transform: rotate(90deg) translateX(27px);
    animation-delay: 0.15s;
}

.account-loading__spinner span:nth-child(3) {
    transform: rotate(180deg) translateX(27px);
    animation-delay: 0.3s;
}

.account-loading__spinner span:nth-child(4) {
    transform: rotate(270deg) translateX(27px);
    animation-delay: 0.45s;
}

.account-loading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.account-loading__content strong {
    font-size: 17px;
    font-weight: 800;
}

.account-loading__content span {
    font-size: 13px;
    opacity: 0.62;
}

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

@keyframes account-loading-dot {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* ===== from account_.html (block 2) ===== */
/* ============================================================
   Installment warning on course cards
   ============================================================ */

.account-course-installment-warning {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 14px 0 2px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff4f4;
    border: 1px solid rgba(201, 74, 74, 0.20);
    color: #a83f3f;
    animation: account-installment-warning-in 0.35s ease both;
}

.account-course-installment-warning__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #c94a4a;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.account-course-installment-warning__copy {
    min-width: 0;
}

.account-course-installment-warning__copy strong {
    display: block;
    margin-bottom: 2px;
    color: #a83f3f;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 850;
}

.account-course-installment-warning__copy span {
    display: block;
    color: #8d5555;
    font-size: 11px;
    line-height: 1.65;
}

@keyframes account-installment-warning-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   Installment timeline — subtle entrance animation
   ============================================================ */

.account-installment-timeline {
    overflow: hidden;
}

.account-installment-row {
    opacity: 0;
    transform: translateY(7px);
    animation: account-installment-row-in 0.38s ease forwards;
}

.account-installment-row:nth-child(1) {
    animation-delay: 0.04s;
}

.account-installment-row:nth-child(2) {
    animation-delay: 0.10s;
}

.account-installment-row:nth-child(3) {
    animation-delay: 0.16s;
}

.account-installment-row:nth-child(4) {
    animation-delay: 0.22s;
}

.account-installment-row:nth-child(5) {
    animation-delay: 0.28s;
}

.account-installment-row--paid .account-installment-row__dot {
    animation: account-installment-paid-pop 0.42s ease 0.18s both;
}

.account-installment-row--overdue .account-installment-row__dot {
    animation: account-installment-overdue-pulse 1.8s ease-in-out 0.45s 1;
}

@keyframes account-installment-row-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes account-installment-paid-pop {
    0% {
        transform: scale(0.82);
    }

    65% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes account-installment-overdue-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 74, 74, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(201, 74, 74, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-course-installment-warning,
    .account-installment-row,
    .account-installment-row--paid .account-installment-row__dot,
    .account-installment-row--overdue .account-installment-row__dot {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .account-course-installment-warning {
        align-items: flex-start;
    }

    .account-course-installment-warning__icon {
        margin-top: 1px;
    }
}

/* ============================================================
   Installments
   ============================================================ */

.account-installments-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.account-installments-summary__item {
    min-width: 0;
    padding: 16px 17px;
    border: 1px solid rgba(0, 180, 190, 0.12);
    border-radius: 18px;
    background: rgba(0, 180, 190, 0.035);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.account-installments-summary__item span {
    font-size: 12px;
    opacity: 0.58;
}

.account-installments-summary__item strong {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
}

.account-installments-summary__item--due {
    background: rgba(220, 70, 70, 0.055);
    border-color: rgba(220, 70, 70, 0.16);
}

.account-installments-summary__item--due strong {
    color: #c94a4a;
}

.account-installments-list {
    display: grid;
    gap: 14px;
}

.account-installment-card {
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.075);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
}

.account-installment-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.account-installment-card__eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.55;
}

.account-installment-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 850;
}

.account-installment-card__amount {
    text-align: left;
    white-space: nowrap;
}

.account-installment-card__amount span {
    display: block;
    font-size: 11px;
    opacity: 0.55;
    margin-bottom: 4px;
}

.account-installment-card__amount strong {
    font-size: 18px;
    font-weight: 850;
}

.account-installment-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 18px;
}

.account-installment-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #08aeb8;
    transition: width 0.35s ease;
}

.account-installment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.account-installment-meta span {
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
    font-size: 12px;
}

.account-installment-due {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 15px;
    background: rgba(0, 180, 190, 0.055);
    border: 1px solid rgba(0, 180, 190, 0.12);
}

.account-installment-due--overdue {
    background: rgba(220, 70, 70, 0.055);
    border-color: rgba(220, 70, 70, 0.15);
}

.account-installment-due__text {
    min-width: 0;
}

.account-installment-due__text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.account-installment-due__text span {
    display: block;
    font-size: 12px;
    opacity: 0.58;
}

.account-installment-payment-button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 15px;
    background: #08aeb8;
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.account-installment-payment-button:hover {
    transform: translateY(-1px);
}

.account-installment-payment-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.account-installment-timeline {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.account-installment-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
}

.account-installment-row__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.06);
}

.account-installment-row--paid .account-installment-row__dot {
    background: rgba(0, 180, 190, 0.13);
    color: #08aeb8;
}

.account-installment-row--overdue .account-installment-row__dot {
    background: rgba(220, 70, 70, 0.12);
    color: #c94a4a;
}

.account-installment-row__copy {
    min-width: 0;
}

.account-installment-row__copy strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.account-installment-row__copy span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.55;
}

.account-installment-row__amount {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .account-installments-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .account-installment-card {
        padding: 16px;
        border-radius: 18px;
    }

    .account-installment-card__header {
        flex-direction: column;
    }

    .account-installment-card__amount {
        text-align: right;
    }

    .account-installment-due {
        align-items: stretch;
        flex-direction: column;
    }

    .account-installment-payment-button {
        width: 100%;
    }

    .account-installment-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .account-installment-row__amount {
        grid-column: 2;
    }
}

/* ============================================================
   Course action cards
   ============================================================ */

.account-course-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.account-course-action {
    min-height: 82px !important;
    padding: 15px 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease !important;
}

.account-course-action:hover {
    transform: translateY(-2px) !important;
}

.account-course-action__icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.account-course-action__icon svg {
    width: 29px !important;
    height: 29px !important;
}

.account-course-action__copy {
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: right !important;
}

.account-course-action__copy strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.account-course-action__copy small {
    font-size: 12px !important;
    line-height: 1.45 !important;
    opacity: 0.62 !important;
}

.account-course-action__arrow {
    font-size: 20px !important;
    line-height: 1 !important;
    opacity: 0.55 !important;
    margin-right: auto !important;
}

.account-course-action--app {
    background: rgba(0, 180, 190, 0.07) !important;
    border: 1px solid rgba(0, 180, 190, 0.18) !important;
    color: inherit !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: right !important;
    font: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
}

.account-course-action--app:hover {
    background: rgba(0, 180, 190, 0.11) !important;
    box-shadow: 0 8px 24px rgba(0, 180, 190, 0.10) !important;
}

.account-course-action__icon--app {
    background: rgba(0, 180, 190, 0.14) !important;
    color: #08aeb8 !important;
    font-size: 18px !important;
    padding-right: 2px !important;
}

.account-course-action--whatsapp {
    background: rgba(37, 211, 102, 0.07) !important;
    border: 1px solid rgba(37, 211, 102, 0.20) !important;
    color: inherit !important;
}

.account-course-action--whatsapp:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12) !important;
}

.account-course-action__icon--whatsapp {
    background: #25D366 !important;
    color: white !important;
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.22) !important;
}

@media (max-width: 640px) {
    .account-course-actions {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .account-course-action {
        min-height: 76px !important;
    }
}

/* ===== from account_.html (block 3) ===== */
.account-app-cta {
    cursor: pointer;
}

/* ===== from account_.html (block 4) ===== */
/* ============================================================
   ACCOUNT PAGE — HEADER SPACING FIX
   Keep the global navbar unchanged.
   ============================================================ */

body.account-page {
    padding-top: 82px;
}

@media (max-width: 480px) {
    body.account-page {
        padding-top: 76px;
    }
}
