:root {
    --x3-bg: #09090d;
    --x3-bg-soft: #121218;
    --x3-bg-card: #16141d;
    --x3-border: rgba(255, 255, 255, 0.08);
    --x3-text: #ffffff;
    --x3-text-muted: #9f98b7;
    --x3-primary: #8a2bff;
    --x3-primary-2: #cf29d8;
    --x3-radius: 22px;
    --x3-shadow: 0 25px 70px rgba(138, 43, 255, 0.18);
}

.x3-learn-body {
    min-height: 100vh;
    margin: 0;
    color: #f8fafc;
    background: radial-gradient(circle at 58% 0%, rgba(138, 74, 255, 0.16), transparent 32rem), linear-gradient(180deg, #121018 0%, #07070a 48%, #050507 100%);
    font-family: var(--x3-font-family, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.x3-course-detail-hero {
    position: relative;
    padding: clamp(3rem, 6vw, 5.5rem) 0 3rem;
    overflow: hidden;
    background: radial-gradient(circle at 22% 12%, rgba(168, 85, 247, 0.18), transparent 32rem), radial-gradient(circle at 84% 0%, rgba(249, 115, 22, 0.08), transparent 26rem);
}

.x3-course-watch-detail {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
    background: radial-gradient(circle at 20% 8%, rgba(126, 58, 237, 0.16), transparent 32rem), radial-gradient(circle at 80% 0%, rgba(192, 38, 211, 0.08), transparent 30rem);
}

.x3-checkout-page {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
    background: radial-gradient(circle at 18% 0%, rgba(126, 58, 237, 0.16), transparent 32rem), radial-gradient(circle at 88% 8%, rgba(192, 38, 211, 0.08), transparent 28rem);
}

.x3-checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
    color: #b9b2ca;
    text-decoration: none;
    font-weight: 650;
}

    .x3-checkout-back:hover {
        color: #fff;
    }

.x3-checkout-title {
    margin-bottom: 1.8rem;
}

    .x3-checkout-title span {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        margin-bottom: 0.8rem;
        color: #b987ff;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        display: none;
    }

    .x3-checkout-title h1 {
        margin: 0;
        color: #fff;
        font-size: 30px;
        font-weight: 600;
        line-height: 1.12;
    }

.x3-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: clamp(1.35rem, 3vw, 2rem);
    align-items: start;
}

.x3-checkout-main {
    display: grid;
    gap: 1.4rem;
}

.x3-checkout-card,
.x3-checkout-summary,
.x3-checkout-owned {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.x3-checkout-card {
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.x3-checkout-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.3rem;
}

    .x3-checkout-card-head i {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        color: #fff;
        background: rgba(126, 58, 237, 0.28);
    }

    .x3-checkout-card-head h2,
    .x3-checkout-summary h2 {
        margin: 0;
        color: #fff;
        font-size: 22px;
        font-weight: 600;
    }

.x3-checkout-student-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

    .x3-checkout-student-grid label,
    .x3-checkout-coupon label {
        display: grid;
        gap: 0.55rem;
        color: #b9b2ca;
        font-weight: 650;
        margin-bottom: 10px;
    }

    .x3-checkout-student-grid input,
    .x3-checkout-coupon input {
        width: 100%;
        min-height: 58px;
        padding: 0 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        color: #fff;
        background: rgba(0, 0, 0, 0.34);
        outline: none;
    }

        .x3-checkout-student-grid input[readonly] {
            color: #d8d2e9;
            background: rgba(0, 0, 0, 0.22);
        }

.x3-checkout-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.x3-checkout-method {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 126px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #a7a1b8;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

    .x3-checkout-method input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .x3-checkout-method i {
        color: currentColor;
        font-size: 2rem;
    }

    .x3-checkout-method span {
        margin-top: 0.75rem;
        color: currentColor;
        font-weight: 750;
        text-align: center;
    }

    .x3-checkout-method.active,
    .x3-checkout-method:has(input:checked) {
        color: #d8b4fe;
        border-color: rgba(168, 85, 247, 0.85);
        background: rgba(126, 58, 237, 0.16);
        transform: translateY(-1px);
    }

.x3-checkout-method-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.4rem 0 0;
    color: #9f98af;
    font-weight: 700;
}

.x3-checkout-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.x3-checkout-transfer-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.x3-checkout-bank-list {
    display: grid;
    gap: 0.8rem;
}

.x3-checkout-bank-grid div {
    min-height: 86px;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
}

.x3-checkout-bank-list div {
    display: grid;
    align-content: center;
    min-height: 84px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
}

.x3-checkout-bank-grid span,
.x3-checkout-bank-list span,
.x3-checkout-transfer-code span {
    display: block;
    color: #9f98af;
    font-size: 0.9rem;
    font-weight: 650;
}

.x3-checkout-bank-grid strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 740;
}

.x3-checkout-bank-list strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 740;
}

.x3-checkout-transfer-code {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

    .x3-checkout-transfer-code button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        min-height: 58px;
        padding: 0 1rem;
        border: 1px solid rgba(168, 85, 247, 0.42);
        border-radius: 16px;
        color: #fff;
        background: rgba(126, 58, 237, 0.16);
    }

        .x3-checkout-transfer-code button strong {
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: 0.03em;
        }

        .x3-checkout-transfer-code button.is-copied {
            border-color: rgba(74, 222, 128, 0.55);
            background: rgba(22, 163, 74, 0.16);
        }

.x3-checkout-qr {
    display: grid;
    place-items: center;
    /* gap: 0.75rem; */
    margin: 1.2rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #fff;
}

    .x3-checkout-qr img {
        width: min(100%, 280px);
        aspect-ratio: 1;
        object-fit: contain;
    }

    .x3-checkout-qr p {
        margin: 0;
        color: #334155;
        font-weight: 750;
        text-align: center;
    }

.x3-checkout-qr-inline {
    margin: 0;
    min-height: 260px;
}

    .x3-checkout-qr-inline img {
        width: min(100%, 230px);
    }

.x3-checkout-payment-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.3rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 16px;
    color: #c9c3dc;
    background: rgba(126, 58, 237, 0.12);
    line-height: 1.5;
}

    .x3-checkout-payment-status > i {
        color: #c4b5fd;
        flex: 0 0 auto;
        animation: x3-spin 1s linear infinite;
    }

    .x3-checkout-payment-status span {
        color: #c9c3dc;
        font-weight: 600;
    }

    .x3-checkout-payment-status.is-paid {
        border-color: rgba(74, 222, 128, 0.45);
        background: rgba(22, 163, 74, 0.15);
    }

        .x3-checkout-payment-status.is-paid > i {
            color: #4ade80;
            animation: none;
        }

    .x3-checkout-payment-status.is-error {
        border-color: rgba(251, 113, 133, 0.42);
        background: rgba(190, 18, 60, 0.14);
    }

        .x3-checkout-payment-status.is-error > i {
            color: #fb7185;
            animation: none;
        }

.x3-checkout-refresh-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 46px;
    margin-top: 0.9rem;
    padding: 0 1rem;
    border: 1px solid rgba(196, 181, 253, 0.26);
    border-radius: 999px;
    color: #f5f3ff;
    background: rgba(255, 255, 255, 0.055);
    font-weight: 750;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

    .x3-checkout-refresh-status:hover,
    .x3-checkout-refresh-status:focus {
        border-color: rgba(196, 181, 253, 0.48);
        background: rgba(126, 58, 237, 0.18);
    }

    .x3-checkout-refresh-status:disabled {
        opacity: 0.62;
        cursor: wait;
    }

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

.x3-checkout-method-note i {
    color: #4ade80;
}

.x3-checkout-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 62px;
    margin-top: 1.4rem;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    box-shadow: 0 20px 50px rgba(126, 58, 237, 0.36);
    font-size: 1rem;
    font-weight: 800;
}

.x3-checkout-summary {
    position: sticky;
    top: 112px;
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.x3-checkout-course {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1rem;
    margin: 1.4rem 0;
}

    .x3-checkout-course img,
    .x3-checkout-course-thumb {
        width: 112px;
        height: 96px;
        border-radius: 16px;
    }

    .x3-checkout-course img {
        object-fit: cover;
    }

.x3-checkout-course-thumb {
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(126, 58, 237, 0.24);
}

.x3-checkout-course strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.x3-checkout-course span,
.x3-checkout-course em {
    display: block;
    margin-top: 0.35rem;
    color: #9f98af;
    font-style: normal;
    font-weight: 500;
}

.x3-checkout-course em {
    color: #b987ff;
    font-size: 1.05rem;
    font-weight: 700;
}

.x3-checkout-price-lines {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-checkout-price-lines div,
    .x3-checkout-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

        .x3-checkout-price-lines span,
        .x3-checkout-total span {
            color: #a7a1b8;
            font-weight: normal;
        }

    .x3-checkout-price-lines strong {
        color: #c9c3dc;
        font-weight: 700;
    }

        .x3-checkout-price-lines strong.discount {
            color: #4ade80;
        }

.x3-checkout-coupon {
    margin-top: 1.2rem;
}

.x3-checkout-coupon-control {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

    .x3-checkout-coupon-control > i {
        position: absolute;
        left: 1rem;
        top: 50%;
        color: #a78bfa;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .x3-checkout-coupon-control input {
        padding-left: 2.7rem;
    }

.x3-checkout-coupon button {
    min-width: 108px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 750;
}

.x3-checkout-coupon p {
    margin: 0.65rem 0 0;
    color: #4ade80;
    font-weight: 600;
}

.x3-checkout-total {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-checkout-total strong {
        color: #b987ff;
        font-size: 25px;
        font-weight: 700;
    }

.x3-checkout-guarantee {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.85rem;
    margin-top: 1.3rem;
    padding: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    color: #c9c3dc;
    background: rgba(126, 58, 237, 0.12);
}

    .x3-checkout-guarantee i {
        color: #c4b5fd;
        margin-top: 0.2rem;
    }

    .x3-checkout-guarantee strong {
        color: #fff;
        font-weight: 750;
    }

    .x3-checkout-guarantee p {
        margin: 0.35rem 0 0;
        color: #b9b2ca;
        line-height: 1.55;
    }

.x3-checkout-validation:not(:empty),
.x3-field-validation:not(:empty) {
    display: block;
    margin-bottom: 1rem;
    color: #fecaca;
    font-weight: 650;
}

.x3-checkout-alert,
.x3-checkout-owned {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    color: #d8d2e9;
}

    .x3-checkout-alert i,
    .x3-checkout-owned > i {
        color: #a78bfa;
    }

.x3-checkout-owned {
    justify-content: space-between;
}

    .x3-checkout-owned h2 {
        margin: 0;
        color: #fff;
        font-weight: 750;
    }

    .x3-checkout-owned p {
        margin: 0.35rem 0 0;
        color: #b9b2ca;
    }

    .x3-checkout-owned a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 1.2rem;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(90deg, #7c3aed, #c026d3);
        font-weight: 750;
        text-decoration: none;
        white-space: nowrap;
    }

@media (max-width: 1199.98px) {
    .x3-checkout-grid {
        grid-template-columns: 1fr;
    }

    .x3-checkout-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .x3-checkout-card,
    .x3-checkout-summary,
    .x3-checkout-owned {
        border-radius: 20px;
    }

    .x3-checkout-student-grid,
    .x3-checkout-bank-grid,
    .x3-checkout-transfer-layout,
    .x3-checkout-methods,
    .x3-checkout-course,
    .x3-checkout-coupon-control {
        grid-template-columns: 1fr;
    }

    .x3-checkout-qr-inline {
        min-height: auto;
    }

    .x3-checkout-coupon-control > i {
        top: 29px;
    }

    .x3-checkout-course img,
    .x3-checkout-course-thumb {
        width: 100%;
        height: 180px;
    }

    .x3-checkout-owned {
        align-items: flex-start;
        flex-direction: column;
    }

        .x3-checkout-owned a {
            width: 100%;
        }
}

.x3-course-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: #918ba4;
    font-size: 0.95rem;
    font-weight: 750;
}

    .x3-course-breadcrumb a {
        color: #c9c3dc;
        text-decoration: none;
        transition: color 0.18s ease;
    }

        .x3-course-breadcrumb a:hover {
            color: #fff;
        }

    .x3-course-breadcrumb > i {
        color: #6f687d;
        font-size: 0.72rem;
    }

    .x3-course-breadcrumb a i,
    .x3-course-breadcrumb span i {
        margin-right: 0.35rem;
        color: #a78bfa;
    }

    .x3-course-breadcrumb span {
        color: #fff;
    }

.x3-course-watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: clamp(1.2rem, 2vw, 1.8rem);
    align-items: start;
}

.x3-course-watch-main {
    min-width: 0;
}

.x3-course-watch-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background: #0f0e13;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

    .x3-course-watch-player::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.8) 100%);
    }

    .x3-course-watch-player iframe,
    .x3-course-watch-player img,
    .x3-course-watch-empty {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .x3-course-watch-player img {
        display: block;
        object-fit: cover;
        filter: brightness(0.68);
    }

.x3-course-watch-empty {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    color: #d8d2e9;
    background: linear-gradient(135deg, rgba(38, 24, 57, 0.9), rgba(8, 8, 12, 0.96));
    font-weight: 900;
}

    .x3-course-watch-play,
    .x3-course-watch-empty i {
        display: grid;
        place-items: center;
        width: clamp(78px, 8vw, 104px);
        height: clamp(78px, 8vw, 104px);
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #7c3aed, #9333ea);
        box-shadow: 0 20px 55px rgba(126, 58, 237, 0.42);
        font-size: 2rem;
    }

.x3-course-watch-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.x3-course-watch-actions button:hover {
    color: #fff;
    background: rgba(126, 58, 237, 0.5);
    border-color: rgba(196, 181, 253, 0.45);
    transform: translateY(-1px);
}

.x3-course-watch-actions button.is-copied {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(22, 163, 74, 0.22);
}

.x3-course-watch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.45rem 0 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-course-watch-head h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.45rem, 2vw, 2rem);
        font-weight: 950;
    }

    .x3-course-watch-head p {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.45rem 0 0;
        color: #9690a8;
        font-weight: 700;
    }

.x3-course-watch-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.x3-course-watch-buy,
.x3-course-watch-purchase a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    box-shadow: 0 18px 42px rgba(126, 58, 237, 0.36);
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

    .x3-course-watch-buy:hover,
    .x3-course-watch-purchase a:hover {
        color: #fff;
        filter: brightness(1.06);
    }

.x3-course-watch-actions button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #d8d2e9;
    background: rgba(255, 255, 255, 0.08);
}

.x3-course-watch-tabs {
    margin-top: 1.55rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

    .x3-course-watch-tabs .nav {
        gap: 0.55rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .x3-course-watch-tabs .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 42px;
        padding: 0 0.95rem;
        border-radius: 14px;
        color: #a7a1b8;
        font-weight: 850;
    }

        .x3-course-watch-tabs .nav-link.active {
            color: #e9ddff;
            background: rgba(126, 58, 237, 0.22);
        }

.x3-course-watch-tab-content {
    padding-top: 1.45rem;
}

    .x3-course-watch-tab-content h3 {
        margin: 0 0 1rem;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 950;
    }

    .x3-course-watch-tab-content p,
    .x3-course-watch-richtext {
        color: #c8c1d9;
        font-size: 1rem;
        line-height: 1.8;
    }

        .x3-course-watch-richtext p:last-child {
            margin-bottom: 0;
        }

.x3-course-watch-instructor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.x3-course-watch-avatar {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    color: #fff;
    background: rgba(126, 58, 237, 0.35);
}

.x3-course-watch-instructor strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
}

    .x3-course-watch-instructor strong span {
        display: inline-flex;
        margin-left: 0.4rem;
        padding: 0.18rem 0.48rem;
        border-radius: 999px;
        color: #d8b4fe;
        background: rgba(126, 58, 237, 0.22);
        font-size: 0.72rem;
        text-transform: uppercase;
    }

.x3-course-watch-instructor p {
    margin: 0.3rem 0 0;
}

.x3-course-watch-benefits {
    display: grid;
    gap: 0.85rem;
}

    .x3-course-watch-benefits div {
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        gap: 0.85rem;
        padding: 0.95rem;
        border-radius: 16px;
        color: #d8d2e9;
        background: rgba(255, 255, 255, 0.055);
        font-weight: 750;
    }

    .x3-course-watch-benefits i {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        color: #fff;
        background: rgba(126, 58, 237, 0.32);
    }

