:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #162033;
    --muted: #647087;
    --line: rgba(25, 38, 61, 0.12);
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #2563eb;
    --success: #12805c;
    --shadow: 0 22px 70px rgba(20, 34, 58, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 34rem),
        linear-gradient(135deg, #eef5f5 0%, #f7f9fd 45%, #edf2fb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

.auth-page {
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.auth-shell {
    width: min(100%, 460px);
}

.glass-panel,
.module-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.auth-panel {
    padding: 38px;
    border-radius: 8px;
}

.brand-mark {
    display: block;
    width: 56px;
    height: auto;
    flex: 0 0 auto;
}

.eyebrow {
    margin: 22px 0 8px;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.auth-panel h1 {
    font-size: 2.35rem;
}

.auth-subtitle,
.hero-section p,
.module-card p,
.lesson-description,
.continue-band p {
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

label {
    color: #2d394f;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    font: inherit;
}

input:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    outline: none;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.2);
}

.primary-button:disabled {
    cursor: default;
    opacity: 0.68;
}

.secondary-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.full-width {
    width: 100%;
}

.notice {
    margin: 22px 0 0;
    border-radius: 8px;
    padding: 13px 14px;
    font-weight: 700;
}

.notice.error {
    border: 1px solid rgba(190, 18, 60, 0.18);
    background: rgba(255, 241, 242, 0.9);
    color: #9f1239;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 48px);
    background: rgba(18, 32, 51, 0.92);
    color: #fff;
    backdrop-filter: blur(18px);
}

.topbar-brand {
    font-size: 1.1rem;
    font-weight: 900;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.user-area strong {
    display: block;
    color: #fff;
}

.page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

.hero-section,
.continue-band,
.lesson-layout {
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.hero-section {
    grid-template-columns: minmax(0, 1fr) 310px;
    margin-bottom: 28px;
}

.progress-summary,
.continue-band,
.lesson-aside,
.empty-state {
    border-radius: 8px;
    padding: 24px;
}

.progress-summary {
    display: grid;
    align-content: center;
    gap: 10px;
}

.progress-summary span,
.meta-block span {
    color: var(--muted);
    font-weight: 800;
}

.progress-summary strong {
    font-size: 3rem;
    line-height: 1;
}

.progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 43, 68, 0.1);
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.continue-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 28px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 22px;
    border-radius: 8px;
    padding: 24px;
}

.module-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
}

.module-head > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    background: #e6f5f3;
    color: var(--primary-dark);
    font-weight: 900;
}

.module-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.9rem;
}

.lesson-list {
    display: grid;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.lesson-list a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
}

.lesson-list em {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 800;
}

.lesson-list .completed {
    color: var(--success);
}

.module-open-link {
    align-self: flex-start;
    margin-top: auto;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a,
.breadcrumb strong {
    color: var(--text);
}

.lesson-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

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

.video-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    background: #101828;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.55), rgba(37, 99, 235, 0.36)),
        #101828;
}

.video-placeholder span {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
}

.video-placeholder small {
    display: block;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.lesson-aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.meta-block {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.status-done {
    color: var(--success);
}

.status-open {
    color: var(--accent);
}

.empty-state {
    display: grid;
    min-height: 340px;
    place-items: center;
    text-align: center;
}

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

    .continue-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-panel {
        padding: 26px;
    }

    .topbar,
    .user-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        position: static;
    }

    .page-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 28px;
    }

    h1 {
        font-size: 2.1rem;
    }

    .lesson-list a,
    .module-progress > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ThreeSixty Academy visual refresh */
:root {
    --bg: #f6f9fd;
    --surface: rgba(255, 255, 255, 0.86);
    --ink: #071a35;
    --text: #14233b;
    --muted: #66758c;
    --line: rgba(28, 48, 78, 0.11);
    --primary: #1062ff;
    --primary-dark: #063d9c;
    --accent: #12b9d6;
    --sun: #ffc14a;
    --orange: #ff8a3d;
    --green: #34b978;
    --success: #12805c;
    --shadow: 0 24px 70px rgba(26, 50, 88, 0.13);
    --shadow-soft: 0 14px 36px rgba(24, 53, 92, 0.09);
}

