:root {
    --bg: #f5f7f3;
    --surface: #ffffff;
    --surface-soft: #eef3ee;
    --surface-warm: #fff9ea;
    --ink: #17312a;
    --muted: #617069;
    --line: #dce5df;
    --primary: #0d7455;
    --primary-dark: #07543e;
    --primary-soft: #dff4ea;
    --yellow: #fdb913;
    --green: #006a44;
    --red: #c83b37;
    --danger-soft: #fdeceb;
    --success: #177a52;
    --success-soft: #e1f5ea;
    --shadow: 0 18px 55px rgba(30, 62, 51, 0.10);
    --shadow-soft: 0 8px 28px rgba(30, 62, 51, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
    --content: 760px;
    --sidebar: 260px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(253, 185, 19, 0.12), transparent 26rem),
        radial-gradient(circle at 100% 18%, rgba(0, 106, 68, 0.10), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(13, 116, 85, 0.28);
    outline-offset: 3px;
}

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

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

p {
    line-height: 1.6;
}

.app-shell {
    min-height: 100vh;
}

.boot-screen {
    display: grid;
    min-height: 100vh;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--ink);
}

.boot-screen strong {
    letter-spacing: 0.11em;
}

.boot-screen small {
    color: var(--muted);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    overflow: visible;
    width: 46px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(5, 35, 28, 0.22);
}

.brand-mark::before {
    position: absolute;
    z-index: 2;
    inset: 5px;
    content: "";
    border-radius: 10px;
    background: linear-gradient(
        to bottom,
        var(--yellow) 0 33.333%,
        var(--green) 33.333% 66.666%,
        var(--red) 66.666% 100%
    );
}

.brand-mark::after {
    position: absolute;
    z-index: 1;
    bottom: -5px;
    left: 11px;
    width: 15px;
    height: 15px;
    content: "";
    border-radius: 0 0 0 4px;
    background: #fff;
    transform: rotate(35deg) skew(-8deg, -8deg);
}

.brand-mark span {
    display: none;
}

.brand-mark--large {
    width: 70px;
    height: 66px;
    border-radius: 21px;
}

.brand-mark--large::before {
    inset: 7px;
    border-radius: 15px;
}

.brand-mark--large::after {
    bottom: -7px;
    left: 17px;
    width: 22px;
    height: 22px;
}

.brand-lockup {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

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

.brand-copy strong {
    position: relative;
    display: block;
    overflow: hidden;
    padding-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.105em;
    line-height: 1;
    text-overflow: ellipsis;
}

.brand-copy strong::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 62px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--yellow) 0 33.333%,
        var(--green) 33.333% 66.666%,
        var(--red) 66.666% 100%
    );
}

.brand-copy small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.onboarding {
    position: relative;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr);
}

.sr-only {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.onboarding-language {
    position: absolute;
    z-index: 20;
    top: 24px;
    right: 28px;
}

.language-trigger {
    display: inline-flex;
    width: 84px;
    height: 50px;
    padding: 0 10px 0 11px;
    border: 1px solid rgba(23, 49, 42, 0.12);
    border-radius: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(23, 49, 42, 0.10);
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.language-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 116, 85, 0.30);
    box-shadow: 0 15px 36px rgba(23, 49, 42, 0.14);
}

.language-flag {
    display: block;
    width: 40px;
    height: 28px;
    overflow: hidden;
    border: 1px solid rgba(18, 63, 51, 0.10);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(23, 49, 42, 0.08);
    background: #fff;
    flex: 0 0 auto;
}

.language-flag--option {
    width: 42px;
    height: 30px;
}

.language-flag-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-chevron {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--muted);
    transform-origin: 50% 50%;
    transition: color 180ms ease, transform 260ms cubic-bezier(.22, 1.22, .36, 1);
}

.language-chevron svg {
    width: 100%;
    height: 100%;
    display: block;
}

.onboarding-language.is-open .language-chevron {
    transform: rotate(180deg) scale(1.08);
    animation: language-chevron-bounce 260ms cubic-bezier(.22, 1.22, .36, 1);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 84px;
    height: 252px;
    max-height: calc(100vh - 96px);
    overflow: hidden;
    border: 1px solid rgba(23, 49, 42, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(23, 49, 42, 0.18);
    backdrop-filter: blur(18px);
    contain: layout paint;
    animation: language-menu-in 170ms ease both;
}

.language-menu__viewport {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 8px 16px 8px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: inherit;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 54px;
    align-content: start;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

.language-menu__viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.language-scrollbar {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 6px;
    bottom: 10px;
    width: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 116, 85, 0.07);
    opacity: 0.72;
    cursor: pointer;
    transition: width 160ms ease, opacity 160ms ease, background 160ms ease;
}

.language-menu:hover .language-scrollbar,
.language-scrollbar:active {
    width: 6px;
    opacity: 1;
    background: rgba(13, 116, 85, 0.10);
}

.language-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(63, 163, 132, 0.72), rgba(13, 116, 85, 0.86));
    box-shadow: 0 2px 7px rgba(13, 116, 85, 0.20);
    cursor: grab;
    touch-action: none;
    will-change: transform;
    transition: background 150ms ease, box-shadow 150ms ease;
}

.language-scrollbar__thumb:hover {
    background: linear-gradient(180deg, rgba(63, 163, 132, 0.88), rgba(13, 116, 85, 0.98));
    box-shadow: 0 3px 9px rgba(13, 116, 85, 0.28);
}

.language-scrollbar__thumb.is-dragging {
    cursor: grabbing;
    background: var(--primary);
    box-shadow: 0 3px 10px rgba(13, 116, 85, 0.32);
}

.language-scrollbar[hidden] {
    display: none;
}