.x3-course-watch-sidebar {
    position: sticky;
    top: 108px;
    overflow: hidden;
    max-height: calc(100vh - 132px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(18, 17, 23, 0.94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.x3-course-watch-sidebar-head {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-course-watch-sidebar-head h2 {
        margin: 0 0 1rem;
        color: #fff;
        font-size: 1.18rem;
        font-weight: 950;
    }

    .x3-course-watch-sidebar-head label {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 44px;
        padding: 0 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 13px;
        color: #817b91;
        background: rgba(0, 0, 0, 0.34);
    }

    .x3-course-watch-sidebar-head input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        color: #fff;
        background: transparent;
    }

.x3-course-watch-sections {
    max-height: calc(100vh - 450px);
    overflow: auto;
}

    .x3-course-watch-sections details {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .x3-course-watch-sections summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.15rem;
        cursor: pointer;
        list-style: none;
        background: rgba(255, 255, 255, 0.075);
    }

        .x3-course-watch-sections summary::-webkit-details-marker {
            display: none;
        }

        .x3-course-watch-sections summary strong {
            display: block;
            color: #fff;
            font-weight: 950;
            line-height: 1.35;
        }

        .x3-course-watch-sections summary small {
            display: block;
            margin-top: 0.22rem;
            color: #898397;
            font-weight: 750;
        }

        .x3-course-watch-sections summary i {
            color: #c4b5fd;
            transition: transform 0.18s ease;
        }

    .x3-course-watch-sections details[open] summary i {
        transform: rotate(180deg);
    }

.x3-course-watch-lesson {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

    .x3-course-watch-lesson:first-child {
        border-left-color: #8b5cf6;
        background: rgba(126, 58, 237, 0.15);
    }

.x3-course-watch-lesson-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #b4aec3;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

    .x3-course-watch-lesson-icon.preview {
        color: #4ade80;
        border-color: rgba(74, 222, 128, 0.55);
    }

.x3-course-watch-lesson-copy {
    min-width: 0;
}

    .x3-course-watch-lesson-copy strong {
        display: block;
        color: #e9e4f4;
        font-weight: 850;
        line-height: 1.35;
    }

    .x3-course-watch-lesson-copy small {
        display: -webkit-box;
        margin-top: 0.28rem;
        overflow: hidden;
        color: #958fa7;
        font-weight: 650;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.x3-course-watch-lesson-time {
    color: #8f889d;
    font-size: 0.84rem;
    font-weight: 750;
    white-space: nowrap;
}

    .x3-course-watch-lesson-time em {
        display: block;
        width: fit-content;
        margin-top: 0.28rem;
        padding: 0.12rem 0.4rem;
        border-radius: 999px;
        color: #bbf7d0;
        background: rgba(34, 197, 94, 0.16);
        font-size: 0.68rem;
        font-style: normal;
        text-transform: uppercase;
    }

.x3-course-watch-purchase {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.16), transparent 16rem), rgba(0, 0, 0, 0.18);
}

    .x3-course-watch-purchase div {
        display: flex;
        align-items: baseline;
        gap: 0.65rem;
    }

    .x3-course-watch-purchase strong {
        color: #fff;
        font-size: 1.6rem;
        font-weight: 950;
    }

    .x3-course-watch-purchase span {
        color: #8f889d;
        font-weight: 850;
        text-decoration: line-through;
    }

@media (max-width: 1199.98px) {
    .x3-course-watch-grid {
        grid-template-columns: 1fr;
    }

    .x3-course-watch-sidebar {
        position: static;
        max-height: none;
    }

    .x3-course-watch-sections {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .x3-course-watch-player,
    .x3-course-watch-tabs,
    .x3-course-watch-sidebar {
        border-radius: 16px;
    }

    .x3-course-watch-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .x3-course-watch-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .x3-course-watch-buy {
        width: 100%;
    }

    .x3-course-watch-tabs {
        padding: 1rem;
    }

        .x3-course-watch-tabs .nav {
            display: grid;
            grid-template-columns: 1fr;
        }

        .x3-course-watch-tabs .nav-link {
            justify-content: center;
        }

    .x3-course-watch-lesson {
        grid-template-columns: 30px 1fr;
    }

    .x3-course-watch-lesson-time {
        grid-column: 2;
    }
}

.x3-course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: clamp(1.4rem, 3vw, 2rem);
    align-items: start;
}

.x3-course-detail-main,
.x3-course-detail-card,
.x3-course-detail-panel,
.x3-course-detail-cta {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.x3-course-detail-main {
    padding: clamp(1.3rem, 2.4vw, 2rem);
    border-radius: 28px;
}

.x3-course-detail-kicker,
.x3-course-detail-section-head span,
.x3-course-detail-cta span {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: #b987ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.x3-course-detail-main h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    font-weight: 950;
    line-height: 1.04;
}

.x3-course-detail-lead {
    max-width: 780px;
    margin: 1rem 0 0;
    color: #cbc4df;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

.x3-course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
}

    .x3-course-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 38px;
        padding: 0 0.8rem;
        border-radius: 999px;
        color: #d8d2e9;
        background: rgba(255, 255, 255, 0.08);
        font-weight: 700;
    }

    .x3-course-detail-meta i {
        color: #a78bfa;
    }

.x3-course-detail-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #0d0c11;
}

    .x3-course-detail-preview iframe,
    .x3-course-detail-preview img,
    .x3-course-detail-preview-empty {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .x3-course-detail-preview img {
        display: block;
        object-fit: cover;
    }

.x3-course-detail-preview-empty {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    color: #d8d2e9;
    background: linear-gradient(135deg, rgba(38, 24, 57, 0.9), rgba(8, 8, 12, 0.96));
    font-weight: 900;
}

    .x3-course-detail-preview-empty i,
    .x3-course-detail-play {
        display: grid;
        place-items: center;
        width: 82px;
        height: 82px;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #7c3aed, #c026d3);
        box-shadow: 0 18px 44px rgba(126, 58, 237, 0.38);
    }

.x3-course-detail-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

.x3-course-detail-card {
    position: sticky;
    top: 108px;
    padding: 1.35rem;
    border-radius: 26px;
}

.x3-course-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .x3-course-detail-price strong {
        color: #fff;
        font-size: clamp(2rem, 3vw, 2.8rem);
        font-weight: 950;
    }

    .x3-course-detail-price span {
        color: #8b879d;
        font-size: 1.05rem;
        font-weight: 800;
        text-decoration: line-through;
    }

.x3-course-detail-buy,
.x3-course-detail-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.x3-course-detail-buy {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    box-shadow: 0 18px 42px rgba(126, 58, 237, 0.34);
}

    .x3-course-detail-buy:hover {
        color: #fff;
        filter: brightness(1.06);
    }

.x3-course-detail-outline {
    margin-top: 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

    .x3-course-detail-outline:hover {
        color: #fff;
        border-color: rgba(168, 85, 247, 0.45);
        background: rgba(168, 85, 247, 0.15);
    }

.x3-course-detail-includes {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-course-detail-includes h2 {
        margin: 0 0 0.9rem;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .x3-course-detail-includes ul {
        display: grid;
        gap: 0.78rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .x3-course-detail-includes li {
        display: grid;
        grid-template-columns: 26px 1fr;
        gap: 0.7rem;
        color: #d8d2e9;
        font-weight: 700;
    }

    .x3-course-detail-includes i {
        color: #a78bfa;
        margin-top: 0.18rem;
    }

.x3-course-detail-content {
    padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.x3-course-detail-two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: clamp(1.4rem, 3vw, 2rem);
}

.x3-course-detail-panel {
    padding: clamp(1.35rem, 2.4vw, 2rem);
    border-radius: 26px;
}

.x3-course-detail-section-head h2,
.x3-course-detail-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 950;
    line-height: 1.12;
}

.x3-course-detail-richtext,
.x3-course-detail-muted {
    color: #cbc4df;
    font-size: 1.02rem;
    line-height: 1.85;
}

    .x3-course-detail-richtext p:last-child {
        margin-bottom: 0;
    }

    .x3-course-detail-richtext strong {
        color: #fff;
    }

.x3-course-detail-benefits {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

    .x3-course-detail-benefits div {
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 0.9rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.045);
    }

    .x3-course-detail-benefits i {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        grid-row: span 2;
        border-radius: 14px;
        color: #fff;
        background: rgba(126, 58, 237, 0.32);
    }

    .x3-course-detail-benefits strong {
        color: #fff;
        font-weight: 900;
    }

    .x3-course-detail-benefits p {
        margin: 0.25rem 0 0;
        color: #b9b2ca;
    }

.x3-course-detail-curriculum {
    display: grid;
    gap: 0.75rem;
}

    .x3-course-detail-curriculum details {
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.045);
    }

    .x3-course-detail-curriculum summary {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.1rem;
        cursor: pointer;
        list-style: none;
    }

        .x3-course-detail-curriculum summary::-webkit-details-marker {
            display: none;
        }

        .x3-course-detail-curriculum summary span {
            color: #fff;
            font-weight: 900;
        }

        .x3-course-detail-curriculum summary small {
            color: #918ba4;
            font-weight: 700;
        }

        .x3-course-detail-curriculum summary i {
            color: #a78bfa;
            transition: transform 0.18s ease;
        }

    .x3-course-detail-curriculum details[open] summary i {
        transform: rotate(180deg);
    }

.x3-course-detail-lessons {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-course-detail-lesson {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    color: #d8d2e9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

    .x3-course-detail-lesson:last-child {
        border-bottom: 0;
    }

    .x3-course-detail-lesson span {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        font-weight: 750;
    }

    .x3-course-detail-lesson i {
        color: #a78bfa;
    }

    .x3-course-detail-lesson small {
        flex: 0 0 auto;
        color: #918ba4;
        font-weight: 700;
    }

    .x3-course-detail-lesson em {
        margin-left: 0.5rem;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        color: #bbf7d0;
        background: rgba(34, 197, 94, 0.16);
        font-size: 0.72rem;
        font-style: normal;
        text-transform: uppercase;
    }

.x3-course-detail-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.2rem;
    align-items: center;
    margin-top: 2rem;
    padding: clamp(1.3rem, 2.4vw, 2rem);
    border-radius: 26px;
}

    .x3-course-detail-cta p {
        max-width: 760px;
        margin: 0.8rem 0 0;
        color: #cbc4df;
        font-size: 1.05rem;
        line-height: 1.75;
    }

@media (max-width: 1199.98px) {
    .x3-course-detail-grid,
    .x3-course-detail-two-col {
        grid-template-columns: 1fr;
    }

    .x3-course-detail-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .x3-course-detail-hero {
        padding-top: 2rem;
    }

    .x3-course-detail-main,
    .x3-course-detail-card,
    .x3-course-detail-panel,
    .x3-course-detail-cta {
        border-radius: 20px;
    }

    .x3-course-detail-main {
        padding: 1rem;
    }

    .x3-course-detail-preview {
        border-radius: 16px;
    }

    .x3-course-detail-curriculum summary {
        grid-template-columns: 1fr auto;
    }

        .x3-course-detail-curriculum summary small {
            grid-column: 1 / -1;
            order: 3;
        }

    .x3-course-detail-lesson {
        flex-direction: column;
    }

    .x3-course-detail-cta {
        grid-template-columns: 1fr;
    }
}

.x3-learn-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 10, 0.88);
    backdrop-filter: blur(18px);
}

.x3-learn-topbar-left,
.x3-learn-topbar-right,
.x3-learn-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.x3-learn-back,
.x3-learn-feedback,
.x3-learn-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.x3-learn-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

    .x3-learn-back:hover,
    .x3-learn-feedback:hover,
    .x3-learn-icon-btn:hover {
        color: #fff;
        background: rgba(168, 85, 247, 0.22);
        border-color: rgba(168, 85, 247, 0.45);
        transform: translateY(-1px);
    }

.x3-learn-course-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.x3-learn-course-meta {
    margin-top: 0.15rem;
    color: #a7a4b8;
    font-size: 0.86rem;
}

.x3-learn-progress-mini {
    min-width: 210px;
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
}

    .x3-learn-progress-mini small {
        display: block;
        margin-top: 0.2rem;
        color: #a7a4b8;
        font-weight: 600;
    }

.x3-learn-progress-track {
    height: 7px;
    margin-top: 0.35rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

    .x3-learn-progress-track span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #7c3aed, #c026d3);
    }

.x3-learn-feedback {
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    gap: 0.55rem;
    font-weight: 800;
}

.x3-learn-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: clamp(1.2rem, 2vw, 1.8rem);
    width: min(1600px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem) 0 3rem;
}

.x3-learn-main {
    min-width: 0;
}

.x3-learn-player {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background: #111116;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

    .x3-learn-player::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.78) 100%);
    }

.x3-learn-player-frame,
.x3-learn-player-empty {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

.x3-learn-player-empty {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    color: #c9c3dc;
    background: linear-gradient(135deg, rgba(38, 24, 57, 0.9), rgba(10, 10, 14, 0.96));
    font-size: 1.05rem;
    font-weight: 800;
}

    .x3-learn-player-empty i {
        font-size: 2.8rem;
        color: #a855f7;
    }

.x3-learn-player-caption {
    position: absolute;
    left: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 1.8rem);
    z-index: 2;
}

    .x3-learn-player-caption h1 {
        max-width: 780px;
        margin: 0;
        color: #fff;
        font-size: clamp(1.7rem, 3vw, 2.7rem);
        font-weight: 900;
        line-height: 1.08;
    }

    .x3-learn-player-caption p {
        margin: 0.6rem 0 0;
        color: #d7d0e7;
        font-weight: 700;
    }

.x3-learn-lesson-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.8rem 0 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-learn-lesson-head h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.4rem, 2vw, 2rem);
        font-weight: 900;
    }

    .x3-learn-lesson-head p {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.55rem 0 0;
        color: #a7a4b8;
        font-weight: 600;
    }

.x3-learn-complete-form {
    margin: 0;
}

.x3-learn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    box-shadow: 0 18px 38px rgba(126, 58, 237, 0.34);
    font-weight: 900;
}

.x3-learn-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.x3-learn-tabs {
    margin-top: 1.6rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

    .x3-learn-tabs .nav {
        gap: 0.6rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .x3-learn-tabs .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        min-height: 44px;
        padding: 0 1rem;
        border-radius: 14px;
        color: #a7a4b8;
        font-weight: 800;
    }

        .x3-learn-tabs .nav-link.active {
            color: #e9ddff;
            background: rgba(126, 58, 237, 0.22);
        }

.x3-learn-tab-content {
    padding-top: 1.5rem;
}

    .x3-learn-tab-content h3 {
        margin: 0 0 1rem;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .x3-learn-tab-content p,
    .x3-learn-richtext {
        color: #c9c3dc;
        font-size: 1rem;
        line-height: 1.8;
    }

        .x3-learn-richtext :last-child {
            margin-bottom: 0;
        }

.x3-learn-instructor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-top: 1.6rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.x3-learn-instructor-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #334155);
    font-size: 1.5rem;
}

.x3-learn-instructor-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

    .x3-learn-instructor-name span {
        display: inline-flex;
        margin-left: 0.45rem;
        padding: 0.22rem 0.5rem;
        border-radius: 999px;
        color: #d8b4fe;
        background: rgba(126, 58, 237, 0.22);
        font-size: 0.72rem;
        text-transform: uppercase;
    }

.x3-learn-instructor p {
    margin: 0.35rem 0 0;
}

.x3-learn-note {
    width: 100%;
    resize: vertical;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    background: rgba(5, 5, 7, 0.72);
    outline: none;
}

    .x3-learn-note:focus {
        border-color: rgba(168, 85, 247, 0.65);
        box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
    }

.x3-learn-sidebar {
    position: sticky;
    top: 98px;
    align-self: start;
    max-height: calc(100vh - 124px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(17, 17, 22, 0.92);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.x3-learn-sidebar-head {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-learn-sidebar-head h2 {
        margin: 0 0 1rem;
        color: #fff;
        font-size: 1.2rem;
        font-weight: 900;
    }

.x3-learn-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 46px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #858197;
    background: rgba(0, 0, 0, 0.38);
}

    .x3-learn-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        color: #fff;
        background: transparent;
    }

        .x3-learn-search input::placeholder {
            color: #858197;
        }

.x3-learn-section-list {
    max-height: calc(100vh - 242px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.6) rgba(255, 255, 255, 0.08);
}

.x3-learn-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-learn-section summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.25rem;
        cursor: pointer;
        list-style: none;
        background: rgba(255, 255, 255, 0.07);
    }

        .x3-learn-section summary::-webkit-details-marker {
            display: none;
        }

        .x3-learn-section summary strong {
            display: block;
            color: #fff;
            font-weight: 900;
            line-height: 1.35;
        }

        .x3-learn-section summary small {
            display: block;
            margin-top: 0.25rem;
            color: #858197;
            font-weight: 700;
        }

        .x3-learn-section summary i {
            color: #c4b5fd;
            transition: transform 0.18s ease;
        }

    .x3-learn-section[open] summary i {
        transform: rotate(180deg);
    }

.x3-learn-lessons {
    padding: 0.25rem 0;
}

.x3-learn-lesson {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.8rem;
    padding: 0.9rem 1.25rem;
    color: #d8d3e5;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}

    .x3-learn-lesson:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.045);
    }

    .x3-learn-lesson.active {
        color: #fff;
        border-left-color: #8b5cf6;
        background: rgba(126, 58, 237, 0.16);
    }