body {
    background:
        radial-gradient(circle at 10% -10%, rgba(18, 185, 214, 0.22), transparent 32rem),
        radial-gradient(circle at 92% 6%, rgba(255, 193, 74, 0.22), transparent 28rem),
        linear-gradient(135deg, #fbfdff 0%, var(--bg) 48%, #eef5ff 100%);
}

h1 {
    color: var(--ink);
    font-size: clamp(2.25rem, 5vw, 4.9rem);
}

h2 {
    color: var(--ink);
}

.glass-panel,
.module-card {
    border-color: rgba(255, 255, 255, 0.78);
    background: var(--surface);
}

.brand-lockup {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: var(--ink);
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
    line-height: 1.05;
}

.brand-lockup strong {
    font-weight: 900;
}

.brand-lockup strong span {
    color: #06184f;
}

.brand-lockup strong em {
    color: #14a8f2;
    font-style: normal;
}

.brand-lockup small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-mark {
    width: 54px;
    filter: drop-shadow(0 12px 22px rgba(16, 98, 255, 0.18));
}

.auth-page {
    padding: 34px 20px;
}

.auth-shell {
    display: grid;
    width: min(1120px, 100%);
    min-height: min(760px, calc(100vh - 68px));
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
    gap: 28px;
    align-items: stretch;
}

.auth-hero {
    position: relative;
    display: grid;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 56px);
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 193, 74, 0.34), transparent 17rem),
        radial-gradient(circle at 76% 76%, rgba(52, 185, 120, 0.18), transparent 16rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 255, 0.8));
    box-shadow: var(--shadow);
}

.auth-hero::before,
.auth-hero::after {
    position: absolute;
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.auth-hero::before {
    right: -130px;
    bottom: -110px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 98, 255, 0.2), transparent 68%);
}

.auth-hero::after {
    bottom: 13%;
    left: 12%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 70%);
}

.auth-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 690px;
}

.auth-subtitle,
.auth-card-copy,
.hero-section p,
.module-card p,
.lesson-description,
.continue-band p {
    color: var(--muted);
}

.auth-subtitle {
    max-width: 620px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.brand-line {
    display: block;
    width: min(310px, 72%);
    height: 5px;
    margin-top: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--sun), var(--green));
}

.product-visual {
    position: relative;
    z-index: 1;
    min-height: 220px;
}

.visual-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.visual-card-main {
    right: 12%;
    bottom: 18%;
    width: min(340px, 72%);
    padding: 22px;
}

.visual-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.visual-card strong {
    display: block;
    margin: 8px 0 14px;
    color: var(--ink);
    font-size: 2.7rem;
    line-height: 1;
}

.visual-card-mini {
    right: 3%;
    bottom: 54%;
    width: 128px;
    padding: 18px;
}

.visual-card-mini strong {
    margin-bottom: 0;
    font-size: 2rem;
}

.visual-play {
    position: absolute;
    right: 36%;
    bottom: 43%;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56)),
        linear-gradient(135deg, var(--orange), var(--sun));
    box-shadow: 0 24px 50px rgba(255, 138, 61, 0.24);
}

.visual-play::after {
    position: absolute;
    top: 29px;
    left: 34px;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 19px solid var(--primary);
    content: "";
}

.auth-panel {
    align-self: center;
    padding: clamp(28px, 4vw, 42px);
}

.auth-panel h2 {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
}

input {
    min-height: 52px;
    background: rgba(255, 255, 255, 0.9);
}