.language-option {
    position: relative;
    display: grid;
    width: 100%;
    height: 54px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 13px;
    place-items: center;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.language-option:hover,
.language-option.is-selected {
    border-color: rgba(13, 116, 85, 0.08);
    background: var(--primary-soft);
}

.language-option:hover {
    box-shadow: inset 0 0 0 1px rgba(13, 116, 85, 0.04);
}

.language-check {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-size: 8px;
    font-weight: 900;
}

@keyframes language-menu-in {
    from { transform: translateY(-5px) scale(0.97); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes language-chevron-bounce {
    0% { transform: rotate(0deg) scale(1); }
    58% { transform: rotate(180deg) scale(1.14); }
    100% { transform: rotate(180deg) scale(1.08); }
}

[dir="rtl"] .onboarding-card,
[dir="rtl"] .visual-content,
[dir="rtl"] .page-header,
[dir="rtl"] .profile-card,
[dir="rtl"] .lesson-card {
    text-align: right;
}

[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="password"] {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .language-menu {
    direction: ltr;
}

.onboarding-visual {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(32px, 6vw, 84px);
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 25% 5%, rgba(253, 185, 19, 0.30), transparent 24rem),
        linear-gradient(148deg, #113d32 0%, #07583f 60%, #06372b 100%);
}

.onboarding-visual::before,
.onboarding-visual::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.onboarding-visual::before {
    right: -220px;
    bottom: -220px;
    width: 620px;
    height: 620px;
}

.onboarding-visual::after {
    top: -160px;
    left: -180px;
    width: 450px;
    height: 450px;
}

.visual-content {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
}

.visual-content .brand-lockup {
    width: fit-content;
    margin-bottom: clamp(44px, 8vh, 92px);
    padding: 10px 17px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 40px rgba(1, 28, 21, 0.16);
    backdrop-filter: blur(14px);
}

.visual-content .brand-copy strong {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.visual-content .brand-copy small {
    color: rgba(255, 255, 255, 0.66);
}

.onboarding-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.2em;
}

.onboarding-title__labas {
    unicode-bidi: isolate;
    white-space: nowrap;
}

.visual-content h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: 0.98;
}

.visual-content > p {
    max-width: 580px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.5vw, 21px);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    display: inline-flex;
    padding: 10px 13px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(14px);
}

.onboarding-panel {
    display: flex;
    min-height: 100vh;
    padding: clamp(24px, 5vw, 72px);
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
}

.onboarding-card {
    width: min(520px, 100%);
}

.step-kicker {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.step-kicker::before {
    width: 34px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--primary);
}

.onboarding-card h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.03;
}

.onboarding-card > p {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
}

.auth-tabs {
    display: grid;
    margin-bottom: 28px;
    padding: 5px;
    border-radius: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    background: var(--surface-soft);
}

.auth-tabs button {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-tabs button.is-active {
    color: var(--primary-dark);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(23, 49, 42, 0.09);
}

.auth-form {
    display: grid;
    gap: 15px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span,
.form-field > label {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input::placeholder {
    color: #95a19b;
}

.form-field input:hover {
    border-color: rgba(13, 116, 85, 0.30);
}

.form-field input:focus {
    border-color: var(--primary);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 116, 85, 0.10);
}

.password-input {
    position: relative;
}

.password-input > input {
    padding-inline-end: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    place-items: center;
    color: #7c8a84;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.password-toggle:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.94);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(13, 116, 85, 0.35);
    outline-offset: 1px;
}

.password-toggle__icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
}

.password-toggle__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.password-toggle__icon--hide {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--show {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--hide {
    display: grid;
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 10px;
}

.auth-error {
    padding: 12px 14px;
    border: 1px solid #f0c7c4;
    border-radius: 13px;
    color: #8f2d29;
    background: var(--danger-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.auth-submit {
    margin-top: 3px;
    font-weight: 600;
}

.auth-notes {
    display: grid;
    margin-top: 20px;
    gap: 7px;
    color: var(--muted);
}

.auth-notes small {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}

.choice-grid {
    display: grid;
    gap: 12px;
}

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

.choice-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    align-items: center;
    gap: 13px;
    text-align: left;
    background: var(--surface);
    box-shadow: 0 2px 0 rgba(23, 49, 42, 0.02);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 116, 85, 0.32);
    box-shadow: var(--shadow-soft);
}

.choice-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.choice-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    font-size: 21px;
    background: var(--surface-soft);
}

.choice-card.is-selected .choice-icon {
    background: #fff;
}

.choice-copy strong,
.choice-copy small {
    display: block;
}

.choice-copy strong {
    margin-bottom: 3px;
    font-size: 15px;
}

.choice-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.coming-soon {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 13px;
    line-height: 1.5;
}

.onboarding-actions {
    display: flex;
    margin-top: 26px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

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

.btn--primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(13, 116, 85, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.btn--primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn--secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
}

.btn--ghost {
    min-height: 44px;
    padding-inline: 12px;
    color: var(--muted);
    background: transparent;
}

.btn--danger {
    border: 1px solid #f3c5c3;
    color: #a42420;
    background: var(--danger-soft);
}

.btn--wide {
    width: 100%;
}

.dashboard {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    height: 100vh;
    padding: 28px 20px;
    flex-direction: column;
    border-right: 1px solid rgba(220, 229, 223, 0.9);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
}

.sidebar .brand-lockup {
    padding: 0 8px;
}

.side-nav {
    display: grid;
    margin-top: 42px;
    gap: 8px;
}

.nav-item {
    display: flex;
    min-height: 52px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-item:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.nav-item.is-active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 800;
}

.nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    font-size: 20px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.sidebar-footer strong,
.sidebar-footer span {
    display: block;
}

.sidebar-footer strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.sidebar-footer span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.app-main {
    min-width: 0;
    padding: 24px clamp(20px, 5vw, 72px) 80px;
}

.topbar {
    position: relative;
    z-index: 10;
    display: flex;
    width: min(1120px, 100%);
    min-height: 54px;
    margin: 0 auto 26px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-brand {
    display: none;
}

.stat-chips {
    display: flex;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.stat-chip {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(23, 49, 42, 0.04);
}

.stat-chip b {
    color: var(--ink);
}

.page {
    width: min(1120px, 100%);
    margin: 0 auto;
}

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

.eyebrow {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-header h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1;
}

.page-header p {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--muted);
}

.hero-card {
    position: relative;
    display: grid;
    overflow: hidden;
    margin-bottom: 26px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--radius-xl);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(253, 185, 19, 0.27), transparent 19rem),
        linear-gradient(135deg, #123f33, #0b684b);
    box-shadow: var(--shadow);
}

.hero-card::after {
    position: absolute;
    right: -45px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    content: "";
    border: 40px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-copy,
.hero-action {
    position: relative;
    z-index: 1;
}

.hero-copy small {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
}

.hero-copy p {
    max-width: 620px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
}

.hero-action .btn {
    min-width: 176px;
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14), inset 0 -3px 0 rgba(7, 84, 62, 0.12);
}

.summary-grid {
    display: grid;
    margin-bottom: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.summary-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.summary-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.summary-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.summary-card small {
    color: var(--muted);
    font-size: 11px;
}

.section-heading {
    display: flex;
    margin: 34px 0 18px;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    margin-bottom: 5px;
    font-size: 26px;
}

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

.course-path {
    position: relative;
    display: grid;
    max-width: var(--content);
    margin: 0 auto;
    gap: 18px;
}

.course-path::before {
    position: absolute;
    z-index: -1;
    top: 28px;
    bottom: 28px;
    left: 33px;
    width: 3px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(var(--primary-soft), var(--line));
}

.module-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.module-card.is-current {
    border-color: rgba(13, 116, 85, 0.35);
    box-shadow: 0 18px 45px rgba(13, 116, 85, 0.13);
}

.module-header {
    display: flex;
    padding: 22px 24px 17px;
    align-items: center;
    gap: 15px;
}

.module-index {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 15px;
    font-weight: 900;
}

.module-card.is-locked .module-index {
    color: var(--muted);
    background: var(--surface-soft);
}

.module-title {
    min-width: 0;
    flex: 1;
}

.module-title h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.module-title p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.module-progress {
    width: 110px;
    text-align: right;
}

.module-progress strong {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
}

.progress-track {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #2a9e72);
    transition: width 300ms ease;
}

.lesson-list {
    display: grid;
    padding: 0 15px 15px;
    gap: 8px;
}

.lesson-row {
    display: grid;
    width: 100%;
    min-height: 66px;
    padding: 10px 12px;
    border: 0;
    border-radius: 16px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: transparent;
}

button.lesson-row {
    cursor: pointer;
}

button.lesson-row:hover:not(:disabled) {
    background: var(--surface-soft);
}

.lesson-row:disabled {
    cursor: default;
}

.lesson-status {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface);
    font-size: 15px;
    font-weight: 900;
}

.lesson-row.is-complete .lesson-status {
    border-color: var(--success);
    color: #fff;
    background: var(--success);
}

.lesson-row.is-current .lesson-status {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-soft);
    box-shadow: 0 0 0 6px rgba(13, 116, 85, 0.08);
}

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

.lesson-copy strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.lesson-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-xp {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.empty-card,
.content-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
    margin-top: 16px;
}

.empty-card {
    max-width: 720px;
    text-align: center;
}

.empty-card .big-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 22px;
    font-size: 32px;
    background: var(--primary-soft);
}

.word-list {
    display: grid;
    gap: 10px;
}

.word-row {
    display: grid;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: var(--surface);
}

.word-row strong {
    font-size: 16px;
}

.word-row span {
    color: var(--muted);
    font-size: 13px;
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    place-items: center;
    background: var(--surface-soft);
    cursor: pointer;
}

.progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: 16px;
}

.big-stat {
    display: flex;
    padding: 20px 0;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.big-stat:last-child {
    border-bottom: 0;
}

.big-stat span {
    color: var(--muted);
    font-size: 13px;
}

.big-stat strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.goal-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 999px;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 900;
}

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

.setting-block h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

.setting-block > p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
}

.segmented {
    display: grid;
    padding: 5px;
    border-radius: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    background: var(--surface-soft);
}

.segmented button {
    display: inline-flex;
    min-height: 42px;
    padding: 7px;
    border: 0;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.segmented button img {
    width: 25px;
    height: 17px;
    border: 1px solid rgba(23, 49, 42, 0.10);
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(23, 49, 42, 0.08);
}

.segmented button.is-active {
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 5px 14px rgba(23, 49, 42, 0.08);
}

.mobile-nav {
    display: none;
}

.lesson-screen {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0 0, rgba(253, 185, 19, 0.10), transparent 24rem),
        var(--bg);
}

.lesson-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    min-height: 78px;
    padding: 16px clamp(16px, 4vw, 42px);
    border-bottom: 1px solid rgba(220, 229, 223, 0.86);
    grid-template-columns: auto minmax(0, 720px) auto;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(245, 247, 243, 0.90);
    backdrop-filter: blur(18px);
}

.lesson-close {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    place-items: center;
    color: var(--muted);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 20px;
}

.lesson-step-count {
    min-width: 50px;
    color: var(--muted);
    text-align: right;
    font-size: 12px;
    font-weight: 900;
}