.x3-learn-lesson-state {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 0.1rem;
    border-radius: 50%;
    color: #858197;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

    .x3-learn-lesson-state.done {
        color: #4ade80;
        border-color: rgba(74, 222, 128, 0.55);
    }

    .x3-learn-lesson-state.current {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, #7c3aed, #c026d3);
    }

.x3-learn-lesson-copy strong,
.x3-learn-lesson-copy small {
    display: block;
}

.x3-learn-lesson-copy strong {
    font-weight: 850;
    line-height: 1.35;
}

.x3-learn-lesson-copy small {
    margin-top: 0.35rem;
    color: #858197;
    font-weight: 700;
}

.x3-learn-lesson-copy em {
    display: inline-flex;
    margin-left: 0.5rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.2);
    font-size: 0.72rem;
    font-style: normal;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .x3-learn-shell {
        grid-template-columns: 1fr;
    }

    .x3-learn-sidebar {
        position: static;
        max-height: none;
    }

    .x3-learn-section-list {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .x3-learn-topbar,
    .x3-learn-lesson-head,
    .x3-learn-topbar-left,
    .x3-learn-topbar-right {
        align-items: flex-start;
        flex-direction: column;
    }

    .x3-learn-topbar {
        position: static;
    }

    .x3-learn-topbar-left {
        flex-direction: row;
        width: 100%;
    }

    .x3-learn-progress-mini {
        width: 100%;
        min-width: 0;
    }

    .x3-learn-feedback {
        width: 100%;
    }

    .x3-learn-shell {
        width: min(100% - 1rem, 1600px);
        padding-top: 0.75rem;
    }

    .x3-learn-player {
        min-height: 240px;
        border-radius: 16px;
    }

    .x3-learn-player-caption h1 {
        font-size: 1.55rem;
    }

    .x3-learn-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .x3-learn-complete-form,
    .x3-learn-primary {
        width: 100%;
    }

    .x3-learn-tabs {
        padding: 1rem;
        border-radius: 16px;
    }

        .x3-learn-tabs .nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .x3-learn-tabs .nav-link {
            justify-content: center;
            width: 100%;
        }

    .x3-learn-instructor {
        grid-template-columns: 1fr;
    }
}

html, body {
    min-height: 100%;
}

    body.x3-body,
    body.x3-auth-body {
        color: var(--x3-text);
        overflow-x: hidden;
        background: radial-gradient(circle at top right, rgba(207, 41, 216, 0.18), transparent 24rem), radial-gradient(circle at top left, rgba(138, 43, 255, 0.16), transparent 30rem), linear-gradient(180deg, #17131d 0%, #0b0b0f 16%, #07070a 100%);
    }

.x3-container {
    /*max-width: 1280px;*/
}

.x3-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(9, 9, 13, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.x3-logo {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.x3-site-logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
}

.x3-site-logo-image-footer {
    max-width: 100%;
    height: 90px;
}

.x3-chip,
.x3-pill,
.x3-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.x3-chip {
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.x3-pill {
    padding: 0.45rem 0.85rem;
    background: rgba(138, 43, 255, 0.16);
    color: #d9b2ff;
    border: 1px solid rgba(138, 43, 255, 0.28);
    font-size: 0.875rem;
}

.x3-tag {
    padding: 0.35rem 0.7rem;
    background: #fff;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
}

.x3-hero,
.x3-page-hero {
    padding: 6rem 0 4rem;
}

.x3-course-catalog-hero {
    padding: 5.5rem 0 3rem;
}

.x3-course-catalog-hero-copy {
    max-width: 54rem;
    margin: 0 auto;
    text-align: center;
}

    .x3-course-catalog-hero-copy h1 {
        margin: 1.2rem 0 1rem;
        font-size: clamp(3rem, 5vw, 4.4rem);
        font-weight: 800;
    }

        .x3-course-catalog-hero-copy h1 span {
            background: linear-gradient(135deg, #b587ff, #cf29d8);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .x3-course-catalog-hero-copy p {
        max-width: 46rem;
        margin: 0 auto;
        color: var(--x3-text-muted);
        font-size: 1.15rem;
    }

.x3-course-catalog-searchbar {
    max-width: 60rem;
    margin: 2.25rem auto 0;
}

.x3-course-catalog-searchfield,
.x3-course-catalog-sortbtn,
.x3-course-catalog-chip,
.x3-course-catalog-pagination .page-link {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.x3-course-catalog-searchfield {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.75rem;
    padding: 0 0.65rem 0 1.2rem;
    border-radius: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

    .x3-course-catalog-searchfield i {
        color: var(--x3-text-muted);
    }

    .x3-course-catalog-searchfield input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #fff;
        font-size: 1.05rem;
    }

        .x3-course-catalog-searchfield input::placeholder {
            color: var(--x3-text-muted);
        }

.x3-course-catalog-searchsubmit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--x3-primary), var(--x3-primary-2));
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 14px 26px rgba(138, 43, 255, 0.22);
}

    .x3-course-catalog-searchsubmit:hover {
        filter: brightness(1.06);
    }

.x3-course-catalog-shell {
    padding: 2.75rem 0 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.x3-course-catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.x3-course-catalog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--x3-text-muted);
}

    .x3-course-catalog-chip.active {
        background: #fff;
        color: #15131b;
        border-color: transparent;
        font-weight: 700;
    }

.x3-course-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.x3-course-catalog-result {
    color: var(--x3-text-muted);
    font-size: 1.05rem;
}

    .x3-course-catalog-result strong {
        color: #fff;
    }

.x3-course-catalog-sortbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    padding: 0 1rem;
    border-radius: 999px;
}

    .x3-course-catalog-sortbtn span {
        color: var(--x3-text-muted);
    }

.x3-course-catalog-sortmenu {
    background: #16141d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.4rem;
    margin-top: 0.6rem;
    min-width: 14rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

    .x3-course-catalog-sortmenu .dropdown-item {
        color: #fff;
        border-radius: 0.8rem;
        padding: 0.7rem 0.95rem;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

        .x3-course-catalog-sortmenu .dropdown-item:hover,
        .x3-course-catalog-sortmenu .dropdown-item:focus {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .x3-course-catalog-sortmenu .dropdown-item.active,
        .x3-course-catalog-sortmenu .dropdown-item:active {
            color: #fff;
            background: linear-gradient(135deg, var(--x3-primary), var(--x3-primary-2));
        }

.x3-course-catalog-pagination-wrap {
    margin-top: 3rem;
}

.x3-course-catalog-pagination {
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .x3-course-catalog-pagination .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.7rem;
        height: 2.7rem;
        border-radius: 0.95rem;
        color: #fff;
    }

    .x3-course-catalog-pagination .page-item.active .page-link {
        border-color: transparent;
        background: linear-gradient(135deg, var(--x3-primary), var(--x3-primary-2));
        box-shadow: 0 10px 24px rgba(138, 43, 255, 0.28);
    }

    .x3-course-catalog-pagination .page-item.disabled .page-link {
        opacity: 0.45;
    }

.x3-display {
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 1.03;
    font-weight: 800;
    max-width: 12ch;
}

.x3-lead,
.text-muted {
    color: var(--x3-text-muted) !important;
}

.x3-btn-primary {
    background: linear-gradient(135deg, var(--x3-primary), var(--x3-primary-2));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding-inline: 1.3rem;
}

.x3-highlight-card,
.x3-course-card,
.x3-auth-card,
.x3-user-card,
.x3-dashboard-sidebar {
    background: linear-gradient(180deg, rgba(22, 20, 29, 0.96), rgba(14, 13, 19, 0.96));
    border: 1px solid var(--x3-border);
    border-radius: var(--x3-radius);
    box-shadow: var(--x3-shadow);
}

.x3-highlight-card,
.x3-auth-card {
    padding: 2rem;
}

.x3-course-card {
    overflow: hidden;
    height: 100%;
}

.x3-course-media {
    position: relative;
    background: #110f17;
}

.x3-course-thumb {
    height: 240px;
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.14), transparent 7rem), linear-gradient(135deg, rgba(138, 43, 255, 0.9), rgba(41, 12, 73, 0.95));
}

.x3-course-image,
.x3-course-video,
.x3-course-iframe {
    display: block;
    width: 100%;
    height: 240px;
    background: #0d0b12;
    border: 0;
}

.x3-course-image,
.x3-course-video {
    object-fit: cover;
}

.x3-media-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.75rem;
}

.x3-section-kicker {
    color: #b887ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.x3-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.x3-divider {
    text-align: center;
    color: var(--x3-text-muted);
    margin: 1rem 0;
}

.x3-dashboard-sidebar {
    padding: 1.5rem;
    min-height: 100vh;
}

.x3-user-card {
    padding: 1.5rem;
}

.x3-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.x3-avatar-lg {
    width: 104px;
    height: 104px;
}

.x3-dashboard-sidebar .nav-link {
    color: #fff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 1rem;
}

    .x3-dashboard-sidebar .nav-link:hover {
        background: rgba(138, 43, 255, 0.16);
    }

.x3-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.x3-home-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 3.5rem;
}

.x3-home-page-stack {
    display: flex;
    flex-direction: column;
}

.x3-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 5, 8, 0.94) 0%, rgba(5, 5, 8, 0.72) 38%, rgba(5, 5, 8, 0.36) 64%, rgba(5, 5, 8, 0.78) 100%), radial-gradient(circle at top right, rgba(217, 56, 255, 0.18), transparent 22rem), var(--x3-hero-image) center/cover no-repeat;
    opacity: 0.98;
}

.x3-home-hero-video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

    .x3-home-hero-video iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100vw, 177.78vh);
        height: max(56.25vw, 100vh);
        border: 0;
        transform: translate(-50%, -50%) scale(1.04);
        filter: saturate(1.05) contrast(1.02);
    }

.x3-home-hero .x3-container,
.x3-home-section .x3-container,
.x3-home-brand-strip .x3-container,
.x3-home-cta-footer .x3-container {
    position: relative;
    z-index: 1;
}

.x3-home-hero-grid {
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2.2rem;
}

.x3-home-hero-copy {
    max-width: 780px;
}

.x3-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff315f, #8a2bff);
    box-shadow: 0 12px 30px rgba(138, 43, 255, 0.28);
}

.x3-home-title {
    max-width: 100%;
    margin: 0;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 0.94;
    font-weight: 700;
    letter-spacing: -0.04em;
}

    .x3-home-title span,
    .x3-home-head h2 span,
    .x3-home-value-main h2 span {
        display: block;
        color: #b66cff;
    }

.x3-home-desc {
    max-width: 34rem;
    margin: 1.5rem 0 0;
    color: #c7bfd7;
    font-size: 1.04rem;
    line-height: 1.8;
}

.x3-home-hero-actions,
.x3-home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.x3-home-outline-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding-inline: 1.3rem;
}

    .x3-home-outline-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

.x3-home-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.x3-home-mini-stat {
    min-width: 180px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(10, 10, 14, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

    .x3-home-mini-stat strong {
        display: block;
        margin-bottom: 0.4rem;
        color: #fff;
        font-size: 1.15rem;
    }

    .x3-home-mini-stat span {
        color: #b8b0ca;
        font-size: 0.92rem;
    }

.x3-home-mini-stats,
.x3-home-hero-side {
    display: none !important;
}

.x3-home-hero-side {
    display: flex;
    justify-content: flex-end;
}

.x3-home-float-card {
    width: min(100%, 380px);
    padding: 1.6rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(19, 18, 28, 0.84), rgba(13, 11, 18, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
}

.x3-home-float-kicker {
    color: #b887ff;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.73rem;
    font-weight: 800;
}

.x3-home-float-card h2 {
    margin: 0.8rem 0 0.7rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.x3-home-float-card p {
    margin: 0;
    color: #b7aec7;
    line-height: 1.75;
}

.x3-home-float-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    color: #fff;
}

.x3-home-section {
    padding: 1.6rem 0 2.8rem;
}

.x3-home-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .x3-home-head.centered {
        justify-content: center;
        text-align: center;
    }

    .x3-home-head h2,
    .x3-home-value-main h2,
    .x3-home-spotlight-content h2,
    .x3-home-cta-card h2 {
        margin: 0;
        font-size: 30px;
        font-weight: 700;
        letter-spacing: -0.03em;
    }

    .x3-home-head p,
    .x3-home-value-main p,
    .x3-home-spotlight-content p,
    .x3-home-cta-card p {
        margin: 0.55rem 0 0;
        color: #a7a0b8;
        max-width: 44rem;
    }

.x3-home-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    min-width: 118px;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

    .x3-home-link-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

    .x3-home-link-btn i {
        font-size: 0.9em;
        transition: transform 0.2s ease;
    }

    .x3-home-link-btn:hover i {
        transform: translateX(3px);
    }

.x3-home-course-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, rgba(21, 20, 30, 0.97), rgba(12, 11, 17, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .x3-home-course-card:hover {
        transform: translateY(-4px);
        color: #fff;
        border-color: rgba(182, 108, 255, 0.34);
        box-shadow: 0 28px 80px rgba(138, 43, 255, 0.14);
    }

    .x3-home-course-card.compact .x3-home-course-media img,
    .x3-home-course-card.compact .x3-course-thumb,
    .x3-home-course-card.compact .x3-home-course-poster {
        height: 230px;
    }

.x3-home-course-media {
    position: relative;
    overflow: hidden;
    background: #110f17;
}

    .x3-home-course-media.has-video,
    .x3-home-spotlight-media.has-video {
        background: #09090d;
    }

    .x3-home-course-media img,
    .x3-home-course-media .x3-course-thumb,
    .x3-home-course-poster {
        display: block;
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

.x3-home-course-poster {
    transition: opacity 0.24s ease, filter 0.24s ease, transform 0.35s ease;
}

.x3-home-video-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    transition: opacity 0.28s ease;
}

.x3-home-video-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    pointer-events: none;
    opacity: 0;
    background: transparent;
    transform: scale(1.03);
    transition: opacity 0.28s ease;
}

.x3-home-course-card.compact .x3-home-video-embed {
    min-height: 230px;
}

.x3-home-course-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.62));
}

.x3-home-course-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.x3-home-course-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

    .x3-home-course-badge.accent {
        background: linear-gradient(135deg, rgba(138, 43, 255, 0.92), rgba(207, 41, 216, 0.84));
        border-color: rgba(207, 41, 216, 0.32);
    }

.x3-home-course-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    border: 0;
}

.x3-home-course-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    background: rgba(10, 10, 16, 0.62);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

    .x3-home-course-close:hover {
        background: rgba(20, 20, 30, 0.88);
        transform: scale(1.05);
    }

.x3-home-course-play i,
.x3-home-play-badge i {
    transform: translateX(2px);
}

.x3-home-course-card.is-preview-active .x3-home-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.x3-home-course-card.is-preview-ready .x3-home-video-embed {
    opacity: 1;
    pointer-events: auto;
}

.x3-home-course-card.is-preview-active .x3-home-course-play {
    opacity: 0;
    pointer-events: none;
}

.x3-home-course-card.is-preview-active .x3-home-course-close {
    opacity: 1;
    pointer-events: auto;
}

.x3-home-course-card.is-preview-ready .x3-home-course-poster {
    opacity: 0;
}

.x3-home-course-card.is-preview-loading .x3-home-course-poster {
    filter: brightness(0.72);
}

.x3-home-course-body {
    padding: 1.35rem 1.35rem 1.45rem;
}

.x3-home-course-category {
    color: #bc8eff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.x3-home-course-body h3 {
    margin: 0.65rem 0 0.6rem;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.28;
}

.x3-home-course-body p {
    margin: 0;
    color: #a39cb3;
    line-height: 1.7;
    min-height: 4.8rem;
}

.x3-home-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

    .x3-home-course-footer strong {
        font-size: 1.1rem;
    }

    .x3-home-course-footer span {
        color: #e6dcff;
        font-weight: 700;
    }

.x3-home-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.x3-home-spotlight-media {
    position: relative;
    min-height: 430px;
    background: #120f17;
}

    .x3-home-spotlight-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .x3-home-spotlight-media .x3-home-video-embed {
        min-height: 430px;
    }

.x3-home-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.x3-home-spotlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem;
}

.x3-home-spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

    .x3-home-spotlight-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.62rem 0.92rem;
        border-radius: 999px;
        color: #ece6f8;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.94rem;
        line-height: 1;
    }

        .x3-home-spotlight-meta span i {
            color: #c887ff;
        }