input:focus {
    border-color: rgba(16, 98, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(16, 98, 255, 0.12);
}

.primary-button,
.secondary-button,
.ghost-button {
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 34px rgba(16, 98, 255, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled {
    transform: none;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.88);
}

.ghost-button {
    border: 1px solid rgba(16, 98, 255, 0.16);
    background: #fff;
    color: var(--primary-dark);
}

.topbar {
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}

.topbar .brand-mark {
    width: 48px;
    height: auto;
}

.user-area {
    color: var(--muted);
}

.user-area strong {
    color: var(--ink);
}

.page-shell {
    padding: 48px 0 72px;
}

.hero-section {
    border-radius: 8px;
    padding: clamp(28px, 4vw, 42px);
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 193, 74, 0.22), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(235, 246, 255, 0.78));
    box-shadow: var(--shadow-soft);
}

.progress-summary strong {
    color: var(--ink);
    font-size: 3.25rem;
}

.progress-track {
    height: 10px;
}

.progress-track span {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--green));
}

.continue-band {
    background:
        linear-gradient(90deg, rgba(16, 98, 255, 0.09), rgba(18, 185, 214, 0.06)),
        var(--surface);
}

.module-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-card:hover {
    border-color: rgba(16, 98, 255, 0.22);
    box-shadow: 0 30px 80px rgba(26, 50, 88, 0.16);
    transform: translateY(-3px);
}

.module-head > span {
    background: linear-gradient(135deg, rgba(16, 98, 255, 0.11), rgba(18, 185, 214, 0.16));
    color: var(--primary-dark);
}

.module-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lesson-list a {
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lesson-list a:hover {
    border-color: rgba(16, 98, 255, 0.22);
    background: #fff;
    transform: translateX(2px);
}

.lesson-list .completed {
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(52, 185, 120, 0.12);
}

.lesson-main {
    border-radius: 8px;
    padding: clamp(24px, 4vw, 36px);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
}

.video-placeholder {
    background:
        radial-gradient(circle at 78% 16%, rgba(255, 193, 74, 0.2), transparent 16rem),
        linear-gradient(135deg, rgba(16, 98, 255, 0.72), rgba(18, 185, 214, 0.44)),
        #101828;
}

.status-open {
    color: var(--primary);
}

@media (max-width: 900px) {
    .auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 520px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        display: block;
        padding: 12px;
    }

    .auth-shell {
        gap: 14px;
    }

    .auth-hero {
        min-height: 430px;
        padding: 24px;
    }

    .product-visual {
        min-height: 150px;
    }

    .visual-card-main {
        right: 0;
        width: 86%;
    }

    .visual-card-mini,
    .visual-play {
        display: none;
    }

    .topbar .brand-lockup {
        width: 100%;
    }
}

/* Login composition */
.auth-page {
    min-height: 100vh;
    padding: clamp(20px, 4vw, 44px);
    background:
        radial-gradient(circle at 12% 12%, rgba(18, 185, 214, 0.14), transparent 26rem),
        radial-gradient(circle at 84% 18%, rgba(255, 193, 74, 0.15), transparent 24rem),
        radial-gradient(circle at 64% 88%, rgba(52, 185, 120, 0.09), transparent 22rem),
        linear-gradient(135deg, #ffffff 0%, #f6faff 48%, #edf6ff 100%);
}

.auth-shell {
    width: min(1160px, 100%);
    min-height: min(720px, calc(100vh - 88px));
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
}

.auth-hero {
    min-height: auto;
    align-content: center;
    overflow: visible;
    border: 0;
    padding: clamp(16px, 4vw, 34px);
    background: transparent;
    box-shadow: none;
}

.auth-hero::before,
.auth-hero::after {
    display: none;
}

.auth-copy {
    max-width: 640px;
}

.auth-logo-link {
    display: inline-block;
    width: min(470px, 100%);
    margin-bottom: clamp(28px, 5vw, 46px);
}

.auth-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(26, 50, 88, 0.08));
}

.auth-copy h1 {
    max-width: 720px;
    margin-bottom: 18px;
    color: #071a35;
    font-size: clamp(2.65rem, 5vw, 4.9rem);
    line-height: 1.03;
}