.lesson-wrap {
    display: grid;
    width: min(760px, calc(100% - 32px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: clamp(34px, 8vh, 84px) 0 140px;
    align-content: start;
}

.exercise-kicker {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.exercise-title {
    margin-bottom: 14px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.06;
}

.exercise-help {
    margin-bottom: 28px;
    color: var(--muted);
}

.phrase-card {
    display: flex;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    align-items: center;
    gap: 16px;
    background: var(--surface-warm);
}

.phrase-audio {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 17px;
    place-items: center;
    color: var(--primary-dark);
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 23px;
}

.phrase-card strong,
.phrase-card span {
    display: block;
}

.phrase-card strong {
    margin-bottom: 5px;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.phrase-card span {
    color: var(--muted);
    font-size: 13px;
}

.answer-grid {
    display: grid;
    gap: 11px;
}

.answer-option {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    align-items: center;
    gap: 13px;
    text-align: left;
    background: var(--surface);
    box-shadow: 0 3px 0 rgba(23, 49, 42, 0.03);
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.answer-option:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(13, 116, 85, 0.35);
}

.answer-option.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.answer-option.is-correct {
    border-color: var(--success);
    background: var(--success-soft);
}

.answer-option.is-wrong {
    border-color: var(--red);
    background: var(--danger-soft);
}

.option-letter {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.word-bank,
.sentence-zone {
    display: flex;
    min-height: 76px;
    padding: 14px;
    border-radius: 17px;
    flex-wrap: wrap;
    align-content: center;
    gap: 9px;
}

.sentence-zone {
    margin-bottom: 16px;
    border: 2px dashed var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.word-bank {
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.word-token {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 0 rgba(23, 49, 42, 0.07);
    cursor: pointer;
    font-weight: 800;
}

.word-token:disabled {
    opacity: 0.28;
    cursor: default;
}

.text-answer {
    width: 100%;
    min-height: 62px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--ink);
    background: var(--surface);
    font-size: 18px;
}

.text-answer.is-correct {
    border-color: var(--success);
    background: var(--success-soft);
}

.text-answer.is-wrong {
    border-color: var(--red);
    background: var(--danger-soft);
}

.lesson-footer {
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 104px;
    padding: 18px clamp(16px, 5vw, 56px) max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.lesson-footer-inner {
    display: flex;
    width: min(760px, 100%);
    margin: 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.feedback-copy {
    display: none;
    min-width: 0;
    margin-right: auto;
}

.feedback-copy.is-visible {
    display: block;
}

.feedback-copy strong,
.feedback-copy span {
    display: block;
}

.feedback-copy strong {
    margin-bottom: 3px;
    font-size: 16px;
}

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

.lesson-footer.is-correct {
    border-top-color: #bfe5cf;
    background: rgba(231, 248, 238, 0.96);
}

.lesson-footer.is-wrong {
    border-top-color: #f2c4c1;
    background: rgba(254, 239, 238, 0.96);
}

.completion-card {
    display: grid;
    justify-items: center;
    text-align: center;
}

.completion-badge {
    display: grid;
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    place-items: center;
    border: 10px solid rgba(253, 185, 19, 0.20);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 20px 45px rgba(253, 185, 19, 0.25);
    font-size: 46px;
}

.completion-card h1 {
    margin-bottom: 10px;
    font-size: clamp(36px, 6vw, 58px);
}

.completion-card > p {
    max-width: 540px;
    color: var(--muted);
}

.reward-grid {
    display: grid;
    width: min(520px, 100%);
    margin: 28px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.reward-card {
    padding: 18px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.reward-card strong,
.reward-card span {
    display: block;
}

.reward-card strong {
    margin-bottom: 4px;
    font-size: 22px;
}

.reward-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.toast-region {
    position: fixed;
    z-index: 100;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: min(360px, calc(100% - 36px));
    gap: 9px;
    pointer-events: none;
}

.toast {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: toast-in 200ms ease both;
}

@keyframes toast-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.noscript-message {
    max-width: 560px;
    margin: 30px auto;
    padding: 18px;
    border: 1px solid #e6b3b0;
    border-radius: 14px;
    color: #7f201d;
    background: #fff1f0;
}

@media (max-width: 980px) {
    .onboarding {
        grid-template-columns: 1fr;
    }

    .onboarding-language {
        top: 18px;
        right: 20px;
    }

    .language-trigger {
        border-color: rgba(255, 255, 255, 0.18);
        color: #fff;
        background: rgba(6, 55, 43, 0.70);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    }

    .language-trigger:hover {
        border-color: rgba(255, 255, 255, 0.30);
        background: rgba(6, 55, 43, 0.82);
    }

    .language-trigger .language-chevron {
        color: rgba(255, 255, 255, 0.82);
    }

    .onboarding-visual {
        min-height: auto;
        padding: 46px 28px;
    }

    .visual-content .brand-lockup {
        margin-bottom: 42px;
    }

    .visual-content h1 {
        max-width: 760px;
        font-size: clamp(42px, 9vw, 68px);
    }

    .onboarding-panel {
        min-height: auto;
        padding: 46px 24px 64px;
    }

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

    .sidebar {
        display: none;
    }

    .app-main {
        padding-bottom: 104px;
    }

    .mobile-brand {
        display: inline-flex;
    }

    .mobile-brand .brand-copy small {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        z-index: 50;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        display: grid;
        min-height: 70px;
        padding: 7px;
        border: 1px solid rgba(220, 229, 223, 0.9);
        border-radius: 22px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 50px rgba(23, 49, 42, 0.18);
        backdrop-filter: blur(20px);
    }

    .mobile-nav .nav-item {
        min-height: 54px;
        padding: 5px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        border-radius: 16px;
        font-size: 10px;
    }

    .mobile-nav .nav-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    .app-main {
        padding: 14px 14px 106px;
    }

    .topbar {
        margin-bottom: 18px;
    }

    .stat-chip:nth-child(3) {
        display: none;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-action .btn {
        width: 100%;
    }

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

    .summary-card {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4px 16px;
    }

    .summary-card span,
    .summary-card small {
        grid-column: 1;
    }

    .summary-card strong {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .module-header {
        padding: 18px 17px 14px;
    }

    .module-progress {
        width: 82px;
    }

    .word-row {
        grid-template-columns: 1fr auto;
    }

    .word-row span {
        grid-row: 2;
        grid-column: 1;
    }

    .word-row .icon-button {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .progress-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .lesson-topbar {
        min-height: 68px;
        padding: 12px 14px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }

    .lesson-wrap {
        min-height: calc(100vh - 68px);
        padding-top: 36px;
    }

    .lesson-footer-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .lesson-footer-inner .btn {
        width: 100%;
    }

    .feedback-copy {
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .onboarding-language {
        top: 14px;
        right: 14px;
    }

    .language-trigger {
        width: 68px;
        height: 44px;
        border-radius: 15px;
    }

    .language-menu {
        width: 68px;
        height: 236px;
        max-height: calc(100vh - 82px);
    }

    .language-menu__viewport {
        padding: 8px 14px 8px 7px;
        grid-auto-rows: 50px;
        gap: 6px;
    }

    .language-scrollbar {
        right: 5px;
        width: 4px;
    }

    .language-menu:hover .language-scrollbar,
    .language-scrollbar:active {
        width: 5px;
    }

    .language-option {
        width: 100%;
        height: 50px;
    }

    .language-flag--option {
        width: 39px;
        height: 27px;
    }

    .onboarding-visual {
        padding: 76px 20px 38px;
    }

    .visual-content .brand-lockup {
        margin-bottom: 32px;
    }

    .visual-content h1 {
        font-size: 42px;
    }

    .feature-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .onboarding-panel {
        padding: 38px 18px 54px;
    }

    .choice-grid--languages {
        grid-template-columns: 1fr;
    }

    .onboarding-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .onboarding-actions .btn {
        width: 100%;
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .stat-chip {
        padding-inline: 10px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .hero-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .module-card {
        border-radius: 22px;
    }

    .module-title h3 {
        font-size: 16px;
    }

    .module-title p {
        display: none;
    }

    .module-progress {
        width: 68px;
    }

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

    .lesson-xp {
        display: none;
    }

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

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

    .lesson-step-count {
        min-width: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legal links and lighter authentication controls */
.auth-tabs button,
.auth-submit {
    font-weight: 500;
}

.onboarding-panel {
    flex-direction: column;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 11px;
}

.legal-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-links--onboarding {
    width: min(520px, 100%);
    margin-top: 24px;
    justify-content: center;
}

.legal-links--auth {
    margin-top: 2px;
}

.legal-links--sidebar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    gap: 7px 10px;
}

.legal-links--sidebar a {
    font-size: 10px;
}

.legal-links--profile {
    margin-top: 14px;
}

.legal-links--profile a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    align-items: center;
    color: var(--ink);
    background: var(--surface);
    font-size: 12px;
}

.legal-links--profile a:hover,
.legal-links--profile a:focus-visible {
    border-color: rgba(13, 116, 85, 0.28);
    color: var(--primary-dark);
    background: var(--primary-soft);
    text-decoration: none;
}


/* Required legal agreement during registration */
.auth-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    line-height: 1.55;
}

.auth-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.auth-consent a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.auth-consent a:hover,
.auth-consent a:focus-visible {
    color: var(--primary);
}

/* Consent is part of the registration form so FormData includes it. */
.auth-form .auth-notes {
    margin-top: 1px;
}


/* LIETUVINAM 1.3 — lighter in-app typography and vertical learning path */
.dashboard :where(p, span, small, label, a, button, input, select, textarea),
.lesson-screen :where(p, span, small, label, a, button, input, select, textarea) {
    font-weight: 400;
}

.dashboard :where(strong, b),
.lesson-screen :where(strong, b) {
    font-weight: 600;
}

.dashboard :is(h1, h2, h3),
.lesson-screen :is(h1, h2, h3) {
    font-weight: 750;
}

.dashboard .brand-copy strong {
    font-weight: 700;
}

.dashboard .eyebrow,
.dashboard .goal-badge,
.dashboard .stat-chip,
.lesson-screen .exercise-kicker,
.lesson-screen .lesson-step-count,
.lesson-screen .option-letter {
    font-weight: 500;
}

.dashboard .nav-item.is-active,
.dashboard .segmented button,
.dashboard .segmented button.is-active {
    font-weight: 500;
}

.page--learn {
    max-width: 840px;
}

.path-page-header {
    margin-bottom: 8px;
}

.path-heading {
    margin-top: 22px;
    margin-bottom: 16px;
}

.course-path.course-path--duo {
    display: grid;
    width: min(680px, 100%);
    max-width: none;
    margin: 0 auto;
    gap: 30px;
}

.course-path.course-path--duo::before {
    display: none;
}

.path-unit {
    position: relative;
}

.path-unit-banner {
    position: relative;
    z-index: 2;
    display: grid;
    padding: 17px 18px;
    border: 1px solid rgba(7, 84, 62, 0.11);
    border-radius: 22px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0d7455, #07543e);
    box-shadow: 0 9px 0 #064533, 0 16px 30px rgba(7, 84, 62, 0.13);
}

.path-unit.is-complete .path-unit-banner {
    background: linear-gradient(135deg, #238b67, #0d7455);
}

.path-unit-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 23px;
}

.path-unit-copy {
    min-width: 0;
}

.path-unit-copy h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.path-unit-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.45;
}

.path-unit-count {
    min-width: 50px;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.path-nodes {
    display: flex;
    padding: 32px 8px 10px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.path-step {
    display: flex;
    width: 100%;
    min-height: 116px;
    align-items: flex-start;
    justify-content: center;
}

.path-node-wrap {
    position: relative;
    display: flex;
    width: 172px;
    align-items: center;
    flex-direction: column;
    transition: transform 180ms ease;
}

.path-step--left .path-node-wrap {
    transform: translateX(-72px);
}

.path-step--right .path-node-wrap {
    transform: translateX(72px);
}

html[dir="rtl"] .path-step--left .path-node-wrap {
    transform: translateX(72px);
}

html[dir="rtl"] .path-step--right .path-node-wrap {
    transform: translateX(-72px);
}

.path-node-button {
    position: relative;
    display: grid;
    width: 76px;
    height: 70px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: #0d7455;
    box-shadow: 0 8px 0 #07543e, 0 13px 24px rgba(7, 84, 62, 0.16);
    cursor: pointer;
    font-size: 25px;
    font-weight: 600;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.path-node-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #07543e, 0 16px 28px rgba(7, 84, 62, 0.18);
    filter: saturate(1.06);
}

.path-node-button:active:not(:disabled) {
    transform: translateY(5px);
    box-shadow: 0 3px 0 #07543e, 0 8px 16px rgba(7, 84, 62, 0.14);
}

.path-step.is-current .path-node-button {
    color: #775600;
    background: #fbc832;
    box-shadow: 0 8px 0 #d69a00, 0 14px 28px rgba(216, 156, 0, 0.20);
}

.path-step.is-current .path-node-button:hover {
    box-shadow: 0 10px 0 #d69a00, 0 17px 30px rgba(216, 156, 0, 0.23);
}

.path-step.is-complete .path-node-button {
    background: #1f9069;
    box-shadow: 0 8px 0 #0b684b, 0 13px 24px rgba(7, 84, 62, 0.15);
}

.path-step.is-locked .path-node-button {
    color: #99a49f;
    background: #e5e9e6;
    box-shadow: 0 8px 0 #cbd2cd;
    cursor: default;
}

.path-current-bubble {
    position: absolute;
    z-index: 3;
    top: -24px;
    left: 50%;
    padding: 7px 12px;
    transform: translateX(-50%);
    border: 1px solid #edd06f;
    border-radius: 12px;
    color: #775600;
    background: #fff9df;
    box-shadow: 0 7px 18px rgba(112, 83, 0, 0.10);
    white-space: nowrap;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.path-current-bubble::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 9px;
    height: 9px;
    content: "";
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid #edd06f;
    border-bottom: 1px solid #edd06f;
    background: #fff9df;
}

.path-node-caption {
    display: grid;
    width: 172px;
    margin-top: 13px;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.path-node-caption strong {
    overflow: hidden;
    width: 100%;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.path-node-caption small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.path-step.is-locked .path-node-caption strong,
.path-step.is-locked .path-node-caption small {
    color: #98a39e;
}

.reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .course-path.course-path--duo {
        width: 100%;
    }

    .path-unit-banner {
        padding: 15px;
        border-radius: 19px;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 11px;
    }

    .path-unit-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 20px;
    }

    .path-unit-copy h3 {
        font-size: 16px;
    }

    .path-unit-copy p {
        font-size: 11px;
    }

    .path-unit-count {
        min-width: 44px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .path-nodes {
        padding-top: 31px;
        gap: 14px;
    }

    .path-step {
        min-height: 112px;
    }

    .path-step--left .path-node-wrap {
        transform: translateX(-48px);
    }

    .path-step--right .path-node-wrap {
        transform: translateX(48px);
    }

    html[dir="rtl"] .path-step--left .path-node-wrap {
        transform: translateX(48px);
    }

    html[dir="rtl"] .path-step--right .path-node-wrap {
        transform: translateX(-48px);
    }

    .path-node-button {
        width: 70px;
        height: 65px;
        font-size: 22px;
    }

    .path-node-caption {
        width: 154px;
    }

    .path-node-caption strong {
        font-size: 11px;
    }
}

.path-unit.is-locked .path-unit-banner {
    border-color: #cbd5cf;
    background: linear-gradient(135deg, #a9b6af, #8f9e96);
    box-shadow: 0 8px 0 #7d8a83, 0 14px 26px rgba(65, 78, 70, 0.10);
}

.path-unit.is-locked .path-unit-icon,
.path-unit.is-locked .path-unit-count {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
    .path-heading p {
        display: none;
    }

    .path-heading {
        margin-top: 16px;
        margin-bottom: 12px;
    }

    .path-nodes {
        gap: 8px;
    }

    .path-step {
        min-height: 104px;
    }
}


/* LIETUVINAM v1.4 refinements */
.svg-icon,
.module-art {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
}

.nav-icon .svg-icon,
.stat-chip .svg-icon,
.icon-button .svg-icon,
.phrase-audio .svg-icon,
.lesson-close .svg-icon,
.btn .svg-icon {
    width: 18px;
    height: 18px;
}

.dashboard .btn,
.dashboard .nav-item,
.dashboard .stat-chip,
.dashboard .path-unit-copy p,
.dashboard .path-node-caption strong,
.dashboard .path-node-caption small,
.dashboard .word-row,
.dashboard .content-card p,
.dashboard .goal-badge,
.dashboard .setting-card p,
.dashboard .setting-card button,
.dashboard .big-stat span,
.dashboard .big-stat strong,
.dashboard .sidebar-footer span,
.dashboard .sidebar-footer strong {
    font-weight: 500;
}

.dashboard .word-row strong,
.dashboard .stat-chip b,
.dashboard .path-unit-count,
.dashboard .big-stat strong,
.dashboard .goal-badge {
    font-weight: 600;
}

.path-unit-banner {
    padding: 18px 20px;
}

.path-unit-icon {
    color: #fff;
}

.path-unit-icon .module-art {
    width: 27px;
    height: 27px;
}

.path-nodes {
    padding: 52px 8px 16px;
    gap: 20px;
}

.path-step {
    min-height: 124px;
}

.path-node-wrap {
    width: 186px;
    transform: translateX(var(--node-offset, 0px));
}

.path-step--left .path-node-wrap,
.path-step--right .path-node-wrap,
html[dir="rtl"] .path-step--left .path-node-wrap,
html[dir="rtl"] .path-step--right .path-node-wrap {
    transform: translateX(var(--node-offset, 0px));
}

.path-node-button {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    font-size: 0;
}

.path-node-button::before {
    position: absolute;
    inset: 8px;
    content: "";
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
    pointer-events: none;
}

.path-node-symbol {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.path-node-button .svg-icon {
    width: 28px;
    height: 28px;
}

.path-step.is-current .path-node-button .svg-icon {
    width: 30px;
    height: 30px;
}

.path-current-bubble {
    top: -34px;
    padding: 8px 13px;
}

.path-node-caption {
    width: 186px;
    margin-top: 15px;
    gap: 4px;
}

.path-node-caption strong {
    font-size: 12px;
    font-weight: 600;
}

.path-node-caption small {
    font-size: 10px;
}

@media (max-width: 720px) {
    .path-unit-banner {
        padding: 16px;
    }

    .path-unit-icon .module-art {
        width: 24px;
        height: 24px;
    }

    .path-nodes {
        padding-top: 48px;
    }

    .path-step {
        min-height: 118px;
    }

    .path-node-wrap {
        width: 164px;
        transform: translateX(var(--node-offset-mobile, 0px));
    }

    .path-step--left .path-node-wrap,
    .path-step--right .path-node-wrap,
    html[dir="rtl"] .path-step--left .path-node-wrap,
    html[dir="rtl"] .path-step--right .path-node-wrap {
        transform: translateX(var(--node-offset-mobile, 0px));
    }

    .path-node-button {
        width: 72px;
        height: 72px;
    }

    .path-current-bubble {
        top: -30px;
    }

    .path-node-caption {
        width: 164px;
    }
}


/* LIETUVINAM v1.5 extended exercise types */
.cloze-card,
.scenario-card,
.reading-card {
    width: min(620px, 100%);
    margin: 22px auto;
    border: 1px solid rgba(23, 49, 42, 0.11);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 49, 42, 0.07);
}

.cloze-card {
    display: grid;
    min-height: 108px;
    padding: 24px;
    place-items: center;
    text-align: center;
}

.cloze-card strong {
    color: var(--ink);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.scenario-card {
    display: grid;
    padding: 22px 24px;
    gap: 7px;
}

.scenario-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.scenario-card strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.reading-card {
    position: relative;
    display: flex;
    min-height: 108px;
    padding: 24px 70px 24px 24px;
    align-items: center;
}

.reading-card > strong {
    color: var(--ink);
    font-size: 22px;
    font-weight: 620;
    line-height: 1.45;
}

.reading-card .phrase-audio {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.reading-card--stacked {
    display: grid;
    padding-right: 24px;
    gap: 12px;
}

.reading-card--stacked > span {
    padding-top: 12px;
    border-top: 1px solid rgba(23, 49, 42, 0.09);
    color: var(--muted);
    font-size: 15px;
    font-weight: 450;
}

html[dir="rtl"] .reading-card {
    padding-right: 24px;
    padding-left: 70px;
}

html[dir="rtl"] .reading-card .phrase-audio {
    right: auto;
    left: 18px;
}

@media (max-width: 640px) {
    .cloze-card,
    .scenario-card,
    .reading-card {
        border-radius: 18px;
    }
    .cloze-card { padding: 20px 16px; }
    .scenario-card { padding: 19px; }
    .reading-card { padding: 20px 62px 20px 18px; }
    html[dir="rtl"] .reading-card { padding-right: 18px; padding-left: 62px; }
    .reading-card > strong { font-size: 19px; }
}

/* LIETUVINAM v1.6 — refined learn intro, returning greeting and icon system */
.learn-intro {
    position: relative;
    overflow: hidden;
    width: min(680px, 100%);
    margin: 0 auto 26px;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(7, 84, 62, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 4%, rgba(251, 200, 50, 0.18), transparent 15rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 247, 0.94));
    box-shadow: 0 18px 46px rgba(23, 49, 42, 0.08);
}

.learn-intro__glow {
    position: absolute;
    top: -78px;
    right: -58px;
    width: 180px;
    height: 180px;
    border: 28px solid rgba(13, 116, 85, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.learn-intro__copy,
.learn-intro__path {
    position: relative;
    z-index: 1;
}

.learn-intro__goal,
.learn-greeting__goal {
    color: var(--primary);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learn-intro h1 {
    margin: 8px 0 10px;
    color: var(--ink);
    font-size: clamp(38px, 6vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.learn-intro__copy > p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.learn-intro__path {
    display: grid;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(7, 84, 62, 0.1);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.learn-intro__path-mark {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(13, 116, 85, 0.13);
    border-radius: 12px;
    place-items: center;
    color: var(--primary-dark);
    background: rgba(13, 116, 85, 0.07);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.learn-intro__path h2 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 19px;
    letter-spacing: -0.025em;
}

.learn-intro__path p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.learn-greeting {
    width: min(680px, 100%);
    margin: 0 auto 22px;
}

.learn-greeting--returning {
    display: flex;
    min-height: 62px;
    padding: 13px 18px;
    border: 1px solid rgba(7, 84, 62, 0.1);
    border-radius: 20px;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(23, 49, 42, 0.055);
    animation: learnGreetingIn 620ms cubic-bezier(.2,.8,.2,1) both;
}

.learn-greeting__goal {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    align-items: center;
    background: rgba(13, 116, 85, 0.085);
    white-space: nowrap;
}

.learn-greeting__hello {
    position: relative;
    color: var(--ink);
    font-size: clamp(25px, 4vw, 32px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.035em;
}

.learn-greeting__hello::after {
    position: absolute;
    right: -9px;
    bottom: -4px;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: #fbc832;
    opacity: 0;
    transform: scale(.4);
    animation: learnGreetingDot 620ms 330ms ease-out forwards;
}

.course-path--returning {
    margin-top: 0;
}

@keyframes learnGreetingIn {
    0% {
        opacity: 0;
        transform: translateY(-9px) scale(.985);
    }
    65% {
        opacity: 1;
        transform: translateY(1px) scale(1.003);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes learnGreetingDot {
    0% { opacity: 0; transform: scale(.4); }
    60% { opacity: 1; transform: scale(1.35); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .learn-greeting--returning,
    .learn-greeting__hello::after {
        animation: none;
    }

    .learn-greeting__hello::after {
        opacity: 1;
        transform: none;
    }
}

/* New non-preserved SVGs use crisp rounded strokes; preserved play/lock/level/words/profile/progress remain unchanged. */
.path-unit-icon .module-art {
    width: 28px;
    height: 28px;
}

@media (max-width: 720px) {
    .learn-intro {
        margin-bottom: 20px;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .learn-intro__copy > p {
        font-size: 13px;
    }

    .learn-intro__path {
        margin-top: 20px;
        padding-top: 17px;
        gap: 11px;
    }

    .learn-intro__path-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .learn-intro__path h2 {
        font-size: 17px;
    }

    .learn-intro__path p {
        display: block;
        font-size: 11px;
    }

    .learn-greeting {
        margin-bottom: 18px;
    }

    .learn-greeting--returning {
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 18px;
        gap: 10px;
    }

    .learn-greeting__goal {
        min-height: 28px;
        padding-inline: 9px;
        font-size: 9px;
    }

    .path-unit-icon .module-art {
        width: 25px;
        height: 25px;
    }
}


/* LIETUVINAM v1.8 — lesson clarity, reveals, translations and listening controls */
.lesson-screen .exercise-kicker {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.lesson-screen .exercise-title {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.exercise-cue {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 0 0 22px;
    padding: 10px 14px;
    border: 1px solid rgba(13, 116, 85, 0.13);
    border-radius: 13px;
    align-items: center;
    color: var(--ink);
    background: rgba(13, 116, 85, 0.055);
    font-size: 17px;
    font-weight: 520;
    line-height: 1.4;
}

.exercise-help--compact {
    margin: -8px 0 14px;
    font-size: 13px;
}

.exercise-help--question {
    margin-top: 2px;
    margin-bottom: 20px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}

.phrase-card-copy {
    min-width: 0;
}

.lt-term-wrap {
    display: inline-flex;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.lt-term {
    width: fit-content;
    max-width: 100%;
    padding: 0 1px 2px;
    border: 0;
    border-bottom: 1px dashed rgba(13, 116, 85, 0.42);
    color: inherit;
    background: transparent;
    text-align: inherit;
    font: inherit;
    line-height: inherit;
    cursor: help;
}

.lt-term:hover,
.lt-term:focus-visible {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    outline: none;
}

.lt-term-translation {
    display: none !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 450 !important;
    line-height: 1.35 !important;
}

.lt-term-wrap.is-revealed .lt-term-translation {
    display: block !important;
}


.phrase-card .lt-term-wrap {
    color: var(--ink);
    font-size: 16px;
}

.phrase-card .phrase-card-term {
    margin: 0;
    font-size: 24px;
    font-weight: 620;
    letter-spacing: -0.025em;
}

.phrase-card .lt-term-translation {
    margin-top: 1px;
}

.cloze-card .lt-term-wrap {
    align-items: center;
}

.cloze-card .cloze-term {
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.reading-card .lt-term-wrap {
    min-width: 0;
}

.reading-card .reading-term {
    color: var(--ink);
    font-size: 22px;
    font-weight: 620;
    line-height: 1.45;
}

.reading-card--stacked .lt-term-wrap {
    width: fit-content;
}

.answer-text-stack {
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 3px;
}

.lt-answer-term {
    max-width: 100%;
    border-bottom: 1px dashed rgba(13, 116, 85, 0.34);
    line-height: 1.35;
    cursor: help;
}

.lt-answer-term:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.lt-answer-translation {
    display: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 430;
    line-height: 1.3;
}

.answer-text-stack.is-revealed .lt-answer-translation {
    display: block;
}

.exercise-help-actions {
    display: flex;
    margin: -4px 0 18px;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.lesson-helper-btn {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(13, 116, 85, 0.18);
    border-radius: 12px;
    align-items: center;
    gap: 7px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 0 rgba(23, 49, 42, 0.04);
    cursor: pointer;
    font-size: 12px;
    font-weight: 550;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.lesson-helper-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 116, 85, 0.35);
    background: var(--primary-soft);
}

.lesson-helper-btn.is-active {
    border-color: rgba(13, 116, 85, 0.34);
    background: var(--primary-soft);
}

.lesson-helper-btn .svg-icon {
    width: 17px;
    height: 17px;
}

.lesson-helper-btn--quiet {
    color: var(--muted);
    border-color: rgba(23, 49, 42, 0.11);
    background: transparent;
    box-shadow: none;
}

.exercise-reveal-card {
    width: fit-content;
    max-width: 100%;
    margin: -7px 0 19px;
    padding: 11px 14px;
    border: 1px solid rgba(251, 200, 50, 0.3);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(251, 200, 50, 0.1);
    font-size: 16px;
}

.exercise-reveal-card .exercise-reveal-term {
    font-weight: 580;
}

html[dir="rtl"] .answer-text-stack {
    justify-items: end;
}

html[dir="rtl"] .answer-option {
    text-align: right;
}

@media (max-width: 640px) {
    .lesson-screen .exercise-title {
        margin-bottom: 15px;
        font-size: clamp(25px, 8vw, 33px);
    }

    .exercise-cue {
        min-height: 40px;
        margin-bottom: 18px;
        padding: 9px 12px;
        font-size: 15px;
    }

    .phrase-card .phrase-card-term {
        font-size: 21px;
    }

    .reading-card .reading-term {
        font-size: 19px;
    }

    .exercise-help-actions {
        margin-bottom: 15px;
    }

    .lesson-helper-btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }
}


/* LIETUVINAM v2.0 — onboarding personalisation, community counters, sound settings */
.onboarding-card--personalisation {
    width: min(620px, 100%);
    padding: 28px;
    border: 1px solid rgba(23, 49, 42, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(23, 49, 42, 0.13);
}

.onboarding-card--personalisation h2 {
    font-size: clamp(28px, 3.4vw, 40px);
}

.onboarding-progress {
    display: flex;
    margin-bottom: 20px;
    gap: 7px;
}

.onboarding-dot {
    width: 28px;
    height: 5px;
    border-radius: 999px;
    background: #dce4e0;
    transition: background 160ms ease, width 160ms ease;
}

.onboarding-dot.is-active {
    width: 38px;
    background: var(--primary);
}

.native-language-grid {
    display: grid;
    max-height: 310px;
    padding: 2px 4px 2px 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 116, 85, 0.32) transparent;
}

.native-language-card {
    display: flex;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 520;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.native-language-card:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 116, 85, 0.34);
}

.native-language-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.native-language-card img {
    width: 30px;
    height: 21px;
    flex: 0 0 auto;
    border: 1px solid rgba(23, 49, 42, 0.10);
    border-radius: 6px;
    object-fit: cover;
}

.level-choice-grid .choice-card {
    min-height: 88px;
}

.level-choice-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 650;
}

.onboarding-actions--single {
    justify-content: flex-end;
}

.community-section {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.community-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.community-heading h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 620;
}

.community-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.community-counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.community-counter {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(23, 49, 42, 0.04);
}

.community-counter > span {
    display: block;
    min-height: 32px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.community-counter > strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 620;
    letter-spacing: -0.035em;
}

.community-counter > small {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 580;
}

.community-counter > small.is-placeholder {
    visibility: hidden;
}

.community-status {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 12px;
}

.community-status--muted {
    color: var(--muted);
    background: var(--surface-soft);
}

.level-settings {
    display: grid;
    gap: 7px;
}

.level-setting-button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface-soft);
    text-align: left;
    cursor: pointer;
}

.level-setting-button strong {
    font-size: 12px;
    font-weight: 560;
}

.level-setting-button.is-active {
    border-color: rgba(13, 116, 85, 0.34);
    color: var(--primary-dark);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px rgba(13, 116, 85, 0.18);
}

.sound-toggle-row,
.volume-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sound-toggle-row {
    min-height: 50px;
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--line);
}

.sound-toggle-row > span,
.volume-control > span {
    font-size: 12px;
    font-weight: 540;
}

.sound-toggle {
    display: inline-flex;
    padding: 5px 8px 5px 5px;
    border: 0;
    border-radius: 999px;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    background: var(--surface-soft);
    cursor: pointer;
}

.sound-toggle strong {
    min-width: 26px;
    font-size: 11px;
    font-weight: 560;
}

.sound-toggle__track {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #c9d2ce;
    transition: background 150ms ease;
}

.sound-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(23, 49, 42, 0.18);
    transition: transform 150ms ease;
}

.sound-toggle.is-on {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.sound-toggle.is-on .sound-toggle__track {
    background: var(--primary);
}

.sound-toggle.is-on .sound-toggle__thumb {
    transform: translateX(16px);
}

.volume-control {
    padding-top: 16px;
}

.volume-control__line {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
}

.volume-control input[type="range"] {
    width: 150px;
    accent-color: var(--primary);
}

.volume-control output {
    min-width: 38px;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.volume-control.is-disabled {
    opacity: 0.48;
}

html[dir="rtl"] .native-language-card,
html[dir="rtl"] .level-setting-button {
    text-align: right;
}

html[dir="rtl"] .sound-toggle__thumb {
    left: auto;
    right: 3px;
}

html[dir="rtl"] .sound-toggle.is-on .sound-toggle__thumb {
    transform: translateX(-16px);
}

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

@media (max-width: 520px) {
    .onboarding-card--personalisation {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .native-language-grid {
        max-height: 330px;
        grid-template-columns: 1fr;
    }

    .community-counters {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .community-counter {
        padding: 14px;
    }

    .community-counter > span {
        min-height: 30px;
        font-size: 11px;
    }

    .community-counter > strong {
        font-size: 25px;
    }

    .sound-toggle-row,
    .volume-control {
        align-items: stretch;
        flex-direction: column;
    }

    .sound-toggle {
        width: fit-content;
    }

    .volume-control__line,
    .volume-control input[type="range"] {
        width: 100%;
    }
}


.onboarding--personalising {
    display: block;
    min-height: 100vh;
}

.onboarding--personalising .onboarding-visual {
    position: fixed;
    inset: 0;
    min-height: 100vh;
}

.onboarding--personalising .onboarding-visual .visual-content {
    opacity: 0.32;
    transform: scale(1.01);
}

.onboarding--personalising .onboarding-panel {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 30px 20px;
    background: rgba(4, 36, 28, 0.54);
    backdrop-filter: blur(10px);
}

.onboarding--personalising .legal-links--onboarding {
    display: none;
}


/* LIETUVINAM v2.0.1 — account management and About us */
.profile-footer-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-footer-grid > .content-card {
    min-width: 0;
    height: 100%;
}

.account-management__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.account-management__actions .btn {
    min-height: 46px;
    padding-inline: 16px;
    font-weight: 650;
}

.btn--danger-strong {
    border-color: rgba(164, 36, 32, 0.28);
    color: #fff;
    background: #b53631;
    box-shadow: 0 7px 18px rgba(164, 36, 32, 0.14);
}

.btn--danger-strong:hover:not(:disabled) {
    background: #9f2d29;
}

.about-page-header {
    align-items: end;
}

.about-visit {
    flex: 0 0 auto;
    text-decoration: none;
    font-weight: 650;
}

.about-visit .svg-icon {
    width: 18px;
    height: 18px;
}

.about-brand-card {
    display: flex;
    margin-bottom: 16px;
    padding: 20px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at 0 0, rgba(253, 185, 19, 0.10), transparent 20rem),
        var(--surface);
}

.about-brand-card__mark .brand-lockup {
    gap: 12px;
}

.about-brand-card__copy {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.about-brand-card__copy strong {
    font-size: 18px;
    font-weight: 700;
}

.about-brand-card__copy span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.11em;
}

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

.about-card {
    min-height: 250px;
}

.about-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 15px;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.about-card__icon .svg-icon {
    width: 24px;
    height: 24px;
}

.about-card h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

[dir="rtl"] .about-brand-card__copy {
    justify-items: start;
    text-align: left;
}

@media (max-width: 980px) {
    .mobile-nav .nav-item {
        font-size: 9px;
    }

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

    .about-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .profile-footer-grid {
        grid-template-columns: 1fr;
    }

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

    .account-management__actions .btn {
        width: 100%;
    }

    .about-page-header {
        align-items: stretch;
    }

    .about-visit {
        width: 100%;
    }

    .about-brand-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-brand-card__copy,
    [dir="rtl"] .about-brand-card__copy {
        justify-items: start;
        text-align: left;
    }

    .mobile-nav .nav-item {
        font-size: 8.5px;
    }
}

/* LIETUVINAM v2.1.0 — Alphabet & numbers */
.basics-independent-note {
    display: flex;
    margin: -4px 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 116, 85, 0.14);
    border-radius: 16px;
    align-items: flex-start;
    gap: 11px;
    color: var(--primary-dark);
    background: rgba(232, 246, 238, 0.72);
}

.basics-independent-note .svg-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.basics-independent-note p {
    margin: 0;
    color: #49635a;
    font-size: 13px;
    line-height: 1.6;
}

.basics-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.basics-module-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.basics-module-card__header {
    display: flex;
    padding: 22px 22px 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.basics-module-card__identity {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 13px;
}

.basics-module-card__art {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.basics-module-card__art .module-art {
    width: 25px;
    height: 25px;
}

.basics-module-card__identity h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.2;
}

.basics-module-card__identity p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.basics-module-card__progress {
    display: grid;
    min-width: 74px;
    justify-items: end;
    gap: 1px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.basics-module-card__progress strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
}

.basics-progress-track {
    width: 72px;
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ece9;
}

.basics-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 180ms ease;
}

.basics-reference {
    margin: 0 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.basics-reference__head {
    display: flex;
    margin-bottom: 13px;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.basics-reference__head strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
}

.basics-reference__head span,
.basics-reference__note {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.basics-reference__note {
    margin: 12px 0 0;
}

.alphabet-reference-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
}

.alphabet-reference-letter {
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(13, 116, 85, 0.12);
    border-radius: 10px;
    place-items: center;
    color: var(--primary-dark);
    background: #fff;
    font: inherit;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.alphabet-reference-letter:hover,
.number-reference-item:hover {
    border-color: rgba(13, 116, 85, 0.34);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.alphabet-reference-letter span {
    font-size: 14px;
    font-weight: 650;
}

.number-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.number-reference-item {
    display: grid;
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    border: 1px solid rgba(13, 116, 85, 0.12);
    border-radius: 11px;
    align-content: center;
    justify-items: start;
    gap: 1px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    font: inherit;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.number-reference-item strong {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 650;
}

.number-reference-item span {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basics-lessons-head {
    padding: 19px 20px 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.basics-lesson-list {
    display: grid;
    padding: 0 12px 14px;
    gap: 6px;
}

.basics-lesson-row {
    display: grid;
    width: 100%;
    min-height: 66px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.basics-lesson-row:hover:not(:disabled) {
    border-color: rgba(13, 116, 85, 0.12);
    background: var(--surface-soft);
    transform: translateY(-1px);
}

.basics-lesson-row__index {
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 650;
}

.basics-lesson-row__index .svg-icon,
.basics-lesson-row__status .svg-icon {
    width: 18px;
    height: 18px;
}

.basics-lesson-row__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.basics-lesson-row__copy strong {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.basics-lesson-row__copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.basics-lesson-row__status {
    display: grid;
    place-items: center;
    color: var(--primary);
}

.basics-lesson-row.is-completed .basics-lesson-row__index {
    color: #fff;
    background: var(--primary);
}

.basics-lesson-row.is-locked {
    opacity: .52;
    cursor: not-allowed;
}

.basics-lesson-row.is-locked .basics-lesson-row__index,
.basics-lesson-row.is-locked .basics-lesson-row__status {
    color: #8a9992;
    background: #eef1ef;
}

[dir="rtl"] .basics-module-card__identity,
[dir="rtl"] .basics-lesson-row,
[dir="rtl"] .number-reference-item {
    text-align: right;
}

@media (max-width: 1180px) {
    .basics-module-grid {
        grid-template-columns: 1fr;
    }

    .alphabet-reference-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .number-reference-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .mobile-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .mobile-nav .nav-item > span:last-child {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .basics-module-card__header {
        padding: 18px 16px 15px;
    }

    .basics-module-card__identity {
        gap: 10px;
    }

    .basics-module-card__art {
        width: 42px;
        height: 42px;
    }

    .basics-module-card__identity h2 {
        font-size: 17px;
    }

    .basics-module-card__progress {
        min-width: 58px;
    }

    .basics-progress-track {
        width: 58px;
    }

    .basics-reference {
        margin: 0 10px;
        padding: 13px;
    }

    .basics-reference__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .alphabet-reference-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .number-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .basics-lesson-list {
        padding-inline: 8px;
    }

    .basics-lesson-row {
        grid-template-columns: 36px minmax(0, 1fr) 24px;
        gap: 8px;
    }

    .mobile-nav .nav-item {
        font-size: 7.7px;
    }
}

@media (max-width: 390px) {
    .alphabet-reference-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .mobile-nav .nav-item {
        font-size: 7.1px;
    }
}

/* LIETUVINAM v2.2 curriculum stages */
.curriculum-roadmap {
    display: grid;
    width: min(680px, 100%);
    margin: 18px auto 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.curriculum-roadmap__step {
    display: flex;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.76);
}

.curriculum-roadmap__step span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.curriculum-roadmap__step small {
    font-size: 11px;
    font-weight: 600;
}

.curriculum-roadmap__step.is-current {
    border-color: rgba(13, 116, 85, 0.28);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.curriculum-roadmap__step.is-complete {
    color: var(--success);
    background: rgba(225, 245, 234, 0.84);
}

.curriculum-stage {
    display: grid;
    gap: 24px;
}

.curriculum-stage + .curriculum-stage {
    margin-top: 24px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.curriculum-stage__header {
    display: grid;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.curriculum-stage.is-current .curriculum-stage__header {
    border-color: rgba(13, 116, 85, 0.22);
    background: linear-gradient(135deg, rgba(223, 244, 234, 0.92), rgba(255, 255, 255, 0.94));
}

.curriculum-stage.is-complete .curriculum-stage__header {
    border-color: rgba(23, 122, 82, 0.18);
}

.curriculum-stage.is-locked .curriculum-stage__header {
    opacity: 0.78;
}

.curriculum-stage__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.curriculum-stage__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.curriculum-stage__title-row h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 650;
}

.curriculum-stage__status {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 600;
}

.curriculum-stage__identity p {
    max-width: 540px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.curriculum-stage__progress {
    display: grid;
    gap: 9px;
}

.curriculum-stage__progress > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
}

.curriculum-stage__progress > div:first-child strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.curriculum-stage__progress > small {
    color: var(--muted);
    text-align: right;
    font-size: 11px;
    font-weight: 600;
}

.curriculum-stage__modules {
    display: grid;
    gap: 30px;
}

.path-unit.is-review .path-unit-banner {
    border-color: rgba(168, 113, 0, 0.18);
    background: linear-gradient(135deg, #7c6314, #5c4b12);
    box-shadow: 0 9px 0 #493c0f, 0 16px 30px rgba(73, 60, 15, 0.14);
}

.path-unit.is-review.is-complete .path-unit-banner {
    background: linear-gradient(135deg, #8b7422, #6a5718);
}

.path-unit.is-review.is-locked .path-unit-banner {
    border-color: #cbd5cf;
    background: linear-gradient(135deg, #a9b6af, #8f9e96);
    box-shadow: 0 8px 0 #7d8a83, 0 14px 26px rgba(65, 78, 70, 0.10);
}

.current-stage-progress-label {
    display: flex;
    margin-top: 18px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.current-stage-progress-label strong {
    color: var(--ink);
    font-weight: 600;
}

.stage-progress-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.stage-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stage-progress-card {
    display: grid;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    gap: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.stage-progress-card.is-current {
    border-color: rgba(13, 116, 85, 0.25);
    background: linear-gradient(145deg, #fff, rgba(223, 244, 234, 0.68));
}

.stage-progress-card.is-complete {
    border-color: rgba(23, 122, 82, 0.2);
}

.stage-progress-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.stage-progress-card__top span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stage-progress-card__top h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 650;
}

.stage-progress-card__top > strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 650;
}

.stage-progress-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.stage-progress-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.stage-framework-note {
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .curriculum-roadmap {
        margin-top: 12px;
        gap: 6px;
    }

    .curriculum-roadmap__step {
        padding: 9px 10px;
        border-radius: 13px;
    }

    .curriculum-roadmap__step span {
        font-size: 11px;
    }

    .curriculum-roadmap__step small {
        font-size: 10px;
    }

    .curriculum-stage__header {
        padding: 17px 16px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .curriculum-stage__progress > small {
        text-align: left;
    }

    .curriculum-stage__title-row h2 {
        font-size: 28px;
    }

    .stage-progress-grid {
        grid-template-columns: 1fr;
    }
}

/* LIETUVINAM v2.3 — signed-in visual system refresh
   Login / registration styles are intentionally untouched. */
.dashboard {
    grid-template-columns: 236px minmax(0, 1fr);
    background:
        radial-gradient(circle at 72% -8%, rgba(253, 185, 19, 0.08), transparent 24rem),
        radial-gradient(circle at 108% 34%, rgba(13, 116, 85, 0.07), transparent 28rem),
        #f6f8f5;
}

.dashboard :is(h1, h2, h3) {
    font-weight: 600;
}

.dashboard .brand-copy strong {
    font-weight: 600;
}

.sidebar {
    padding: 24px 16px 20px;
    border-right-color: rgba(23, 49, 42, 0.08);
    background: rgba(250, 252, 250, 0.90);
    box-shadow: 12px 0 36px rgba(30, 62, 51, 0.025);
}

.sidebar .brand-lockup {
    padding: 2px 10px;
}

.side-nav {
    margin-top: 36px;
    gap: 5px;
}

.side-nav .nav-item {
    position: relative;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    gap: 10px;
}

.side-nav .nav-item:hover {
    border-color: rgba(23, 49, 42, 0.06);
    background: rgba(255, 255, 255, 0.76);
}

.side-nav .nav-item.is-active {
    border-color: rgba(13, 116, 85, 0.12);
    background: #fff;
    box-shadow: 0 7px 20px rgba(30, 62, 51, 0.055);
}

.side-nav .nav-item.is-active::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -17px;
    width: 3px;
    content: "";
    border-radius: 999px;
    background: var(--primary);
}

html[dir="rtl"] .side-nav .nav-item.is-active::before {
    right: -17px;
    left: auto;
}

.sidebar-footer {
    padding: 14px;
    border-color: rgba(23, 49, 42, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.app-main {
    padding: 20px clamp(22px, 4.5vw, 68px) 88px;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 30;
    width: min(1180px, 100%);
    min-height: 50px;
    margin-bottom: 30px;
    padding: 6px 8px;
    border: 1px solid rgba(23, 49, 42, 0.075);
    border-radius: 18px;
    background: rgba(250, 252, 250, 0.82);
    box-shadow: 0 8px 28px rgba(30, 62, 51, 0.045);
    backdrop-filter: blur(18px);
}

.stat-chips {
    gap: 5px;
}

.stat-chip {
    min-height: 34px;
    padding: 0 10px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    font-weight: 400;
}

.stat-chip:hover {
    background: rgba(255, 255, 255, 0.72);
}

.stat-chip b {
    font-weight: 500;
}

.page {
    width: min(1180px, 100%);
}

.page-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
}

.page-header .eyebrow,
.eyebrow {
    font-weight: 500;
}

.content-card,
.setting-card,
.summary-card,
.big-stat,
.stage-progress-card,
.basics-module-card {
    border-color: rgba(23, 49, 42, 0.085);
    box-shadow: 0 8px 26px rgba(30, 62, 51, 0.045);
}

.page--learn {
    max-width: 980px;
}

/* Learn hero */
.learn-intro {
    position: relative;
    display: grid;
    overflow: hidden;
    width: min(920px, 100%);
    margin: 0 auto 28px;
    padding: clamp(26px, 4vw, 38px);
    border: 0;
    border-radius: 30px;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    align-items: stretch;
    gap: clamp(22px, 4vw, 42px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(253, 185, 19, 0.25), transparent 16rem),
        linear-gradient(135deg, #0d624b 0%, #0a4f3d 48%, #073d31 100%);
    box-shadow: 0 22px 50px rgba(7, 84, 62, 0.16);
}

.learn-intro::after {
    position: absolute;
    right: 27%;
    bottom: -82px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.learn-intro__glow {
    top: -98px;
    right: -78px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.035);
}

.learn-intro__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.learn-intro__goal {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
}

.learn-intro h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(40px, 6vw, 58px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.learn-intro__copy > p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.65;
}

.learn-intro__path {
    position: relative;
    display: grid;
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 13px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.learn-intro__path-icon {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.learn-intro__path-icon .svg-icon {
    width: 20px;
    height: 20px;
}

.learn-intro__path-copy {
    min-width: 0;
}

.learn-intro__path-label {
    display: block;
    margin: 1px 0 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.learn-intro__path h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.learn-intro__stage-progress {
    display: grid;
    margin: 13px 0 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.learn-intro__stage-track {
    overflow: hidden;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.learn-intro__stage-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fbc832;
}

.learn-intro__stage-progress small {
    color: rgba(255, 255, 255, 0.70);
    font-size: 10px;
}

.learn-intro__path p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.5;
}

/* Curriculum roadmap — route, not three cards */
.curriculum-roadmap {
    position: relative;
    display: grid;
    width: min(800px, calc(100% - 32px));
    margin: 0 auto 38px;
    padding: 0 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.curriculum-roadmap::before {
    position: absolute;
    z-index: 0;
    top: 20px;
    right: calc(16.666% + 22px);
    left: calc(16.666% + 22px);
    height: 2px;
    content: "";
    border-radius: 999px;
    background: #dfe7e2;
}

.curriculum-roadmap__step {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    background: transparent;
}

.curriculum-roadmap__marker {
    display: grid;
    width: 40px;
    height: 40px;
    border: 2px solid #d9e3dd;
    border-radius: 50%;
    place-items: center;
    color: #7e8c85;
    background: #f6f8f5;
    box-shadow: 0 0 0 5px #f6f8f5;
    font-size: 11px;
    font-weight: 500;
}

.curriculum-roadmap__marker .svg-icon {
    width: 17px;
    height: 17px;
}

.curriculum-roadmap__copy {
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.curriculum-roadmap__copy > span {
    overflow: visible;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-overflow: clip;
    white-space: normal;
}

.curriculum-roadmap__copy small {
    color: #8b9892;
    font-size: 10px;
    font-weight: 400;
}

.curriculum-roadmap__step.is-current .curriculum-roadmap__marker {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 0 0 5px #edf6f1, 0 6px 16px rgba(13, 116, 85, 0.12);
}

.curriculum-roadmap__step.is-current .curriculum-roadmap__copy > span {
    color: var(--primary-dark);
}

.curriculum-roadmap__step.is-complete .curriculum-roadmap__marker {
    border-color: #2a8c69;
    color: #fff;
    background: #2a8c69;
    box-shadow: 0 0 0 5px #ebf5f0;
}

.curriculum-roadmap__step.is-complete .curriculum-roadmap__copy > span {
    color: #28785d;
}

/* Stage section */
.course-path.course-path--duo {
    width: min(900px, 100%);
    gap: 42px;
}

.curriculum-stage {
    position: relative;
    display: grid;
    gap: 24px;
}

.curriculum-stage + .curriculum-stage {
    margin-top: 10px;
    padding-top: 42px;
    border-top: 1px solid rgba(23, 49, 42, 0.075);
}

.curriculum-stage__header {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: 24px 26px 24px 30px;
    border: 1px solid rgba(23, 49, 42, 0.085);
    border-radius: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.36fr);
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(30, 62, 51, 0.045);
}

.curriculum-stage__accent {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #cbd6d0;
}

html[dir="rtl"] .curriculum-stage__accent {
    right: 0;
    left: auto;
    border-radius: 999px 0 0 999px;
}

.curriculum-stage[data-stage="starter"] .curriculum-stage__accent {
    background: #e8b21e;
}

.curriculum-stage[data-stage="a1"] .curriculum-stage__accent {
    background: #16805e;
}

.curriculum-stage[data-stage="a2"] .curriculum-stage__accent {
    background: #477b8d;
}

.curriculum-stage.is-current .curriculum-stage__header {
    border-color: rgba(13, 116, 85, 0.15);
    background:
        radial-gradient(circle at 92% 0%, rgba(13, 116, 85, 0.07), transparent 15rem),
        rgba(255, 255, 255, 0.92);
}

.curriculum-stage.is-complete .curriculum-stage__header {
    border-color: rgba(23, 122, 82, 0.13);
}

.curriculum-stage.is-locked .curriculum-stage__header {
    opacity: 0.66;
    filter: saturate(0.76);
}

.curriculum-stage__identity {
    min-width: 0;
}

.curriculum-stage__meta {
    display: flex;
    margin-bottom: 7px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.curriculum-stage__status,
.curriculum-stage__count {
    display: inline-flex;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    align-items: center;
    color: var(--muted);
    background: #f1f4f2;
    font-size: 10px;
    font-weight: 400;
}

.curriculum-stage.is-current .curriculum-stage__status {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.curriculum-stage.is-complete .curriculum-stage__status {
    color: var(--success);
    background: var(--success-soft);
}

.curriculum-stage__identity h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: clamp(27px, 4vw, 36px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.curriculum-stage__identity p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.curriculum-stage__progress {
    display: grid;
    padding: 14px 15px;
    border: 1px solid rgba(23, 49, 42, 0.07);
    border-radius: 16px;
    gap: 10px;
    background: rgba(247, 249, 247, 0.82);
}

.curriculum-stage__progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
}

.curriculum-stage__progress-head strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
}

.curriculum-stage__progress .progress-track {
    height: 7px;
    background: #e5ebe7;
}

.curriculum-stage__progress .progress-fill {
    background: linear-gradient(90deg, #1d8d67, #41a77f);
}

.curriculum-stage__modules {
    display: grid;
    width: min(760px, 100%);
    margin: 0 auto;
    gap: 34px;
}

/* Modules become lighter and leave room for future Lithuanian landmark art. */
.path-unit {
    position: relative;
}

.path-unit-banner,
.path-unit.is-complete .path-unit-banner,
.path-unit.is-locked .path-unit-banner,
.path-unit.is-review .path-unit-banner,
.path-unit.is-review.is-complete .path-unit-banner,
.path-unit.is-review.is-locked .path-unit-banner {
    padding: 15px 16px;
    border: 1px solid rgba(23, 49, 42, 0.09);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 9px 26px rgba(30, 62, 51, 0.055);
}

.path-unit.is-current .path-unit-banner {
    border-color: rgba(13, 116, 85, 0.20);
    box-shadow: 0 11px 30px rgba(13, 116, 85, 0.09);
}

.path-unit.is-locked .path-unit-banner {
    opacity: 0.64;
}

.path-unit.is-review .path-unit-banner {
    border-color: rgba(201, 151, 20, 0.20);
    background: linear-gradient(135deg, #fffdf5, #fff9e8);
}

.path-unit-icon,
.path-unit.is-locked .path-unit-icon,
.path-unit.is-locked .path-unit-count {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 15px;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.path-unit.is-review .path-unit-icon {
    color: #7b5a00;
    background: #fff1bd;
}

.path-unit.is-locked .path-unit-icon {
    color: #84918b;
    background: #edf1ee;
}

.path-unit-copy h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.path-unit-copy p {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.path-unit-count,
.path-unit.is-locked .path-unit-count {
    width: auto;
    min-width: 46px;
    height: auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: #f1f4f2;
    font-size: 10px;
    font-weight: 500;
}

.path-nodes {
    position: relative;
    padding: 48px 8px 12px;
    gap: 18px;
}

.path-step {
    min-height: 120px;
}

.path-node-button {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(7, 84, 62, 0.10);
    background: #167d5c;
    box-shadow: 0 7px 18px rgba(7, 84, 62, 0.16);
}

.path-node-button::before {
    inset: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 75%);
}

.path-node-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 84, 62, 0.18);
}

.path-node-button:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 14px rgba(7, 84, 62, 0.14);
}

.path-step.is-complete .path-node-button {
    background: #2a8c69;
    box-shadow: 0 7px 18px rgba(7, 84, 62, 0.13);
}

.path-step.is-current .path-node-button {
    border-color: rgba(210, 151, 0, 0.18);
    color: #6c5000;
    background: #fbc832;
    box-shadow: 0 8px 22px rgba(216, 156, 0, 0.20);
}

.path-step.is-current .path-node-button:hover {
    box-shadow: 0 10px 25px rgba(216, 156, 0, 0.22);
}

.path-step.is-locked .path-node-button {
    border-color: #d9e0dc;
    color: #97a29d;
    background: #e9eeeb;
    box-shadow: 0 5px 14px rgba(65, 78, 70, 0.07);
}

.path-current-bubble {
    top: -32px;
    padding: 7px 11px;
    border-color: rgba(216, 156, 0, 0.24);
    border-radius: 999px;
    background: #fff9df;
    box-shadow: 0 6px 16px rgba(112, 83, 0, 0.08);
    font-weight: 400;
}

.path-node-caption strong {
    font-weight: 500;
}

/* Signed-in mobile polish */
@media (max-width: 980px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding-bottom: 104px;
    }

    .topbar {
        top: 8px;
    }

    .mobile-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        min-height: 66px;
        padding: 6px;
        border-radius: 20px;
        gap: 2px;
    }

    .mobile-nav .nav-item {
        min-height: 52px;
        border-radius: 14px;
    }
}

@media (max-width: 760px) {
    .app-main {
        padding: 10px 12px 102px;
    }

    .topbar {
        min-height: 46px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .stat-chip {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .page--learn {
        width: 100%;
    }

    .learn-intro {
        width: 100%;
        margin-bottom: 24px;
        padding: 22px 18px 18px;
        border-radius: 24px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .learn-intro h1 {
        font-size: 39px;
    }

    .learn-intro__copy > p {
        font-size: 12px;
    }

    .learn-intro__path {
        padding: 15px;
        border-radius: 18px;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 11px;
    }

    .learn-intro__path-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .learn-intro__path h2 {
        font-size: 18px;
    }

    .learn-intro__path p {
        display: block;
        font-size: 10px;
    }

    .curriculum-roadmap {
        width: calc(100% - 6px);
        margin-bottom: 30px;
        padding-inline: 2px;
    }

    .curriculum-roadmap::before {
        top: 17px;
        right: calc(16.666% + 18px);
        left: calc(16.666% + 18px);
    }

    .curriculum-roadmap__marker {
        width: 34px;
        height: 34px;
        box-shadow: 0 0 0 4px #f6f8f5;
    }

    .curriculum-roadmap__copy > span {
        font-size: 10px;
    }

    .curriculum-roadmap__copy small {
        font-size: 9px;
    }

    .course-path.course-path--duo {
        width: 100%;
        gap: 34px;
    }

    .curriculum-stage + .curriculum-stage {
        padding-top: 34px;
    }

    .curriculum-stage__header {
        padding: 20px 16px 18px 20px;
        border-radius: 22px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    html[dir="rtl"] .curriculum-stage__header {
        padding-right: 20px;
        padding-left: 16px;
    }

    .curriculum-stage__identity h2 {
        font-size: 29px;
    }

    .curriculum-stage__progress {
        padding: 12px;
    }

    .curriculum-stage__modules {
        width: 100%;
        gap: 30px;
    }

    .path-unit-banner,
    .path-unit.is-complete .path-unit-banner,
    .path-unit.is-locked .path-unit-banner,
    .path-unit.is-review .path-unit-banner,
    .path-unit.is-review.is-complete .path-unit-banner,
    .path-unit.is-review.is-locked .path-unit-banner {
        padding: 13px;
        border-radius: 18px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .path-unit-icon,
    .path-unit.is-locked .path-unit-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .path-unit-copy h3 {
        font-size: 15px;
    }

    .path-unit-copy p {
        font-size: 10px;
    }

    .path-nodes {
        padding-top: 44px;
    }

    .path-node-button {
        width: 70px;
        height: 70px;
    }

    .mobile-nav .nav-item {
        padding: 4px 2px;
        font-size: 7px;
    }

    .mobile-nav .nav-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 390px) {
    .mobile-nav {
        right: 6px;
        left: 6px;
        padding-inline: 4px;
    }

    .mobile-nav .nav-item {
        font-size: 6.4px;
    }

    .learn-intro h1 {
        font-size: 36px;
    }
}

/* v2.3 roadmap specificity reset for legacy stage-card rules. */
.curriculum-roadmap__step.is-current,
.curriculum-roadmap__step.is-complete,
.curriculum-roadmap__step.is-locked {
    border: 0;
    color: var(--muted);
    background: transparent;
}

.curriculum-roadmap__step .curriculum-roadmap__marker,
.curriculum-roadmap__marker > span {
    overflow: visible;
    font-size: 11px;
    font-weight: 500;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 760px) {
    .curriculum-roadmap__step .curriculum-roadmap__marker,
    .curriculum-roadmap__marker > span {
        font-size: 10px;
    }
}


/* LIETUVINAM v2.3.1 — simplified Learn stage navigation.
   No typography weight is increased in this block. */
.page--learn .learn-intro {
    grid-template-columns: minmax(0, 1fr);
    width: min(900px, 100%);
    margin-bottom: 30px;
}

.page--learn .learn-intro::after {
    right: -34px;
}

.page--learn .learn-intro__copy {
    max-width: 650px;
}

/* The roadmap is the only visible Starter / A1 / A2 stage indicator. */
.page--learn .curriculum-roadmap {
    position: relative;
    display: grid;
    width: min(760px, calc(100% - 24px));
    min-height: 58px;
    margin: 0 auto 42px;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0;
}

.page--learn .curriculum-roadmap::before {
    content: none;
}

.page--learn .curriculum-roadmap__track {
    position: absolute;
    z-index: 0;
    top: 24px;
    right: calc(100% / 6);
    left: calc(100% / 6);
    overflow: hidden;
    height: 3px;
    border-radius: 999px;
    background: #dce5df;
}

.page--learn .curriculum-roadmap__track-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #238463;
    transition: width 320ms ease;
}

html[dir="rtl"] .page--learn .curriculum-roadmap__track-fill {
    margin-left: auto;
}

.page--learn .curriculum-roadmap__step,
.page--learn .curriculum-roadmap__step.is-current,
.page--learn .curriculum-roadmap__step.is-complete,
.page--learn .curriculum-roadmap__step.is-locked {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    padding: 0;
    border: 0;
    justify-content: center;
    color: inherit;
    background: transparent;
}

.page--learn .curriculum-roadmap__marker,
.page--learn .curriculum-roadmap__step .curriculum-roadmap__marker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: auto;
    min-width: 78px;
    height: 48px;
    padding: 0 14px;
    border: 2px solid #d8e2dc;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #718078;
    background: #f6f8f5;
    box-shadow: 0 0 0 6px #f6f8f5;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.page--learn .curriculum-roadmap__step.is-complete .curriculum-roadmap__marker {
    border-color: #238463;
    color: #fff;
    background: #238463;
    box-shadow: 0 0 0 6px #f6f8f5;
}

.page--learn .curriculum-roadmap__step.is-current .curriculum-roadmap__marker {
    border-color: #167659;
    color: #0a5a44;
    background: #fff;
    box-shadow: 0 0 0 6px #edf5f1;
}

.page--learn .curriculum-roadmap__step.is-locked .curriculum-roadmap__marker {
    border-color: #d8e2dc;
    color: #8b9791;
    background: #f3f6f4;
}

/* Stage headers were deliberately removed from the Learn markup. */
.page--learn .curriculum-stage {
    gap: 0;
}

.page--learn .curriculum-stage + .curriculum-stage {
    margin-top: 44px;
    padding-top: 0;
    border-top: 0;
}

.page--learn .curriculum-stage__modules {
    width: min(760px, 100%);
    margin: 0 auto;
}

@media (max-width: 760px) {
    .page--learn .learn-intro {
        width: 100%;
        margin-bottom: 24px;
    }

    .page--learn .curriculum-roadmap {
        width: calc(100% - 4px);
        min-height: 52px;
        margin-bottom: 32px;
    }

    .page--learn .curriculum-roadmap__track {
        top: 22px;
        right: calc(100% / 6);
        left: calc(100% / 6);
        height: 3px;
    }

    .page--learn .curriculum-roadmap__marker,
    .page--learn .curriculum-roadmap__step .curriculum-roadmap__marker {
        min-width: 68px;
        height: 44px;
        padding: 0 10px;
        box-shadow: 0 0 0 5px #f6f8f5;
        font-size: 10px;
    }

    .page--learn .curriculum-roadmap__step.is-complete .curriculum-roadmap__marker {
        box-shadow: 0 0 0 5px #f6f8f5;
    }

    .page--learn .curriculum-roadmap__step.is-current .curriculum-roadmap__marker {
        box-shadow: 0 0 0 5px #edf5f1;
    }

    .page--learn .curriculum-stage + .curriculum-stage {
        margin-top: 36px;
    }
}

/* LIETUVINAM v2.3.2 — onboarding choice neutrality + lighter personalisation typography */
.onboarding-card--personalisation .step-kicker {
    font-weight: 500;
}

.onboarding-card--personalisation .onboarding-actions .btn {
    font-weight: 500;
}

/* Level markers stay visually neutral until the learner actually selects an answer. */
.onboarding-card--personalisation .level-choice-mark {
    color: var(--muted);
    background: var(--surface-soft);
    font-weight: 500;
}

.onboarding-card--personalisation .choice-card.is-selected .level-choice-mark {
    color: var(--primary-dark);
    background: #fff;
}

/* Keep every unselected onboarding answer visually neutral. */
.onboarding-card--personalisation .choice-card:not(.is-selected),
.onboarding-card--personalisation .native-language-card:not(.is-selected) {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: none;
}

/* LIETUVINAM v2.4.0 — full-page course navigation and scroll-to-top control.
   The learning path itself never becomes an independently scrollable container. */
html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
}

.dashboard,
.app-main,
.page--learn,
.page--learn .course-path,
.page--learn .curriculum-stage,
.page--learn .curriculum-stage__modules,
.page--learn .path-unit,
.page--learn .path-nodes {
    height: auto;
    max-height: none;
    overflow-y: visible;
}

.scroll-to-top {
    position: fixed;
    z-index: 44;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(23, 49, 42, 0.12);
    border-radius: 50%;
    place-items: center;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 9px 24px rgba(23, 49, 42, 0.10);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    cursor: pointer;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
    backdrop-filter: blur(12px);
}

.scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    border-color: rgba(13, 116, 85, 0.28);
    background: #fff;
}

.scroll-to-top:focus-visible {
    outline: 2px solid rgba(13, 116, 85, 0.46);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .scroll-to-top {
        right: 18px;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 82px);
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}

@media (max-width: 560px) {
    .scroll-to-top {
        right: 15px;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 80px);
    }
}