.x3-home-spotlight-content p {
    color: #c8c2d7;
}

.x3-home-spotlight-price {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-top: 1.75rem;
}

    .x3-home-spotlight-price label {
        display: block;
        margin-bottom: 0.35rem;
        color: #a6a0b4;
        text-transform: uppercase;
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .x3-home-spotlight-price strong {
        font-size: 2rem;
    }

.x3-home-value-wrap {
    padding-top: 1rem;
}

.x3-home-value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(142, 45, 226, 0.12), transparent 18rem), linear-gradient(180deg, rgba(17, 16, 26, 0.98), rgba(10, 10, 14, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-home-value-main {
    min-height: 300px;
    padding: 2rem;
    border-radius: 22px;
    background: rgba(6, 6, 10, 0.52);
}

.x3-home-value-side {
    display: grid;
    gap: 1rem;
}

.x3-home-value-card {
    padding: 1.5rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

    .x3-home-value-card i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        border-radius: 14px;
        color: #dcb2ff;
        background: rgba(138, 43, 255, 0.18);
    }

    .x3-home-value-card h3 {
        margin: 0 0 0.5rem;
        font-size: 1.1rem;
        font-weight: 800;
    }

    .x3-home-value-card p {
        margin: 0;
        color: #9d97ab;
    }

.x3-home-category-card {
    position: relative;
    min-height: 275px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(9, 9, 12, 0.86)), var(--x3-category-image) center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-home-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(8, 8, 12, 0.78));
}

.x3-home-category-icon,
.x3-home-category-content {
    position: relative;
    z-index: 1;
}

.x3-home-category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

    .x3-home-category-icon img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .x3-home-category-icon i {
        color: #34145d;
    }

.x3-home-category-content {
    position: absolute;
    inset: auto 1.4rem 1.4rem;
}

    .x3-home-category-content h3 {
        margin: 0 0 0.55rem;
        font-size: 1.5rem;
        font-weight: 900;
    }

    .x3-home-category-content p {
        margin: 0 0 0.8rem;
        color: rgba(255, 255, 255, 0.78);
    }

    .x3-home-category-content span {
        color: #e5daff;
        font-weight: 700;
    }

.x3-home-brand-strip {
    padding: 2rem 0 2.8rem;
}

.x3-home-brand-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: #8d869d;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .x3-home-brand-row span {
        position: relative;
    }

        .x3-home-brand-row span::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            margin-right: 0.6rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #8a2bff, #cf29d8);
        }

.x3-home-testimonial {
    height: 100%;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 22, 34, 0.96), rgba(15, 14, 21, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-home-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    color: #ffc94d;
}

.x3-home-testimonial p {
    color: #b5aec4;
    line-height: 1.8;
    min-height: 8rem;
}

.x3-home-testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.3rem;
}

    .x3-home-testimonial-user img {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
    }

    .x3-home-testimonial-user strong {
        display: block;
        color: #fff;
    }

    .x3-home-testimonial-user span {
        color: #9f98b3;
        font-size: 0.9rem;
    }

.x3-home-cta-footer {
    padding: 0.8rem 0 0;
}

.x3-home-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(207, 41, 216, 0.18), transparent 16rem), linear-gradient(135deg, rgba(22, 20, 29, 0.98), rgba(12, 11, 17, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.x3-social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .x3-social-link:hover {
        transform: translateY(-2px);
        background: rgba(138, 43, 255, 0.22);
        border-color: rgba(207, 41, 216, 0.4);
    }

    .x3-social-link img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .x3-social-link span {
        font-weight: 700;
        line-height: 1;
    }

.x3-public-contact-social {
    margin-top: 1rem;
}

.x3-public-contact-social-label {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.x3-lesson-link {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.5rem;
}

    .x3-lesson-link.active,
    .x3-lesson-link:hover {
        background: rgba(138, 43, 255, 0.18);
    }

.form-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

    .form-control:focus {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        border-color: rgba(138, 43, 255, 0.6);
        box-shadow: 0 0 0 0.2rem rgba(138, 43, 255, 0.18);
    }

a {
    color: #e3cfff;
}

@media (max-width: 991.98px) {
    .x3-hero,
    .x3-page-hero {
        padding: 4rem 0 2.5rem;
    }

    .x3-home-hero-grid,
    .x3-home-spotlight,
    .x3-home-value-grid,
    .x3-home-cta-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .x3-home-hero {
        padding-top: 1rem;
    }

    .x3-home-hero-grid {
        min-height: auto;
        gap: 1.6rem;
    }

    .x3-home-head {
        align-items: start;
        flex-direction: column;
    }

    .x3-home-spotlight-media {
        min-height: 300px;
    }

    .x3-dashboard-sidebar {
        min-height: auto;
    }

    .x3-site-logo-image {
        max-width: 180px;
        height: 46px;
    }
}

.x3-admin-body {
    margin: 0;
    min-height: 100vh;
    color: #172033;
    background: #eef3fb;
}

.x3-admin-shell {
    display: grid;
    grid-template-columns: 292px 1fr;
    min-height: 100vh;
}

.x3-admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 1.35rem 1.1rem;
    color: white;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 22%), linear-gradient(180deg, #4a74ff 0%, #5635ff 44%, #731be8 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
}

.x3-admin-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.15rem 0.15rem 0.5rem;
}

.x3-admin-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #4162f4;
    background: white;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(17, 22, 42, 0.16);
}

.x3-admin-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.15;
}

.x3-admin-brand-subtitle,
.x3-admin-sidebar-note,
.x3-admin-footer-subtitle {
    color: rgba(255, 255, 255, 0.84);
}

.x3-admin-sidebar-note,
.x3-admin-sidebar-card,
.x3-admin-sidebar-footer {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.x3-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.x3-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

    .x3-admin-nav-link:hover,
    .x3-admin-nav-link.active {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 12px 24px rgba(31, 14, 78, 0.18);
        transform: translateX(2px);
    }

.x3-admin-nav-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.x3-admin-sidebar-card-title,
.x3-admin-footer-title,
.x3-admin-topbar-kicker,
.x3-admin-hero-kicker,
.x3-admin-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 800;
}

.x3-admin-mini-link {
    display: block;
    margin-top: 0.7rem;
    color: white;
    text-decoration: none;
    opacity: 0.92;
}

    .x3-admin-mini-link:hover {
        color: white;
        opacity: 1;
    }

.x3-admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.x3-admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #d9e2f0;
}

.x3-admin-topbar-kicker {
    color: #72809d;
}

.x3-admin-topbar-title {
    margin: 0.2rem 0 0;
    font-size: 1.9rem;
    font-weight: 900;
    color: #162033;
}

.x3-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.x3-admin-icon-btn,
.x3-admin-cta,
.x3-admin-action-btn,
.x3-admin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.18s ease;
}

.x3-admin-icon-btn {
    width: 48px;
    height: 48px;
    color: white;
    background: linear-gradient(135deg, #4f6df8, #5b2ef8);
    border: 1px solid rgba(67, 79, 214, 0.16);
    box-shadow: 0 12px 24px rgba(79, 109, 248, 0.22);
}

    .x3-admin-icon-btn.danger {
        background: linear-gradient(135deg, #5970ff, #4c3be8);
    }

    .x3-admin-icon-btn span {
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.06em;
    }

.x3-admin-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 0.85rem 0.45rem 0.5rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #d7e0ef;
    min-width: 220px;
}

.x3-admin-profile-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #58a7ff, #4470ff);
    font-size: 0.78rem;
    font-weight: 800;
}

.x3-admin-profile-name {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
    color: #152033;
}

.x3-admin-profile-role {
    font-size: 0.88rem;
    color: #6a7895;
}

.x3-admin-content {
    padding: 1.6rem;
}

.x3-admin-hero {
    margin-bottom: 1.4rem;
}

.x3-admin-hero-card,
.x3-admin-stat-card,
.x3-admin-panel-card,
.x3-admin-table-card {
    background: white;
    border: 1px solid #dce4f2;
    border-radius: 22px;
    box-shadow: 0 20px 46px rgba(38, 67, 143, 0.08);
}

.x3-admin-hero-card {
    padding: 1.8rem 1.9rem;
}

.x3-admin-hero-kicker {
    color: #63729a;
}

.x3-admin-hero-title {
    margin: 0.45rem 0 0.85rem;
    font-size: 2rem;
    font-weight: 900;
    color: #152033;
}

.x3-admin-hero-text,
.x3-admin-section-text,
.x3-admin-card-head p,
.x3-admin-stat-text,
.x3-admin-lesson-description,
.x3-admin-table-subtitle,
.x3-admin-empty,
.x3-admin-empty-card {
    color: #60708d;
}

.x3-admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.x3-admin-stat-card {
    padding: 1.45rem;
}

.x3-admin-stat-value {
    margin-top: 0.65rem;
    font-size: 1.32rem;
    font-weight: 900;
    color: #162033;
}

.x3-admin-inline-link {
    display: inline-block;
    margin-top: 0.95rem;
    color: #3652ec;
    text-decoration: none;
    font-weight: 800;
}

.x3-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.x3-admin-section-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: #162033;
}

.x3-admin-cta {
    padding: 0.88rem 1.2rem;
    color: white;
    background: linear-gradient(135deg, #4f6df8, #6026ff);
    border: none;
    box-shadow: 0 14px 28px rgba(79, 109, 248, 0.2);
}

    .x3-admin-cta.alt {
        color: #3652ec;
        background: #edf2ff;
        border: 1px solid #dce5ff;
        box-shadow: none;
    }

.x3-admin-table-card {
    overflow: hidden;
}

.x3-admin-table-wrap {
    overflow: auto;
}

.x3-admin-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

    .x3-admin-table thead th {
        padding: 1rem 1.15rem;
        font-size: 0.92rem;
        color: #465576;
        background: #f8fbff;
        border-bottom: 1px solid #dce4f2;
    }

    .x3-admin-table tbody td {
        padding: 1rem 1.15rem;
        color: #172033;
        border-bottom: 1px solid #edf1f7;
        vertical-align: top;
    }

    .x3-admin-table tbody tr:hover {
        background: #fbfdff;
    }

.x3-admin-table-title {
    font-weight: 800;
    color: #172033;
}

.x3-admin-action-row {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.x3-admin-action-btn {
    padding: 0.65rem 0.9rem;
    color: #2d4eeb;
    background: #edf2ff;
    border: 1px solid #dbe4ff;
}

    .x3-admin-action-btn.muted {
        color: #526180;
        background: #f4f7fc;
        border-color: #e2e8f3;
    }

.x3-admin-content-grid {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: 1.25rem;
}

.x3-admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.x3-admin-panel-card {
    padding: 1.45rem;
}

.x3-admin-card-head h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 900;
    color: #152033;
}

.x3-admin-card-head p {
    margin-top: 0.45rem;
    margin-bottom: 1rem;
}

.x3-admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.x3-admin-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #253552;
}

.x3-admin-body .form-control,
.x3-admin-body .form-select,
.x3-admin-body textarea.form-control {
    color: #172033;
    background: #f8fbff;
    border-color: #d8e1ee;
    border-radius: 14px;
    min-height: 48px;
}

.x3-admin-body textarea.form-control {
    min-height: auto;
}

    .x3-admin-body .form-control:focus,
    .x3-admin-body .form-select:focus,
    .x3-admin-body textarea.form-control:focus {
        color: #172033;
        background: white;
        border-color: #5970ff;
        box-shadow: 0 0 0 0.18rem rgba(89, 112, 255, 0.14);
    }

.x3-admin-form-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.x3-admin-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #32425f;
}

.x3-admin-submit {
    width: fit-content;
    padding: 0.85rem 1.2rem;
    color: white;
    background: linear-gradient(135deg, #4f6df8, #6026ff);
    border: none;
}

.x3-admin-empty-card {
    padding: 1.2rem;
    border-radius: 16px;
    background: #f6f8fc;
}

.x3-admin-outline-block {
    margin-top: 1rem;
    border: 1px solid #e5ebf5;
    border-radius: 18px;
    overflow: hidden;
}

.x3-admin-outline-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #f7f9fd;
    font-weight: 800;
    color: #162033;
}

    .x3-admin-outline-title span,
    .x3-admin-lesson-meta {
        color: #62708c;
    }

.x3-admin-lesson-row {
    padding: 1rem 1.15rem;
    border-top: 1px solid #edf1f7;
}

.x3-admin-lesson-title {
    font-weight: 800;
    color: #172033;
}

.x3-admin-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.55rem;
    font-size: 0.92rem;
}

.x3-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 0.45rem;
}

    .x3-admin-badge.success {
        color: #117a60;
        background: #e9faf2;
        border: 1px solid #cceedd;
    }

    .x3-admin-badge.warning {
        color: #bd6e10;
        background: #fff6e7;
        border: 1px solid #f6ddba;
    }

.x3-admin-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.x3-admin-progress-bar {
    width: 140px;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf6;
}

.x3-admin-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #37b26d, #49d17f);
}

.x3-admin-progress-label {
    min-width: 42px;
    font-weight: 800;
    color: #19233a;
}

.x3-public-navbar {
    padding: 5px 0;
    position: relative;
    overflow: visible;
}

    .x3-public-navbar .navbar-nav {
        gap: 0.55rem;
    }

    .x3-public-navbar .nav-link {
        padding: 0.65rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.82);
        border-radius: 999px;
        transition: color 0.2s ease, background 0.2s ease;
        text-transform: uppercase;
    }

    .x3-public-navbar .dropdown-toggle::after {
        margin-left: 0.45rem;
        vertical-align: 0.18rem;
    }

    .x3-public-navbar .nav-link:hover,
    .x3-public-navbar .nav-link:focus {
        color: white;
        background: rgba(255, 255, 255, 0.08);
    }

.x3-public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.x3-mobile-nav-icon {
    display: none;
}

.x3-public-icon-btn {
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    /* border-radius: 50%; */
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* background: rgba(255, 255, 255, 0.04); */
    transition: background 0.2s ease, transform 0.2s ease;
}

    .x3-public-icon-btn:hover {
        color: white;
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

.x3-public-mega-dropdown {
    position: relative;
}

    .x3-public-mega-dropdown::after {
        content: "";
        position: absolute;
        left: -10px;
        right: -10px;
        top: 100%;
        height: 18px;
    }

.x3-public-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    transform: none;
    width: min(900px, calc(100vw - 48px));
    margin-top: 0;
    padding: 1.55rem 1.55rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 34%), linear-gradient(135deg, rgba(17, 20, 31, 0.985), rgba(21, 22, 36, 0.98));
    backdrop-filter: blur(12px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    z-index: 1200;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    transform-origin: top left;
    transform: translateY(6px);
}

.x3-public-mega-dropdown:hover .x3-public-mega-menu,
.x3-public-mega-dropdown:focus-within .x3-public-mega-menu,
.x3-public-mega-dropdown.show .x3-public-mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.x3-public-mega-dropdown:hover > .nav-link,
.x3-public-mega-dropdown:focus-within > .nav-link,
.x3-public-mega-dropdown.show > .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.x3-public-mega-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-public-mega-head h3 {
        margin: 0;
        font-size: 1.12rem;
        font-weight: 800;
        color: white;
    }

    .x3-public-mega-head p {
        margin: 0.45rem 0 0;
        color: rgba(255, 255, 255, 0.48);
        font-size: 0.95rem;
        max-width: 520px;
        display: none;
    }

    .x3-public-mega-head a {
        color: #ad8cff;
        text-decoration: none;
        font-weight: 700;
        white-space: nowrap;
    }

.x3-public-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
}

.x3-public-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.1rem 1.05rem;
    border-radius: 24px;
    text-decoration: none;
    /* background: rgba(255, 255, 255, 0.035); */
    /* transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; */
    /* border: 1px solid rgba(255, 255, 255, 0.03); */
}

    .x3-public-mega-item:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.055);
        border-color: rgba(173, 140, 255, 0.14);
    }

.x3-public-mega-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    color: #bc9bff;
    flex: 0 0 auto;
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); */
}

    .x3-public-mega-icon.marketing {
        /* background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(236, 72, 153, 0.12)); */
        /* color: #ff6bb5; */
    }

    .x3-public-mega-icon.business {
        /* background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.12)); */
        color: #6b8dff;
    }

    .x3-public-mega-icon.content {
        /* background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(34, 197, 94, 0.12)); */
        color: #5de2c0;
    }

    .x3-public-mega-icon.starter {
        /* background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(99, 102, 241, 0.12)); */
        color: #ad8cff;
    }

    .x3-public-mega-icon.fnb {
        background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(245, 158, 11, 0.12));
        color: #ff9f43;
    }

    .x3-public-mega-icon.default {
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(99, 102, 241, 0.12));
        color: #c3cbe0;
    }

    .x3-public-mega-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .x3-public-mega-icon i {
        font-size: 1.45rem;
    }