.auth-subtitle {
    max-width: 560px;
    margin-bottom: 28px;
    color: #53647d;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.65;
}

.auth-benefits {
    display: grid;
    gap: 10px;
    max-width: 470px;
    margin: 0;
    padding: 0;
    color: #314159;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
}

.auth-benefits li {
    position: relative;
    padding-left: 18px;
}

.auth-benefits li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #12b9d6;
    content: "";
}

.auth-panel {
    width: min(100%, 460px);
    justify-self: end;
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 80px rgba(25, 48, 82, 0.14);
}

.auth-panel h2 {
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.12;
}

.auth-card-copy {
    margin-bottom: 0;
    color: #647087;
    line-height: 1.55;
}

.auth-form {
    gap: 11px;
    margin-top: 28px;
}

.auth-form label {
    margin-top: 6px;
    color: #24324a;
    font-size: 0.92rem;
}

.auth-form input {
    min-height: 54px;
    border-color: rgba(28, 48, 78, 0.14);
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form input:focus {
    border-color: rgba(16, 98, 255, 0.56);
    box-shadow: 0 0 0 4px rgba(16, 98, 255, 0.11);
}

.auth-form .primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    background: linear-gradient(135deg, #1062ff, #12b9d6);
}

.auth-form .primary-button:hover {
    box-shadow: 0 18px 38px rgba(16, 98, 255, 0.28);
}

.auth-panel .notice {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .auth-shell {
        width: min(720px, 100%);
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .auth-hero {
        padding: 10px 4px 0;
        text-align: center;
    }

    .auth-copy,
    .auth-subtitle,
    .auth-benefits {
        margin-right: auto;
        margin-left: auto;
    }

    .auth-logo-link {
        width: min(410px, 100%);
        margin-bottom: 28px;
    }

    .auth-panel {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 18px 14px;
    }

    .auth-shell {
        gap: 18px;
        min-height: 0;
    }

    .auth-hero {
        padding: 0;
    }

    .auth-logo-link {
        width: min(320px, 100%);
        margin-bottom: 22px;
    }

    .auth-copy h1 {
        margin-bottom: 12px;
        font-size: clamp(2.15rem, 13vw, 3rem);
    }

    .auth-subtitle {
        margin-bottom: 18px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .auth-benefits {
        display: none;
    }

    .auth-panel {
        padding: 26px;
    }
}

/* Compact Academy dashboard and lesson experience */
.page-shell {
    width: min(1400px, calc(100% - 40px));
    padding: 28px 0 56px;
}

.dashboard-intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    padding: clamp(22px, 3vw, 30px);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 193, 74, 0.13), transparent 17rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.72));
    box-shadow: 0 14px 34px rgba(26, 50, 88, 0.08);
}

.intro-copy {
    min-width: 0;
}

