:root {
    --bg: #070b17;
    --bg-soft: #0c1222;
    --card: #10182b;
    --card-hover: #141e35;
    --border: #202c46;

    --text: #f5f7ff;
    --muted: #8f9bb5;

    --cyan: #19d8ff;
    --blue: #2776ff;
    --purple: #8658ff;
    --pink: #e82cff;

    --gradient:
        linear-gradient(
            120deg,
            var(--cyan),
            var(--blue),
            var(--purple),
            var(--pink)
        );
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, #11265a55, transparent 35%),
        radial-gradient(circle at 90% 20%, #59157b33, transparent 30%),
        var(--bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.topbar {
    height: 86px;
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 23, .86);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand img {
    width: 210px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-user > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.topbar-user strong {
    font-size: 14px;
}

.topbar-user span {
    color: var(--muted);
    font-size: 12px;
}

.logout-btn {
    padding: 9px 15px;
    color: #c5cee3;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

.logout-btn:hover {
    color: #fff;
    border-color: #536281;
}

.app-container {
    width: min(1280px, calc(100% - 60px));
    margin: 0 auto;
    padding: 55px 0 100px;
}

.eyebrow,
.course-label,
.block-label,
.lesson-day {
    color: #7795ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

.page-heading h1,
.course-hero h1,
.lesson-header h1 {
    margin: 9px 0 12px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.page-heading p,
.course-hero p,
.lesson-header p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.day-badge {
    min-width: 180px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.day-badge span,
.day-badge strong {
    display: block;
}

.day-badge span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.section-heading {
    margin: 0 0 22px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 27px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.course-card {
    min-height: 390px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, #111a2e, #0d1425);
    transition: .25s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: #3b4d78;
    background: var(--card-hover);
}

.course-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--gradient);
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 12px 35px #574eff35;
}

.course-status {
    padding: 7px 10px;
    border: 1px solid #2e685d;
    border-radius: 30px;
    color: #62e8bf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.course-content {
    margin-top: 44px;
}

.course-content h3 {
    margin: 8px 0 12px;
    font-size: 29px;
    letter-spacing: -.03em;
}

.course-content p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.course-progress {
    margin-top: auto;
    padding-top: 34px;
}

.progress-meta,
.progress-bottom {
    display: flex;
    justify-content: space-between;
}

.progress-meta {
    margin-bottom: 9px;
    font-size: 12px;
}

.progress-meta span,
.progress-bottom {
    color: var(--muted);
}

.progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #202a40;
}

.progress-value {
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: var(--gradient);
}

.progress-bottom {
    margin-top: 12px;
    font-size: 12px;
}

.continue-link {
    color: #9aaeff !important;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 14px;
}

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

.course-hero {
    min-height: 300px;
    padding: 48px;
    margin-bottom: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 25px;
    background:
        radial-gradient(circle at 80% 20%, #7327bd55, transparent 35%),
        radial-gradient(circle at 60% 80%, #174fd755, transparent 35%),
        #0e1628;
}

.course-hero-content {
    max-width: 720px;
}

.hero-code {
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 38px;
    background: var(--gradient);
    box-shadow: 0 30px 80px #6c2cff38;
}

.hero-code strong {
    font-size: 52px;
}

.hero-code span {
    position: absolute;
    top: 17px;
    right: 19px;
    font-size: 12px;
    opacity: .75;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-row {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 22px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    transition: .2s ease;
}

.lesson-row:hover {
    transform: translateX(4px);
    border-color: #3b4d78;
    background: var(--card-hover);
}

.lesson-number {
    color: #687895;
    font-size: 27px;
    font-weight: 800;
}

.lesson-info h3 {
    margin: 4px 0 5px;
    font-size: 18px;
}

.lesson-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.lesson-state {
    color: #9ba9c6;
    font-size: 13px;
}

.lesson-state .completed {
    color: #62e8bf;
}

.lesson-state .started {
    color: #8fa5ff;
}

.lesson-header {
    margin-bottom: 42px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lesson-big-number {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    display: grid;
    place-items: center;
    border: 1px solid #344264;
    border-radius: 22px;
    color: #8495b7;
    background: #10182b;
    font-size: 35px;
    font-weight: 900;
}

.lesson-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.lesson-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lesson-block,
.sidebar-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.lesson-block h2 {
    margin: 8px 0 18px;
    font-size: 26px;
}

.lesson-block p,
.sidebar-card p {
    color: #a9b4ca;
    line-height: 1.75;
}

.code-window {
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid #263451;
    border-radius: 14px;
    background: #070c17;
}

.code-toolbar {
    height: 43px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #202b43;
    color: #667590;
    font-size: 11px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a4761;
}

.code-window pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
}

.code-window code {
    color: #bcd0ff;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
}

.coming-soon {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed #364564;
    border-radius: 11px;
    color: #8090ad;
    font-size: 13px;
}

.sidebar-card {
    position: sticky;
    top: 112px;
}

.sidebar-card h3 {
    margin: 7px 0 16px;
    font-size: 23px;
}

.success-box {
    padding: 14px;
    border: 1px solid #286655;
    border-radius: 10px;
    color: #62e8bf;
    background: #14382d55;
}

.primary-btn {
    width: 100%;
    padding: 15px 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 12px 35px #503cff35;
    font-weight: 800;
    cursor: pointer;
}

.login-page {
    min-height: 100vh;
    padding: 30px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.login-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .15;
}

.login-glow-one {
    top: -180px;
    left: -100px;
    background: #147bff;
}

.login-glow-two {
    right: -150px;
    bottom: -200px;
    background: #df23ff;
}

.login-card {
    width: min(460px, 100%);
    padding: 42px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(14, 21, 38, .92);
    box-shadow: 0 40px 100px #0008;
}

.login-logo {
    display: block;
    width: 270px;
    max-width: 100%;
    margin: 0 auto 42px;
}

.login-heading {
    text-align: center;
}

.login-heading h1 {
    margin: 8px 0 10px;
    font-size: 35px;
    letter-spacing: -.04em;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form label span {
    display: block;
    margin-bottom: 8px;
    color: #aeb8cc;
    font-size: 12px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    padding: 14px 15px;
    outline: none;
    color: #fff;
    border: 1px solid #283653;
    border-radius: 10px;
    background: #090f1d;
}

.login-form input:focus {
    border-color: #576fff;
    box-shadow: 0 0 0 3px #405cff18;
}

.alert-error {
    margin-top: 22px;
    padding: 12px 14px;
    color: #ff9ea8;
    border: 1px solid #713841;
    border-radius: 9px;
    background: #40182055;
    font-size: 13px;
}

.login-footer {
    margin-top: 28px;
    color: #586780;
    text-align: center;
    font-size: 11px;
}

.empty-state {
    padding: 50px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
}

@media (max-width: 800px) {
    .topbar {
        height: 70px;
        padding: 0 18px;
    }

    .brand img {
        width: 150px;
    }

    .topbar-user > div {
        display: none;
    }

    .app-container {
        width: min(100% - 30px, 1280px);
        padding-top: 35px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .course-hero {
        padding: 30px;
    }

    .hero-code {
        display: none;
    }

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

    .lesson-sidebar {
        order: -1;
    }

    .sidebar-card {
        position: static;
    }

    .lesson-row {
        grid-template-columns: 45px 1fr;
    }

    .lesson-state {
        grid-column: 2;
    }

    .lesson-header {
        align-items: flex-start;
    }

    .lesson-big-number {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
        font-size: 22px;
    }

    .login-card {
        padding: 30px 22px;
    }
}


/* ==================================================
   NEXTLEVEL ACHIEVEMENTS
   ================================================== */

.level-card {
    width: 270px;
    padding: 18px 20px;
    border: 1px solid #293858;
    border-radius: 15px;
    background:
        linear-gradient(145deg, #111a2e, #0c1425);
}

.level-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.level-top > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.level-top span {
    color: #7896ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.level-top strong {
    font-size: 17px;
}

.level-xp {
    color: #31ddff;
    font-size: 13px;
    font-weight: 900;
}

.level-track {
    height: 5px;
    margin: 14px 0 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #222e47;
}

.level-value {
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: var(--gradient);
}

.level-card small {
    color: #74829e;
    font-size: 10px;
}

.achievements-section {
    margin-top: 65px;
}

.achievement-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.achievement-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.achievement-summary {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #91a4ca;
    font-size: 12px;
    font-weight: 800;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.achievement-card {
    min-height: 300px;
    padding: 23px;
    position: relative;
    overflow: hidden;
    border: 1px solid #2b3957;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, #273b7255, transparent 40%),
        #0f1729;
    transition: .25s ease;
}

.achievement-card:not(.locked):hover {
    transform: translateY(-4px);
    border-color: #53699d;
}

.achievement-card.locked {
    opacity: .48;
    filter: grayscale(.7);
}

.achievement-medal {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.medal-ring {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 28px;
    background:
        linear-gradient(145deg, #22d9ff, #356aff 45%, #d928ff);
    box-shadow:
        0 15px 40px #385eff35,
        inset 0 0 0 2px #ffffff22;
    transform: rotate(-4deg);
}

.medal-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid #ffffff42;
    border-radius: 22px;
}

.medal-ring span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.rarity-bronze .medal-ring {
    filter: sepia(.25);
}

.rarity-silver .medal-ring {
    box-shadow:
        0 15px 45px #a5c7ff38,
        inset 0 0 0 2px #fff4;
}

.rarity-gold .medal-ring {
    box-shadow:
        0 15px 48px #ffd34a42,
        inset 0 0 0 2px #fff5;
}

.rarity-platinum .medal-ring,
.rarity-legendary .medal-ring {
    box-shadow:
        0 0 30px #18dfff55,
        0 0 55px #c42aff3d,
        inset 0 0 0 2px #fff5;
}

.medal-lock {
    position: absolute;
    bottom: 0;
    padding: 4px 8px;
    border: 1px solid #45516b;
    border-radius: 20px;
    color: #8995ad;
    background: #0c1322;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.achievement-rarity,
.popup-rarity {
    margin-top: 14px;
    color: #778fff;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
}

.achievement-card h3 {
    margin: 9px 0 8px;
    text-align: center;
    font-size: 17px;
}

.achievement-card p {
    margin: 0;
    color: #8491aa;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
}

.achievement-bottom {
    margin-top: 20px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #202c43;
    color: #73809b;
    font-size: 10px;
}

.achievement-bottom strong {
    color: #34d8ff;
}

.course-rewards {
    margin-bottom: 55px;
}

.reward-path {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    position: relative;
}

.reward-path::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: #2a3650;
}

.reward-step {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: .4;
}

.reward-step.unlocked {
    opacity: 1;
}

.reward-step-medal {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 1px solid #34435f;
    border-radius: 22px;
    color: #73819c;
    background: #0d1525;
    font-weight: 900;
}

.reward-step.unlocked .reward-step-medal {
    color: #fff;
    border: 0;
    background: var(--gradient);
    box-shadow: 0 10px 35px #4e43ff3b;
}

.reward-step strong {
    max-width: 130px;
    font-size: 11px;
    line-height: 1.35;
}

.reward-step small {
    margin-top: 5px;
    color: #6f7d97;
    font-size: 9px;
}

.achievement-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 25px;
    background: rgba(3, 7, 16, .88);
    backdrop-filter: blur(15px);
    animation: achievementFade .35s ease;
}

.achievement-overlay-hide {
    opacity: 0;
    transition: opacity .25s ease;
}

.achievement-popup {
    width: min(440px, 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #435682;
    border-radius: 26px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, #34398b66, transparent 45%),
        radial-gradient(circle at 100% 100%, #8b258755, transparent 40%),
        #10182b;
    box-shadow:
        0 40px 120px #000b,
        0 0 80px #573bff25;
    animation: achievementPop .45s cubic-bezier(.2,.9,.25,1.2);
}

.achievement-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #8290aa;
    border: 1px solid #34415d;
    border-radius: 50%;
    background: #0d1423;
    cursor: pointer;
}

.popup-kicker {
    margin-bottom: 28px;
    color: #8ba0ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
}

.popup-medal {
    display: flex;
    justify-content: center;
}

.popup-medal .medal-ring {
    width: 125px;
    height: 125px;
    border-radius: 38px;
    box-shadow:
        0 0 45px #23cfff55,
        0 0 80px #c02bff44;
}

.popup-medal .medal-ring::before {
    border-radius: 30px;
}

.popup-medal .medal-ring span {
    font-size: 36px;
}

.achievement-popup h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    letter-spacing: -.035em;
}

.achievement-popup p {
    margin: 0 auto;
    max-width: 310px;
    color: #98a5be;
    line-height: 1.6;
}

.popup-xp {
    margin: 24px 0;
    color: #34dcff;
    font-size: 24px;
    font-weight: 950;
}

@keyframes achievementFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes achievementPop {
    from {
        opacity: 0;
        transform: scale(.82) translateY(25px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 1000px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reward-path {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .reward-path::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .level-card {
        width: 100%;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .reward-path {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-popup {
        padding: 35px 22px 25px;
    }
}


/* ==================================================
   COURSE MODULES
   ================================================== */

.roadmap-heading {
    margin-top: 20px;
}

.roadmap-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.course-modules {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.learning-module {
    overflow: hidden;
    border: 1px solid #202d48;
    border-radius: 21px;
    background:
        linear-gradient(145deg, #10182b, #0c1322);
}

.learning-module-head {
    padding: 27px 30px;
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 22px;
    align-items: center;
    border-bottom: 1px solid #202d48;
    background:
        radial-gradient(circle at 0 0, #2359bd22, transparent 40%),
        #10182b;
}

.module-index {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid #34496f;
    border-radius: 18px;
    color: #8da5d2;
    background: #0a1221;
    font-size: 24px;
    font-weight: 900;
}

.module-kicker {
    margin-bottom: 5px;
    color: #718eff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.module-heading-content h3 {
    margin: 0 0 7px;
    font-size: 23px;
}

.module-heading-content p {
    max-width: 720px;
    margin: 0;
    color: #8794ad;
    font-size: 13px;
    line-height: 1.55;
}

.module-count {
    padding: 7px 11px;
    border: 1px solid #2b3955;
    border-radius: 20px;
    color: #7586a6;
    font-size: 10px;
    font-weight: 800;
}

.module-lessons {
    padding: 8px 18px 18px;
}

.module-lesson-row {
    min-height: 104px;
    padding: 18px 12px;
    display: grid;
    grid-template-columns: 55px 1fr 110px;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid #1d2940;
    transition:
        background .2s ease,
        transform .2s ease;
}

.module-lesson-row:last-child {
    border-bottom: 0;
}

a.module-lesson-row:hover {
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 13px;
    background: #141e33;
}

.module-lesson-row.is-available {
    position: relative;
}

.module-lesson-row.is-available::before {
    content: "";
    width: 3px;
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: -18px;
    border-radius: 5px;
    background: var(--gradient);
}

.module-lesson-row.is-locked {
    cursor: not-allowed;
    opacity: .38;
    filter: grayscale(.35);
}

.module-lesson-number {
    color: #647594;
    font-size: 19px;
    font-weight: 900;
    text-align: center;
}

.module-lesson-row.is-available .module-lesson-number {
    color: #6fa9ff;
}

.module-lesson-row.is-completed .module-lesson-number {
    color: #4fd7ad;
}

.lesson-tags {
    min-height: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.lesson-tag {
    padding: 4px 7px;
    border: 1px solid #314364;
    border-radius: 5px;
    color: #839bcb;
    background: #111c31;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.lesson-tag.tag-setup {
    color: #ba98ff;
    border-color: #4d3d72;
    background: #201734;
}

.lesson-tag.tag-practice {
    color: #4bd6bd;
    border-color: #285b54;
    background: #102925;
}

.lesson-tag.tag-env {
    color: #8591a9;
    border-color: #303a4d;
    background: #121824;
}

.module-lesson-main h4 {
    margin: 7px 0 5px;
    font-size: 16px;
}

.module-lesson-main p {
    margin: 0;
    color: #7d8ba5;
    font-size: 12px;
    line-height: 1.5;
}

.module-lesson-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #7585a4;
    font-size: 11px;
}

.is-available .module-lesson-status {
    color: #8ca8ff;
}

.is-completed .module-lesson-status {
    color: #56d8b3;
}

.lesson-done-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid #286353;
    border-radius: 50%;
    color: #57ddb6;
    background: #11332a;
}

.lesson-arrow {
    font-size: 17px;
}

.lesson-lock-icon {
    color: #59647a;
    font-size: 8px;
}

@media (max-width: 700px) {
    .learning-module-head {
        padding: 22px;
        grid-template-columns: 55px 1fr;
    }

    .module-index {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 18px;
    }

    .module-count {
        grid-column: 2;
        width: max-content;
    }

    .module-lessons {
        padding: 5px 13px 13px;
    }

    .module-lesson-row {
        grid-template-columns: 35px 1fr;
        gap: 12px;
    }

    .module-lesson-status {
        grid-column: 2;
        justify-content: flex-start;
    }

    .module-lesson-row.is-available::before {
        left: -13px;
    }
}


/* ==================================================
   LESSON V2
   ================================================== */

.lesson-v2 {
    max-width: 1240px;
    margin: 0 auto;
}

.lesson-v2-header {
    margin: 28px 0 36px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 26px;
    align-items: center;
}

.lesson-v2-title .lesson-tags {
    margin-bottom: 13px;
}

.lesson-v2-title h1 {
    margin: 7px 0 8px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.045em;
}

.lesson-v2-title > p {
    max-width: 720px;
    margin: 0;
    color: #8996ae;
    line-height: 1.6;
}

.lesson-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 26px;
    align-items: start;
}

.lesson-v2-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.learning-card {
    padding: 34px;
    border: 1px solid #202d48;
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 0, #203d7520, transparent 35%),
        #0e1728;
}

.learning-step {
    margin-bottom: 15px;
    display: flex;
    gap: 9px;
    align-items: center;
    color: #7189bd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.learning-step span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid #33496f;
    border-radius: 8px;
    color: #91a9db;
    background: #101d33;
    font-size: 9px;
}

.learning-card h2 {
    margin: 0 0 22px;
    font-size: 24px;
}

.lesson-readable,
.lesson-task-text {
    color: #a1aec3;
    font-size: 15px;
    line-height: 1.8;
}

.lesson-readable p,
.lesson-task-text p {
    margin: 0 0 18px;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 35px 1fr 35px 1fr;
    gap: 10px;
    align-items: center;
}

.concept-card {
    min-height: 190px;
    padding: 24px 18px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid #263652;
    border-radius: 16px;
    text-align: center;
    background: #101a2c;
}

.concept-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #38517b;
    border-radius: 17px;
    color: #83a8ff;
    background: #132541;
    font-size: 16px;
    font-weight: 900;
}

.concept-card strong {
    font-size: 15px;
}

.concept-card p {
    margin: 8px 0 0;
    color: #7f8ca4;
    font-size: 11px;
    line-height: 1.55;
}

.concept-arrow {
    color: #415273;
    text-align: center;
    font-size: 20px;
}

.work-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.work-mode-card {
    padding: 22px;
    display: flex;
    gap: 17px;
    border: 1px solid #293953;
    border-radius: 16px;
    background: #101a2b;
}

.work-mode-card.academy-mode {
    border-color: #334f88;
    background:
        radial-gradient(circle at 0 0, #2458bd22, transparent 55%),
        #101a2b;
}

.work-mode-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #172541;
    font-size: 19px;
}

.work-mode-card span {
    color: #718cff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

.work-mode-card h3 {
    margin: 5px 0 7px;
    font-size: 16px;
}

.work-mode-card p {
    margin: 0;
    color: #7f8ca5;
    font-size: 11px;
    line-height: 1.55;
}

.os-tabs {
    margin-bottom: 28px;
    display: flex;
    gap: 8px;
}

.os-tab {
    padding: 11px 18px;
    border: 1px solid #2c3a55;
    border-radius: 10px;
    color: #8492ab;
    background: #111a2b;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.os-tab.active {
    color: #fff;
    border-color: #526be7;
    background: #253a7c;
    box-shadow: 0 8px 25px #324fd42c;
}

.os-panel {
    display: none;
}

.os-panel.active {
    display: block;
}

.instruction-step {
    margin: 0 0 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    border: 1px solid #23314a;
    border-radius: 14px;
    background: #0c1525;
}

.instruction-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #8eaaff;
    background: #18294a;
    font-size: 12px;
    font-weight: 900;
}

.instruction-step h3 {
    margin: 2px 0 7px;
    font-size: 15px;
}

.instruction-step p {
    margin: 0;
    color: #8996ac;
    font-size: 12px;
    line-height: 1.6;
}

.terminal-window {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #293850;
    border-radius: 11px;
    background: #080e18;
}

.terminal-title {
    padding: 8px 12px;
    color: #65738d;
    border-bottom: 1px solid #202b3e;
    background: #111927;
    font-size: 9px;
}

.terminal-window pre {
    margin: 0;
    padding: 18px;
    color: #d4ddec;
    font-size: 13px;
}

.terminal-window pre span {
    color: #49d7b0;
}

.instruction-note {
    margin-top: 12px !important;
}

.instruction-note code {
    color: #9fb7ff;
}

.expected-result {
    padding: 17px 20px;
    display: flex;
    gap: 13px;
    align-items: center;
    border: 1px solid #27564d;
    border-radius: 13px;
    background: #0e2925;
}

.expected-result > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #58dfb9;
    background: #173b33;
}

.expected-result div {
    display: flex;
    flex-direction: column;
}

.expected-result small {
    margin-bottom: 3px;
    color: #57bda3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.expected-result strong {
    font-size: 13px;
}

.code-window-v2 {
    margin-top: 24px;
}

.code-language {
    margin-left: auto;
    color: #6f819e;
    font-size: 9px;
    font-weight: 800;
}

.academy-editor-preview {
    border-color: #2d4168;
}

.editor-intro {
    color: #8593ab;
    font-size: 13px;
}

.academy-editor {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #2b3b58;
    border-radius: 14px;
    background: #080f1b;
}

.academy-editor-bar {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    color: #9aa9c2;
    border-bottom: 1px solid #202d42;
    background: #111a2a;
    font-size: 10px;
}

.academy-editor-bar small {
    color: #7185a7;
}

.academy-editor textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    resize: vertical;
    color: #d6e0ef;
    border: 0;
    outline: 0;
    background: #080f1b;
    font: 13px/1.7 monospace;
}

.academy-editor-actions {
    padding: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #202d42;
}

.editor-btn {
    padding: 9px 13px;
    border: 1px solid #344563;
    border-radius: 8px;
    color: #74829b;
    background: #141e2f;
}

.editor-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.academy-console {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #202c40;
    border-radius: 11px;
    background: #080e17;
}

.console-label {
    margin-bottom: 8px;
    color: #596b87;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

.console-placeholder {
    color: #59667a;
    font: 11px monospace;
}

.lesson-v2-sidebar {
    position: sticky;
    top: 25px;
}

.lesson-progress-card {
    padding: 23px;
    border: 1px solid #25344f;
    border-radius: 18px;
    background: #10192a;
}

.lesson-progress-card h3 {
    margin: 6px 0 20px;
}

.lesson-checklist {
    margin-bottom: 22px;
}

.checklist-item {
    padding: 9px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #8491a7;
    border-bottom: 1px solid #1c283c;
    font-size: 11px;
}

.check-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 1px solid #536079;
    border-radius: 50%;
}

.check-dot.active {
    border-color: #4d79ff;
    background: #4d79ff;
    box-shadow: 0 0 12px #4d79ff88;
}

.lesson-confirm-btn {
    width: 100%;
    justify-content: center;
}

.lesson-action-locked {
    padding: 14px;
    border: 1px solid #29364d;
    border-radius: 11px;
    background: #0c1422;
}

.lesson-action-locked strong {
    color: #839cff;
    font-size: 11px;
}

.lesson-action-locked p {
    margin: 5px 0 0;
    color: #718099;
    font-size: 10px;
    line-height: 1.5;
}

.lesson-xp-note {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #687690;
    font-size: 9px;
    line-height: 1.4;
}

.lesson-xp-note span {
    padding: 4px 6px;
    border-radius: 5px;
    color: #43d8ff;
    background: #12293a;
    font-weight: 900;
}

@media (max-width: 900px) {
    .lesson-v2-layout {
        grid-template-columns: 1fr;
    }

    .lesson-v2-sidebar {
        position: static;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }

    .concept-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 650px) {
    .lesson-v2-header {
        grid-template-columns: 60px 1fr;
    }

    .learning-card {
        padding: 23px 18px;
    }

    .work-mode-grid {
        grid-template-columns: 1fr;
    }

    .os-tabs {
        overflow-x: auto;
    }

    .os-tab {
        white-space: nowrap;
    }
}


/* ==================================================
   ACHIEVEMENT HORIZONTAL STACK
   ================================================== */

.achievement-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.achievement-stage {
    width: min(1000px, calc(100vw - 40px));
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-stack-title {
    position: absolute;
    top: 25px;
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    color: #849cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    white-space: nowrap;
}

.achievement-stack {
    width: 100%;
    height: 590px;
    position: relative;
}

.achievement-stack .achievement-popup {
    width: 440px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transition:
        transform .42s cubic-bezier(.2,.8,.2,1),
        opacity .3s ease,
        filter .3s ease;
    animation: none;
}

/* Главная карточка */

.achievement-stack .achievement-popup[data-stack-position="0"] {
    z-index: 10;
    opacity: 1;
    filter: none;
    transform:
        translate(-50%, -50%)
        translateX(-90px)
        scale(1);
}

/* Вторая выглядывает справа */

.achievement-stack .achievement-popup[data-stack-position="1"] {
    z-index: 9;
    opacity: .78;
    filter: brightness(.72);
    transform:
        translate(-50%, -50%)
        translateX(175px)
        scale(.94);
}

/* Третья еще дальше */

.achievement-stack .achievement-popup[data-stack-position="2"] {
    z-index: 8;
    opacity: .42;
    filter: brightness(.55);
    transform:
        translate(-50%, -50%)
        translateX(330px)
        scale(.88);
}

.achievement-card-hidden {
    z-index: 1 !important;
    opacity: 0 !important;
    pointer-events: none;
    transform:
        translate(-50%, -50%)
        translateX(390px)
        scale(.84) !important;
}

/* Только передняя карточка интерактивна */

.achievement-stack .achievement-popup:not([data-stack-position="0"]) {
    pointer-events: none;
}

.achievement-stack
.achievement-popup:not([data-stack-position="0"])
.achievement-close,

.achievement-stack
.achievement-popup:not([data-stack-position="0"])
.achievement-claim,

.achievement-stack
.achievement-popup:not([data-stack-position="0"])
.achievement-counter {
    opacity: 0;
}

/* Уход текущей карточки */

.achievement-stack .achievement-card-leaving {
    z-index: 30 !important;
    opacity: 0 !important;
    transform:
        translate(-50%, -50%)
        translateX(-480px)
        rotate(-5deg)
        scale(.92) !important;
}

.achievement-card-done {
    display: none !important;
}

.achievement-counter {
    margin: -12px 0 15px;
    color: #667793;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.achievement-claim {
    width: 100%;
    justify-content: center;
}


/* Если награда только одна — строго по центру */

.achievement-stack
.achievement-popup:first-child:last-child {
    transform:
        translate(-50%, -50%)
        scale(1);
}


/* Mobile */

@media (max-width: 760px) {

    .achievement-stage {
        width: 100%;
        min-height: 610px;
    }

    .achievement-stack {
        height: 570px;
    }

    .achievement-stack .achievement-popup {
        width: min(390px, calc(100vw - 45px));
    }

    .achievement-stack .achievement-popup[data-stack-position="0"] {
        transform:
            translate(-50%, -50%)
            translateX(-18px)
            scale(1);
    }

    .achievement-stack .achievement-popup[data-stack-position="1"] {
        opacity: .5;
        transform:
            translate(-50%, -50%)
            translateX(115px)
            scale(.94);
    }

    .achievement-stack .achievement-popup[data-stack-position="2"] {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            translateX(160px)
            scale(.9);
    }
}


/* ==================================================
   ACHIEVEMENT STACK — MOTION FIX
   ================================================== */

/* Идеально центрируем X внутри круга */
.achievement-stack .achievement-close {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-size: 20px;
    text-align: center;
}

.achievement-stack .achievement-popup {
    will-change: transform, opacity, filter;
    transition:
        transform .58s cubic-bezier(.22, .8, .25, 1),
        opacity .42s ease,
        filter .48s ease,
        box-shadow .48s ease;
}


/* Передняя карточка */
.achievement-stack .achievement-popup[data-stack-position="0"] {
    z-index: 10;
    opacity: 1;
    filter: brightness(1);
    box-shadow:
        0 40px 120px #000b,
        0 0 80px #573bff25;

    transform:
        translate(-50%, -50%)
        translateX(-90px)
        scale(1);
}


/* Вторая карточка */
.achievement-stack .achievement-popup[data-stack-position="1"] {
    z-index: 9;
    opacity: .72;
    filter: brightness(.62);

    box-shadow:
        0 25px 70px #0008;

    transform:
        translate(-50%, -50%)
        translateX(175px)
        scale(.94);
}


/* Третья карточка */
.achievement-stack .achievement-popup[data-stack-position="2"] {
    z-index: 8;
    opacity: .35;
    filter: brightness(.48);

    transform:
        translate(-50%, -50%)
        translateX(325px)
        scale(.88);
}


/*
 * Закрываемая карточка.
 * Она летит влево поверх остальных.
 */
.achievement-stack .achievement-popup.achievement-card-leaving {
    z-index: 50 !important;

    opacity: 0 !important;
    filter: brightness(.85) blur(2px) !important;

    transform:
        translate(-50%, -50%)
        translateX(-650px)
        translateY(-20px)
        rotate(-8deg)
        scale(.88) !important;

    transition:
        transform .62s cubic-bezier(.55, 0, .85, .35),
        opacity .48s ease,
        filter .48s ease !important;

    pointer-events: none;
}


/* Когда задняя карточка становится главной */
.achievement-stack .achievement-popup.achievement-card-promoting {
    animation: achievementPromoteGlow .7s ease;
}


@keyframes achievementPromoteGlow {

    0% {
        box-shadow:
            0 25px 70px #0008,
            0 0 0 #573bff00;
    }

    55% {
        box-shadow:
            0 40px 120px #000b,
            0 0 110px #573bff55;
    }

    100% {
        box-shadow:
            0 40px 120px #000b,
            0 0 80px #573bff25;
    }
}


@media (max-width: 760px) {

    .achievement-stack .achievement-popup.achievement-card-leaving {
        transform:
            translate(-50%, -50%)
            translateX(-120vw)
            rotate(-8deg)
            scale(.88) !important;
    }

}


/* ==================================================
   LESSON TEXT — SAFE LINE BREAKS
   ================================================== */

.lesson-text-paragraph {
    white-space: pre-line;
}



/* ==================================================
   ACADEMY LAB — WORKING STATE
   ================================================== */

.academy-editor textarea:not([readonly]) {
    color: #dbe6ff;
    caret-color: #4bdcff;
}

.academy-editor-actions .editor-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.academy-console pre {
    margin: 8px 0 0;
    color: #aebbd2;
    font: inherit;
    white-space: pre-wrap;
}

.lab-result {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid #2c3c5d;
    border-radius: 14px;
    background: #0b1322;
}

.lab-result-success {
    border-color: #1d765f;
}

.lab-result-success strong {
    display: block;
    color: #63e7ba;
}

.lab-result-success span {
    display: block;
    margin: 8px 0 14px;
    color: #36dcff;
    font-weight: 900;
}

.lab-result-success a {
    color: #9eb0ff;
    font-weight: 800;
}

.lab-result-error {
    border-color: #743b52;
}

.lab-result-error strong {
    display: block;
    margin-bottom: 12px;
    color: #ff91ad;
}

.lab-result-error div {
    margin-top: 10px;
    color: #8290aa;
    font-size: 12px;
}

.lab-result-error code {
    display: block;
    margin-top: 5px;
    color: #dce6fa;
    white-space: pre-wrap;
}


/* Academy Lab — active buttons */

.academy-editor-actions .editor-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    color: #eaf3ff;
    border-color: #347dff;
    background: linear-gradient(
        135deg,
        #17294a,
        #16213a
    );
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.academy-editor-actions .editor-btn:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: #37cfff;
    box-shadow: 0 8px 25px rgba(40, 145, 255, .18);
}

.academy-editor-actions .editor-check:not(:disabled) {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(
        135deg,
        #20c8ff,
        #6670ff 55%,
        #d729ef
    );
}

.academy-editor-actions .editor-check:not(:disabled):hover {
    box-shadow: 0 8px 28px rgba(112, 77, 255, .32);
}



/* ==================================================
   LESSON 05 — TERMINAL OS GUIDE
   ================================================== */

.terminal-guide-intro {
    margin: -8px 0 22px;
    color: #8f9db5;
    line-height: 1.7;
}

.terminal-os-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid #253550;
    border-radius: 12px;
    background: #0b1321;
}

.terminal-os-tab {
    flex: 1;
    padding: 11px 15px;
    border: 0;
    border-radius: 8px;
    color: #7f8da5;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.terminal-os-tab:hover {
    color: #c5d3ea;
    background: #121e31;
}

.terminal-os-tab.active {
    color: #fff;
    background: #1b3153;
    box-shadow: inset 0 0 0 1px #355986;
}

.terminal-os-panel {
    display: none;
}

.terminal-os-panel.active {
    display: block;
}

.terminal-open-hint {
    margin-bottom: 14px;
    padding: 15px 17px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #293b5a;
    border-radius: 11px;
    background: #101b2d;
}

.terminal-open-hint strong {
    color: #d7e3f7;
    font-size: 12px;
}

.terminal-open-hint span {
    color: #8798b4;
    font-size: 13px;
}

.terminal-command-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.terminal-command {
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 1fr minmax(180px, auto);
    gap: 20px;
    align-items: center;
    border: 1px solid #25344e;
    border-radius: 11px;
    background: #0c1524;
}

.terminal-command strong {
    display: block;
    margin-bottom: 4px;
    color: #c7d3e7;
    font-size: 13px;
}

.terminal-command p {
    margin: 0;
    color: #71819c;
    font-size: 11px;
    line-height: 1.5;
}

.terminal-command code {
    padding: 9px 12px;
    border: 1px solid #293b58;
    border-radius: 8px;
    color: #79e4c4;
    background: #070d17;
    font: 12px/1.4 "SFMono-Regular", Consolas, monospace;
    white-space: nowrap;
}

.terminal-command-important {
    border-color: #315178;
    background:
        radial-gradient(circle at 100% 50%, #24559b18, transparent 45%),
        #0c1727;
}

.terminal-command-important code {
    color: #8eb6ff;
    border-color: #34547c;
}

.terminal-guide-note {
    margin-top: 18px;
    padding: 16px 18px;
    color: #8998b1;
    border-left: 3px solid #4778c7;
    border-radius: 8px;
    background: #101a2a;
    font-size: 12px;
    line-height: 1.7;
}

.terminal-guide-note strong {
    color: #cbd8ec;
}

@media (max-width: 650px) {
    .terminal-command {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terminal-command code {
        white-space: normal;
        word-break: break-word;
    }
}