.x3-public-mega-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 0.15rem;
}

    .x3-public-mega-copy strong {
        color: white;
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .x3-public-mega-copy small {
        margin-top: 0.28rem;
        color: rgba(255, 255, 255, 0.42);
        font-size: 0.9rem;
        line-height: 1.5;
    }

.x3-public-contact-chip {
    align-items: center;
    gap: 0.8rem;
    /* padding: 0.7rem 0.95rem; */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 18px;
    /* background: rgba(255, 255, 255, 0.05); */
    color: white;
}

    .x3-public-contact-chip i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(236, 72, 153, 0.9));
    }

    .x3-public-contact-chip small,
    .x3-public-contact-chip strong {
        display: block;
        line-height: 1.2;
    }

    .x3-public-contact-chip small {
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.72rem;
    }

    .x3-public-contact-chip strong {
        font-size: 0.94rem;
        font-weight: 500;
    }

.x3-public-login-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

    .x3-public-login-btn:hover,
    .x3-public-login-btn:focus {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }

.x3-home-course-rating {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    color: #7f8baa;
}

.x3-home-course-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: #7f8baa;
}

    .x3-home-course-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.38rem;
        white-space: nowrap;
    }

.x3-home-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #ffbe3d;
}

.x3-home-price-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .x3-home-price-stack strong {
        color: #151f35;
    }

    .x3-home-price-stack del {
        font-size: 0.82rem;
        color: #8b96b3;
    }

.x3-course-list-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
    text-decoration: none;
    color: #162033;
    background: #fff;
    border: 1px solid rgba(18, 25, 45, 0.08);
    box-shadow: 0 22px 60px rgba(11, 17, 33, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .x3-course-list-card:hover {
        color: #162033;
        transform: translateY(-6px);
        border-color: rgba(136, 79, 255, 0.22);
        box-shadow: 0 28px 72px rgba(33, 23, 65, 0.14);
    }

.x3-course-list-media {
    position: relative;
    overflow: hidden;
    background: #10101a;
    min-height: 360px;
}

.x3-course-list-body {
    display: block;
    text-decoration: none;
}

.x3-course-list-media.has-video {
    background: #0a0a12;
}

.x3-course-list-image,
.x3-course-list-thumb {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.x3-course-list-thumb {
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), transparent 9rem), linear-gradient(135deg, rgba(138, 43, 255, 0.92), rgba(30, 15, 62, 0.98));
}

.x3-course-list-video-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.x3-course-list-iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    background: #0a0a12;
    pointer-events: none;
    transform: scale(1.08);
}

.x3-course-list-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 18%), linear-gradient(180deg, rgba(8, 8, 12, 0.06) 0%, rgba(8, 8, 12, 0.14) 60%, rgba(8, 8, 12, 0.22) 100%);
    transition: opacity 0.35s ease, background 0.35s ease;
}

.x3-course-list-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.x3-course-list-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 15, 24, 0.12);
}

    .x3-course-list-badge.category {
        color: #383838;
        background: rgba(255, 255, 255, 0.94);
    }

    .x3-course-list-badge.accent {
        color: #fff;
        background: linear-gradient(135deg, #7f2bff, #cc33dd);
    }

.x3-course-list-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s ease, opacity 0.28s ease, background 0.28s ease;
    border: 1px solid rgba(255, 255, 255, 0.24);
    cursor: pointer;
}

    .x3-course-list-play.muted {
        background: rgba(255, 255, 255, 0.12);
    }

    .x3-course-list-play i {
        transform: translateX(2px);
    }

.x3-course-list-card:hover .x3-course-list-image,
.x3-course-list-card:hover .x3-course-list-thumb {
    transform: scale(1.035);
    filter: brightness(0.72);
}

.x3-course-list-card:hover .x3-course-list-overlay {
    opacity: 0.3;
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.04), rgba(8, 8, 12, 0.16));
}

.x3-course-list-card:hover .x3-course-list-play {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.88;
    background: rgba(255, 255, 255, 0.22);
}

.x3-course-list-card.is-preview-active .x3-course-list-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.x3-course-list-card.is-preview-active .x3-course-list-overlay,
.x3-course-list-card.is-preview-active .x3-course-list-play,
.x3-course-list-card.is-preview-active .x3-course-list-image,
.x3-course-list-card.is-preview-active .x3-course-list-thumb {
    opacity: 0;
}

.x3-course-list-card.is-preview-active .x3-course-list-image,
.x3-course-list-card.is-preview-active .x3-course-list-thumb {
    transform: scale(1.02);
}

.x3-course-list-body {
    padding: 1.55rem 1.55rem 1.6rem;
    background: #fff;
}

.x3-course-list-rating,
.x3-course-list-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
    font-size: 0.82rem;
    color: #7e8aa4;
}

    .x3-course-list-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.38rem;
        white-space: nowrap;
    }

.x3-course-list-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #f7b500;
}

.x3-course-list-body h3 {
    margin: 0;
    color: #15203b;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.42;
    min-height: 3.15rem;
}

.x3-course-list-instructor {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: #66748f;
    font-size: 0.95rem;
}

.x3-course-list-separator {
    height: 1px;
    margin: 1.15rem 0 1.2rem;
    background: #e9edf5;
}

.x3-course-list-price {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}

    .x3-course-list-price strong {
        color: #14213d;
        font-size: 1.15rem;
        font-weight: 900;
    }

    .x3-course-list-price del {
        color: #9aa4ba;
        font-size: 0.92rem;
        font-weight: 600;
    }

.x3-home-courses-swiper,
.x3-home-testimonial-swiper {
    position: relative;
}

.x3-home-swiper-nav {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.x3-home-swiper-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(98, 70, 255, 0.18);
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #5b63ff, #7b2cff);
    box-shadow: 0 16px 32px rgba(71, 53, 181, 0.18);
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .x3-home-swiper-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 40px rgba(71, 53, 181, 0.22);
    }

.x3-home-courses-swiper .swiper-slide,
.x3-home-testimonial-swiper .swiper-slide {
    height: auto;
}

.x3-home-courses-swiper .x3-home-course-card,
.x3-home-testimonial-swiper .x3-home-testimonial-card {
    height: 100%;
}

.x3-footer {
    padding: 4.5rem 0 2rem;
}

.x3-footer-brand {
    margin-bottom: 1rem;
}

.x3-footer-desc {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.62);
}

.x3-footer-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.x3-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .x3-footer-links a {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        color: rgba(255, 255, 255, 0.66);
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .x3-footer-links a:hover {
            color: white;
            transform: translateX(4px);
        }

.x3-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.68);
}

    .x3-footer-contact div {
        display: flex;
        gap: 0.7rem;
        align-items: flex-start;
    }

    .x3-footer-contact i {
        margin-top: 0.2rem;
        color: #bca9ff;
    }

.x3-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    margin-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.92rem;
}

.x3-footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

    .x3-footer-bottom-links a,
    .x3-footer-bottom-links span {
        color: rgba(255, 255, 255, 0.56);
        text-decoration: none;
    }

@media (max-width: 1199.98px) {
    .x3-admin-shell {
        grid-template-columns: 1fr;
    }

    .x3-admin-stat-grid,
    .x3-admin-content-grid {
        grid-template-columns: 1fr;
    }

    .x3-public-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 26px;
        background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 34%), rgba(8, 10, 22, 0.97);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .x3-public-navbar .navbar-nav {
        gap: 0.4rem;
        align-items: stretch !important;
    }

    .x3-public-navbar .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: space-between;
        min-height: 50px;
        padding: 0.8rem 0.95rem;
        border-radius: 18px;
        /* background: rgba(255, 255, 255, 0.035); */
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

        .x3-public-navbar .nav-link span {
            margin-right: auto;
        }

    .x3-mobile-nav-icon {
        display: inline-flex;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(173, 140, 255, 0.13);
        color: #bca7ff;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }

    .x3-public-navbar .navbar-toggler {
        width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 16px;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.045);
        box-shadow: none;
    }

        .x3-public-navbar .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(173, 140, 255, 0.2);
        }

    .x3-public-mega-dropdown::after {
        display: none;
    }

    .x3-public-mega-menu {
        position: static !important;
        transform: none;
        width: 100%;
        margin-top: 0.55rem;
        top: auto;
        left: auto;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        padding: 0.85rem;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(22, 23, 36, 0.96), rgba(15, 16, 27, 0.96));
        box-shadow: none;
    }

    .x3-public-mega-head {
        align-items: center;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

        .x3-public-mega-head h3 {
            font-size: 0.95rem;
        }

        .x3-public-mega-head a {
            font-size: 0.86rem;
        }

    .x3-public-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .x3-public-mega-item {
        min-height: 76px;
        padding: 0.7rem;
        gap: 0.65rem;
        border-radius: 16px;
        /* background: rgba(255, 255, 255, 0.035); */
        /* border: 1px solid rgba(255, 255, 255, 0.045); */
    }

        .x3-public-mega-item:hover {
            transform: none;
        }

    .x3-public-mega-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

        .x3-public-mega-icon i {
            font-size: 1rem;
        }

    .x3-public-mega-copy strong {
        font-size: 0.88rem;
        line-height: 1.22;
    }

    .x3-public-mega-copy small {
        display: -webkit-box;
        margin-top: 0.18rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.76rem;
        line-height: 1.35;
    }
}

@media (max-width: 767.98px) {
    .x3-home-title {
        max-width: 100%;
        font-size: 2.75rem;
    }

    .x3-home-course-media img,
    .x3-home-course-media .x3-course-thumb {
        height: 220px;
    }

    .x3-home-value-main,
    .x3-home-spotlight-content,
    .x3-home-cta-card {
        padding: 1.35rem;
    }

    .x3-admin-topbar,
    .x3-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .x3-admin-topbar-actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .x3-admin-profile {
        min-width: 0;
    }

    .x3-admin-content {
        padding: 1rem;
    }

    .x3-admin-form-inline {
        grid-template-columns: 1fr;
    }

    .x3-public-nav-actions {
        margin-top: 0.8rem;
        flex-direction: column;
        align-items: stretch;
    }

    .x3-public-mega-grid {
        grid-template-columns: 1fr;
    }

    .x3-public-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.8rem;
        border-radius: 22px;
        max-height: calc(100vh - 96px);
    }

    .x3-public-navbar .nav-link {
        min-height: 48px;
        padding: 0.72rem 0.8rem;
        font-size: 0.9rem;
    }

    .x3-public-mega-menu {
        padding: 0.7rem;
        border-radius: 18px;
    }

    .x3-public-mega-head {
        padding-bottom: 0.65rem;
        margin-bottom: 0.65rem;
    }

        .x3-public-mega-head p {
            display: none;
        }

    .x3-public-mega-item {
        min-height: 68px;
        padding: 0.62rem;
    }

    .x3-public-mega-icon {
        width: 38px;
        height: 38px;
    }

    .x3-account-toggle {
        width: 100%;
        justify-content: center;
    }

    .x3-account-menu {
        width: 100%;
        min-width: 100%;
        border-radius: 18px;
    }

    .x3-home-swiper-nav {
        left: 0.5rem;
        right: 0.5rem;
    }

    .x3-home-swiper-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .x3-footer-bottom {
        flex-direction: column;
    }
}

.x3-affiliate-hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 5rem;
    background: radial-gradient(circle at top center, rgba(143, 64, 255, 0.14), transparent 36%), linear-gradient(180deg, rgba(19, 16, 26, 0.98), rgba(17, 16, 24, 0.98));
}

    .x3-affiliate-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(8, 8, 12, 0.14), rgba(8, 8, 12, 0.5)), radial-gradient(circle at center, rgba(181, 93, 255, 0.08), transparent 34%);
        pointer-events: none;
    }

.x3-affiliate-ambient {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    opacity: 0.26;
    filter: blur(10px);
    pointer-events: none;
}

.x3-affiliate-ambient-left {
    top: 72px;
    left: -60px;
    background: radial-gradient(circle, rgba(140, 101, 255, 0.42), transparent 70%);
}

.x3-affiliate-ambient-right {
    right: -40px;
    bottom: 56px;
    background: radial-gradient(circle, rgba(255, 79, 216, 0.26), transparent 70%);
}

.x3-affiliate-hero-inner,
.x3-affiliate-section,
.x3-affiliate-stats {
    position: relative;
    z-index: 1;
}

.x3-affiliate-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.x3-affiliate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    color: #efe9ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 700;
}

.x3-affiliate-title {
    margin: 1.8rem 0 1rem;
    color: #fff;
    font-size: 4rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

    .x3-affiliate-title span {
        display: block;
        background: linear-gradient(135deg, #8c65ff, #ff4fd8);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.x3-affiliate-hero-desc {
    max-width: 680px;
    margin: 0 auto;
    color: #bdb6ca;
    font-size: 1.04rem;
    line-height: 1.9;
}

.x3-affiliate-proof-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

    .x3-affiliate-proof-row span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #e7dcfa;
        font-size: 0.86rem;
    }

    .x3-affiliate-proof-row i {
        color: #c876ff;
    }

.x3-affiliate-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.x3-affiliate-stats {
    background: #0d0d12;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.x3-affiliate-stat-card {
    padding: 2rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, background 0.22s ease;
}

    .x3-affiliate-stat-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.02);
    }

    .x3-affiliate-stat-card strong {
        display: block;
        color: #fff;
        font-size: clamp(1.85rem, 3vw, 2.6rem);
        font-weight: 900;
    }

    .x3-affiliate-stat-card span {
        display: block;
        margin-top: 0.45rem;
        color: #928aa2;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.x3-affiliate-section {
    padding: 5rem 0;
    overflow: hidden;
}

.x3-affiliate-commission,
.x3-affiliate-showcase,
.x3-affiliate-policy,
.x3-affiliate-cta {
    background: radial-gradient(circle at top center, rgba(121, 58, 255, 0.1), transparent 38%), linear-gradient(180deg, rgba(23, 20, 31, 0.98), rgba(18, 16, 25, 0.98));
}

.x3-affiliate-steps,
.x3-affiliate-courses {
    background: #0f0f14;
}

.x3-affiliate-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.4rem;
}

    .x3-affiliate-section-head > div {
        min-width: 0;
    }

    .x3-affiliate-section-head .x3-home-link-btn {
        flex: 0 0 auto;
    }

    .x3-affiliate-section-head.centered {
        display: block;
        text-align: center;
        max-width: 760px;
        margin: 0 auto 2.6rem;
    }

    .x3-affiliate-section-head h2 {
        margin: 0.65rem 0;
        color: #fff;
        font-size: clamp(2rem, 3vw, 3rem);
        font-weight: 900;
    }

    .x3-affiliate-section-head p {
        margin: 0;
        color: #aaa3b9;
        line-height: 1.8;
    }

.x3-affiliate-tier-card,
.x3-affiliate-chart-card,
.x3-affiliate-step-card,
.x3-affiliate-showcase-card,
.x3-affiliate-policy-item,
.x3-affiliate-cta-card,
.x3-affiliate-faq .accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.x3-affiliate-tier-card {
    height: 100%;
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(35, 23, 59, 0.92), rgba(25, 18, 39, 0.96));
    transition: transform 0.24s ease, border-color 0.24s ease;
}

    .x3-affiliate-tier-card.accent {
        background: linear-gradient(180deg, rgba(59, 23, 65, 0.92), rgba(34, 18, 42, 0.96));
    }

    .x3-affiliate-tier-card:hover,
    .x3-affiliate-step-card:hover {
        transform: translateY(-6px);
        border-color: rgba(207, 120, 255, 0.24);
    }

.x3-affiliate-tier-badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #efe5ff;
    background: rgba(163, 95, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
}

.x3-affiliate-tier-card h3 {
    margin: 1rem 0 0.75rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
}

.x3-affiliate-tier-card p {
    margin: 0;
    color: #bdb5cb;
    line-height: 1.8;
}

.x3-affiliate-tier-list {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

    .x3-affiliate-tier-list li {
        display: flex;
        align-items: start;
        gap: 0.75rem;
        color: #f4effd;
        font-size: 0.95rem;
    }

    .x3-affiliate-tier-list i {
        margin-top: 0.15rem;
        color: #cb7fff;
    }

.x3-affiliate-chart-card {
    height: 100%;
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(26, 24, 37, 0.98), rgba(19, 18, 29, 0.98));
}

.x3-affiliate-chart-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .x3-affiliate-chart-head h3 {
        margin: 0.45rem 0 0;
        color: #fff;
        font-size: 1.35rem;
        font-weight: 800;
    }

.x3-affiliate-chart-note {
    color: #c7bbdc;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.x3-affiliate-bar-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    min-height: 280px;
}

.x3-affiliate-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.x3-affiliate-bar-value,
.x3-affiliate-bar-label {
    color: #fff;
    font-weight: 700;
}