.dashboard-intro .eyebrow,
.continue-band .eyebrow,
.lesson-header .eyebrow {
    margin: 0 0 8px;
    color: rgba(6, 61, 156, 0.72);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.dashboard-intro h1 {
    max-width: 920px;
    margin-bottom: 8px;
    font-size: clamp(2rem, 3.2vw, 2.55rem);
    line-height: 1.08;
}

.dashboard-intro p {
    max-width: 700px;
    margin-bottom: 0;
    font-size: 1.02rem;
    line-height: 1.5;
}

.progress-summary {
    gap: 10px;
    border: 1px solid rgba(28, 48, 78, 0.09);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: none;
}

.progress-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.progress-summary-head span,
.progress-summary small {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.progress-summary strong,
.progress-summary-head strong {
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
}

.progress-summary .progress-track {
    height: 8px;
}

.continue-band {
    min-height: 132px;
    margin-bottom: 22px;
    padding: 20px 22px;
    box-shadow: 0 12px 32px rgba(26, 50, 88, 0.08);
}

.continue-band h2 {
    margin-bottom: 6px;
    font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.continue-band p {
    margin-bottom: 0;
    line-height: 1.45;
}

.section-heading {
    margin: 4px 0 14px;
}

.section-heading h2 {
    margin-bottom: 4px;
    font-size: clamp(1.45rem, 2.2vw, 1.65rem);
    line-height: 1.18;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.module-card {
    gap: 16px;
    padding: 18px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(26, 50, 88, 0.08);
}

.module-card:hover {
    border-color: rgba(16, 98, 255, 0.25);
    box-shadow: 0 18px 44px rgba(26, 50, 88, 0.13);
    transform: translateY(-2px);
}

.module-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}

.module-head > span {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
}

.module-head h2 {
    margin-bottom: 6px;
    font-size: 1.12rem;
    line-height: 1.2;
}

.module-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.module-progress > div:first-child {
    margin-bottom: 7px;
    font-size: 0.82rem;
}

.module-progress .progress-track {
    height: 7px;
}

.lesson-list {
    gap: 6px;
}

.lesson-list a {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.lesson-list em {
    font-size: 0.78rem;
}

.breadcrumb {
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.lesson-shell {
    width: min(1200px, calc(100% - 40px));
}

.module-shell {
    width: min(980px, calc(100% - 40px));
}

.module-detail {
    display: grid;
    gap: 18px;
}

.module-detail-header {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 28px);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 193, 74, 0.11), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.7));
    box-shadow: 0 14px 34px rgba(26, 50, 88, 0.08);
}

.module-detail-header .eyebrow {
    margin: 0 0 8px;
}

.module-detail-header h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.module-detail-header p {
    max-width: 720px;
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.5;
}

.module-detail-progress {
    display: grid;
    gap: 8px;
    max-width: 520px;
}

.module-detail-progress span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.module-detail-progress .progress-track {
    height: 8px;
}

.module-lesson-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.module-lesson-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(28, 48, 78, 0.1);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(26, 50, 88, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-lesson-list a:hover {
    border-color: rgba(16, 98, 255, 0.22);
    box-shadow: 0 16px 34px rgba(26, 50, 88, 0.1);
    transform: translateY(-1px);
}

.lesson-index {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 98, 255, 0.1), rgba(18, 185, 214, 0.14));
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.lesson-row-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lesson-row-copy strong {
    color: var(--ink);
    font-size: 1rem;
}

.lesson-row-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.lesson-row-meta em {
    font-style: normal;
}

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

.lesson-main {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.lesson-header {
    max-width: 860px;
    margin-bottom: 16px;
}

.lesson-header h1 {
    margin-bottom: 8px;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.lesson-description {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.video-frame {
    width: min(100%, 1080px);
    box-shadow: 0 18px 46px rgba(26, 50, 88, 0.14);
}

.lesson-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.lesson-aside {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(28, 48, 78, 0.09);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(26, 50, 88, 0.08);
}

.meta-block {
    padding-bottom: 12px;
}

.meta-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 1180px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .lesson-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-shell,
    .lesson-shell,
    .module-shell {
        width: min(100% - 24px, 1400px);
        padding: 20px 0 42px;
    }

    .dashboard-intro {
        padding: 18px;
    }

    .dashboard-intro h1 {
        font-size: clamp(1.9rem, 11vw, 2.25rem);
    }

    .dashboard-intro p,
    .lesson-description {
        font-size: 0.95rem;
    }

    .continue-band {
        min-height: 0;
        padding: 18px;
    }

    .module-grid,
    .lesson-aside {
        grid-template-columns: 1fr;
    }

    .module-card {
        padding: 16px;
    }

    .lesson-header h1 {
        font-size: clamp(1.75rem, 10vw, 2.1rem);
    }

    .lesson-actions .primary-button,
    .lesson-actions .secondary-button {
        width: 100%;
    }

    .module-lesson-list a {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .lesson-row-meta {
        grid-column: 2;
        justify-content: space-between;
    }

    .lesson-row-copy small {
        white-space: normal;
    }
}