.x3-affiliate-bar-label {
    color: #b6afc5;
    font-size: 0.88rem;
}

.x3-affiliate-bar-track {
    width: 100%;
    max-width: 54px;
    height: 190px;
    padding: 0.35rem;
    display: flex;
    align-items: end;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.x3-affiliate-bar-fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff65cf 0%, #995dff 100%);
    box-shadow: 0 12px 25px rgba(153, 93, 255, 0.28);
}

.x3-affiliate-step-card {
    position: relative;
    height: 100%;
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.x3-affiliate-step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #8749ff, #d748ff);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.x3-affiliate-step-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #c77bff;
    font-size: 1.35rem;
}

.x3-affiliate-step-card h3 {
    margin: 1.2rem 0 0.65rem;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
}

.x3-affiliate-step-card p {
    margin: 0;
    color: #a9a2b7;
    line-height: 1.8;
}

.x3-affiliate-showcase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: center;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

    .x3-affiliate-showcase-card::after {
        content: "";
        position: absolute;
        right: -60px;
        bottom: -60px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(171, 99, 255, 0.12), transparent 72%);
        pointer-events: none;
    }

.x3-affiliate-showcase-copy h2 {
    margin: 0.65rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
}

.x3-affiliate-showcase-copy > p {
    margin: 0 0 1.4rem;
    color: #b4adbf;
    line-height: 1.85;
}

.x3-affiliate-showcase-media {
    position: relative;
}

.x3-affiliate-benefit-list {
    display: grid;
    gap: 1rem;
}

.x3-affiliate-benefit-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: start;
}

.x3-affiliate-benefit-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #bb72ff;
}

.x3-affiliate-benefit-item strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.x3-affiliate-benefit-item p {
    margin: 0.35rem 0 0;
    color: #aea7bd;
    line-height: 1.75;
}

.x3-affiliate-mini-dashboard {
    position: relative;
    padding: 1.5rem;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(212, 103, 255, 0.16), transparent 30%), linear-gradient(180deg, rgba(16, 15, 23, 0.96), rgba(10, 10, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

    .x3-affiliate-mini-dashboard::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        background-size: 28px 28px;
        opacity: 0.14;
        pointer-events: none;
    }

    .x3-affiliate-mini-dashboard > * {
        position: relative;
        z-index: 1;
    }

.x3-affiliate-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.x3-affiliate-mini-kpi span,
.x3-affiliate-mini-ring small,
.x3-affiliate-mini-kpi small,
.x3-affiliate-mini-bottom span {
    color: #a9a2b7;
}

.x3-affiliate-mini-kpi span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.x3-affiliate-mini-kpi strong {
    display: block;
    margin-top: 0.25rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
}

.x3-affiliate-mini-kpi small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.92rem;
}

.x3-affiliate-mini-ring {
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(17, 17, 24, 0.98) 48%, transparent 50%), conic-gradient(#e35bff 0 17deg, #8d5dff 17deg 250deg, rgba(255, 255, 255, 0.08) 250deg 360deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: scale(0.88);
    transition: transform 0.7s cubic-bezier(.22,1,.36,1);
}

    .x3-affiliate-mini-ring span {
        color: #fff;
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
    }

    .x3-affiliate-mini-ring small {
        margin-top: 0.35rem;
        font-size: 0.75rem;
    }

.x3-affiliate-mini-bars {
    height: 150px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.x3-affiliate-mini-bar {
    height: 100%;
    display: flex;
    align-items: end;
    overflow: hidden;
}

    .x3-affiliate-mini-bar span {
        width: 100%;
        height: 0;
        border-radius: 999px 999px 16px 16px;
        background: linear-gradient(180deg, #ff73d3 0%, #8d5dff 100%);
        box-shadow: 0 12px 24px rgba(141, 93, 255, 0.26);
        transition: height 0.85s cubic-bezier(.22,1,.36,1);
    }

.x3-affiliate-mini-line {
    height: 180px;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.18s, transform 0.7s ease 0.18s;
}

    .x3-affiliate-mini-line svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.x3-affiliate-line-fill {
    opacity: 0;
    transition: opacity 0.7s ease 0.28s;
}

.x3-affiliate-line-stroke {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1) 0.22s;
}

.x3-affiliate-mini-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

    .x3-affiliate-mini-bottom article {
        padding: 0.95rem 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .x3-affiliate-mini-bottom strong {
        display: block;
        color: #fff;
        font-size: 1.2rem;
        font-weight: 800;
    }

    .x3-affiliate-mini-bottom span {
        display: block;
        margin-top: 0.3rem;
        font-size: 0.82rem;
        line-height: 1.55;
    }

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-top,
.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-line,
.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-bottom article {
    opacity: 1;
    transform: none;
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-ring {
    transform: scale(1);
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-line-fill {
    opacity: 1;
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-line-stroke {
    stroke-dashoffset: 0;
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-bottom article:nth-child(1) {
    transition-delay: 0.24s;
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-bottom article:nth-child(2) {
    transition-delay: 0.34s;
}

.x3-affiliate-mini-dashboard.is-visible .x3-affiliate-mini-bottom article:nth-child(3) {
    transition-delay: 0.44s;
}

.x3-affiliate-faq {
    display: grid;
    gap: 1rem;
}

    .x3-affiliate-faq .accordion-item {
        overflow: hidden;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.03);
    }

    .x3-affiliate-faq .accordion-button,
    .x3-affiliate-faq .accordion-body {
        color: #fff;
        background: transparent;
    }

    .x3-affiliate-faq .accordion-button {
        padding: 1.2rem 1.35rem;
        font-weight: 700;
        box-shadow: none;
    }

        .x3-affiliate-faq .accordion-button:not(.collapsed) {
            color: #fff;
            background: rgba(145, 93, 255, 0.1);
        }

        .x3-affiliate-faq .accordion-button::after {
            filter: invert(1);
        }

    .x3-affiliate-faq .accordion-body {
        padding: 0 1.35rem 1.3rem;
        color: #b9b1c6;
        line-height: 1.8;
    }

.x3-affiliate-policy-list {
    display: grid;
    gap: 1rem;
}

.x3-affiliate-policy-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.3rem 1.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.x3-affiliate-policy-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 80, 255, 0.16), rgba(255, 77, 204, 0.12));
    color: #f5efff;
    font-size: 1.2rem;
}

.x3-affiliate-policy-item h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.x3-affiliate-policy-item p {
    margin: 0;
    color: #b4adbf;
    line-height: 1.8;
}

.x3-affiliate-cta-card {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.5rem;
    border-radius: 32px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(161, 74, 255, 0.16), transparent 40%), linear-gradient(135deg, rgba(77, 25, 110, 0.98), rgba(54, 22, 78, 0.98));
}

.x3-affiliate-cta-pattern,
.x3-affiliate-cta-pattern::before,
.x3-affiliate-cta-pattern::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.x3-affiliate-cta-pattern {
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.12;
}

    .x3-affiliate-cta-pattern::before {
        width: 240px;
        height: 240px;
        left: -40px;
        bottom: -90px;
        border-radius: 32px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transform: rotate(22deg);
    }

    .x3-affiliate-cta-pattern::after {
        width: 180px;
        height: 180px;
        right: 2rem;
        top: -40px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
    }

.x3-affiliate-cta-card > * {
    position: relative;
    z-index: 1;
}

.x3-affiliate-cta-card h2 {
    margin: 0.65rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
}

.x3-affiliate-cta-card p {
    max-width: 640px;
    margin: 0 auto;
    color: #d6cde4;
    line-height: 1.8;
}

.x3-affiliate-cta-btn {
    margin-top: 1.8rem;
}

@media (max-width: 991.98px) {
    .x3-affiliate-showcase-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .x3-affiliate-section-head {
        display: block;
    }

        .x3-affiliate-section-head .x3-home-link-btn {
            margin-top: 1rem;
            display: inline-flex;
        }
}

@media (max-width: 767.98px) {
    .x3-affiliate-hero {
        padding: 6rem 0 4rem;
    }

    .x3-affiliate-proof-row {
        gap: 0.65rem;
    }

        .x3-affiliate-proof-row span {
            font-size: 0.8rem;
        }

    .x3-affiliate-stat-card {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .x3-affiliate-mini-top,
    .x3-affiliate-mini-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .x3-affiliate-mini-top {
        gap: 1rem;
    }

    .x3-affiliate-mini-ring {
        width: 96px;
        height: 96px;
    }

    .x3-affiliate-mini-bars {
        gap: 0.5rem;
        height: 120px;
    }

    .x3-affiliate-mini-line {
        height: 150px;
    }

    .x3-affiliate-tier-card h3 {
        font-size: 2.35rem;
    }

    .x3-affiliate-bar-chart {
        gap: 0.65rem;
        min-height: 220px;
    }

    .x3-affiliate-bar-track {
        max-width: 44px;
        height: 150px;
    }
}

.x3-course-list-media {
    min-height: auto;
    aspect-ratio: 16 / 10;
}

.x3-course-list-image,
.x3-course-list-thumb,
.x3-course-list-video-layer,
.x3-course-list-iframe {
    width: 100%;
    height: 100%;
}

.x3-course-list-image,
.x3-course-list-thumb,
.x3-course-list-video-layer {
    position: absolute;
    inset: 0;
}

.x3-course-list-image,
.x3-course-list-thumb {
    z-index: 0;
}

.x3-course-list-video-layer {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background: transparent;
}

.x3-course-list-iframe {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    transition: opacity 0.28s ease;
}

.x3-course-list-media::before {
    content: "";
    display: block;
    padding-top: 66%;
}

.x3-course-list-overlay {
    z-index: 1;
}

.x3-course-list-play {
    z-index: 3;
    width: 78px;
    height: 78px;
}

.x3-course-list-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    background: rgba(12, 12, 18, 0.62);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

    .x3-course-list-close:hover {
        background: rgba(24, 24, 34, 0.88);
        transform: scale(1.05);
    }

.x3-course-list-card.is-preview-active .x3-course-list-play {
    opacity: 0;
    pointer-events: none;
}

.x3-course-list-card.is-preview-active .x3-course-list-close {
    opacity: 1;
    pointer-events: auto;
}

.x3-course-list-card.is-preview-active .x3-course-list-image,
.x3-course-list-card.is-preview-active .x3-course-list-thumb {
    opacity: 1;
}

.x3-course-list-card.is-preview-active .x3-course-list-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.x3-course-list-card.is-preview-ready .x3-course-list-iframe {
    opacity: 1;
    pointer-events: auto;
}

.x3-course-list-card.is-preview-loading .x3-course-list-overlay {
    opacity: 0.18;
}

.x3-course-list-card.is-preview-ready .x3-course-list-overlay {
    opacity: 0;
}

.x3-course-list-card.is-preview-ready .x3-course-list-image,
.x3-course-list-card.is-preview-ready .x3-course-list-thumb {
    filter: brightness(0.68);
}

@media (max-width: 991.98px) {
    .x3-course-list-media::before {
        padding-top: 72%;
    }
}

@media (max-width: 767.98px) {
    .x3-course-list-play {
        width: 68px;
        height: 68px;
    }

    .x3-course-list-close {
        width: 34px;
        height: 34px;
    }
}

.x3-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at top left, rgba(146, 62, 255, 0.18), transparent 24rem), radial-gradient(circle at bottom right, rgba(94, 35, 156, 0.18), transparent 22rem), linear-gradient(180deg, #0b0a10, #121019);
}

.x3-login-page {
    padding: 7.35rem 0 3.2rem;
}

.x3-login-page-inner {
    max-width: 500px;
    margin: 0 auto;
}

.x3-login-single-card {
    padding: 1.6rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top left, rgba(155, 88, 255, 0.12), transparent 16rem), linear-gradient(180deg, rgba(18, 15, 27, 0.96), rgba(12, 10, 18, 0.98));
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.x3-login-single-head {
    text-align: center;
    margin-bottom: 1rem;
}

.x3-login-single-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .x3-login-single-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.x3-login-single-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.9rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    color: #d7b6ff;
    background: rgba(143, 61, 255, 0.14);
    border: 1px solid rgba(183, 131, 255, 0.24);
    font-size: 0.82rem;
    font-weight: 700;
}

.x3-login-single-head h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 900;
}

.x3-login-single-head p {
    max-width: 28rem;
    margin: 0.55rem auto 0;
    color: #a59eb8;
    line-height: 1.6;
    font-size: 0.92rem;
}

.x3-login-layout {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 1.5rem;
    align-items: stretch;
}

.x3-login-showcase,
.x3-login-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 16, 27, 0.92);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.x3-login-showcase {
    padding: 2.4rem;
    border-radius: 30px;
    background: radial-gradient(circle at top left, rgba(155, 88, 255, 0.18), transparent 16rem), linear-gradient(180deg, rgba(18, 15, 27, 0.96), rgba(12, 10, 18, 0.98));
}

.x3-login-brand {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    margin-bottom: 1.8rem;
}

.x3-login-brand-mark {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .x3-login-brand-mark img,
    .x3-login-card-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.x3-login-brand-copy {
    min-width: 0;
}

.x3-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: #d9b8ff;
    background: rgba(143, 61, 255, 0.14);
    border: 1px solid rgba(183, 131, 255, 0.26);
    font-size: 0.82rem;
    font-weight: 700;
}

.x3-login-showcase h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    line-height: 1.05;
    font-weight: 900;
}

.x3-login-showcase > p {
    max-width: 42rem;
    margin: 0;
    color: #b8b2c8;
    font-size: 1.02rem;
    line-height: 1.8;
}

.x3-login-slide-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.x3-login-slide-media {
    padding: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

    .x3-login-slide-media.tone-purple {
        background: linear-gradient(135deg, rgba(145, 54, 255, 0.26), rgba(55, 25, 91, 0.42));
    }

    .x3-login-slide-media.tone-blue {
        background: linear-gradient(135deg, rgba(49, 108, 255, 0.24), rgba(19, 49, 96, 0.42));
    }

    .x3-login-slide-media.tone-amber {
        background: linear-gradient(135deg, rgba(255, 161, 53, 0.22), rgba(99, 54, 14, 0.42));
    }

.x3-login-slide-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.15rem;
}

.x3-login-slide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

    .x3-login-slide-grid div {
        padding: 0.9rem 1rem;
        border-radius: 18px;
        background: rgba(12, 10, 18, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .x3-login-slide-grid label {
        display: block;
        margin-bottom: 0.28rem;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .x3-login-slide-grid strong {
        display: block;
        font-size: 0.98rem;
        font-weight: 800;
    }

.x3-login-slide-body {
    padding: 1.4rem 1.35rem 1.45rem;
}

    .x3-login-slide-body h2 {
        margin: 0 0 0.55rem;
        font-size: 1.28rem;
        font-weight: 900;
    }

    .x3-login-slide-body p {
        margin: 0;
        color: #aaa3ba;
        line-height: 1.7;
    }

    .x3-login-slide-body ul {
        margin: 1rem 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 0.65rem;
    }

    .x3-login-slide-body li {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: #ece7f7;
    }

        .x3-login-slide-body li i {
            color: #d28eff;
        }

.x3-login-swiper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.x3-login-swiper-nav {
    display: inline-flex;
    gap: 0.55rem;
}

.x3-login-swiper-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #f1edfa;
    background: rgba(255, 255, 255, 0.05);
}

.x3-login-swiper-pagination {
    position: static;
    width: auto !important;
}

    .x3-login-swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.24);
        opacity: 1;
    }

    .x3-login-swiper-pagination .swiper-pagination-bullet-active {
        background: #c972ff;
    }

.x3-login-panel {
    display: flex;
    align-items: center;
}

.x3-login-card {
    width: 100%;
    padding: 2.2rem;
    border-radius: 28px;
}

.x3-login-card-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.x3-login-card-head h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
}

.x3-login-card-head p {
    margin: 0.7rem 0 0;
    color: #a49db7;
    line-height: 1.7;
}

.x3-login-form {
    margin-top: 1rem;
}

.x3-login-field {
    margin-bottom: 0.75rem;
}

    .x3-login-field label {
        display: block;
        margin-bottom: 0.38rem;
        font-weight: 700;
        font-size: 0.92rem;
    }

    .x3-login-field .form-control {
        height: 50px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }

        .x3-login-field .form-control::placeholder {
            color: #8f89a0;
        }

        .x3-login-field .form-control:focus {
            border-color: rgba(185, 110, 255, 0.6);
            box-shadow: 0 0 0 0.2rem rgba(169, 74, 255, 0.16);
            background: rgba(255, 255, 255, 0.05);
        }

.x3-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 0.9rem;
}

.x3-login-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #cbc5d8;
    font-size: 0.9rem;
}

    .x3-login-check input {
        width: 18px;
        height: 18px;
        accent-color: #9f35ff;
    }

.x3-login-link {
    color: #d2b2ff;
    text-decoration: none;
}

    .x3-login-link:hover {
        color: #ebdcff;
    }

.x3-login-submit {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 800;
}

.x3-login-divider {
    position: relative;
    margin: 0.95rem 0 0.8rem;
    text-align: center;
}

    .x3-login-divider::before {
        content: "";
        position: absolute;
        inset: 50% 0 auto;
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }

    .x3-login-divider span {
        position: relative;
        z-index: 1;
        display: inline-block;
        padding: 0 0.8rem;
        color: #948da7;
        background: rgba(19, 16, 27, 0.92);
    }

.x3-login-google {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 800;
}

    .x3-login-google:hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    }

.x3-login-google-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .x3-login-google-icon svg {
        width: 22px;
        height: 22px;
    }

.x3-login-alert,
.x3-login-validation {
    margin-top: 1rem;
}

.x3-login-split-page {
    padding: 4rem 0 4rem;
}

.x3-login-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    overflow: hidden;
    min-height: 680px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #100d17;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.x3-login-showcase-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    padding: 3rem;
    color: #fff;
    background: radial-gradient(circle at 88% 16%, rgba(192, 104, 255, 0.2), transparent 18rem), radial-gradient(circle at 8% 92%, rgba(124, 58, 237, 0.34), transparent 18rem), linear-gradient(150deg, #171020 0%, #24133a 48%, #3b1d60 100%);
}

    .x3-login-showcase-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 70px 70px;
        opacity: 0.11;
        pointer-events: none;
    }

.x3-login-showcase-top,
.x3-login-showcase-main,
.x3-login-feature-card,
.x3-login-showcase-dots {
    position: relative;
    z-index: 1;
}

.x3-login-showcase-top {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.x3-login-showcase-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c084fc, #9333ea);
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.14);
}

.x3-login-showcase-main {
    max-width: 680px;
    padding: 1rem 0 2.8rem;
}

.x3-login-showcase-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.56rem 1rem;
    border-radius: 999px;
    color: #efd9ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    font-weight: 800;
}

.x3-login-showcase-main h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: 31px;
    line-height: 45px;
    font-weight: 600;
}

.x3-login-showcase-main p {
    max-width: 590px;
    margin: 1.2rem 0 0;
    color: rgba(243, 236, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.x3-login-feature-slider {
    position: relative;
    min-height: 176px;
    max-width: 620px;
}

.x3-login-feature-card {
    position: absolute;
    inset: 0;
    max-width: 620px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
    padding: 1.45rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

    .x3-login-feature-card.is-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.x3-login-feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
}

.x3-login-feature-card h2 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.x3-login-feature-card p {
    margin: 0;
    color: rgba(244, 238, 255, 0.76);
    line-height: 1.7;
}

.x3-login-showcase-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.2rem;
}

    .x3-login-showcase-dots span {
        width: 12px;
        height: 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
    }

    .x3-login-showcase-dots .active {
        width: 48px;
        background: linear-gradient(90deg, #a855f7, #d946ef);
    }

.x3-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.12), transparent 18rem), linear-gradient(180deg, #121018, #0b0a10);
}

    .x3-login-form-panel .x3-login-single-card {
        width: min(100%, 520px);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .x3-login-form-panel .x3-login-single-head {
        margin-bottom: 1.25rem;
    }

        .x3-login-form-panel .x3-login-single-head h1 {
            font-size: 2.35rem;
        }

    .x3-login-form-panel .x3-login-field {
        margin-bottom: 1rem;
    }

        .x3-login-form-panel .x3-login-field .form-control {
            height: 58px;
            padding: 0.9rem 1.05rem;
            border-radius: 18px;
        }

    .x3-login-form-panel .x3-login-submit,
    .x3-login-form-panel .x3-login-google {
        min-height: 58px;
        border-radius: 18px;
    }

.x3-login-register-note {
    margin-top: 1rem;
    color: #aaa3ba;
    text-align: center;
}

    .x3-login-register-note a {
        color: #d8b4fe;
        font-weight: 800;
        text-decoration: none;
    }

        .x3-login-register-note a:hover {
            color: #f1ddff;
        }

.x3-login-field-hint {
    display: block;
    margin-top: 0.45rem;
    color: #9b94ad;
    font-size: 0.82rem;
    line-height: 1.5;
}

.x3-login-field .text-danger,
.x3-login-validation {
    display: block;
    margin-top: 0.45rem;
    color: #ff8aa8 !important;
    font-size: 0.84rem;
    line-height: 1.45;
}

.x3-login-field .input-validation-error {
    border-color: rgba(255, 105, 135, 0.75) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 135, 0.12) !important;
}

.x3-login-validation.validation-summary-errors {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 105, 135, 0.1);
    border: 1px solid rgba(255, 105, 135, 0.24);
}

.x3-dashboard-page {
    padding: 56px 0 72px;
    background: radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.14), transparent 34%), linear-gradient(180deg, rgba(13, 13, 18, 0.98), rgba(8, 8, 12, 1));
}

.x3-dashboard-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.x3-dashboard-user {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.x3-dashboard-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.x3-dashboard-user h1 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
}

.x3-dashboard-user p {
    max-width: 640px;
    margin: 0;
    color: rgba(235, 229, 255, 0.72);
}

.x3-dashboard-profile-card,
.x3-dashboard-stat,
.x3-dashboard-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.x3-dashboard-profile-card {
    min-width: 260px;
    padding: 18px 20px;
    border-radius: 8px;
}

    .x3-dashboard-profile-card span,
    .x3-dashboard-profile-card small,
    .x3-dashboard-stat small,
    .x3-dashboard-money-list span,
    .x3-dashboard-wallet small,
    .x3-dashboard-course-meta small,
    .x3-dashboard-progress-row,
    .x3-dashboard-referral label {
        color: rgba(235, 229, 255, 0.68);
    }

    .x3-dashboard-profile-card strong {
        display: block;
        margin: 5px 0;
        color: #fff;
        font-size: 22px;
    }

.x3-dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.x3-dashboard-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    padding: 22px;
    border-radius: 8px;
}

.x3-dashboard-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
}

    .x3-dashboard-stat-icon.is-blue {
        color: #8ab4ff;
        background: rgba(59, 130, 246, 0.14);
    }

    .x3-dashboard-stat-icon.is-violet {
        color: #c084fc;
        background: rgba(168, 85, 247, 0.16);
    }

    .x3-dashboard-stat-icon.is-green {
        color: #86efac;
        background: rgba(34, 197, 94, 0.14);
    }

    .x3-dashboard-stat-icon.is-amber {
        color: #fbbf24;
        background: rgba(245, 158, 11, 0.14);
    }

.x3-dashboard-stat strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.x3-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
    gap: 24px;
}

.x3-dashboard-panel {
    border-radius: 8px;
    padding: 24px;
}

.x3-dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

    .x3-dashboard-section-head h2 {
        margin: 4px 0 0;
        color: #fff;
        font-size: 24px;
    }

    .x3-dashboard-section-head a {
        color: #c084fc;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

.x3-dashboard-course-list {
    display: grid;
    gap: 16px;
}

.x3-dashboard-course {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.24);
}

.x3-dashboard-course-media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 132px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

    .x3-dashboard-course-media img {
        width: 100%;
        height: 100%;
        min-height: 132px;
        object-fit: cover;
        filter: saturate(1.02) brightness(0.82);
    }

    .x3-dashboard-course-media span {
        position: absolute;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 999px;
        color: #fff;
        background: rgba(139, 92, 246, 0.88);
    }

.x3-dashboard-course-body {
    min-width: 0;
    padding: 4px 0;
}

.x3-dashboard-course-meta,
.x3-dashboard-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .x3-dashboard-course-meta span {
        color: #a78bfa;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

.x3-dashboard-course h3 {
    margin: 10px 0 12px;
    font-size: 21px;
    line-height: 1.28;
}

    .x3-dashboard-course h3 a {
        color: #fff;
        text-decoration: none;
    }

.x3-dashboard-progress {
    overflow: hidden;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

    .x3-dashboard-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #8b5cf6, #d946ef);
    }

.x3-dashboard-wallet {
    padding: 18px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .x3-dashboard-wallet strong {
        display: block;
        margin-top: 8px;
        color: #fff;
        font-size: 36px;
        line-height: 1;
    }

.x3-dashboard-money-list {
    display: grid;
    gap: 14px;
    padding: 20px 0;
}

    .x3-dashboard-money-list div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .x3-dashboard-money-list strong {
        color: #fff;
        text-align: right;
    }

.x3-dashboard-referral {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .x3-dashboard-referral label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .x3-dashboard-referral div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 10px;
    }

    .x3-dashboard-referral input {
        min-width: 0;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0 14px;
        color: rgba(255, 255, 255, 0.88);
        background: rgba(0, 0, 0, 0.26);
    }

    .x3-dashboard-referral small {
        display: block;
        margin-top: 10px;
        color: #aaa3ba;
        line-height: 1.5;
    }

    .x3-dashboard-referral button {
        border: 0;
        border-radius: 8px;
        color: #fff;
        background: linear-gradient(135deg, #7c3aed, #c026d3);
    }

        .x3-dashboard-referral button.is-copied {
            background: linear-gradient(135deg, #16a34a, #22c55e);
        }

.x3-dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

    .x3-dashboard-empty i {
        color: #c084fc;
        font-size: 34px;
    }

    .x3-dashboard-empty h3 {
        margin: 0;
        color: #fff;
    }

    .x3-dashboard-empty p {
        max-width: 420px;
        margin: 0 0 8px;
        color: rgba(235, 229, 255, 0.68);
    }

.x3-dashboard-app {
    padding: 0;
    /* background: #07070a; */
}

.x3-dashboard-shell {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    min-height: calc(100vh - 96px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.x3-dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px 18px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    /* background: rgba(8, 8, 12, 0.96); */
}

.x3-dashboard-side-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}

.x3-dashboard-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 999px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.x3-dashboard-side-profile strong {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.x3-dashboard-side-profile span {
    display: block;
    margin-top: 4px;
    color: rgba(235, 229, 255, 0.58);
    font-size: 13px;
}

.x3-dashboard-side-nav {
    display: grid;
    gap: 10px;
}

    .x3-dashboard-side-nav a {
        display: flex;
        align-items: center;
        gap: 13px;
        min-height: 50px;
        padding: 0 18px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: rgba(235, 229, 255, 0.68);
        font-weight: 700;
        text-decoration: none;
    }

        .x3-dashboard-side-nav a i {
            width: 20px;
            color: rgba(235, 229, 255, 0.52);
            text-align: center;
        }

        .x3-dashboard-side-nav a:hover,
        .x3-dashboard-side-nav a.is-active {
            color: #c4a5ff;
            border-color: rgba(168, 85, 247, 0.24);
            background: rgba(124, 58, 237, 0.14);
        }

            .x3-dashboard-side-nav a:hover i,
            .x3-dashboard-side-nav a.is-active i {
                color: #a78bfa;
            }

.x3-dashboard-rank {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.34), rgba(88, 28, 135, 0.24));
}

    .x3-dashboard-rank small {
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .x3-dashboard-rank strong {
        display: block;
        margin: 12px 0;
        color: #facc15;
        font-size: 18px;
    }

.x3-dashboard-rank-bar {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
}

    .x3-dashboard-rank-bar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #facc15, #fde047);
    }

.x3-dashboard-rank p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.x3-dashboard-main {
    min-width: 0;
    padding: 42px 28px 56px 34px;
}

.x3-dashboard-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

    .x3-dashboard-topline h1 {
        margin: 0 0 8px;
        color: #fff;
        font-size: 29px;
        line-height: 1.2;
    }

    .x3-dashboard-topline p {
        margin: 0;
        color: rgba(235, 229, 255, 0.66);
    }

.x3-dashboard-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.x3-dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
    gap: 32px;
}

.x3-dashboard-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

    .x3-dashboard-block-title h2 {
        margin: 0;
        color: #fff;
        font-size: 24px;
    }

        .x3-dashboard-block-title h2 i {
            margin-right: 8px;
            color: #a78bfa;
        }

    .x3-dashboard-block-title a {
        color: #a78bfa;
        font-weight: 800;
        text-decoration: none;
    }

.x3-dashboard-continue-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    min-height: 184px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.x3-dashboard-continue-media {
    position: relative;
    display: block;
    min-height: 184px;
    background: #111;
}

    .x3-dashboard-continue-media img {
        width: 100%;
        height: 100%;
        min-height: 184px;
        object-fit: cover;
        filter: brightness(0.72);
    }

    .x3-dashboard-continue-media span {
        position: absolute;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(135deg, #7c3aed, #a855f7);
    }

.x3-dashboard-continue-body {
    min-width: 0;
    padding: 26px;
}

.x3-dashboard-course-category {
    color: #a78bfa;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.x3-dashboard-continue-body h3 {
    margin: 8px 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

    .x3-dashboard-continue-body h3 a {
        color: #fff;
        text-decoration: none;
    }

.x3-dashboard-continue-body p {
    margin: 0 0 20px;
    color: rgba(235, 229, 255, 0.64);
}

.x3-dashboard-affiliate-card {
    position: relative;
    overflow: hidden;
}

    .x3-dashboard-affiliate-card::after {
        content: "";
        position: absolute;
        right: -72px;
        top: 24px;
        width: 190px;
        height: 190px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 68%);
        pointer-events: none;
    }

    .x3-dashboard-affiliate-card > * {
        position: relative;
        z-index: 1;
    }

.x3-dashboard-withdraw-btn,
.x3-dashboard-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.x3-dashboard-withdraw-btn {
    margin-top: 8px;
    color: #09090b;
    background: #fff;
}

.x3-dashboard-copy-btn {
    gap: 10px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

    .x3-dashboard-copy-btn.is-copied {
        color: #fff;
        background: rgba(34, 197, 94, 0.28);
    }

.x3-footer-pro {
    margin-top: 0;
    padding: 54px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #030305;
}

.x3-footer-pro-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(280px, 1.25fr);
    gap: 56px;
    padding-bottom: 56px;
}

.x3-footer-pro-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

    .x3-footer-pro-logo strong {
        color: #fff;
    }

.x3-footer-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 50%, #fff 0 38%, transparent 40%), linear-gradient(135deg, #7c3aed, #c026d3);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35);
}

.x3-footer-pro-brand p {
    max-width: 370px;
    margin: 26px 0 28px;
    color: rgba(218, 222, 235, 0.66);
    font-size: 16px;
    line-height: 1.6;
}

.x3-footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .x3-footer-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        color: rgba(218, 222, 235, 0.74);
        background: rgba(255, 255, 255, 0.035);
        text-decoration: none;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

        .x3-footer-socials a:hover {
            color: #fff;
            border-color: rgba(168, 85, 247, 0.4);
            background: rgba(124, 58, 237, 0.22);
        }

.x3-footer-pro-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.x3-footer-pro-links,
.x3-footer-pro-contact {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .x3-footer-pro-links a {
        color: rgba(218, 222, 235, 0.68);
        font-size: 16px;
        line-height: 1.35;
        text-decoration: none;
    }

        .x3-footer-pro-links a:hover {
            color: #c4a5ff;
        }

    .x3-footer-pro-contact li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        color: rgba(218, 222, 235, 0.72);
        font-size: 16px;
        line-height: 1.45;
    }

    .x3-footer-pro-contact i {
        margin-top: 3px;
        color: #a78bfa;
        font-size: 20px;
    }

.x3-footer-pro-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(218, 222, 235, 0.48);
    font-size: 15px;
}

    .x3-footer-pro-bottom img {
        display: block;
        width: min(220px, 42vw);
        height: auto;
        object-fit: contain;
        opacity: 0.72;
    }

.x3-account-dropdown {
    position: relative;
}

.x3-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    /* border: 1px solid rgba(255, 255, 255, 0.12); */
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    /* background: rgba(255, 255, 255, 0.055); */
    font-weight: 800;
}

    .x3-account-toggle:hover,
    .x3-account-toggle:focus {
        color: #fff;
        border-color: rgba(168, 85, 247, 0.42);
        background: rgba(124, 58, 237, 0.2);
    }

.x3-account-menu {
    min-width: 260px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(13, 13, 18, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

    .x3-account-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 42px;
        border-radius: 8px;
        color: rgba(235, 229, 255, 0.78);
        font-weight: 700;
    }

        .x3-account-menu .dropdown-item i {
            width: 18px;
            color: #a78bfa;
            text-align: center;
        }

        .x3-account-menu .dropdown-item:hover,
        .x3-account-menu .dropdown-item:focus {
            color: #fff;
            background: rgba(124, 58, 237, 0.18);
        }

    .x3-account-menu form {
        margin: 0;
    }

    .x3-account-menu .dropdown-divider {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

.x3-account-logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.x3-faq-page {
    padding: 72px 0 86px;
    background: linear-gradient(180deg, rgba(11, 10, 16, 1), rgba(5, 5, 8, 1));
}

.x3-faq-hero {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

    .x3-faq-hero h1 {
        margin: 8px 0 12px;
        color: #fff;
        font-size: 46px;
        line-height: 1.1;
    }

    .x3-faq-hero p {
        margin: 0;
        color: rgba(235, 229, 255, 0.68);
        font-size: 18px;
    }

.x3-faq-list {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.x3-faq-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

    .x3-faq-item button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        border: 0;
        padding: 20px 22px;
        color: #fff;
        background: transparent;
        font-size: 17px;
        font-weight: 800;
        text-align: left;
    }

        .x3-faq-item button i {
            color: #a78bfa;
        }

.x3-faq-answer {
    padding: 0 22px 22px;
    color: rgba(235, 229, 255, 0.7);
    line-height: 1.65;
}

    .x3-faq-answer p {
        margin: 0 0 0.85rem;
        padding: 0;
    }

        .x3-faq-answer p:last-child,
        .x3-faq-answer ul:last-child,
        .x3-faq-answer ol:last-child {
            margin-bottom: 0;
        }

    .x3-faq-answer a {
        color: #c084fc;
    }

    .x3-faq-answer ul,
    .x3-faq-answer ol {
        margin: 0 0 0.85rem;
        padding-left: 1.3rem;
    }

@media (max-width: 991.98px) {
    .x3-footer-pro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .x3-dashboard-shell,
    .x3-dashboard-content-grid,
    .x3-dashboard-continue-card {
        grid-template-columns: 1fr;
    }

    .x3-dashboard-side {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .x3-dashboard-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .x3-dashboard-rank {
        margin-top: 0;
    }

    .x3-dashboard-main {
        padding: 32px 18px 48px;
    }

    .x3-dashboard-hero,
    .x3-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .x3-dashboard-hero {
        display: grid;
    }

    .x3-dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .x3-dashboard-profile-card {
        min-width: 0;
    }

    .x3-login-layout {
        grid-template-columns: 1fr;
    }

    .x3-login-panel {
        display: block;
    }

    .x3-login-split-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .x3-login-form-panel {
        order: 1;
    }

    .x3-login-showcase-panel {
        order: 2;
        min-height: 520px;
    }
}

@media (max-width: 767.98px) {
    .x3-footer-pro {
        padding: 40px 0 24px;
    }

    .x3-footer-pro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 34px;
    }

    .x3-footer-pro-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .x3-footer-socials {
        gap: 12px;
    }

    .x3-dashboard-side-nav {
        grid-template-columns: 1fr;
    }

    .x3-dashboard-topline,
    .x3-dashboard-block-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .x3-dashboard-continue-media,
    .x3-dashboard-continue-media img {
        min-height: 210px;
    }

    .x3-dashboard-continue-body {
        padding: 18px;
    }

    .x3-dashboard-page {
        padding: 34px 0 52px;
    }

    .x3-dashboard-app {
        padding: 0;
    }

    .x3-dashboard-user {
        align-items: flex-start;
    }

        .x3-dashboard-user h1 {
            font-size: 28px;
        }

    .x3-dashboard-stat-grid,
    .x3-dashboard-course {
        grid-template-columns: 1fr;
    }

    .x3-dashboard-panel {
        padding: 18px;
    }

    .x3-dashboard-course-media,
    .x3-dashboard-course-media img {
        min-height: 190px;
    }

    .x3-dashboard-section-head,
    .x3-dashboard-course-meta,
    .x3-dashboard-progress-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .x3-login-page {
        padding: 6.4rem 0 2.5rem;
    }

    .x3-login-single-card {
        padding: 1.05rem;
        border-radius: 22px;
    }

    .x3-login-shell {
        padding: 1rem;
    }

    .x3-login-showcase,
    .x3-login-card {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .x3-login-split-card {
        border-radius: 24px;
    }

    .x3-login-showcase-panel,
    .x3-login-form-panel {
        padding: 1.4rem;
    }

    .x3-login-showcase-panel {
        min-height: auto;
        gap: 2rem;
    }

    .x3-login-showcase-main {
        padding: 1.8rem 0 0;
    }

        .x3-login-showcase-main h1 {
            font-size: 2.2rem;
        }

    .x3-login-feature-card {
        grid-template-columns: 1fr;
    }

    .x3-login-feature-slider {
        min-height: 250px;
    }

    .x3-login-brand {
        grid-template-columns: 1fr;
    }

    .x3-login-brand-mark {
        width: 74px;
        height: 74px;
    }

    .x3-login-slide-grid {
        grid-template-columns: 1fr;
    }

    .x3-login-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.x3-dashboard-page-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(126, 58, 237, 0.18);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

    .x3-dashboard-page-action:hover {
        color: #fff;
        border-color: rgba(167, 139, 250, 0.55);
        background: rgba(126, 58, 237, 0.28);
    }

.x3-my-courses-panel {
    margin-top: 1.4rem;
}

.x3-dashboard-block-title > span {
    color: #a7a1b8;
    font-weight: 700;
}

.x3-my-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.x3-my-course-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.x3-my-course-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #050507;
}

    .x3-my-course-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.78;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

.x3-my-course-card:hover .x3-my-course-media img {
    opacity: 0.9;
    transform: scale(1.035);
}

.x3-my-course-media > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    box-shadow: 0 18px 45px rgba(126, 58, 237, 0.38);
}

.x3-my-course-media em {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    color: #86efac;
    background: rgba(22, 101, 52, 0.78);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 750;
}

.x3-my-course-body {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.x3-my-course-meta,
.x3-my-course-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

    .x3-my-course-meta span {
        color: #a78bfa;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .x3-my-course-meta small,
    .x3-my-course-actions small {
        color: #9f98b7;
        font-weight: 650;
    }

.x3-my-course-body h3 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.35;
}

    .x3-my-course-body h3 a {
        color: inherit;
        text-decoration: none;
    }

.x3-my-course-body p {
    margin: 0;
    color: #b9b2ca;
    line-height: 1.55;
}

.x3-my-course-actions {
    padding-top: 0.2rem;
}

    .x3-my-course-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 42px;
        padding: 0 0.9rem;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(90deg, #7c3aed, #c026d3);
        font-weight: 750;
        text-decoration: none;
        white-space: nowrap;
    }

.x3-dashboard-simple-panel {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.x3-dashboard-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

    .x3-dashboard-note-grid article {
        display: grid;
        gap: 0.65rem;
        min-height: 150px;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.035);
    }

    .x3-dashboard-note-grid i {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        color: #fff;
        background: rgba(126, 58, 237, 0.28);
    }

    .x3-dashboard-note-grid strong {
        color: #fff;
        font-weight: 750;
    }

    .x3-dashboard-note-grid span {
        color: #b9b2ca;
        line-height: 1.55;
    }

.x3-dashboard-withdraw-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 20px;
    background: rgba(126, 58, 237, 0.1);
}

    .x3-dashboard-withdraw-panel span,
    .x3-dashboard-profile-grid span {
        color: #a7a1b8;
        font-weight: 700;
    }

    .x3-dashboard-withdraw-panel strong {
        display: block;
        margin-top: 0.2rem;
        color: #fff;
        font-size: 1.8rem;
        font-weight: 800;
    }

    .x3-dashboard-withdraw-panel p {
        margin: 0.5rem 0 0;
        color: #b9b2ca;
    }

    .x3-dashboard-withdraw-panel button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 48px;
        padding: 0 1rem;
        border: 0;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(90deg, #7c3aed, #c026d3);
        font-weight: 750;
    }

.x3-dashboard-withdraw-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.x3-dashboard-withdraw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
}

    .x3-dashboard-withdraw-meta small {
        color: #d7d1e6;
    }

    .x3-dashboard-withdraw-meta strong {
        display: inline;
        margin: 0;
        font-size: 1rem;
    }

.x3-dashboard-withdraw-bank {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(167, 139, 250, 0.14);
}

    .x3-dashboard-withdraw-bank small {
        color: #9f97b6;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.x3-dashboard-withdraw-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.65rem;
}

.x3-dashboard-withdraw-bank-item {
    display: grid;
    gap: 0.28rem;
}

    .x3-dashboard-withdraw-bank-item span {
        color: #a9a2ba;
        font-size: 0.85rem;
        font-weight: 700;
    }

    .x3-dashboard-withdraw-bank-item strong {
        display: block;
        margin: 0;
        color: #f5f3ff;
        font-size: 1.05rem;
        font-weight: 750;
        line-height: 1.4;
    }

.x3-dashboard-modal {
    background: linear-gradient(180deg, #171322 0%, #100d18 100%);
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: #f5f3ff;
}

    .x3-dashboard-modal .form-control {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

        .x3-dashboard-modal .form-control:focus {
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(192, 38, 211, 0.45);
            color: #fff;
            box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
        }

    .x3-dashboard-modal .btn-primary {
        border: 0;
        background: linear-gradient(90deg, #7c3aed, #c026d3);
    }

    .x3-dashboard-modal .btn-outline-light {
        border-color: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

.x3-dashboard-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.x3-dashboard-profile-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.x3-dashboard-profile-grid label {
    display: grid;
    gap: 0.55rem;
}

.x3-dashboard-profile-grid input {
    width: 100%;
    min-height: 54px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
}

    .x3-dashboard-profile-grid input[readonly] {
        opacity: 0.82;
        cursor: not-allowed;
    }

.x3-dashboard-form {
    display: grid;
    gap: 1rem;
}

.x3-dashboard-help {
    color: #9f98b5;
    font-size: 0.9rem;
    line-height: 1.45;
}

.x3-dashboard-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    font-weight: 750;
}

.x3-dashboard-alert {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    line-height: 1.5;
}

    .x3-dashboard-alert ul {
        margin: 0.5rem 0 0;
        padding-left: 1.1rem;
    }

    .x3-dashboard-alert.is-success {
        color: #d7ffe7;
        border-color: rgba(52, 211, 153, 0.34);
        background: rgba(16, 185, 129, 0.14);
    }

    .x3-dashboard-alert.is-error {
        color: #ffd9e0;
        border-color: rgba(251, 113, 133, 0.32);
        background: rgba(190, 24, 93, 0.14);
    }

.x3-dashboard-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
}

.x3-dashboard-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

    .x3-dashboard-table th,
    .x3-dashboard-table td {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        color: #c9c3dc;
        text-align: left;
        vertical-align: middle;
    }

    .x3-dashboard-table th {
        color: #a7a1b8;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.035);
    }

    .x3-dashboard-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .x3-dashboard-table td strong {
        display: block;
        color: #fff;
        font-weight: 760;
    }

    .x3-dashboard-table td small {
        display: block;
        margin-top: 0.25rem;
        color: #9f98b7;
    }

.x3-dashboard-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.72rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

    .x3-dashboard-status.is-success {
        color: #86efac;
        background: rgba(22, 163, 74, 0.16);
    }

    .x3-dashboard-status.is-pending {
        color: #fde68a;
        background: rgba(217, 119, 6, 0.16);
    }

    .x3-dashboard-status.is-danger {
        color: #fecaca;
        background: rgba(220, 38, 38, 0.16);
    }

.x3-dashboard-table-empty {
    color: #a7a1b8 !important;
    text-align: center !important;
    font-weight: 700;
}

.x3-dashboard-table-wrap .dataTables_wrapper {
    padding: 0.95rem;
    color: #b9b2cf;
}

.x3-dashboard-table-wrap .dataTables_length,
.x3-dashboard-table-wrap .dataTables_filter,
.x3-dashboard-table-wrap .dataTables_info,
.x3-dashboard-table-wrap .dataTables_paginate {
    color: #b9b2cf !important;
    font-weight: 700;
}

    .x3-dashboard-table-wrap .dataTables_length select,
    .x3-dashboard-table-wrap .dataTables_filter input {
        min-height: 42px;
        margin: 0 0.45rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        color: #fff;
        background: rgba(0, 0, 0, 0.32);
        outline: none;
    }

    .x3-dashboard-table-wrap .dataTables_filter input {
        width: min(280px, 55vw);
        padding: 0 0.85rem;
    }

.x3-dashboard-table-wrap table.dataTable.no-footer {
    border-bottom: 0;
}

.x3-dashboard-table-wrap table.dataTable thead th,
.x3-dashboard-table-wrap table.dataTable thead td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.x3-dashboard-table-wrap .dataTables_paginate .paginate_button {
    min-width: 40px;
    min-height: 38px;
    margin-left: 0.35rem;
    padding: 0.45rem 0.7rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #d8d1ea !important;
    background: rgba(255, 255, 255, 0.045) !important;
}

    .x3-dashboard-table-wrap .dataTables_paginate .paginate_button.current,
    .x3-dashboard-table-wrap .dataTables_paginate .paginate_button.current:hover {
        color: #fff !important;
        border-color: rgba(168, 85, 247, 0.75) !important;
        background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
    }

    .x3-dashboard-table-wrap .dataTables_paginate .paginate_button:hover {
        color: #fff !important;
        border-color: rgba(168, 85, 247, 0.55) !important;
        background: rgba(124, 58, 237, 0.22) !important;
    }

    .x3-dashboard-table-wrap .dataTables_paginate .paginate_button.disabled,
    .x3-dashboard-table-wrap .dataTables_paginate .paginate_button.disabled:hover {
        color: rgba(216, 209, 234, 0.36) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
        background: rgba(255, 255, 255, 0.025) !important;
    }

.x3-affiliate-tree-panel {
    overflow: hidden;
}

.x3-affiliate-level-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

    .x3-affiliate-level-summary article {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        padding: 0.9rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.035);
    }

    .x3-affiliate-level-summary span {
        color: #a78bfa;
        font-weight: 800;
    }

    .x3-affiliate-level-summary strong {
        color: #fff;
        font-size: 1.35rem;
        font-weight: 800;
    }

.x3-affiliate-tree-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

    .x3-affiliate-tree-toolbar button {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 40px;
        padding: 0 0.85rem;
        border: 1px solid rgba(167, 139, 250, 0.25);
        border-radius: 999px;
        color: #fff;
        background: rgba(126, 58, 237, 0.16);
        font-weight: 700;
    }

.x3-affiliate-tree-chart {
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: radial-gradient(circle at 50% 0%, rgba(126, 58, 237, 0.16), transparent 30rem), rgba(0, 0, 0, 0.18);
}

.x3-affiliate-tree-node {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.75rem;
    width: 250px;
    min-height: 116px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(180deg, rgba(31, 29, 42, 0.98), rgba(14, 13, 19, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

    .x3-affiliate-tree-node.is-root {
        border-color: rgba(167, 139, 250, 0.45);
        background: linear-gradient(180deg, rgba(73, 44, 132, 0.98), rgba(30, 20, 52, 0.98));
    }

.x3-affiliate-tree-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    font-weight: 850;
}

.x3-affiliate-tree-node span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.22rem;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(126, 58, 237, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
}

.x3-affiliate-tree-node strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 780;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x3-affiliate-tree-node small,
.x3-affiliate-tree-node em {
    display: block;
    overflow: hidden;
    margin-top: 0.22rem;
    color: #a7a1b8;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x3-affiliate-tree-list {
    display: none;
}

.x3-affiliate-tree-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: #b9b2ca;
    font-weight: 700;
    text-align: center;
}

.x3-affiliate-tree-list details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.x3-affiliate-tree-list summary {
    display: flex;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

    .x3-affiliate-tree-list summary span {
        color: #a7a1b8;
        font-weight: 650;
    }

.x3-affiliate-tree-list details > div {
    display: grid;
    gap: 0.7rem;
    padding: 0 1rem 1rem;
}

.x3-affiliate-tree-list article {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
}

    .x3-affiliate-tree-list article strong,
    .x3-affiliate-tree-list article small {
        display: block;
    }

    .x3-affiliate-tree-list article strong {
        color: #fff;
    }

    .x3-affiliate-tree-list article small,
    .x3-affiliate-tree-list article span,
    .x3-affiliate-tree-list p {
        margin: 0;
        color: #a7a1b8;
    }

@media (max-width: 991.98px) {
    .x3-my-courses-grid,
    .x3-dashboard-note-grid,
    .x3-affiliate-level-summary {
        grid-template-columns: 1fr;
    }

    .x3-affiliate-tree-chart,
    .x3-affiliate-tree-toolbar {
        display: none;
    }

    .x3-affiliate-tree-list {
        display: grid;
        gap: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .x3-dashboard-page-action,
    .x3-my-course-actions a {
        width: 100%;
    }

    .x3-my-course-meta,
    .x3-my-course-actions,
    .x3-dashboard-withdraw-panel {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .x3-dashboard-profile-grid {
        grid-template-columns: 1fr;
    }

    .x3-dashboard-withdraw-bank-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
