:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-dark: #0f172a;
    --color-muted: #64748b;
    --color-border: #dbe4f0;
    --color-surface: #ffffff;
    --color-bg: #f1f5f9;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.10);
    --transition: 0.2s ease;
    --bg: var(--color-bg);
    --surface: var(--color-surface);
    --surface-muted: #f8fafc;
    --border: var(--color-border);
    --text: #1f2937;
    --text-muted: var(--color-muted);
    --primary: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --sidebar: #173153;
    --sidebar-hover: rgba(255, 255, 255, 0.16);
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --shadow: var(--shadow-sm);
    --text-soft: #526277;
    --text-subtle: #617287;
    --text-kicker: #556579;
}

/* Dashboard premium pass */

.dashboard-layout {
    background:
        radial-gradient(circle at top left, rgba(212, 229, 245, 0.82), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 236, 216, 0.52), transparent 22%),
        linear-gradient(180deg, #f3f7fb 0%, #eef4fa 100%);
}

.dashboard-page-shell .breadcrumbs {
    margin-bottom: -4px;
    padding: 0 4px;
}

.dashboard-page-shell .breadcrumbs a,
.dashboard-page-shell .breadcrumbs span {
    color: var(--dash-muted);
}

.dashboard-page-shell .breadcrumbs a:hover {
    color: var(--dash-primary);
}

.dashboard-page-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.dashboard-main-stack,
.dashboard-side-stack {
    min-width: 0;
}

.dashboard-side-stack {
    gap: 18px;
}

.dashboard-page-grid > .dashboard-side-stack,
.dashboard-page-grid > .ecosystem-sidebar,
.dashboard-page-grid > .profile-sidebar,
.dashboard-page-grid > .operations-sidebar {
    position: sticky;
    top: 22px;
}

.dashboard-card,
.progress-stat-card,
.learning-overview-card,
.tasks-stat-card,
.operations-mini-card,
.structure-summary-card,
.bonus-summary-card,
.bonus-progress-card,
.bonus-stage-card,
.referrals-mobile-card,
.profile-readonly-item,
.soft-metric {
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow-soft);
}

.dashboard-stat-card,
.progress-stat-card,
.learning-overview-card,
.tasks-stat-card,
.bonus-summary-card,
.bonus-progress-card,
.structure-summary-card {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,255,.96) 100%);
}

.dashboard-table-card {
    padding: 10px;
    border-radius: calc(var(--dash-radius-lg) + 2px);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,255,.98) 100%);
    box-shadow: var(--dash-shadow);
}

.dashboard-table-card .data-table,
.dashboard-table-card .bonus-table,
.dashboard-table-card .referrals-table {
    border-radius: calc(var(--dash-radius-lg) - 6px);
    overflow: hidden;
}

.dashboard-table-card table {
    min-width: max-content;
}

.feedback-center-layout,
.operations-layout,
.mentor-layout,
.profile-layout {
    align-items: start;
}

.support-panel,
.progress-panel,
.operations-panel,
.mentor-feedback-strip,
.mentor-feedback-strip--premium,
.feedback-create-card,
.profile-form-card,
.profile-avatar-card,
.profile-info-card,
.profile-progress-card {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 25%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.97) 100%);
}

.support-panel__header,
.progress-panel__header,
.card-heading,
.dashboard-section-header {
    gap: 14px;
}

.support-panel__form,
.profile-form,
.task-detail-form {
    gap: 20px;
}

.form-field label,
.profile-form label,
.lesson-task-form__label {
    color: var(--dash-text);
    font-weight: 700;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"],
.profile-form input[type="file"],
.profile-form textarea,
.profile-form select,
.feedback-form-grid input,
.feedback-form-grid select,
.feedback-form-grid textarea,
.support-panel__form textarea,
.task-detail-form textarea,
.task-detail-form input[type="url"],
.task-detail-form input[type="file"] {
    background: rgba(248, 251, 255, 0.95);
    border: 1px solid rgba(100, 116, 139, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.profile-form input[type="file"] {
    padding-block: 14px;
}

.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card {
    overflow: hidden;
}

.profile-avatar-shell {
    box-shadow: 0 18px 40px rgba(47, 102, 208, 0.16);
}

.link-row.referrals-link-card {
    gap: 16px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(208, 227, 255, 0.62), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,255,.97) 100%);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-soft);
}

.referrals-copy-button,
.bonus-link-button,
#bonus-refresh-form button {
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(47, 102, 208, 0.16);
}

.bonus-section,
.insight-strip,
.bonus-header,
.dashboard-actions,
.progress-center-teaser {
    border-radius: var(--dash-radius-xl);
}

.bonus-history .dashboard-table-card,
.referrals-page .dashboard-table-card {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.notifications-timeline .activity-group,
.progress-timeline .activity-group {
    padding: 22px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.97) 100%);
    box-shadow: var(--dash-shadow-soft);
}

.notification-card,
.progress-timeline__item,
.dashboard-activity-item,
.dashboard-attention-item,
.operations-link-card,
.operations-activity-card,
.mentor-review-card,
.mentor-card,
.feedback-card,
.progress-course-card,
.course-card,
.task-card--polished {
    border: 1px solid rgba(100, 116, 139, 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.notification-card.is-unread,
.notification-preview.is-unread,
.dashboard-attention-item,
.mentor-review-card--premium {
    border-color: rgba(59, 130, 246, 0.22);
}

.hero-card__aside,
.ecosystem-hero__aside,
.learning-hero__panel,
.notifications-hero__aside,
.feedback-center-hero__panel,
.mentor-hero__panel,
.operations-hero__aside,
.tasks-hero__note,
.structure-hero__aside {
    display: grid;
    gap: 16px;
    align-content: start;
}

.operations-mini-card,
.progress-stat-card,
.learning-overview-card,
.tasks-stat-card,
.mentor-stat-inline,
.structure-lead-card,
.ecosystem-side-card {
    min-height: 100%;
}

.dashboard-metric-grid,
.dashboard-stats-grid,
.progress-center-stats,
.tasks-stats-grid,
.mentor-stat-grid,
.operations-cards-grid,
.structure-summary-grid,
.bonus-summary-grid,
.bonus-progress-grid,
.learning-overview-grid {
    align-items: stretch;
}

.dashboard-stats-grid > *,
.dashboard-metric-grid > *,
.progress-center-stats > *,
.tasks-stats-grid > *,
.mentor-stat-grid > *,
.operations-cards-grid > *,
.structure-summary-grid > *,
.bonus-summary-grid > *,
.bonus-progress-grid > *,
.learning-overview-grid > * {
    height: 100%;
}

.structure-tree-panel,
.binary-tree-wrapper {
    overflow: hidden;
    border-radius: var(--dash-radius-xl);
    box-shadow: var(--dash-shadow);
}

.structure-tree-scroll,
.tree-scroll-area {
    padding-bottom: 0.75rem;
}

.structure-binary-tree {
    min-width: 920px;
}

.sidebar__nav a {
    position: relative;
    overflow: hidden;
}

.sidebar__nav a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 58%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.sidebar__nav a:hover::after,
.sidebar__nav a.is-active::after {
    opacity: 1;
}

.sidebar-encouragement small {
    display: inline-flex;
    justify-content: flex-end;
    color: rgba(255,255,255,.8);
    font-size: 0.84rem;
    font-weight: 700;
}

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

    .dashboard-page-grid > .dashboard-side-stack,
    .dashboard-page-grid > .ecosystem-sidebar,
    .dashboard-page-grid > .profile-sidebar,
    .dashboard-page-grid > .operations-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 900px) {
    .dashboard-table-card {
        padding: 8px;
    }

    .dashboard-table-card table {
        min-width: 640px;
    }

    .structure-binary-tree {
        min-width: 780px;
    }
}

@media (max-width: 768px) {
    .dashboard-page-shell .breadcrumbs {
        padding-inline: 2px;
    }

    .dashboard-card,
    .progress-panel,
    .support-panel,
    .feedback-create-card,
    .operations-panel,
    .profile-form-card,
    .profile-avatar-card,
    .profile-info-card,
    .profile-progress-card {
        border-radius: 24px;
    }

    .dashboard-table-card {
        padding: 6px;
    }

    .dashboard-table-card table {
        min-width: 560px;
    }

    .referrals-mobile-list {
        display: grid;
        gap: 14px;
    }

    .tasks-toolbar,
    .bonus-header,
    .support-panel__actions,
    .operations-user-card__actions,
    .task-card__footer,
    .learning-index-actions {
        gap: 12px;
    }

    .support-panel__actions > *,
    .operations-user-card__actions > *,
    .task-card__footer > *,
    .learning-index-actions > * {
        flex: 1 1 100%;
    }

    .task-card__footer,
    .operations-user-card__actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .dashboard-topbar {
        padding: 16px;
    }

    .dashboard-hero,
    .ecosystem-hero,
    .learning-hero,
    .feedback-center-hero,
    .progress-center-hero,
    .notifications-hero,
    .mentor-hero,
    .operations-hero,
    .tasks-hero,
    .structure-hero {
        padding: 18px;
    }

    .dashboard-topbar .content-topbar__intro strong {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .dashboard-table-card table {
        min-width: 520px;
    }

    .structure-binary-tree {
        min-width: 720px;
    }
}

/* Keep fixed mobile navigation from covering the last page actions */

@media (max-width: 768px) {
    :root {
        --mobile-bottom-nav-space: calc(124px + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-bottom: var(--mobile-bottom-nav-space);
    }

    .content {
        padding-bottom: var(--mobile-bottom-nav-space) !important;
    }

    .content__inner.dashboard-page-inner,
    .dashboard-page,
    .dashboard-page-shell,
    .learning-page,
    .tasks-page,
    .profile-center,
    .feedback-center-page,
    .notifications-page,
    .progress-center-page,
    .ecosystem-page {
        padding-bottom: var(--mobile-bottom-nav-space) !important;
    }
}

@media (max-width: 430px) {
    :root {
        --mobile-bottom-nav-space: calc(136px + env(safe-area-inset-bottom, 0px));
    }
}

/* Hide the old dashboard topbar across every cabinet page */

.content-topbar.dashboard-topbar.dashboard-topbar--hidden,
.dashboard-topbar.dashboard-topbar--hidden {
    display: none !important;
}

/* Final word wrapping guard: never split ordinary interface words by letters. */
:where(
    .content,
    .dashboard-page-shell,
    .dashboard-shell,
    .learning-page,
    .mentor-page,
    .notifications-page,
    .structure-page,
    .feedback-center-page,
    .operations-page,
    .public-page,
    .public-shell,
    .auth-entry
) :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    small,
    strong,
    em,
    a,
    button,
    label,
    li,
    dt,
    dd,
    figcaption
) {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

:where(
    code,
    pre,
    kbd,
    samp,
    .referral-code,
    .referrals-copy-button,
    .copyable-code,
    .monospace,
    [data-copy-value]
) {
    overflow-wrap: anywhere !important;
}

/* Final public illustration layer */
.public-visual-frame.public-visual-frame--hero {
    min-height: 320px;
    padding: clamp(18px, 4vw, 34px);
}

.public-illustration.public-illustration--hero {
    width: 100%;
    max-width: 560px;
    max-height: 300px;
    object-fit: contain;
}

.how-step-card__visual .public-step-illustration {
    width: min(100%, 180px);
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.auth-scene.auth-scene--illustrated {
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-scene.auth-scene--illustrated .auth-scene__illustration {
    position: relative;
    width: min(100%, 360px);
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.faq-hero-scene:has(.public-illustration--hero) {
    display: grid;
    place-items: center;
}

@media (max-width: 700px) {
    .public-visual-frame.public-visual-frame--hero,
    .auth-scene.auth-scene--illustrated,
    .faq-hero-scene:has(.public-illustration--hero) {
        min-height: 220px;
        padding: 16px;
    }

    .public-illustration.public-illustration--hero,
    .auth-scene.auth-scene--illustrated .auth-scene__illustration {
        max-height: 210px;
    }

    .how-step-card__visual .public-step-illustration {
        width: min(100%, 150px);
        max-height: 130px;
    }
}

/* Final public illustration layer */
.public-visual-frame.public-visual-frame--hero {
    min-height: 320px;
    padding: clamp(18px, 4vw, 34px);
}

.public-illustration.public-illustration--hero {
    width: 100%;
    max-width: 560px;
    max-height: 300px;
    object-fit: contain;
}

.how-step-card__visual .public-step-illustration {
    width: min(100%, 180px);
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.auth-scene.auth-scene--illustrated {
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-scene.auth-scene--illustrated .auth-scene__illustration {
    position: relative;
    width: min(100%, 360px);
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.faq-hero-scene:has(.public-illustration--hero) {
    display: grid;
    place-items: center;
}

@media (max-width: 700px) {
    .public-visual-frame.public-visual-frame--hero,
    .auth-scene.auth-scene--illustrated,
    .faq-hero-scene:has(.public-illustration--hero) {
        min-height: 220px;
        padding: 16px;
    }

    .public-illustration.public-illustration--hero,
    .auth-scene.auth-scene--illustrated .auth-scene__illustration {
        max-height: 210px;
    }

    .how-step-card__visual .public-step-illustration {
        width: min(100%, 150px);
        max-height: 130px;
    }
}

/* Final public illustration layer */
.public-visual-frame.public-visual-frame--hero {
    min-height: 320px;
    padding: clamp(18px, 4vw, 34px);
}

.public-illustration.public-illustration--hero {
    width: 100%;
    max-width: 560px;
    max-height: 300px;
    object-fit: contain;
}

.how-step-card__visual .public-step-illustration {
    width: min(100%, 180px);
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.auth-scene.auth-scene--illustrated {
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-scene.auth-scene--illustrated .auth-scene__illustration {
    position: relative;
    width: min(100%, 360px);
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.faq-hero-scene:has(.public-illustration--hero) {
    display: grid;
    place-items: center;
}

@media (max-width: 700px) {
    .public-visual-frame.public-visual-frame--hero,
    .auth-scene.auth-scene--illustrated,
    .faq-hero-scene:has(.public-illustration--hero) {
        min-height: 220px;
        padding: 16px;
    }

    .public-illustration.public-illustration--hero,
    .auth-scene.auth-scene--illustrated .auth-scene__illustration {
        max-height: 210px;
    }

    .how-step-card__visual .public-step-illustration {
        width: min(100%, 150px);
        max-height: 130px;
    }
}

/* Public illustration refresh */
.public-visual-frame--hero {
    min-height: 320px;
    padding: clamp(18px, 4vw, 34px);
}

.public-illustration--hero {
    max-width: 560px;
    max-height: 300px;
    object-fit: contain;
}

.public-step-illustration {
    width: min(100%, 180px);
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.auth-scene--illustrated {
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-scene__illustration {
    position: relative;
    width: min(100%, 360px);
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.faq-hero-scene {
    display: grid;
    place-items: center;
}

@media (max-width: 700px) {
    .public-visual-frame--hero,
    .auth-scene--illustrated,
    .faq-hero-scene {
        min-height: 220px;
        padding: 16px;
    }

    .public-illustration--hero,
    .auth-scene__illustration {
        max-height: 210px;
    }

    .public-step-illustration {
        width: min(100%, 150px);
        max-height: 130px;
    }
}

/* Structure summary: keep the five overview cards in one clean row on desktop. */
.structure-page .structure-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.structure-page .structure-summary-card {
    min-width: 0;
    min-height: 100%;
    align-content: start;
    gap: 10px;
    padding: 16px;
}

.structure-page .structure-summary-card span,
.structure-page .structure-summary-card strong,
.structure-page .structure-summary-card p {
    min-width: 0;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
}

.structure-page .structure-summary-card span {
    font-size: 0.84rem;
    line-height: 1.48;
}

.structure-page .structure-summary-card strong {
    font-size: clamp(0.94rem, 0.88vw, 1.04rem);
    line-height: 1.45;
}

.structure-page .structure-summary-card p {
    font-size: 0.82rem;
    line-height: 1.54;
}

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

@media (max-width: 640px) {
    .structure-page .structure-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Tasks list layout */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tasks-list-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(170, 199, 235, 0.72);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.94)),
        radial-gradient(circle at 98% 0%, rgba(34, 211, 238, 0.12), transparent 34%);
    box-shadow: 0 18px 46px rgba(15, 35, 73, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tasks-list-item:hover {
    transform: translateY(-2px);
    border-color: rgba(83, 132, 229, 0.55);
    box-shadow: 0 22px 54px rgba(15, 35, 73, 0.12);
}

.tasks-list-item__index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    border-radius: 16px;
    color: #17406f;
    background: linear-gradient(180deg, #e8f2ff, #f7fbff);
    border: 1px solid rgba(164, 196, 238, 0.72);
}

.tasks-list-item__index span {
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
    color: #245bd6;
}

.tasks-list-item__index small {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #60758e;
}

.tasks-list-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tasks-list-item__topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.tasks-list-item__heading {
    min-width: 0;
}

.tasks-list-item__heading .task-card-title {
    display: block;
    font-size: 18px;
    line-height: 1.24;
}

.tasks-list-item__heading .task-card-description {
    margin-top: 6px;
    max-width: 76ch;
}

.tasks-list-item__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tasks-list-item__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(246, 250, 255, 0.96);
    border: 1px solid rgba(204, 218, 236, 0.78);
}

.tasks-list-item__meta small {
    font-size: 11px;
    font-weight: 800;
    color: #6c7f96;
}

.tasks-list-item__meta strong {
    min-width: 0;
    font-size: 12px;
    color: #172a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tasks-list-item__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding-top: 4px;
}

.tasks-list-item__actions {
    display: flex;
    justify-content: flex-end;
}

.tasks-list-item__actions .task-card__cta {
    min-width: 156px;
}

@media (max-width: 760px) {
    .tasks-list-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .tasks-list-item__index {
        min-height: 54px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 14px;
    }

    .tasks-list-item__index span {
        font-size: 22px;
    }

    .tasks-list-item__index small {
        margin-top: 0;
    }

    .tasks-list-item__topline,
    .tasks-list-item__bottom {
        grid-template-columns: 1fr;
    }

    .tasks-list-item__actions,
    .tasks-list-item__actions .task-card__cta {
        width: 100%;
    }
}

/* Word wrapping guard: interface copy should wrap between words, not inside words. */
:where(
    .dashboard-page-shell,
    .dashboard-shell,
    .learning-page,
    .mentor-page,
    .notifications-page,
    .structure-page,
    .feedback-center-page,
    .operations-page,
    .public-page,
    .public-shell,
    .auth-entry
) :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    small,
    strong,
    em,
    a,
    button,
    label,
    li,
    dt,
    dd,
    figcaption
) {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

:where(
    code,
    pre,
    kbd,
    samp,
    .referral-code,
    .referrals-copy-button,
    .copyable-code,
    .monospace,
    [data-copy-value]
) {
    overflow-wrap: anywhere !important;
}

/* Dashboard daily route */

.daily-route-card {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}

.daily-route-card__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.daily-route-card__header h3 {
    margin: 8px 0 6px;
    color: var(--dash-ink-strong);
    font-size: 1.45rem;
    line-height: 1.2;
}

.daily-route-card__header p {
    max-width: 68ch;
    margin: 0;
    color: var(--dash-ink-muted);
    line-height: 1.58;
}

.daily-route-card__all-link {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
}

.daily-route-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.daily-route-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    min-height: 178px;
    padding: 18px;
    border: 1px solid var(--dash-line);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.92);
    box-shadow: 0 12px 26px rgba(30, 53, 91, 0.055);
}

.daily-route-step--primary {
    background:
        linear-gradient(135deg, rgba(46, 107, 255, 0.10), rgba(22, 163, 148, 0.08)),
        rgba(255, 255, 255, 0.96);
    border-color: rgba(46, 107, 255, 0.22);
}

.daily-route-step__number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dash-accent-blue), var(--dash-accent-teal));
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(46, 107, 255, 0.18);
}

.daily-route-step__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.daily-route-step__body > span {
    color: var(--dash-ink-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.daily-route-step__body strong {
    color: var(--dash-ink-strong);
    font-size: 1.04rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.daily-route-step__body p {
    margin: 0;
    color: var(--dash-ink-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.daily-route-step__body .daily-route-step__meta {
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--dash-ink);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
}

.daily-route-step__support-stats {
    display: grid;
    gap: 6px;
    margin-top: 2px;
    color: var(--dash-ink-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.daily-route-step__body a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 36px;
    margin-top: auto;
    padding: 0 14px;
    border-radius: 12px;
    color: #2453d6;
    background: #eaf1ff;
    font-weight: 800;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.daily-route-step__body a.daily-route-step__secondary-link {
    margin-top: 0;
    color: var(--dash-ink);
    background: rgba(226, 232, 240, 0.74);
}

.daily-route-step__body a:hover {
    color: #ffffff;
    background: #2453d6;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .daily-route-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .daily-route-card {
        padding: 18px;
        border-radius: 22px;
    }

    .daily-route-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .daily-route-card__all-link {
        justify-content: center;
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .daily-route-step {
        min-height: 0;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 16px;
    }

    .daily-route-step__number {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .daily-route-step__body a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .daily-route-card {
        padding: 16px;
        border-radius: 18px;
    }

    .daily-route-card__header h3 {
        font-size: 1.24rem;
    }

    .daily-route-step {
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 16px;
    }
}

.profile-center--renewed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1.25rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: 24px;
}

.profile-hero-card__identity {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.profile-hero-card__avatar {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    border-radius: 28px;
    padding: 6px;
    background: linear-gradient(135deg, #dbeafe, #dcfce7);
    box-shadow: 0 18px 42px rgba(30, 64, 175, 0.16);
}

.profile-hero-card__avatar img,
.profile-hero-card__avatar span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 22px;
    background: #fff;
    color: #1d4ed8;
    font-size: 2rem;
    font-weight: 800;
    object-fit: cover;
}

.profile-hero-card h1 {
    margin: 0.55rem 0 0.25rem;
    color: #17233a;
    font-size: 2.5rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.profile-hero-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.profile-hero-card__kicker {
    margin-top: 0.45rem !important;
    color: #2563eb !important;
    font-weight: 800;
}

.profile-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 0.82rem;
}

.profile-online-badge::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.profile-hero-card__summary {
    padding: 1rem;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.profile-hero-card__summary span,
.profile-metric-card span,
.profile-achievement small {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.profile-hero-card__summary strong {
    display: block;
    margin-top: 0.35rem;
    color: #17233a;
    font-size: 2.4rem;
    line-height: 1;
}

.profile-progress-line {
    height: 0.72rem;
    margin: 0.9rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dce7f4;
}

.profile-progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6df6, #0f8f86);
}

.profile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.profile-metric-card {
    display: grid;
    gap: 0.55rem;
    padding: 1.05rem;
    border-radius: 18px;
}

.profile-metric-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #2563eb;
}

.profile-metric-card strong {
    color: #17233a;
    font-size: 1.7rem;
    line-height: 1;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1.5rem;
    align-items: start;
}

.profile-main-stack,
.profile-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.profile-next-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 100%, rgba(15, 143, 134, 0.12), transparent 28%),
        #fff;
}

.profile-next-card h2,
.profile-achievements-card h2,
.profile-referral-card h2 {
    margin: 0.55rem 0 0.35rem;
    color: #17233a;
}

.profile-form-card--renewed {
    border-radius: 22px;
}

.profile-achievements-list {
    display: grid;
    gap: 0.8rem;
}

.profile-achievement {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: #f8fbff;
}

.profile-achievement > span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #e2e8f0;
    position: relative;
}

.profile-achievement > span::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
}

.profile-achievement strong {
    color: #17233a;
}

.profile-achievement--complete {
    background: #effaf3;
    border-color: #ccefd7;
}

.profile-achievement--complete > span {
    background: #dcfce7;
}

.profile-achievement--complete > span::before {
    border-color: #047857;
}

.profile-referral-link {
    padding: 0.8rem;
    margin: 1rem 0;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #f8fbff;
    color: #334155;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .profile-hero-card,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .profile-hero-card {
        padding: 1rem;
    }

    .profile-hero-card__identity {
        align-items: flex-start;
    }

    .profile-hero-card__avatar {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .profile-hero-card h1 {
        font-size: 1.8rem;
    }

    .profile-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile mockup alignment pass */
.content__inner.dashboard-page-inner:has(.profile-center--renewed) {
    max-width: none;
}

.profile-center--renewed {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    gap: 20px;
}

.profile-center--renewed .breadcrumbs {
    margin: 0 0 -2px;
    font-size: 12px;
}

.profile-top-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-top-actions__bell,
.profile-top-actions__count {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.profile-top-actions__count {
    color: #17233a;
    font-size: 12px;
    font-weight: 800;
}

.profile-center--renewed .dashboard-card {
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.075);
}

.profile-hero-card {
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 190px;
    padding: 32px;
}

.profile-hero-card__identity {
    align-items: flex-start;
    gap: 22px;
}

.profile-hero-card__avatar {
    width: 106px;
    height: 106px;
    border-radius: 50%;
    padding: 4px;
}

.profile-hero-card__avatar img,
.profile-hero-card__avatar span {
    border-radius: 50%;
    font-size: 1.8rem;
}

.profile-hero-card h1 {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.05;
}

.profile-hero-card__bio {
    max-width: 620px;
    margin-top: 20px !important;
    color: #53657d !important;
    font-size: 13px;
}

.profile-hero-card__kicker,
.profile-hero-card .progress-pill {
    display: none;
}

.profile-contract-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.profile-chip-row {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.profile-chip-row .badge,
.profile-chip-row .question-status-badge,
.profile-online-badge {
    min-height: 28px;
    padding: 6px 12px;
    font-size: 12px;
}

.profile-hero-card__visual {
    position: relative;
    min-height: 150px;
    display: grid;
    place-items: center;
}

.profile-hero-card__visual::before {
    content: "";
    position: absolute;
    left: -42px;
    bottom: 8px;
    width: 82px;
    height: 98px;
    opacity: 0.36;
    background:
        radial-gradient(ellipse at center, transparent 42%, #dfeafa 43% 45%, transparent 46%),
        linear-gradient(65deg, transparent 46%, #dfeafa 47% 52%, transparent 53%);
}

.profile-hero-card__avatar-ghost {
    display: grid;
    place-items: center;
    width: 106px;
    height: 126px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #7aa5df;
}

.profile-hero-card__avatar-ghost .ui-icon {
    width: 72px;
    height: 72px;
}

.profile-hero-card__edit-dot {
    position: absolute;
    right: 10px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.profile-hero-card__edit-dot::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 12px;
    height: 4px;
    border-radius: 4px;
    background: #fff;
    transform: rotate(-42deg);
}

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

.profile-metric-card {
    min-height: 128px;
    padding: 18px;
    gap: 6px;
}

.profile-metric-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.profile-metric-card span:not(.profile-metric-card__icon) {
    margin-top: 6px;
    color: #26364d;
    font-size: 12px;
}

.profile-metric-card strong {
    font-size: 26px;
}

.profile-metric-card small {
    color: #64748b;
    font-size: 11px;
}

.profile-next-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    min-height: 100px;
    padding: 20px;
}

.profile-next-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 66% 30%, #fff 0 8%, transparent 9%),
        linear-gradient(135deg, #eaf2ff, #dbeafe);
    position: relative;
}

.profile-next-card__icon::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 12px;
    width: 16px;
    height: 25px;
    border-radius: 12px 12px 4px 4px;
    background: #2563eb;
    transform: rotate(35deg);
}

.profile-next-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.profile-next-card p {
    max-width: 720px;
    margin: 0;
    font-size: 12px;
}

.profile-next-card .lesson-card__cta,
.profile-actions .btn-primary,
.profile-copy-link {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 12px;
}

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

.profile-content-grid--single {
    grid-template-columns: 1fr;
}

.profile-main-stack,
.profile-side-stack {
    gap: 16px;
}

.profile-form-card--renewed,
.profile-achievements-card {
    padding: 24px;
}

.profile-form-card--renewed::before {
    display: none;
}

.profile-form-card--renewed .card-heading,
.profile-achievements-card .card-heading {
    margin-bottom: 16px;
}

.profile-form-card--renewed .card-heading h2,
.profile-achievements-card .card-heading h2,
.profile-referral-card h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.profile-form-card--renewed .card-heading p,
.profile-achievements-card .card-heading p,
.profile-referral-card p {
    font-size: 12px;
}

.profile-hidden-fields {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.profile-form {
    gap: 14px;
}

.profile-form__grid,
.profile-form__grid--compact,
.profile-form__grid--wide {
    grid-template-columns: 1fr;
    gap: 12px;
}

.profile-form-hidden-shell {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.profile-readonly-profile {
    display: grid;
    gap: 18px;
}

.profile-readonly-avatar {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #dbeafe, #dcfce7);
}

.profile-readonly-avatar img,
.profile-readonly-avatar span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 800;
    object-fit: cover;
}

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

.profile-readonly-fields div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fbff;
}

.profile-readonly-fields__wide {
    grid-column: 1 / -1;
}

.profile-readonly-fields dt {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.profile-readonly-fields dd {
    margin: 0;
    color: #17233a;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-mentor-card__empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.profile-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-form label {
    font-size: 12px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"],
.profile-form input[type="file"],
.profile-form textarea {
    min-height: 38px;
    border-radius: 6px;
    font-size: 12px;
}

.profile-form textarea {
    min-height: 102px;
}

.profile-avatar-field {
    align-items: start;
    gap: 8px;
}

.profile-avatar-field a {
    color: #2563eb;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.profile-avatar-field input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0 7px 0 0;
    padding: 0;
    box-sizing: border-box;
    place-content: center;
    vertical-align: -3px;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    cursor: pointer;
}

.profile-avatar-field input[type="checkbox"]::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.16s ease;
}

.profile-avatar-field input[type="checkbox"]:checked {
    border-color: #2563eb;
    background: #2563eb;
}

.profile-avatar-field input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.profile-achievements-list {
    gap: 12px;
}

.profile-achievement {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 78px;
    padding: 14px;
    border-radius: 14px;
}

.profile-achievement > span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef2ff;
}

.profile-achievement--complete > span {
    background: #dcfce7;
}

.profile-achievement strong {
    font-size: 13px;
}

.profile-achievement small {
    justify-self: start;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dff8e8;
    color: #059669;
    font-size: 10px;
}

.profile-achievements-link {
    display: inline-flex;
    margin-top: 14px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.profile-referral-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(220px, 310px) auto;
    gap: 16px;
    align-items: center;
    min-height: 96px;
    padding: 20px;
}

.profile-referral-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2563eb;
}

.profile-referral-card__link-group {
    display: grid;
    gap: 6px;
}

.profile-referral-card__link-group > span {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.profile-referral-card__link-group small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.profile-referral-link {
    margin: 0;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.profile-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0f5;
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .profile-center--renewed {
        margin-inline: auto;
    }
}

@media (max-width: 820px) {
    .profile-center--renewed {
        width: 100%;
    }

    .profile-hero-card,
    .profile-content-grid,
    .profile-referral-card {
        grid-template-columns: 1fr;
    }

    .learning-guidance-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .profile-top-actions {
        display: none;
    }

    .profile-hero-card {
        padding: 20px;
    }

    .profile-hero-card__identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-chip-row {
        justify-content: center;
    }

    .profile-hero-card__visual {
        display: none;
    }

    .profile-metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .learning-hero-progress-inline__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Hide the old dashboard topbar across every cabinet page */

.content-topbar.dashboard-topbar.dashboard-topbar--hidden,
.dashboard-topbar.dashboard-topbar--hidden {
    display: none !important;
}

/* First usability pass: clearer focus and thumb-friendly mobile navigation */

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    transform: translateY(-140%);
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    color: #ffffff;
    background: #16345b;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.content:focus {
    outline: none;
}

.mobile-bottom-nav {
    display: none;
}

.progress-center-grid--flow {
    align-items: start;
}

.progress-center-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.dashboard-topbar--hidden {
    display: none;
}

@media (max-width: 768px) {
    .content {
        padding-bottom: 92px !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 7px;
        border: 1px solid rgba(111, 132, 166, 0.22);
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.9));
        box-shadow: 0 18px 42px rgba(30, 53, 91, 0.16);
        backdrop-filter: blur(18px) saturate(1.15);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 56px;
        padding: 7px 5px 6px;
        border-radius: 15px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .mobile-bottom-nav a.is-active {
        color: #165dc7;
        background: linear-gradient(180deg, rgba(234, 242, 255, 0.98), rgba(224, 245, 241, 0.92));
        box-shadow: inset 0 0 0 1px rgba(46, 107, 255, 0.16), 0 8px 18px rgba(30, 53, 91, 0.08);
        transform: translateY(-1px);
    }

    .mobile-bottom-nav__icon {
        display: inline-flex;
        width: 24px;
        height: 24px;
        background: currentColor;
        opacity: 0.9;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: 22px 22px;
        mask-size: 22px 22px;
    }

    .mobile-bottom-nav .ui-icon::before,
    .mobile-bottom-nav .ui-icon::after {
        display: none;
    }

    .mobile-bottom-nav .ui-icon--home {
        -webkit-mask-image: url("../illustrations/sidebar-home.svg");
        mask-image: url("../illustrations/sidebar-home.svg");
    }

    .mobile-bottom-nav .ui-icon--lesson {
        -webkit-mask-image: url("../illustrations/sidebar-learning.svg");
        mask-image: url("../illustrations/sidebar-learning.svg");
    }

    .mobile-bottom-nav .ui-icon--tasks {
        -webkit-mask-image: url("../illustrations/sidebar-tasks.svg");
        mask-image: url("../illustrations/sidebar-tasks.svg");
    }

    .mobile-bottom-nav .ui-icon--feedback {
        -webkit-mask-image: url("../illustrations/sidebar-feedback.svg");
        mask-image: url("../illustrations/sidebar-feedback.svg");
    }

    .mobile-bottom-nav a span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .course-card__cta,
    .lesson-card__cta,
    .dashboard-action-link,
    .support-panel__actions button,
    .lesson-task-form__actions button,
    .lesson-actions-card__controls button {
        min-height: 48px;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav {
        right: 8px;
        bottom: 8px;
        left: 8px;
        border-radius: 18px;
    }

    .mobile-bottom-nav a {
        min-height: 54px;
        padding-inline: 4px;
        font-size: 0.68rem;
    }
}

/* Mobile dashboard fixes */

@media (max-width: 768px) {
    .mobile-header {
        padding: 14px 14px 10px;
    }

    .mobile-header__top {
        margin-bottom: 10px;
    }

    .mobile-header .brand-lockup,
    .mobile-header .brand-lockup__copy,
    .mobile-header .brand-lockup__copy strong,
    .mobile-header .brand-lockup__copy span {
        min-width: 0;
    }

    .mobile-header .brand-lockup__copy strong,
    .mobile-header .brand-lockup__copy span {
        overflow-wrap: anywhere;
    }

    .mobile-menu {
        width: 100%;
        min-width: 0;
    }

    .mobile-menu summary {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-menu[open] {
        display: grid;
        gap: 10px;
    }

    .mobile-menu__nav {
        padding: 12px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(16,43,85,.98) 0%, rgba(23,58,107,.97) 100%);
        box-shadow: 0 18px 34px rgba(16, 43, 85, 0.18);
        border: 1px solid rgba(255,255,255,.08);
    }

    .mobile-menu__nav a {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        color: rgba(248, 251, 255, 0.96);
    }

    .mobile-menu__nav a span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-menu__nav .language-switcher,
    .mobile-menu__nav .language-switcher details,
    .mobile-menu__nav .language-switcher summary {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tasks-page,
    .dashboard-page-shell,
    .ecosystem-page {
        overflow-x: clip;
    }

    .task-cards-grid,
    .task-card,
    .task-card__head,
    .task-card__heading,
    .task-card__footer {
        min-width: 0;
    }

    .task-card__badges,
    .tasks-filter-tabs {
        flex-wrap: wrap;
    }

    .task-card__footer {
        align-items: stretch;
    }

    .task-card-meta {
        display: block;
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .task-card__cta,
    .tasks-page .task-card__cta,
    .tasks-page .lesson-card__cta {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }

    .tasks-toolbar {
        align-items: stretch;
    }

    .tasks-filter-tab {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .mobile-header {
        padding-inline: 12px;
    }

    .mobile-header .brand-lockup {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
    }

    .mobile-header .brand-lockup__mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .mobile-header .brand-lockup__copy strong {
        font-size: 0.98rem;
        line-height: 1.25;
    }

    .mobile-header .brand-lockup__copy span {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .mobile-menu summary,
    .mobile-menu__nav {
        border-radius: 18px;
    }

    .mobile-menu__nav {
        padding: 10px;
    }

    .mobile-menu__nav a {
        padding: 11px 12px;
        border-radius: 16px;
    }

    .task-card,
    .task-card--polished {
        padding: 16px;
    }

    .task-card__badges {
        gap: 8px;
    }

    .task-type-badge,
    .task-points-badge,
    .task-status-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .tasks-page .task-card--polished {
        overflow: hidden;
    }

    .tasks-page .task-card__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
    }

    .tasks-page .task-card-meta {
        max-width: 100%;
        padding-right: 0;
    }

    .tasks-page .task-card__cta,
    .tasks-page a.task-card__cta.lesson-card__cta {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-inline: 12px;
        justify-self: stretch;
        align-self: stretch;
        overflow: hidden;
    }
}

/* Sidebar icons refinement */

.sidebar__nav .ui-icon,
.mobile-menu__nav .ui-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: none;
}

.sidebar__nav .ui-icon::before,
.sidebar__nav .ui-icon::after,
.mobile-menu__nav .ui-icon::before,
.mobile-menu__nav .ui-icon::after {
    display: none;
}

.sidebar__nav .ui-icon--home,
.mobile-menu__nav .ui-icon--home {
    background-image: url("../illustrations/sidebar-home.svg");
}

.sidebar__nav .ui-icon--progress,
.mobile-menu__nav .ui-icon--progress {
    background-image: url("../illustrations/sidebar-progress.svg");
}

.sidebar__nav .ui-icon--notifications,
.mobile-menu__nav .ui-icon--notifications {
    background-image: url("../illustrations/sidebar-notifications.svg");
}

.sidebar__nav .ui-icon--mentor,
.mobile-menu__nav .ui-icon--mentor {
    background-image: url("../illustrations/sidebar-mentor.svg");
}

.sidebar__nav .ui-icon--operations,
.mobile-menu__nav .ui-icon--operations {
    background-image: url("../illustrations/sidebar-operations.svg");
}

.sidebar__nav .ui-icon--profile,
.mobile-menu__nav .ui-icon--profile {
    background-image: url("../illustrations/sidebar-profile.svg");
}

.sidebar__nav .ui-icon--referrals,
.mobile-menu__nav .ui-icon--referrals {
    background-image: url("../illustrations/sidebar-referrals.svg");
}

.sidebar__nav .ui-icon--lesson,
.mobile-menu__nav .ui-icon--lesson {
    background-image: url("../illustrations/sidebar-learning.svg");
}

.sidebar__nav .ui-icon--tasks,
.mobile-menu__nav .ui-icon--tasks {
    background-image: url("../illustrations/sidebar-tasks.svg");
}

.sidebar__nav .ui-icon--structure,
.mobile-menu__nav .ui-icon--structure {
    background-image: url("../illustrations/sidebar-structure.svg");
}

.sidebar__nav .ui-icon--bonus,
.mobile-menu__nav .ui-icon--bonus {
    background-image: url("../illustrations/sidebar-bonus.svg");
}

.sidebar__nav .ui-icon--partners,
.mobile-menu__nav .ui-icon--partners {
    background-image: url("../illustrations/sidebar-partners.svg");
}

.sidebar__nav .ui-icon--partner-office,
.mobile-menu__nav .ui-icon--partner-office {
    background-image: url("../illustrations/sidebar-partner-office.svg");
}

.sidebar__nav .ui-icon--feedback,
.mobile-menu__nav .ui-icon--feedback {
    background-image: url("../illustrations/sidebar-feedback.svg");
}

.sidebar__nav .ui-icon--logout,
.mobile-menu__nav .ui-icon--logout {
    background-image: url("../illustrations/sidebar-logout.svg");
}

.sidebar__nav a,
.mobile-menu__nav a {
    column-gap: 12px;
}

.sidebar__nav a span:last-child,
.mobile-menu__nav a span:last-child {
    font-weight: 600;
    letter-spacing: -0.01em;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: var(--primary);
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.mobile-header {
    display: none;
}

.mobile-header__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.mobile-menu {
    width: 100%;
}

.mobile-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu[open] {
    margin-top: 12px;
}

.mobile-menu__nav {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.table-wrap {
    overflow-x: auto;
}

.mobile-menu__nav a,
.sidebar__nav a {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.mobile-menu__nav a:hover,
.sidebar__nav a:hover {
    background: var(--sidebar-hover);
    transform: translateY(-1px);
}

.mobile-menu__nav a.is-active,
.sidebar__nav a.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
}

.mobile-menu__nav a.is-active::before,
.sidebar__nav a.is-active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #93c5fd 0%, #ffffff 100%);
    box-shadow: 0 0 18px rgba(147, 197, 253, 0.55);
}

.sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: var(--sidebar);
    color: #fff;
    padding: 28px 20px;
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.08);
}

.sidebar__brand {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.sidebar-profile__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(147, 197, 253, 0.22) 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.sidebar-profile__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-center {
    display: grid;
    gap: 24px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-sidebar,
.profile-main {
    display: grid;
    gap: 20px;
}

.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card {
    position: relative;
    overflow: hidden;
}

.profile-avatar-card::before,
.profile-form-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 50%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.1), transparent 42%);
    pointer-events: none;
}

.profile-avatar-card > *,
.profile-form-card > * {
    position: relative;
}

.profile-avatar-shell {
    display: flex;
    justify-content: center;
}

.profile-avatar-image,
.profile-avatar-fallback {
    width: 112px;
    height: 112px;
    border-radius: 32px;
}

.profile-avatar-image {
    display: block;
    object-fit: cover;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    color: #1e3a8a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.profile-avatar-meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

.profile-avatar-meta h2,
.profile-info-card h2,
.profile-progress-card h2,
.profile-form-card h2 {
    margin: 0;
}

.profile-avatar-meta p,
.profile-info-card p,
.profile-progress-card p,
.profile-form-card p {
    margin: 0;
    color: var(--text-muted);
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.profile-facts {
    display: grid;
    gap: 16px;
    margin: 0;
}

.profile-facts div {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-muted);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-facts dt {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-facts dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

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

.soft-metric {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.soft-metric__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.soft-metric__label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-form {
    display: grid;
    gap: 22px;
}

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

.profile-form__grid--wide {
    grid-template-columns: minmax(0, 1fr);
}

.form-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
    color: #0f172a;
}

.form-help {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"],
.profile-form input[type="file"],
.profile-form textarea {
    width: 100%;
}

.profile-readonly-field {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

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

.profile-readonly-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.88) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-readonly-item__label {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.profile-actions {
    display: flex;
    justify-content: flex-start;
}

.feedback-center-page {
    display: grid;
    gap: 24px;
}

.feedback-center-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.8), transparent 38%),
        linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.feedback-center-hero__content,
.feedback-center-hero__panel,
.feedback-center-main,
.feedback-history-grid,
.feedback-ticket-layout,
.feedback-ticket-sidebar,
.feedback-conversation,
.feedback-timeline {
    display: grid;
    gap: 18px;
}

.feedback-center-hero__content h1,
.feedback-center-hero__content p,
.feedback-ticket-thread h1 {
    margin: 0;
}

.feedback-center-hero__panel {
    align-content: start;
}

.feedback-center-layout,
.feedback-ticket-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: start;
}

.feedback-create-card {
    position: sticky;
    top: 24px;
}

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

.feedback-ticket-card {
    gap: 16px;
}

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

.feedback-message {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.feedback-message--user {
    border-color: rgba(191, 219, 254, 0.82);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.48), transparent 36%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.feedback-message--mentor {
    border-color: rgba(187, 247, 208, 0.82);
    background:
        radial-gradient(circle at top left, rgba(220, 252, 231, 0.5), transparent 34%),
        linear-gradient(180deg, #fbfffd 0%, #ffffff 100%);
}

.feedback-message__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-message__meta span,
.feedback-timeline__item span {
    color: var(--text-muted);
}

.feedback-message__body p,
.feedback-timeline__item p {
    margin: 0;
}

.feedback-timeline__item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.feedback-timeline__dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #60a5fa 0%, #14b8a6 100%);
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.12);
}

.question-status-badge-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.question-status-badge-open,
.question-status-badge-in_review {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.question-status-badge-answered {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.question-status-badge-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.question-status-badge-closed,
.question-status-badge-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

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

    .feedback-center-hero,
    .feedback-center-layout,
    .feedback-ticket-layout,
    .feedback-history-grid {
        grid-template-columns: 1fr;
    }

    .profile-progress-grid,
    .profile-readonly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feedback-create-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .profile-form__grid,
    .profile-progress-grid,
    .profile-readonly-grid,
    .feedback-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-image,
    .profile-avatar-fallback {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .feedback-message__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sidebar-profile__meta {
    min-width: 0;
}

.sidebar-profile__meta h1 {
    margin: 0 0 6px;
}

.sidebar-profile__meta p {
    margin: 0;
    overflow-wrap: anywhere;
}

.sidebar-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sidebar-profile__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 700;
}

.sidebar-profile__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.sidebar__brand h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.08;
    color: #ffffff;
}

.sidebar__brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.sidebar__nav {
    display: grid;
    gap: 10px;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.content__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    animation: fade-up 0.45s ease both;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-shell__inner {
    width: 100%;
    max-width: 560px;
}

.card,
.panel {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

h1,
h2 {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.15rem, 3vw, 2.625rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-dark);
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 2.2vw, 1.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-dark);
}

form {
    width: 100%;
}

p,
li,
td,
th,
label {
    font-size: 0.96rem;
}

form p {
    margin: 0 0 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text);
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(29, 78, 216, 0.16);
    border-color: var(--primary);
}

.btn,
button,
.bonus-link-button,
.course-card__cta,
.lesson-card__cta,
.card-status-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn:hover,
button:hover,
.bonus-link-button:hover,
.course-card__cta:hover,
.lesson-card__cta:hover,
.card-status-card__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.03);
}

.btn:active,
button:active,
.bonus-link-button:active,
.course-card__cta:active,
.lesson-card__cta:active,
.card-status-card__cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-success {
    background: var(--color-success);
}

.btn-success:hover {
    background: #059669;
}

.badge,
.lesson-status-badge,
.card-status-card__badge,
.hero-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-muted {
    background: #e2e8f0;
    color: #475569;
}

.skeleton,
.skeleton-line,
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 35%, #e2e8f0 70%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.4s linear infinite;
}

.skeleton-card {
    min-height: 160px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.skeleton-line {
    display: block;
    height: 12px;
    border-radius: 999px;
}

.skeleton-line + .skeleton-line {
    margin-top: 10px;
}

.skeleton-line--short {
    width: 42%;
}

.skeleton-line--medium {
    width: 68%;
}

.skeleton-line--long {
    width: 100%;
}

.empty-state,
.learning-empty-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #ecfeff 100%);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 800;
}

.empty-state h3,
.empty-state__title {
    margin: 0;
}

.empty-state p,
.empty-state__description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-state__actions {
    margin-top: 4px;
}

.errors {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--danger-bg);
    color: var(--danger-text);
    list-style: none;
}

.messages {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.notices {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    list-style: none;
}

.toast {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fade-up 0.45s ease both;
}

.toast-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.toast-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.toast-error,
.toast-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.toast-info,
.toast-debug {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.muted {
    color: var(--text-muted);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.breadcrumbs a {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.page-header {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.page-header--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

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

.insight-strip {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.insight-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-sm);
}

.insight-card strong {
    color: var(--color-dark);
}

.insight-card span {
    color: var(--color-muted);
    font-size: 0.94rem;
}

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

.info-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-item strong,
.link-row strong {
    display: block;
    margin-bottom: 6px;
}

.link-row {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow-wrap: anywhere;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-item:hover,
.link-row:hover,
.tree-panel:hover,
.dashboard-card:hover,
.task-card:hover,
.bonus-summary-card:hover,
.bonus-progress-card:hover,
.bonus-stage-card:hover,
.bonus-withdrawal-card:hover,
.withdrawal-card:hover,
.card-order-card:hover,
.card-order-status-card:hover,
.course-card:hover,
.lesson-card:hover,
.lesson-content-card:hover,
.lesson-video-card:hover,
.lesson-actions-card:hover,
.learning-empty-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.link-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.link-row__header button {
    width: auto;
    flex: 0 0 auto;
}

.task-text-content {
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

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

.task-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fade-up 0.55s ease both;
}

.task-card-title {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
}

.task-card-description {
    min-width: 0;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.task-card-meta {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.tasks-page {
    display: grid;
    gap: 24px;
}

.tasks-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    grid-template-areas:
        "copy visual"
        "note visual";
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.26), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.tasks-hero__content {
    grid-area: copy;
}

.tasks-hero .dashboard-hero-visual {
    grid-area: visual;
    align-self: stretch;
    min-height: 280px;
    padding: 6px;
}

.tasks-hero .dashboard-hero-visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.tasks-hero__content,
.tasks-hero__note,
.tasks-toolbar__copy,
.task-card__heading,
.task-detail-main {
    min-width: 0;
}

.tasks-hero__content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.tasks-hero__content h1,
.tasks-hero__content p,
.tasks-hero__note p,
.tasks-toolbar__copy p,
.tasks-stat-card__hint,
.task-detail-card p {
    margin: 0;
}

.tasks-hero__content p,
.tasks-hero__note p,
.tasks-toolbar__copy p,
.tasks-stat-card__hint,
.task-detail-submission__block span {
    color: var(--text-muted);
}

.tasks-hero__note {
    grid-area: note;
    display: grid;
    gap: 8px;
    align-content: start;
    align-self: end;
    padding: 20px 22px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
}

.tasks-page .tasks-hero__note {
    margin-top: 0;
}

.structure-page .structure-hero {
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    grid-template-areas:
        "copy visual"
        "profile visual";
    align-items: stretch;
    gap: 18px;
}

.structure-page .structure-hero__content {
    grid-area: copy;
}

.structure-page .structure-hero__aside {
    grid-area: profile;
    align-self: start;
    margin-top: 0;
}

.structure-page .structure-hero .dashboard-hero-visual {
    grid-area: visual;
    align-self: stretch;
    min-height: 280px;
    padding: 6px;
}

.structure-page .structure-hero .dashboard-hero-visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.bonuses-hero {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
    grid-template-areas:
        "copy visual"
        "cards visual";
    align-items: stretch;
    gap: 18px;
}

.bonuses-hero .ecosystem-hero__content {
    grid-area: copy;
}

.bonuses-hero .ecosystem-hero__aside {
    grid-area: cards;
    align-self: start;
    margin-top: 0;
    gap: 14px;
}

.bonuses-hero .dashboard-hero-visual {
    grid-area: visual;
    align-self: stretch;
    min-height: 300px;
    padding: 6px;
}

.bonuses-hero .dashboard-hero-visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.tasks-hero__note strong,
.tasks-toolbar__copy h2,
.tasks-stat-card__value,
.task-card__detail strong,
.task-detail-card h2,
.task-detail-sidebar__fact strong,
.task-detail-submission__block strong {
    color: #0f172a;
}

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

.tasks-stat-card,
.task-detail-card {
    display: grid;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.tasks-stat-card__label,
.task-card__detail span,
.task-detail-sidebar__fact span,
.task-detail-submission__meta span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.tasks-stat-card__value {
    font-size: 2rem;
    line-height: 1.05;
}

.tasks-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.tasks-filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tasks-filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), background var(--transition);
}

.tasks-filter-tab:hover {
    border-color: rgba(96, 165, 250, 0.68);
    color: #1d4ed8;
}

.tasks-filter-tab--active {
    border-color: rgba(96, 165, 250, 0.68);
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(219, 234, 254, 0.52);
}

.task-cards-grid--polished {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.task-card--polished {
    gap: 18px;
    padding: 22px;
    border-color: rgba(226, 232, 240, 0.96);
    background:
        radial-gradient(circle at top right, rgba(239, 246, 255, 0.8), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.task-card__head,
.task-card__footer,
.task-detail-card__header,
.task-detail-submission__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.task-card__badges,
.task-card__details,
.task-detail-submission,
.task-detail-sidebar__facts {
    display: grid;
    gap: 12px;
}

.task-card__badges {
    display: flex;
    flex-wrap: wrap;
}

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

.task-card__detail {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
}

.task-card__cta {
    width: auto;
}

.task-type-badge,
.task-points-badge,
.task-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.task-type-badge {
    color: #1d4ed8;
    background: #dbeafe;
}

.task-points-badge {
    color: #475569;
    background: #e2e8f0;
}

.task-status-badge--approved {
    color: #166534;
    background: #dcfce7;
}

.task-status-badge--submitted {
    color: #92400e;
    background: #fef3c7;
}

.task-status-badge--rejected {
    color: #b91c1c;
    background: #fee2e2;
}

.task-status-badge--idle {
    color: #1e3a8a;
    background: #e0ecff;
}

.tasks-empty-state {
    justify-items: center;
    text-align: center;
    padding: 32px 28px;
}

.task-detail-page {
    display: grid;
    gap: 24px;
}

.task-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

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

.task-detail-status-panel {
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.7), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.task-detail-status-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.task-detail-status-panel__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-detail-card__header {
    align-items: center;
}

.task-detail-form {
    display: grid;
    gap: 16px;
}

.task-detail-form__field {
    display: grid;
    gap: 8px;
}

.task-detail-form textarea,
.task-detail-form input[type="url"],
.task-detail-form input[type="file"] {
    width: 100%;
}

.task-detail-form textarea {
    min-height: 180px;
    resize: vertical;
}

.task-detail-form__actions {
    display: flex;
    justify-content: flex-end;
}

.task-detail-submission__block {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
}

.task-detail-sidebar__fact {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.bonus-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bonus-page h1,
.bonus-page h2,
.bonus-page h3 {
    margin: 0;
}

.bonus-page h2 {
    margin-bottom: 16px;
}

.bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bonus-header p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.6;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

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

.bonus-summary-card,
.bonus-progress-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fade-up 0.55s ease both;
}

.bonus-stage-card,
.bonus-history-card {
    background: #f8fafc;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fade-up 0.55s ease both;
}

.bonus-summary-card .value,
.bonus-progress-card .value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bonus-summary-card .label,
.bonus-progress-card .label {
    display: block;
    margin-top: 8px;
    color: #64748b;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bonus-stage-grid,
.bonus-stage-list {
    display: grid;
    gap: 14px;
}

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

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

.bonus-stage-card {
    min-width: 0;
}

.bonus-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.bonus-stage-header > div {
    min-width: 0;
}

.bonus-stage-header h3 {
    margin: 0;
}

.bonus-stage-title {
    margin: 8px 0 0;
    color: #64748b;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bonus-requirements {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bonus-requirements li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e6edf5;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bonus-requirements li span {
    flex: 1 1 auto;
    font-weight: 700;
}

.bonus-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #d8e2ef;
    font-size: 16px;
}

.bonus-reward span {
    color: #64748b;
}

.bonus-reward strong {
    font-size: 18px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.status-approved {
    background: #bbf7d0;
    color: #166534;
}

.status-paid {
    background: #bfdbfe;
    color: #1d4ed8;
}

.status-pending {
    background: #fde68a;
    color: #92400e;
}

.status-rejected {
    background: #fecaca;
    color: #b91c1c;
}

.status-cancelled {
    background: #e5e7eb;
    color: #374151;
}

.status-available {
    background: #e0f2fe;
    color: #075985;
}

.status-not-earned {
    background: #f1f5f9;
    color: #475569;
}

.bonus-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table,
.bonus-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td,
.bonus-table th,
.bonus-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    font-size: 0.94rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.data-table thead th,
.bonus-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-table tbody tr:nth-child(even),
.bonus-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.9);
}

.data-table tbody tr:hover,
.bonus-table tbody tr:hover {
    background: rgba(219, 234, 254, 0.4);
}

.bonus-table th,
.bonus-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bonus-table th {
    color: #64748b;
}

.bonus-withdrawal-card,
.withdrawal-card,
.card-order-card,
.card-order-status-card {
    padding: 20px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fade-up 0.55s ease both;
}

.bonus-withdrawal-text,
.card-order-disclaimer,
.card-order-status-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.bonus-withdrawal-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.bonus-withdrawal-status__label {
    font-weight: 600;
}

.bonus-withdrawal-comment {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e6edf5;
    color: #475569;
}

.bonus-withdrawal-hint {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.bonus-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.bonus-withdrawal-active {
    margin: 18px 0 0;
    color: #166534;
    font-weight: 600;
}

.bonus-link-button:hover {
    background: var(--primary-dark);
}

.card-order-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-order-header {
    display: grid;
    gap: 10px;
}

.card-order-header h1,
.card-order-status-card h2 {
    margin: 0;
}

.card-order-form {
    width: 100%;
}

.card-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card-order-field {
    min-width: 0;
}

.card-order-field--checkbox {
    grid-column: 1 / -1;
}

.card-order-field--checkbox label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

.card-order-field--checkbox input {
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.card-order-field textarea,
.card-order-field input[type="file"] {
    background: #ffffff;
}

.structure-list {
    margin: 0;
    padding-left: 20px;
}

.structure-list li {
    margin-bottom: 12px;
}

.structure-list span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.binary-tree-wrapper {
    margin-top: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding: 0 8px 24px;
}

.binary-tree {
    --tree-node-size: 160px;
    --tree-node-min-height: 120px;
    --tree-gap: 18px;
    --tree-line-color: #d1d5db;
    --tree-line-width: 2px;
    --tree-branch-drop: 22px;
    --tree-branch-rise: 20px;
    min-width: max-content;
    width: max-content;
    margin: 0 auto;
    padding: 0 20px 8px;
}

.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: max-content;
}

.tree-level {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: var(--tree-gap);
    width: max-content;
    margin: 0 auto;
    padding: 0;
}

.tree-children {
    position: relative;
    display: flex;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
    padding-top: var(--tree-branch-rise);
}

.tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--tree-node-size) / 2);
    right: calc(var(--tree-node-size) / 2);
    height: var(--tree-line-width);
    background: var(--tree-line-color);
}

.tree-node-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 var(--tree-node-size);
    width: var(--tree-node-size);
}

.connector-top,
.connector-bottom {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
}

.connector-top {
    height: var(--tree-branch-rise);
}

.connector-bottom {
    height: var(--tree-branch-drop);
}

.connector-top::before,
.connector-bottom::before {
    content: "";
    position: absolute;
    left: 50%;
    width: var(--tree-line-width);
    background: var(--tree-line-color);
    transform: translateX(-50%);
}

.connector-top::before {
    top: 0;
    height: 100%;
}

.connector-bottom::before {
    top: 0;
    height: 100%;
}

.tree-level:first-child .connector-top::before,
.tree-node-wrapper--leaf .connector-bottom::before {
    display: none;
}

.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--tree-node-size);
    min-height: var(--tree-node-min-height);
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    text-align: center;
}

a.tree-node {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.tree-node:hover {
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

.tree-node-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--tree-node-size);
    min-height: var(--tree-node-min-height);
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f3f4f6;
    color: #94a3b8;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    opacity: 0.8;
}

.tree-node-root {
    border: 2px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tree-node-left {
    border-color: #c7d8f9;
    background: #eef4ff;
}

.tree-node-right {
    border-color: #c8ead7;
    background: #eefcf3;
}

.tree-node strong,
.tree-node-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.tree-node-email {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.tree-node span,
.tree-node-empty span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .dashboard-layout {
        display: block;
    }

    .mobile-header {
        display: block;
        padding: 16px;
        background: var(--sidebar);
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 16px;
    }

    .card,
    .panel {
        padding: 20px;
    }

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

@media (max-width: 768px) {
    .auth-shell {
        padding: 12px;
    }

    .auth-shell__inner {
        max-width: 100%;
    }

    .card,
    .panel {
        padding: 16px;
    }

    .page-header--split {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .task-cards-grid {
        grid-template-columns: 1fr;
    }

    .bonus-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bonus-summary-grid,
    .bonus-progress-grid,
    .bonus-stage-grid,
    .bonus-stage-list,
    .bonus-requirements {
        grid-template-columns: 1fr;
    }

    .bonus-summary-card,
    .bonus-progress-card,
    .bonus-stage-card {
        padding: 16px;
    }

    .bonus-stage-header {
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        width: 100%;
    }

    .bonus-history-card {
        overflow-x: auto;
    }

    .bonus-withdrawal-status {
        align-items: stretch;
        flex-direction: column;
    }

    .bonus-link-button {
        width: 100%;
    }

    .sidebar-profile {
        grid-template-columns: 1fr;
    }

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

    button {
        width: 100%;
    }

    .messages {
        gap: 10px;
    }

    .link-row__header {
        align-items: stretch;
        flex-direction: column;
    }

    .link-row__header button {
        width: 100%;
    }

    .binary-tree-wrapper {
        padding-bottom: 16px;
    }

    .binary-tree {
        --tree-node-size: 130px;
        --tree-node-min-height: 108px;
        --tree-gap: 12px;
        --tree-branch-drop: 18px;
        --tree-branch-rise: 16px;
        padding: 0 12px 8px;
    }

    .tree-node,
    .tree-node-empty {
        padding: 12px 10px;
    }

    .tree-node-email,
    .tree-node span {
        font-size: 12px;
    }
}

.tree-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.tree-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.tree-panel-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.tree-panel-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.tree-scroll-area {
    overflow-x: auto;
    padding: 32px 0 16px;
}

.binary-tree-pro {
    --tree-card-width: 220px;
    --tree-card-min-height: 130px;
    --tree-gap-default: 40px;
    --tree-gap-level-1: 80px;
    --tree-gap-level-2: 32px;
    --tree-gap-level-3: 24px;
    --tree-gap-level-4: 20px;
    --tree-line-color: #64748b;
    --tree-line-width: 2px;
    --tree-connector-height: 76px;
    --tree-stem-height: 24px;
    --tree-branch-height: 22px;
    --tree-leg-height: 30px;
    min-width: 760px;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.tree-row {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: var(--tree-gap-default);
    position: relative;
    width: 100%;
}

.tree-row-root {
    margin-bottom: 10px;
}

.tree-row-children {
    margin-bottom: 14px;
}

.tree-row-level-1 {
    gap: var(--tree-gap-level-1);
    margin-bottom: 48px;
}

.tree-row-level-2 {
    gap: var(--tree-gap-level-2);
}

.tree-row-level-3 {
    gap: var(--tree-gap-level-3);
}

.tree-row-level-4,
.tree-row-level-5 {
    gap: var(--tree-gap-level-4);
}

.tree-node-wrapper {
    display: flex;
    justify-content: center;
    flex: 0 0 var(--tree-card-width);
    width: var(--tree-card-width);
}

.tree-connectors {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 28px;
    gap: var(--tree-gap-default);
}

.tree-connectors-level-0 {
    gap: 0;
    margin-bottom: 38px;
}

.tree-connectors-level-1 {
    gap: var(--tree-gap-level-2);
    margin-bottom: 34px;
}

.tree-connectors-level-2 {
    gap: var(--tree-gap-level-3);
}

.tree-connectors-level-3 {
    gap: var(--tree-gap-level-4);
}

.tree-connectors-level-4,
.tree-connectors-level-5 {
    gap: var(--tree-gap-level-4);
}

.tree-connector-group {
    position: relative;
    height: var(--tree-connector-height);
    flex: 0 0 auto;
}

.tree-connector-group-level-0 {
    width: calc((var(--tree-card-width) * 2) + var(--tree-gap-level-1));
}

.tree-connector-group-level-1 {
    width: calc((var(--tree-card-width) * 2) + var(--tree-gap-level-2));
}

.tree-connector-group-level-2 {
    width: calc((var(--tree-card-width) * 2) + var(--tree-gap-level-3));
}

.tree-connector-group-level-3,
.tree-connector-group-level-4,
.tree-connector-group-level-5 {
    width: calc((var(--tree-card-width) * 2) + var(--tree-gap-level-4));
}

.tree-connector-group--empty {
    opacity: 0.22;
}

.tree-connector-stem,
.tree-connector-bar,
.tree-connector-leg {
    position: absolute;
    display: block;
    background: var(--tree-line-color);
}

.tree-connector-stem {
    top: 0;
    left: 50%;
    width: var(--tree-line-width);
    height: var(--tree-stem-height);
    transform: translateX(-50%);
    border-radius: 999px;
}

.tree-connector-bar {
    top: var(--tree-stem-height);
    left: calc(var(--tree-card-width) / 2);
    right: calc(var(--tree-card-width) / 2);
    height: var(--tree-line-width);
    border-radius: 999px;
}

.tree-connector-leg {
    top: var(--tree-stem-height);
    width: var(--tree-line-width);
    height: calc(var(--tree-branch-height) + var(--tree-leg-height));
    border-radius: 999px;
}

.tree-connector-leg--left {
    left: calc(var(--tree-card-width) / 2);
    transform: translateX(-50%);
}

.tree-connector-leg--right {
    left: calc(100% - (var(--tree-card-width) / 2));
    transform: translateX(-50%);
}

.tree-node-card {
    width: var(--tree-card-width);
    min-height: var(--tree-card-min-height);
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tree-node-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.tree-node-card.tree-node-root {
    border: 2px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.tree-node-card.tree-node-left {
    border-color: #93c5fd;
    background: #eff6ff;
}

.tree-node-card.tree-node-right {
    border-color: #86efac;
    background: #f0fdf4;
}

.tree-node-email {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.tree-node-meta {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.tree-node-meta span {
    display: block;
    margin: 0;
    color: inherit;
}

.tree-node-empty {
    width: var(--tree-card-width);
    min-height: var(--tree-card-min-height);
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

@media (max-width: 768px) {
    .tree-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .tree-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tree-scroll-area {
        padding: 24px 0 12px;
    }

    .binary-tree-pro {
        --tree-card-width: 180px;
        --tree-card-min-height: 120px;
        --tree-gap-default: 24px;
        --tree-gap-level-1: 56px;
        --tree-gap-level-2: 24px;
        --tree-gap-level-3: 20px;
        --tree-gap-level-4: 16px;
        --tree-connector-height: 62px;
        min-width: 720px;
    }

    .tree-row {
        gap: 24px;
    }

    .tree-node-card,
    .tree-node-empty {
        width: var(--tree-card-width);
        min-height: var(--tree-card-min-height);
        padding: 16px;
    }
}

.admin-tree-scroll {
    overflow: auto;
    width: 100%;
    max-height: 75vh;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 24px;
}

.admin-tree-canvas {
    position: relative;
    width: max-content;
    min-width: max-content;
    margin: 0 auto;
    padding: 40px 80px;
}

.admin-tree-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.admin-tree-levels {
    position: relative;
    z-index: 2;
    display: grid;
    row-gap: 56px;
    justify-items: center;
}

.admin-tree-level {
    display: grid;
    grid-template-columns: repeat(var(--slots), 120px);
    column-gap: 24px;
    justify-content: center;
    align-items: flex-start;
    min-width: max-content;
    position: relative;
}

.admin-tree-level-1 {
    column-gap: 24px;
}

.admin-tree-level-2 {
    column-gap: 24px;
}

.admin-tree-level-3,
.admin-tree-level-4,
.admin-tree-level-5,
.admin-tree-level-6,
.admin-tree-level-7,
.admin-tree-level-8,
.admin-tree-level-9,
.admin-tree-level-10,
.admin-tree-level-11 {
    column-gap: 16px;
}

.admin-tree-node {
    width: 120px;
    min-height: 70px;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
}

.admin-tree-node-root {
    border: 2px solid #2563eb;
    background: #eff6ff;
}

.admin-tree-node-left {
    background: #eff6ff;
    border-color: #93c5fd;
}

.admin-tree-node-right {
    background: #f0fdf4;
    border-color: #86efac;
}

.admin-tree-node-empty {
    width: 100px;
    min-height: 55px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    opacity: 0.45;
    font-size: 11px;
    padding: 8px;
    justify-self: center;
}

.admin-tree-node-email {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-all;
}

#content-main .admin-tree-node-email {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
}

.admin-tree-node-meta {
    display: grid;
    gap: 3px;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

.admin-tree-node-meta span {
    display: block;
}

@media (max-width: 768px) {
    .admin-tree-scroll {
        padding: 16px;
        max-height: 70vh;
    }

    .admin-tree-canvas {
        padding: 28px 40px;
    }

    .admin-tree-levels {
        row-gap: 48px;
    }

    .admin-tree-level {
        grid-template-columns: repeat(var(--slots), 112px);
        column-gap: 24px;
    }

    .admin-tree-level-1 {
        column-gap: 24px;
    }

    .admin-tree-level-2,
    .admin-tree-level-3,
    .admin-tree-level-4,
    .admin-tree-level-5,
    .admin-tree-level-6,
    .admin-tree-level-7,
    .admin-tree-level-8,
    .admin-tree-level-9,
    .admin-tree-level-10,
    .admin-tree-level-11 {
        column-gap: 16px;
    }

    .admin-tree-node {
        width: 112px;
        min-height: 68px;
        padding: 9px;
    }

.admin-tree-node-empty {
    width: 96px;
    min-height: 52px;
}
}

body:has(.dashboard-page) .content__inner {
    max-width: 1420px;
}

.dashboard-container {
    display: grid;
    gap: 24px;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
}

.dashboard-grid--main {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    align-items: stretch;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: var(--surface);
    border: 1px solid rgba(216, 225, 236, 0.9);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    animation: fade-up 0.55s ease both;
}

.hero-card,
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
    gap: 24px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.22), transparent 28%),
        linear-gradient(135deg, #11284b 0%, #1d4ed8 48%, #0f766e 100%);
    color: #ffffff;
    animation: hero-enter 0.65s ease both;
}

.hero-card__content,
.hero-card__aside {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-card__eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.05;
    max-width: 720px;
    overflow-wrap: anywhere;
}

.hero-card__subtitle {
    margin: 14px 0 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.hero-card__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
    max-width: 560px;
}

.hero-card__summary-item,
.hero-card__note {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-card__summary-item span,
.hero-card__note span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-card__summary-item strong,
.hero-card__note strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.35;
}

.hero-card__aside {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: end;
}

.hero-card__badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.hero-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-card__badge--role {
    background: rgba(15, 23, 42, 0.26);
}

.hero-card__badge--success {
    background: rgba(22, 163, 74, 0.2);
}

.hero-card__badge--danger {
    background: rgba(220, 38, 38, 0.18);
}

.dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-progress-grid,
.dashboard-growth-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
}

.dashboard-learning-progress,
.dashboard-next-step,
.dashboard-attention-card,
.dashboard-activity-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.34), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-learning-progress__header,
.dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-learning-progress__header h3,
.dashboard-next-step h3,
.dashboard-section-header h3 {
    margin: 10px 0 6px;
}

.dashboard-learning-progress__header p,
.dashboard-next-step p,
.dashboard-section-header p,
.dashboard-attention-item span,
.dashboard-activity-item span {
    margin: 0;
    color: var(--text-muted);
}

.dashboard-learning-progress__stats,
.dashboard-attention-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-learning-progress__stat,
.dashboard-attention-card__stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(219, 234, 254, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.dashboard-learning-progress__stat span,
.dashboard-attention-card__stat span,
.dashboard-activity-item__date {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.dashboard-learning-progress__stat strong,
.dashboard-attention-card__stat strong,
.dashboard-attention-item strong,
.dashboard-activity-item strong {
    color: #0f172a;
}

.dashboard-learning-progress .progress-line {
    margin-top: 2px;
}

.dashboard-next-step {
    align-content: start;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.24), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.dashboard-next-step .lesson-card__cta {
    width: fit-content;
}

.dashboard-attention-list,
.dashboard-activity-list {
    display: grid;
    gap: 12px;
}

.dashboard-attention-item,
.dashboard-activity-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dashboard-attention-item:hover,
.dashboard-activity-item:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-attention-item--empty,
.dashboard-activity-item--empty {
    cursor: default;
}

.dashboard-attention-item--empty:hover,
.dashboard-activity-item--empty:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(226, 232, 240, 0.92);
}

.stats-card,
.dashboard-stat-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
    min-height: 170px;
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stats-card:hover,
.dashboard-stat-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 22px 44px rgba(29, 78, 216, 0.12);
}

.stats-card__icon,
.dashboard-action-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe 0%, #ecfeff 100%);
    color: #1d4ed8;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ui-icon {
    position: relative;
}

.ui-icon::before,
.ui-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.ui-icon--branch-left::before {
    width: 18px;
    height: 18px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    left: 19px;
    top: 14px;
    border-radius: 0 0 0 6px;
}

.ui-icon--branch-left::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    left: 14px;
    top: 28px;
    box-shadow: 14px -14px 0 currentColor;
}

.ui-icon--branch-right::before {
    width: 18px;
    height: 18px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    left: 17px;
    top: 14px;
    border-radius: 0 0 6px 0;
}

.ui-icon--branch-right::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    left: 32px;
    top: 28px;
    box-shadow: -14px -14px 0 currentColor;
}

.ui-icon--users::before {
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
    left: 15px;
    top: 13px;
    box-shadow: 13px 0 0 -2px currentColor;
}

.ui-icon--users::after {
    width: 24px;
    height: 11px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    left: 15px;
    top: 28px;
}

.ui-icon--lesson::before {
    width: 22px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 5px;
    left: 16px;
    top: 12px;
}

.ui-icon--lesson::after {
    width: 2px;
    height: 22px;
    background: currentColor;
    left: 26px;
    top: 14px;
    box-shadow: -6px 0 0 rgba(29, 78, 216, 0.2), 6px 0 0 rgba(29, 78, 216, 0.2);
}

.ui-icon--tasks::before {
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 6px;
    left: 16px;
    top: 16px;
}

.ui-icon--tasks::after {
    width: 11px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    left: 21px;
    top: 23px;
}

.ui-icon--my-tasks::before {
    width: 22px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 6px;
    left: 16px;
    top: 12px;
}

.ui-icon--my-tasks::after {
    width: 13px;
    height: 2px;
    background: currentColor;
    left: 21px;
    top: 21px;
    box-shadow:
        0 6px 0 rgba(29, 78, 216, 0.36),
        0 12px 0 rgba(29, 78, 216, 0.22),
        -4px 12px 0 -1px currentColor;
}

.ui-icon--bonus::before {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    transform: rotate(45deg);
    border-radius: 4px;
    left: 18px;
    top: 17px;
}

.ui-icon--bonus::after {
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
    left: 23px;
    top: 22px;
    background: rgba(37, 99, 235, 0.12);
}

.ui-icon--card::before {
    width: 24px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 5px;
    left: 15px;
    top: 18px;
}

.ui-icon--card::after {
    width: 20px;
    height: 2px;
    background: currentColor;
    left: 17px;
    top: 24px;
    box-shadow: 0 6px 0 rgba(29, 78, 216, 0.25);
}

.ui-icon--payout::before {
    width: 24px;
    height: 18px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    left: 15px;
    top: 16px;
    border-radius: 0 0 0 4px;
}

.ui-icon--payout::after {
    width: 15px;
    height: 15px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    left: 22px;
    top: 15px;
}

.ui-icon--structure::before {
    width: 22px;
    height: 2px;
    background: currentColor;
    left: 16px;
    top: 21px;
}

.ui-icon--structure::after {
    width: 22px;
    height: 16px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    left: 16px;
    top: 21px;
}

.stats-card__body {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.stats-card__label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.4;
}

.stats-card__value {
    font-size: clamp(2rem, 2.3vw, 2.6rem);
    line-height: 0.98;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.stats-card__description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.referral-card,
.card-status-card,
.dashboard-actions {
    padding: 26px;
}

.referral-card {
    display: grid;
    gap: 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.referral-card__header,
.card-status-card__header,
.dashboard-actions__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.referral-card__header h3,
.card-status-card__header h3,
.dashboard-actions__header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.referral-card__header p,
.card-status-card__header p,
.card-status-card__content p,
.dashboard-actions__header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.referral-card__copy-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.referral-card__copy-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.referral-card__link {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed #93c5fd;
    color: #1e3a8a;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
    font-weight: 600;
}

.referral-card__code-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--text-muted);
}

.referral-card__code-row strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
}

.card-status-card {
    display: grid;
    gap: 20px;
    align-content: start;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.card-status-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.card-status-card__badge--muted {
    background: #e2e8f0;
    color: #475569;
}

.card-status-card__badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.card-status-card__badge--success {
    background: #dcfce7;
    color: #166534;
}

.card-status-card__badge--accent {
    background: #dbeafe;
    color: #1d4ed8;
}

.card-status-card__badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.card-status-card__content {
    display: grid;
    gap: 10px;
}

.card-status-card__value {
    font-size: 1.8rem;
    line-height: 1.15;
}

.card-status-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.card-status-card__cta:hover {
    background: var(--primary-dark);
}

.dashboard-actions {
    display: grid;
    gap: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.dashboard-action-link {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 170px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-action-link strong {
    color: #0f172a;
    font-size: 1.04rem;
    line-height: 1.3;
}

.dashboard-action-link span:last-child {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.dashboard-action-link:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 18px 36px rgba(29, 78, 216, 0.12);
}

@media (max-width: 1180px) {
    .hero-card,
    .dashboard-grid--main {
        grid-template-columns: 1fr;
    }

    .hero-card__aside {
        justify-items: start;
    }

    .hero-card__badge-group {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    body:has(.dashboard-page) .content__inner {
        max-width: 100%;
    }

    .dashboard-container {
        gap: 18px;
    }

    .dashboard-hero,
    .dashboard-progress-grid,
    .dashboard-growth-grid,
    .dashboard-grid--main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
        line-height: 1.58;
    }

    .hero-card,
    .referral-card,
    .card-status-card,
    .dashboard-actions,
    .dashboard-learning-progress,
    .dashboard-next-step,
    .dashboard-attention-card,
    .dashboard-activity-card,
    .stats-card {
        padding: 18px;
    }

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

    .hero-card h2 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .referral-card__header,
    .card-status-card__header,
    .dashboard-actions__header,
    .dashboard-learning-progress__header,
    .dashboard-section-header {
        flex-direction: column;
    }

    .referral-card__header button,
    .card-status-card__cta,
    .dashboard-next-step .lesson-card__cta,
    .dashboard-learning-progress .lesson-card__cta {
        width: 100%;
    }

    .actions-grid,
    .dashboard-stats-grid,
    .dashboard-learning-progress__stats,
    .dashboard-attention-card__stats {
        grid-template-columns: 1fr;
    }

    .stats-card,
    .dashboard-stat-card {
        min-height: 0;
        gap: 12px;
    }

    .stats-card__icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stats-card__value {
        font-size: 2rem;
    }

    .stats-card__description,
    .dashboard-action-link span:last-child,
    .card-status-card__content p,
    .learning-hero p,
    .course-card__description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .btn,
    button,
    .bonus-link-button,
    .course-card__cta,
    .lesson-card__cta,
    .card-status-card__cta {
        width: 100%;
    }
}

.public-page {
    width: 100%;
    max-width: 1180px;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.public-header__brand {
    color: var(--color-dark);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.public-header__nav,
.public-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.public-header__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.public-header__nav a:hover {
    color: var(--primary);
}

.public-hero,
.public-section {
    padding: 28px;
}

@media (max-width: 900px) {
    .public-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .public-header,
    .public-hero,
    .public-section {
        padding: 18px;
        border-radius: 20px;
    }

    .public-header__nav,
    .public-header__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.learning-page {
    display: grid;
    gap: 24px;
}

.learning-page h1,
.learning-page h2,
.learning-page h3 {
    letter-spacing: -0.02em;
}

.learning-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 24px;
    padding: 34px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.18), transparent 24%),
        linear-gradient(135deg, #071a35 0%, #0f3f8a 45%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

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

.learning-hero::before {
    width: 240px;
    height: 240px;
    right: -72px;
    top: -96px;
    background: rgba(255, 255, 255, 0.12);
}

.learning-hero::after {
    width: 180px;
    height: 180px;
    left: 44%;
    bottom: -110px;
    background: rgba(45, 212, 191, 0.18);
}

.learning-hero--celebration {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.22), transparent 20%),
        linear-gradient(135deg, #0f3d2e 0%, #0f766e 48%, #1d4ed8 100%);
}

.learning-hero > * {
    position: relative;
    z-index: 1;
}

.learning-hero__content {
    display: grid;
    align-content: start;
    gap: 16px;
}

.learning-hero__eyebrow,
.learning-overview-card__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learning-hero__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.learning-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    line-height: 0.98;
}

.learning-hero__subtitle {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.7;
}

.learning-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.learning-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.learning-chip--light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.learning-chip--muted {
    background: #e0f2fe;
    color: #0c4a6e;
}

.learning-chip--success {
    background: rgba(220, 252, 231, 0.16);
    border: 1px solid rgba(220, 252, 231, 0.22);
    color: #dcfce7;
}

.learning-hero__panel,
.learning-overview-card,
.course-card,
.lesson-card,
.lesson-content-card,
.lesson-video-card,
.lesson-actions-card,
.learning-empty-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    animation: fade-up 0.55s ease both;
}

.learning-hero__panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.learning-hero__panel--highlight {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(8, 15, 33, 0.16);
}

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

.learning-overview-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98)),
        var(--surface);
}

.learning-overview-card__eyebrow {
    color: var(--text-muted);
}

.learning-overview-card__value {
    color: #0f172a;
    font-size: clamp(1.65rem, 2vw, 2.35rem);
    line-height: 1;
}

.learning-overview-card__message {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.learning-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 4px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.learning-back-link::before {
    content: "←";
}

.learning-section-header {
    display: grid;
    gap: 8px;
}

.learning-section-header--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.learning-section-header h2,
.learning-section-header h3 {
    margin: 0;
}

.learning-section-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.course-card {
    position: relative;
    display: grid;
    gap: 20px;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-card__glow {
    position: absolute;
    inset: auto -50px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.24), transparent 72%);
    pointer-events: none;
}

.course-card__top {
    display: grid;
    gap: 14px;
}

.course-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-card__eyebrow,
.lesson-card__number {
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-card h3,
.lesson-card h3,
.lesson-content-card h2,
.lesson-video-card h2,
.lesson-actions-card h2 {
    margin: 0;
}

.course-card__description,
.lesson-card__description,
.lesson-content-card__lead,
.lesson-video-card p,
.lesson-actions-card p,
.learning-empty-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

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

.course-card__stat {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.course-card__stat span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.course-card__stat strong {
    color: #0f172a;
    font-size: 1.2rem;
}

.course-card__stat--accent {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border-color: #bfdbfe;
}

.course-card__progress {
    display: grid;
    gap: 10px;
}

.course-card__progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f172a;
    font-weight: 700;
}

.course-card__progress-text {
    margin: 0;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    position: relative;
    background: linear-gradient(180deg, #dbe4f0 0%, #e2e8f0 100%);
    overflow: hidden;
}

.progress-bar--light {
    background: rgba(255, 255, 255, 0.18);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8 0%, #14b8a6 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.18);
    transform-origin: left center;
    animation: progress-reveal 0.9s ease both;
}

.course-card__cta,
.lesson-card__cta,
.lesson-video-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.course-card__cta:hover,
.lesson-card__cta:hover,
.lesson-video-card__link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lesson-list {
    display: grid;
    gap: 18px;
}

.lesson-list--timeline {
    position: relative;
    padding-left: 10px;
}

.lesson-list--timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.24), rgba(20, 184, 166, 0.12));
}

.lesson-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lesson-card__track {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    min-width: 36px;
}

.lesson-card__node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #ccfbf1 100%);
    border: 1px solid #bfdbfe;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.lesson-card--done .lesson-card__node {
    background: linear-gradient(135deg, #dcfce7 0%, #ccfbf1 100%);
    border-color: #86efac;
    color: #166534;
}

.lesson-card__main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.lesson-card__main-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lesson-card__duration {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 700;
}

.lesson-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.4rem 0 0.15rem;
}

.learning-cover-shell {
    overflow: hidden;
}

.learning-hero.learning-cover-shell {
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.08fr) minmax(280px, 0.9fr);
    align-items: stretch;
}

.learning-cover-shell__visual {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 1rem;
    min-height: 220px;
    padding: 1.2rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.02)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(226, 232, 240, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.learning-cover-shell--with-image .learning-cover-shell__visual {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.08)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.12)),
        var(--learning-cover-image) center/cover no-repeat;
}

.learning-cover-shell__glow {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 72%);
    filter: blur(2px);
}

.learning-cover-shell__badge,
.learning-cover-shell__mentor {
    position: relative;
    z-index: 1;
}

.learning-cover-shell__badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #334155;
    font-size: 0.79rem;
    font-weight: 600;
}

.learning-cover-shell__caption {
    position: relative;
    z-index: 1;
    max-width: 22rem;
}

.learning-cover-shell__caption span {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.learning-cover-shell__caption strong {
    display: block;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.3;
}

.learning-cover-shell__caption p {
    margin: 0.55rem 0 0;
    color: rgba(15, 23, 42, 0.78);
    line-height: 1.6;
}

.learning-cover-shell__mentor {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.learning-cover-shell__mentor-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(51, 65, 85, 0.84));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.learning-cover-shell__mentor strong,
.learning-cover-shell__mentor span {
    display: block;
    color: #0f172a;
}

.learning-cover-shell__mentor span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.82rem;
}

.learning-atmosphere-grid,
.reflection-prompts-grid,
.lesson-guidance-strip {
    display: grid;
    gap: 1rem;
}

.learning-atmosphere-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.learning-atmosphere-card {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.learning-atmosphere-card--mentor {
    border-color: rgba(148, 163, 184, 0.18);
}

.learning-atmosphere-card--focus {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 255, 0.96));
}

.learning-atmosphere-card--reflection {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(252, 248, 240, 0.96));
}

.lesson-guidance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0 1.2rem;
}

.lesson-guidance-strip__card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.9);
}

.lesson-guidance-strip__card--memory {
    background: rgba(255, 251, 245, 0.92);
}

.lesson-guidance-strip__eyebrow,
.reflection-prompt-card__eyebrow {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reflection-prompts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.reflection-prompt-card {
    padding: 1.05rem 1.1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.reflection-prompt-card--practice {
    background: linear-gradient(180deg, rgba(247, 252, 250, 0.99), rgba(239, 248, 245, 0.96));
}

.reflection-prompt-card--next {
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.99), rgba(242, 246, 255, 0.96));
}

.reflection-prompt-card--memory {
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.99), rgba(251, 246, 239, 0.96));
}

.ai-assistance-card {
    border-color: rgba(196, 181, 253, 0.5);
    background:
        radial-gradient(circle at top right, rgba(237, 233, 254, 0.6), transparent 34%),
        linear-gradient(180deg, rgba(252, 251, 255, 0.98), rgba(248, 247, 255, 0.96));
}

.btn-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.72;
    pointer-events: none;
    cursor: not-allowed;
}

.lesson-content-card__body {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.82;
}

.lesson-structured-block {
    position: relative;
    padding: 1.35rem 1.4rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.lesson-structured-block + .lesson-structured-block {
    margin-top: 1rem;
}

.lesson-structured-block__head {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.lesson-structured-block__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lesson-structured-block__caption {
    display: block;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.lesson-structured-block__media {
    margin-top: 1rem;
}

.lesson-structured-block p + p {
    margin-top: 0.85rem;
}

.lesson-structured-block blockquote {
    margin: 0.6rem 0 0;
}

.lesson-sidebar-card__stat strong,
.learning-overview-card__value,
.lesson-content-card h2,
.lesson-content-card h3,
.lesson-structured-block h3 {
    color: #0f172a;
}

@media (max-width: 430px) {
    .learning-hero.learning-cover-shell {
        grid-template-columns: 1fr;
    }

    .learning-cover-shell__visual {
        min-height: auto;
        padding: 1rem;
    }

    .learning-atmosphere-grid,
    .reflection-prompts-grid,
    .lesson-guidance-strip {
        grid-template-columns: 1fr;
    }

    .learning-cover-shell__caption {
        max-width: 100%;
    }

    .lesson-content-card__body {
        max-width: 100%;
    }

    .lesson-structured-block {
        padding: 1rem 1rem 1.05rem;
        border-radius: 20px;
    }

    .lesson-card__meta {
        gap: 0.4rem;
    }
}

.lesson-card__aside {
    display: grid;
    gap: 12px;
    justify-items: end;
    min-width: 170px;
}

.lesson-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.lesson-status-badge--done {
    background: #dcfce7;
    color: #166534;
}

.lesson-status-badge--pending {
    background: #e2e8f0;
    color: #475569;
}

.lesson-content-card,
.lesson-video-card,
.lesson-actions-card,
.learning-empty-card {
    padding: 26px;
}

.lesson-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
    gap: 20px;
    align-items: start;
}

.lesson-layout__main {
    display: grid;
    gap: 20px;
}

.lesson-sidebar {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 24px;
}

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

.lesson-sidebar-card,
.lesson-congrats-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: var(--shadow);
}

.lesson-sidebar-card--checkpoints {
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.lesson-sidebar-card__stats {
    display: grid;
    gap: 10px;
}

.lesson-sidebar-card__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lesson-sidebar-card__stat span,
.lesson-sidebar-card__progress-head span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.lesson-sidebar-card__stat strong,
.lesson-sidebar-card__progress-head strong {
    color: #0f172a;
}

.lesson-sidebar-card__progress {
    display: grid;
    gap: 10px;
}

.lesson-sidebar-card__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.lesson-checkpoints li {
    position: relative;
    padding-left: 28px;
    color: #0f172a;
    line-height: 1.55;
}

.lesson-checkpoints li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8 0%, #14b8a6 100%);
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.08);
}

.lesson-congrats-card {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(236, 253, 245, 0.98));
    border-color: #86efac;
}

.lesson-congrats-card h2,
.lesson-congrats-card p {
    margin: 0;
}

.lesson-congrats-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.1);
    color: #166534;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lesson-content-card__header,
.lesson-video-card__header,
.lesson-actions-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lesson-content-card__header,
.lesson-actions-card__intro,
.lesson-actions-card__controls {
    min-width: 0;
}

.lesson-content-card__meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.lesson-content-card__body {
    margin-top: 22px;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.8;
}

.lesson-content-card__body > :first-child {
    margin-top: 0;
}

.lesson-content-card__body > :last-child {
    margin-bottom: 0;
}

.lesson-content-card__body p,
.lesson-content-card__body ul,
.lesson-content-card__body ol,
.lesson-content-card__body blockquote {
    margin: 0 0 1.15rem;
}

.lesson-content-card__body h1,
.lesson-content-card__body h2,
.lesson-content-card__body h3,
.lesson-content-card__body h4 {
    margin: 1.8rem 0 0.85rem;
    color: #0f172a;
    line-height: 1.2;
}

.lesson-content-card__body ul,
.lesson-content-card__body ol {
    padding-left: 1.4rem;
}

.lesson-content-card__body li + li {
    margin-top: 0.45rem;
}

.lesson-content-card__body li::marker {
    color: #1d4ed8;
}

.lesson-content-card__body a {
    color: #1d4ed8;
    font-weight: 600;
}

.lesson-content-card__body blockquote {
    padding: 14px 16px;
    border-left: 4px solid #93c5fd;
    border-radius: 0 16px 16px 0;
    background: #eff6ff;
    color: #1e3a8a;
}

.lesson-content-card__body blockquote.lesson-quote {
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #60a5fa;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    isolation: isolate;
}

.lesson-content-card__body blockquote.lesson-quote::before {
    z-index: 0;
    color: rgba(37, 99, 235, 0.18);
}

.lesson-content-card__body blockquote.lesson-quote p,
.lesson-content-card__body blockquote.lesson-quote strong,
.lesson-content-card__body blockquote.lesson-quote h2,
.lesson-content-card__body blockquote.lesson-quote h3,
.lesson-content-card__body blockquote.lesson-quote li {
    position: relative;
    z-index: 1;
    color: #0f172a;
    opacity: 1;
}

.lesson-content-card__body img,
.lesson-content-card__body figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    object-fit: cover;
}

.lesson-content-card__body figure,
.lesson-content-card__body .lesson-media-placeholder,
.lesson-content-card__body .lesson-infographic-placeholder,
.lesson-content-card__body .mentor-note,
.lesson-content-card__body .lesson-mentor-note,
.lesson-content-card__body .reflection-block,
.lesson-content-card__body .lesson-reflection-block {
    margin: 1.4rem 0;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 248, 0.96) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.lesson-content-card__body figcaption {
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.92rem;
}

.lesson-structured-block {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.15rem;
    padding: 1.1rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 248, 0.96) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.lesson-structured-block h3,
.lesson-structured-block p,
.lesson-structured-block blockquote,
.lesson-structured-block cite {
    margin: 0;
}

.lesson-structured-block--quote {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 246, 0.98) 100%);
}

.lesson-structured-block--quote blockquote {
    padding-left: 1rem;
    border-left: 3px solid rgba(52, 120, 88, 0.34);
    color: #294435;
}

.lesson-structured-block--quote cite {
    color: #64748b;
    font-size: 0.9rem;
}

.lesson-structured-block--mentor {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
}

.lesson-structured-block--reflection {
    background:
        radial-gradient(circle at top left, rgba(254, 243, 199, 0.68), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 240, 0.98) 100%);
}

.lesson-structured-block__media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    min-height: 92px;
}

.lesson-structured-block__media span {
    min-height: 96px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(236, 253, 245, 0.9) 100%);
}

.lesson-content-card__body .mentor-note,
.lesson-content-card__body .lesson-mentor-note {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(239, 246, 255, 0.98) 100%);
}

.lesson-content-card__body .lesson-media-placeholder,
.lesson-content-card__body .lesson-infographic-placeholder {
    position: relative;
    overflow: hidden;
}

.lesson-content-card__body .lesson-media-placeholder::after,
.lesson-content-card__body .lesson-infographic-placeholder::after {
    content: "";
    display: block;
    margin-top: 1rem;
    min-height: 160px;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.36);
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.78) 0%, rgba(236, 253, 245, 0.82) 100%);
}

.educational-media-grid,
.lesson-section-card,
.media-preview-block,
.mentor-insight-card,
.highlighted-reflection-block,
.calm-quote-block,
.lesson-empty-media-card {
    display: grid;
    gap: 0.9rem;
}

.educational-media-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
}

.educational-media-grid--intro {
    margin-top: 1.1rem;
}

.lesson-section-card,
.media-preview-block {
    padding: 1.15rem;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 247, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.mentor-insight-card {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
}

.calm-quote-block {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.76), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 246, 0.98) 100%);
}

.calm-quote-block blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(52, 120, 88, 0.34);
    color: #294435;
    font-size: 1.02rem;
}

.highlighted-reflection-block {
    background:
        radial-gradient(circle at top left, rgba(254, 243, 199, 0.68), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 240, 0.98) 100%);
}

.highlighted-reflection-block__excerpt {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(180, 150, 92, 0.14);
}

.highlighted-reflection-block__excerpt p {
    margin: 0.45rem 0 0;
}

.media-preview-block strong {
    color: #284235;
}

.media-preview-block--welcome {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.76), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
}

.media-preview-block--journey {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 246, 0.98) 100%);
}

.media-preview-block--platform,
.media-preview-block--infographic {
    background:
        radial-gradient(circle at top left, rgba(254, 243, 199, 0.74), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 248, 241, 0.98) 100%);
}

.media-preview-block__placeholder,
.media-preview-block__canvas,
.media-preview-block__infographic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    min-height: 96px;
}

.media-preview-block__canvas {
    grid-template-columns: 1.3fr 0.85fr;
    grid-template-areas:
        "main side1"
        "main side2";
}

.media-preview-block__placeholder span,
.media-preview-block__canvas span,
.media-preview-block__infographic span {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(236, 253, 245, 0.9) 100%);
}

.media-preview-block__placeholder span:nth-child(2) {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.92) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.media-preview-block__canvas span:nth-child(1) {
    grid-area: main;
    min-height: 160px;
}

.media-preview-block__canvas span:nth-child(2) {
    grid-area: side1;
    min-height: 74px;
}

.media-preview-block__canvas span:nth-child(3) {
    grid-area: side2;
    min-height: 74px;
}

.media-preview-block__canvas span:nth-child(4) {
    display: none;
}

.media-preview-block__infographic {
    align-items: end;
}

.media-preview-block__infographic span:nth-child(1) {
    min-height: 86px;
}

.media-preview-block__infographic span:nth-child(2) {
    min-height: 132px;
}

.media-preview-block__infographic span:nth-child(3) {
    min-height: 104px;
}

.lesson-empty-media-card {
    margin-top: 1rem;
}

@media (min-width: 760px) {
    .educational-media-grid--content,
    .educational-media-grid--supporting {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .educational-media-grid--supporting > :last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 980px) {
    .educational-media-grid--intro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lesson-section,
.lesson-callout,
.lesson-warning,
.lesson-quote,
.lesson-checklist,
.lesson-task,
.lesson-summary {
    margin: 0 0 1.3rem;
}

.lesson-section {
    display: grid;
    gap: 10px;
}

.lesson-section h2,
.lesson-section h3 {
    margin: 0;
}

.lesson-callout,
.lesson-warning,
.lesson-checklist,
.lesson-task,
.lesson-summary {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.lesson-callout h2,
.lesson-callout h3,
.lesson-callout strong,
.lesson-warning h2,
.lesson-warning h3,
.lesson-warning strong,
.lesson-checklist h2,
.lesson-checklist h3,
.lesson-checklist strong,
.lesson-task h2,
.lesson-task h3,
.lesson-task strong,
.lesson-summary h2,
.lesson-summary h3,
.lesson-summary strong {
    color: #0f172a;
}

.lesson-callout p,
.lesson-callout li,
.lesson-warning p,
.lesson-warning li,
.lesson-checklist p,
.lesson-checklist li,
.lesson-task p,
.lesson-task li,
.lesson-summary p,
.lesson-summary li {
    color: #1f2937;
}

.lesson-callout {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}

.lesson-warning {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border-color: #fdba74;
}

.lesson-quote {
    position: relative;
    padding: 20px 24px 20px 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    isolation: isolate;
}

.lesson-quote::before {
    content: "“";
    position: absolute;
    left: 16px;
    top: 8px;
    color: rgba(255, 255, 255, 0.26);
    font-size: 3rem;
    line-height: 1;
}

.lesson-quote p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.7;
}

.lesson-quote strong,
.lesson-quote h2,
.lesson-quote h3,
.lesson-quote li {
    color: #ffffff;
}

.lesson-checklist {
    background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 100%);
    border-color: #99f6e4;
}

.lesson-checklist ul,
.lesson-task ul,
.lesson-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

.lesson-checklist li::marker {
    color: #0f766e;
}

.lesson-task {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border-color: #c4b5fd;
}

.lesson-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-color: #86efac;
}

.lesson-divider {
    width: 100%;
    height: 1px;
    margin: 1.4rem 0;
    background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.6) 18%, rgba(148, 163, 184, 0.6) 82%, transparent 100%);
}

.lesson-video-card__link {
    width: fit-content;
    margin-top: 18px;
}

.lesson-task-card {
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.2), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.lesson-task-card__header,
.lesson-task-card__item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lesson-task-card__header h2,
.lesson-task-card__item h3 {
    margin: 0;
    color: #0f172a;
}

.lesson-task-card__lead,
.lesson-task-card__item p {
    margin: 0;
    color: #475569;
}

.lesson-task-card__list {
    display: grid;
    gap: 16px;
}

.lesson-task-card__item {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(191, 219, 254, 0.75);
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.lesson-task-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.task-badge,
.lesson-task-completed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.task-badge {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.92);
}

.task-badge--reflection {
    color: #92400e;
    background: rgba(254, 243, 199, 0.96);
}

.task-badge--checklist {
    color: #0f766e;
    background: rgba(204, 251, 241, 0.96);
}

.task-badge--text_answer {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.96);
}

.task-badge--action_task {
    color: #7c3aed;
    background: rgba(237, 233, 254, 0.96);
}

.lesson-task-completed {
    color: #166534;
    background: rgba(220, 252, 231, 0.98);
}

.lesson-task-form {
    display: grid;
    gap: 12px;
}

.lesson-task-form--compact {
    gap: 10px;
}

.lesson-task-form__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.lesson-task-form__textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lesson-task-form__textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.45);
}

.calm-textarea {
    min-height: 132px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: #0f172a;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calm-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.46);
    box-shadow: 0 0 0 4px rgba(219, 234, 254, 0.7);
    background: #ffffff;
}

.lesson-task-form__check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 0.95rem;
}

.lesson-task-form__check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.lesson-task-form__actions {
    display: flex;
    justify-content: flex-end;
}

.lesson-completed-badge,
.progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lesson-completed-badge {
    color: #166534;
    background: rgba(220, 252, 231, 0.98);
}

.progress-pill {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.96);
}

.course-progress-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(191, 219, 254, 0.7);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.18), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.course-progress-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.course-progress-card__header h2 {
    margin: 6px 0 0;
    color: #0f172a;
}

.lesson-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
}

.lesson-status-indicator__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.lesson-status-indicator__dot--completed {
    background: #16a34a;
}

.lesson-status-indicator__dot--current {
    background: #2563eb;
}

.lesson-status-indicator__dot--upcoming {
    background: #cbd5e1;
}

.next-lesson-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: inherit;
    text-decoration: none;
}

.next-lesson-card h2,
.next-lesson-card strong,
.next-lesson-card p {
    margin: 0;
}

.next-lesson-card--small {
    display: grid;
    gap: 6px;
    align-items: start;
}

.lesson-next-links {
    display: grid;
    gap: 12px;
}

.learning-index-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.learning-index-actions__link {
    width: auto;
}

.learning-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.learning-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.learning-filter-pill:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: #1d4ed8;
}

.learning-filter-pill--active {
    color: #1d4ed8;
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 4px rgba(219, 234, 254, 0.5);
}

.learning-task-card-item {
    gap: 12px;
}

.learning-task-list {
    display: grid;
    gap: 14px;
}

.learning-task-list-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.learning-task-list-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(236, 253, 245, 0.9));
    color: #1d4ed8;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.55);
}

.learning-task-list-item__body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.learning-task-list-item__meta {
    justify-content: flex-start;
    gap: 8px 18px;
}

.learning-task-list-item__meta span {
    min-width: min(260px, 100%);
}

.learning-task-list-item__action {
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
    align-items: flex-end;
}

.learning-task-list-item__action .lesson-card__cta {
    min-width: 150px;
    white-space: nowrap;
}

.learning-task-card-item__head,
.learning-task-card-item__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.learning-task-card-item__meta {
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .learning-task-list-item {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: flex-start;
    }

    .learning-task-list-item__action {
        grid-column: 2;
        justify-content: flex-start;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .learning-task-list-item {
        grid-template-columns: 1fr;
    }

    .learning-task-list-item__index,
    .learning-task-list-item__action {
        grid-column: auto;
    }

    .learning-task-list-item__action,
    .learning-task-list-item__action .lesson-card__cta {
        width: 100%;
    }
}

.progress-line {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.progress-line__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 100%);
}

.lesson-actions-card {
    align-items: center;
}

.lesson-actions-card__controls {
    display: grid;
    gap: 14px;
    justify-items: end;
}

.lesson-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.lesson-nav__link.is-hidden {
    display: none;
}

.support-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.42), transparent 34%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.support-panel__header,
.mentor-card__head,
.feedback-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.support-panel__header h2,
.support-panel__header h3,
.mentor-card h2,
.mentor-card h3,
.feedback-card p,
.mentor-card p {
    margin: 0;
}

.support-panel__header p,
.mentor-card__head p,
.mentor-card__reply span,
.feedback-card__head span {
    color: var(--text-muted);
}

.support-panel__form,
.support-panel__list,
.feedback-history {
    display: grid;
    gap: 14px;
}

.support-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.mentor-card,
.feedback-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.mentor-card--empty {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.mentor-card__question,
.mentor-card__reply {
    display: grid;
    gap: 8px;
}

.mentor-card__reply {
    padding: 16px;
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.72);
    border: 1px solid rgba(191, 219, 254, 0.8);
}

.mentor-card__reply--pending {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(203, 213, 225, 0.9);
}

.feedback-card {
    gap: 12px;
}

.feedback-card--positive {
    border-color: rgba(167, 243, 208, 0.95);
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.feedback-card__submission {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.question-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.question-status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.question-status-badge--answered {
    background: #dcfce7;
    color: #166534;
}

.question-status-badge--closed {
    background: #e2e8f0;
    color: #475569;
}

.progress-center-page,
.progress-center-stats,
.progress-course-grid,
.achievement-grid,
.roadmap-list,
.progress-timeline {
    display: grid;
    gap: 18px;
}

.progress-center-page {
    gap: 24px;
}

.progress-center-hero,
.progress-center-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
}

.progress-center-hero {
    padding: 28px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(186, 230, 253, 0.44), transparent 28%),
        radial-gradient(circle at bottom left, rgba(220, 252, 231, 0.5), transparent 26%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.progress-center-hero__content,
.progress-center-hero__panel,
.progress-panel,
.progress-course-card,
.achievement-card,
.progress-stat-card,
.roadmap-block,
.progress-timeline__item {
    min-width: 0;
}

.progress-center-hero__content {
    display: grid;
    gap: 10px;
}

.progress-center-hero__content h1,
.progress-center-hero__content p,
.progress-center-hero__panel p,
.roadmap-block p,
.achievement-card p,
.progress-timeline__item p,
.progress-stat-card p,
.progress-course-card p {
    margin: 0;
}

.progress-center-hero__panel,
.progress-panel,
.progress-stat-card,
.progress-course-card,
.achievement-card,
.roadmap-block,
.progress-timeline__item {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.progress-center-hero__panel {
    display: grid;
    gap: 12px;
    align-content: start;
    background: rgba(255, 255, 255, 0.84);
}

.progress-center-hero__value {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 1;
    color: #0f172a;
}

.progress-center-stats,
.achievement-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-stat-card {
    display: grid;
    gap: 10px;
}

.progress-stat-card span,
.progress-timeline__date,
.progress-course-card__meta,
.roadmap-block__head span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-stat-card strong {
    font-size: 2rem;
    line-height: 1.05;
    color: #0f172a;
}

.progress-panel {
    display: grid;
    gap: 18px;
}

.progress-panel__header,
.progress-course-card__head,
.progress-course-card__meta,
.roadmap-block__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.progress-panel__header h2,
.progress-course-card__head h3,
.achievement-card strong,
.progress-timeline__item strong,
.roadmap-block strong {
    margin: 0;
}

.roadmap-block {
    display: grid;
    gap: 12px;
}

.roadmap-block--focus {
    border-color: rgba(191, 219, 254, 0.9);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.5), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

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

.progress-course-card {
    display: grid;
    gap: 12px;
}

.progress-course-card__head strong {
    font-size: 1.4rem;
    color: #0f172a;
}

.progress-course-card__meta {
    align-items: center;
}

.achievement-card {
    display: grid;
    gap: 8px;
}

.achievement-card--blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.achievement-card--mint {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
    border-color: #99f6e4;
}

.achievement-card--amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
}

.achievement-card--violet {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
    border-color: #ddd6fe;
}

.achievement-card--rose {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    border-color: #fecdd3;
}

.achievement-card--muted {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.progress-timeline__item {
    display: grid;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.progress-timeline__item--empty {
    text-decoration: none;
}

.progress-center-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(191, 219, 254, 0.74);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(186, 230, 253, 0.34), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.mentor-page,
.mentor-card-list,
.mentor-feedback-strip {
    display: grid;
    gap: 18px;
}

.mentor-page {
    gap: 24px;
}

.mentor-hero,
.mentor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 18px;
}

.mentor-layout--detail {
    align-items: start;
}

.mentor-hero {
    padding: 28px;
    border: 1px solid rgba(196, 181, 253, 0.74);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(233, 213, 255, 0.38), transparent 30%),
        radial-gradient(circle at bottom left, rgba(191, 219, 254, 0.34), transparent 28%),
        linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mentor-hero__content,
.mentor-hero__panel,
.mentor-review-card {
    min-width: 0;
}

.mentor-hero__content {
    display: grid;
    gap: 10px;
}

.mentor-hero__content h1,
.mentor-hero__content p,
.mentor-review-card p {
    margin: 0;
}

.mentor-hero__panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.mentor-stat-inline {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(221, 214, 254, 0.9);
    background: rgba(255, 255, 255, 0.86);
}

.mentor-stat-inline span,
.mentor-review-card__head p {
    color: var(--text-muted);
}

.mentor-stat-inline strong {
    font-size: 1.7rem;
    line-height: 1;
    color: #0f172a;
}

.mentor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mentor-filter-tabs,
.mentor-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mentor-review-card {
    display: grid;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid rgba(221, 214, 254, 0.72);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(243, 232, 255, 0.46), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}

.mentor-review-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mentor-review-card__head h3,
.mentor-feedback-strip h3 {
    margin: 0;
}

.mentor-review-card__text,
.mentor-review-card__reply p {
    color: #0f172a;
    line-height: 1.7;
}

.mentor-review-card__reply {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.mentor-form-row > * {
    flex: 1 1 220px;
}

.mentor-form-row__check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding-top: 28px;
}

.mentor-form-row__check input {
    width: 18px;
    height: 18px;
}

.learning-empty-card {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.learning-empty-card--hero {
    justify-items: center;
    text-align: center;
    padding: 34px 28px;
    background:
        radial-gradient(circle at top center, rgba(191, 219, 254, 0.28), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.learning-empty-card h2,
.learning-empty-card h3 {
    margin: 0;
}

.course-card:hover,
.lesson-card:hover,
.lesson-content-card:hover,
.lesson-task-card:hover,
.lesson-video-card:hover,
.lesson-actions-card:hover,
.learning-empty-card:hover {
    border-color: rgba(29, 78, 216, 0.24);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

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

    .mentor-stats-grid,
    .tasks-stats-grid,
    .task-cards-grid--polished,
    .task-card__details,
    .task-detail-status-panel__facts,
    .task-detail-layout {
        grid-template-columns: 1fr;
    }

    .progress-center-stats,
    .achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-center-hero,
    .progress-center-grid,
    .progress-course-grid,
    .mentor-hero,
    .mentor-layout,
    .lesson-layout {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        position: static;
    }

    .lesson-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .lesson-card__aside {
        grid-column: 2;
        justify-items: start;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .tasks-hero,
    .tasks-toolbar,
    .task-card__head,
    .task-card__footer,
    .task-detail-card__header,
    .task-detail-submission__meta {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .learning-hero,
    .learning-section-header--split,
    .lesson-actions-card,
    .progress-center-teaser,
    .mentor-review-card__head {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .learning-hero {
        padding: 28px;
    }

    .lesson-list--timeline::before {
        left: 24px;
    }
}

@media (max-width: 640px) {
    .learning-page {
        gap: 18px;
    }

    .progress-center-page,
    .tasks-page {
        gap: 18px;
    }

    .progress-center-hero,
    .progress-panel,
    .progress-course-card,
    .progress-stat-card,
    .achievement-card,
    .learning-hero,
    .learning-overview-card,
    .course-card,
    .lesson-card,
    .lesson-content-card,
    .lesson-task-card,
    .lesson-video-card,
    .lesson-actions-card,
    .learning-empty-card,
    .tasks-hero,
    .tasks-stat-card,
    .task-card--polished,
    .task-detail-card {
        padding: 18px;
    }

    .learning-hero__title {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
    }

    .learning-overview-grid,
    .mentor-stats-grid,
    .progress-center-stats,
    .achievement-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card__stats {
        grid-template-columns: 1fr;
    }

    .tasks-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .lesson-list--timeline {
        padding-left: 0;
    }

    .lesson-list--timeline::before {
        display: none;
    }

    .lesson-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    .lesson-card__aside,
    .lesson-actions-card__controls,
    .lesson-nav {
        justify-items: stretch;
        justify-content: stretch;
    }

    .support-panel__actions {
        justify-content: stretch;
    }

    .learning-index-actions,
    .learning-filter-pills {
        justify-content: stretch;
    }

    .lesson-task-card__header,
    .lesson-task-card__item-head,
    .course-progress-card__header,
    .next-lesson-card,
    .lesson-content-card__header,
    .lesson-video-card__header,
    .lesson-actions-card,
    .support-panel__header,
    .mentor-card__head,
    .feedback-card__head,
    .progress-panel__header,
    .progress-course-card__head,
    .progress-course-card__meta,
    .roadmap-block__head,
    .progress-center-teaser,
    .mentor-review-card__head,
    .mentor-form-row {
        flex-direction: column;
    }

    .lesson-content-card__meta {
        justify-items: start;
    }

    .lesson-content-card__body {
        font-size: 0.98rem;
        line-height: 1.78;
    }

    .media-preview-block__canvas,
    .media-preview-block__placeholder,
    .media-preview-block__infographic {
        grid-template-columns: 1fr;
    }

    .media-preview-block__canvas span:nth-child(1),
    .media-preview-block__canvas span:nth-child(2),
    .media-preview-block__canvas span:nth-child(3) {
        grid-area: auto;
        min-height: 72px;
    }

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

    .lesson-structured-block__media span {
        min-height: 72px;
    }

    .lesson-actions-card form,
    .lesson-actions-card button,
    .lesson-task-form__actions,
    .lesson-task-form button,
    .support-panel__actions .btn,
    .support-panel__actions button,
    .learning-index-actions__link,
    .tasks-filter-tab,
    .task-card__cta,
    .task-detail-form__actions,
    .task-detail-form button,
    .course-card__cta,
    .lesson-card__cta,
    .lesson-video-card__link,
    .lesson-nav__link {
        width: 100%;
    }
}

.dashboard-stats-grid > *:nth-child(1),
.course-grid > *:nth-child(1),
.lesson-list > *:nth-child(1),
.task-cards-grid > *:nth-child(1) { animation-delay: 0.04s; }
.dashboard-stats-grid > *:nth-child(2),
.course-grid > *:nth-child(2),
.lesson-list > *:nth-child(2),
.task-cards-grid > *:nth-child(2) { animation-delay: 0.08s; }
.dashboard-stats-grid > *:nth-child(3),
.course-grid > *:nth-child(3),
.lesson-list > *:nth-child(3),
.task-cards-grid > *:nth-child(3) { animation-delay: 0.12s; }
.dashboard-stats-grid > *:nth-child(4),
.course-grid > *:nth-child(4),
.lesson-list > *:nth-child(4),
.task-cards-grid > *:nth-child(4) { animation-delay: 0.16s; }
.dashboard-stats-grid > *:nth-child(5),
.course-grid > *:nth-child(5),
.lesson-list > *:nth-child(5),
.task-cards-grid > *:nth-child(5) { animation-delay: 0.2s; }
.dashboard-stats-grid > *:nth-child(6),
.course-grid > *:nth-child(6),
.lesson-list > *:nth-child(6),
.task-cards-grid > *:nth-child(6) { animation-delay: 0.24s; }
.dashboard-stats-grid > *:nth-child(7),
.course-grid > *:nth-child(7),
.lesson-list > *:nth-child(7),
.task-cards-grid > *:nth-child(7) { animation-delay: 0.28s; }
.dashboard-stats-grid > *:nth-child(8),
.course-grid > *:nth-child(8),
.lesson-list > *:nth-child(8),
.task-cards-grid > *:nth-child(8) { animation-delay: 0.32s; }

.is-copied {
    animation: copy-pop 0.28s ease;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -20% 0; }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes progress-reveal {
    from {
        transform: scaleX(0);
        opacity: 0.75;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes copy-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Global Product Polish */
:root {
    --font-ui: "Segoe UI", "Manrope", "Trebuchet MS", Arial, sans-serif;
    --radius-card: 24px;
    --radius-control: 16px;
    --shadow-card: 0 18px 44px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 24px 56px rgba(15, 23, 42, 0.12);
    --border-soft: rgba(203, 213, 225, 0.86);
    --surface-elevated: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    --surface-calm: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    --focus-ring: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

html {
    scroll-padding-top: 16px;
}

body {
    font-family: var(--font-ui);
    font-size: 16px;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.38), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.content {
    padding: 28px;
}

.content__inner {
    display: grid;
    gap: 24px;
}

.panel,
.card,
.dashboard-card,
.task-detail-card,
.tasks-stat-card,
.task-card,
.course-card,
.lesson-card,
.lesson-content-card,
.lesson-task-card,
.lesson-video-card,
.lesson-actions-card,
.learning-overview-card,
.course-progress-card,
.progress-panel,
.progress-stat-card,
.progress-course-card,
.achievement-card,
.roadmap-block,
.progress-timeline__item,
.mentor-review-card,
.mentor-card,
.feedback-card,
.bonus-summary-card,
.bonus-progress-card,
.bonus-stage-card,
.bonus-history-card,
.bonus-withdrawal-card,
.withdrawal-card,
.card-order-card,
.card-order-status-card,
.info-item,
.link-row,
.insight-card,
.empty-state,
.learning-empty-card {
    border-radius: var(--radius-card);
    border-color: var(--border-soft);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-card);
}

.panel,
.card {
    padding: 24px;
}

.panel:hover,
.card:hover,
.dashboard-card:hover,
.task-card:hover,
.course-card:hover,
.lesson-card:hover,
.lesson-content-card:hover,
.lesson-task-card:hover,
.lesson-video-card:hover,
.lesson-actions-card:hover,
.learning-overview-card:hover,
.progress-panel:hover,
.progress-course-card:hover,
.mentor-review-card:hover,
.mentor-card:hover,
.feedback-card:hover,
.bonus-summary-card:hover,
.bonus-progress-card:hover,
.bonus-stage-card:hover,
.bonus-history-card:hover,
.bonus-withdrawal-card:hover,
.withdrawal-card:hover,
.card-order-card:hover,
.card-order-status-card:hover,
.info-item:hover,
.link-row:hover,
.insight-card:hover,
.empty-state:hover,
.learning-empty-card:hover {
    box-shadow: var(--shadow-card-hover);
}

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

h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.02;
}

h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.12;
}

h3 {
    font-size: clamp(1.08rem, 1.4vw, 1.28rem);
    line-height: 1.24;
}

p,
li,
td,
th,
label,
.muted {
    line-height: 1.65;
}

.page-header,
.learning-section-header,
.bonus-section__header,
.task-detail-card__header,
.progress-panel__header,
.support-panel__header,
.mentor-review-card__head,
.feedback-card__head,
.mentor-card__head,
.tree-panel-header {
    gap: 12px;
}

.breadcrumbs {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.breadcrumbs span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

input,
select,
textarea {
    border-radius: var(--radius-control);
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(96, 165, 250, 0.38);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(59, 130, 246, 0.72);
    background: #ffffff;
}

.btn,
button,
.bonus-link-button,
.course-card__cta,
.lesson-card__cta,
.card-status-card__cta,
.lesson-video-card__link {
    min-height: 50px;
    border-radius: 14px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: #0f172a;
    border: 1px solid rgba(191, 219, 254, 0.86);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #e2ecf8 100%);
}

.badge,
.lesson-status-badge,
.card-status-card__badge,
.hero-card__badge,
.question-status-badge,
.task-status-badge,
.task-type-badge,
.task-points-badge,
.progress-pill,
.learning-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.progress-line,
.progress-bar,
.progress-bar--light,
.table-wrap {
    border-radius: 18px;
}

.progress-line,
.progress-bar {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.92) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.progress-line__fill,
.progress-fill {
    background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 52%, #22c55e 100%);
}

.support-panel,
.progress-center-hero,
.mentor-hero,
.tasks-hero,
.learning-hero,
.progress-center-teaser {
    border-radius: 30px;
}

.support-panel,
.progress-panel,
.mentor-review-card,
.task-detail-card,
.tasks-stat-card,
.learning-overview-card,
.progress-stat-card,
.bonus-summary-card,
.bonus-progress-card,
.bonus-stage-card,
.card-order-card,
.card-order-status-card {
    overflow: hidden;
}

.empty-state,
.learning-empty-card {
    justify-items: start;
    padding: 26px;
}

.empty-state__icon {
    width: 60px;
    height: 60px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.96);
}

.data-table,
.bonus-table {
    min-width: 720px;
}

.referrals-page,
.referrals-hero,
.referrals-mobile-list {
    display: grid;
    gap: 1rem;
}

.referrals-hero {
    align-items: start;
}

.referrals-hero {
    grid-template-areas:
        "copy visual"
        "link visual";
}

.referrals-hero__copy {
    grid-area: copy;
}

.referrals-hero .ecosystem-hero__visual {
    grid-area: visual;
}

.referrals-hero .dashboard-hero-visual {
    align-self: stretch;
    min-height: 260px;
    padding: 6px;
}

.referrals-hero .dashboard-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.referrals-hero__copy,
.referrals-link-card,
.task-card__heading,
.task-card__detail,
.task-card__footer,
.tasks-hero__content,
.tasks-hero__note,
.tasks-toolbar__copy {
    min-width: 0;
}

.referrals-link-card {
    grid-area: link;
    align-self: start;
    margin-top: 0;
    transform: translateY(-8px);
}

.referrals-link-value {
    max-width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.88);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.referrals-copy-button {
    flex: 0 0 auto;
}

.referrals-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.referrals-table {
    width: 100%;
}

.referrals-table th,
.referrals-table td {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.referrals-mobile-list {
    display: none;
}

.referrals-mobile-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.referrals-mobile-card__head,
.referrals-mobile-card__meta {
    display: grid;
    gap: 0.75rem;
}

.referrals-mobile-card__head {
    grid-template-columns: minmax(0, 1fr);
}

.referrals-mobile-card__meta div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
}

.referrals-mobile-card__meta span,
.referrals-mobile-card__meta strong {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.data-table th,
.data-table td,
.bonus-table th,
.bonus-table td {
    padding: 15px 16px;
}

.data-table thead th,
.bonus-table thead th {
    backdrop-filter: blur(12px);
}

.task-detail-page,
.tasks-page,
.learning-page,
.mentor-page,
.progress-center-page,
.bonus-page,
.card-order-panel {
    gap: 24px;
}

.bonus-section {
    display: grid;
    gap: 16px;
}

.bonus-section__header h2,
.bonus-section__header p {
    margin: 0;
}

.bonus-summary-card,
.bonus-progress-card,
.bonus-stage-card,
.bonus-history-card,
.bonus-withdrawal-card,
.withdrawal-card,
.card-order-card,
.card-order-status-card {
    background: var(--surface-calm);
    border-radius: 22px;
}

.bonus-summary-card .value,
.bonus-progress-card .value {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1;
}

.bonus-requirements li {
    border-radius: 14px;
}

.bonus-reward {
    border-top-color: rgba(191, 219, 254, 0.72);
}

.task-card__footer,
.progress-course-card__meta,
.support-panel__actions,
.lesson-task-form__actions,
.task-detail-form__actions,
.lesson-nav {
    align-items: center;
}

.mentor-review-card__reply,
.mentor-card__reply,
.bonus-withdrawal-comment,
.task-detail-submission__block {
    border-radius: 18px;
}

.task-detail-submission__block {
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.86);
}

.learning-filter-pill,
.tasks-filter-tab {
    min-height: 42px;
    font-weight: 700;
}

.learning-filter-pill--active,
.tasks-filter-tab--active {
    box-shadow: var(--focus-ring);
}

.sidebar__nav a,
.mobile-menu__nav a {
    border-radius: 16px;
}

.sidebar-profile__avatar {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 12px 28px rgba(15, 23, 42, 0.16);
}

.dashboard-action-link,
.dashboard-attention-item,
.dashboard-activity-item,
.next-lesson-card,
.progress-timeline__item,
.mentor-review-card,
.course-card,
.lesson-card,
.task-card {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .content {
        padding: 20px;
    }

    .panel,
    .card {
        padding: 20px;
    }

    .page-header--split,
    .task-card__footer,
    .bonus-header,
    .progress-center-teaser,
    .task-detail-card__header,
    .support-panel__header,
    .mentor-card__head,
    .feedback-card__head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .support-panel__actions,
    .lesson-nav,
    .task-detail-form__actions {
        justify-content: stretch;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .content {
        padding: 14px;
    }

    .content__inner,
    .task-detail-page,
    .tasks-page,
    .learning-page,
    .mentor-page,
    .progress-center-page,
    .bonus-page,
    .card-order-panel {
        gap: 18px;
    }

    .panel,
    .card,
    .dashboard-card,
    .task-detail-card,
    .tasks-stat-card,
    .task-card,
    .course-card,
    .lesson-card,
    .lesson-content-card,
    .lesson-task-card,
    .lesson-video-card,
    .lesson-actions-card,
    .learning-overview-card,
    .progress-panel,
    .progress-course-card,
    .progress-stat-card,
    .achievement-card,
    .roadmap-block,
    .mentor-review-card,
    .mentor-card,
    .feedback-card,
    .bonus-summary-card,
    .bonus-progress-card,
    .bonus-stage-card,
    .bonus-history-card,
    .bonus-withdrawal-card,
    .withdrawal-card,
    .card-order-card,
    .card-order-status-card,
    .info-item,
    .link-row,
    .insight-card,
    .empty-state,
    .learning-empty-card,
    .support-panel,
    .learning-hero,
    .tasks-hero,
    .mentor-hero,
    .progress-center-hero,
    .progress-center-teaser {
        padding: 18px;
        border-radius: 20px;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.3rem, 5vw, 1.55rem);
    }

    .data-table,
    .bonus-table {
        min-width: 640px;
    }

    .btn,
    button,
    .bonus-link-button,
    .course-card__cta,
    .lesson-card__cta,
    .card-status-card__cta,
    .lesson-video-card__link,
    .btn-secondary {
        width: 100%;
    }

    .tasks-filter-tabs,
    .learning-filter-pills,
    .mentor-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* Public Landing 2.0 */
.public-shell {
    min-height: 100vh;
    padding: 24px 16px 40px;
}

.public-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.public-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 28%),
        radial-gradient(circle at bottom right, rgba(220, 252, 231, 0.44), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.public-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.public-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-dark);
    min-width: 0;
}

.public-header__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.22);
}

.public-header__brand-copy {
    display: grid;
    gap: 2px;
}

.public-header__brand-copy strong {
    font-size: 1rem;
    line-height: 1.15;
}

.public-header__brand-copy span {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.public-header__nav,
.public-header__actions,
.public-actions,
.public-footer__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.public-header__nav {
    justify-content: center;
}

.public-header__nav a,
.public-menu__panel a,
.public-footer__links a {
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.public-header__nav a,
.public-menu__panel a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.public-header__nav a:hover,
.public-header__nav a.is-active,
.public-menu__panel a:hover,
.public-menu__panel a.is-active {
    background: rgba(219, 234, 254, 0.68);
    color: #1d4ed8;
}

.public-menu {
    display: none;
}

.public-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(191, 219, 254, 0.88);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.public-menu summary::-webkit-details-marker {
    display: none;
}

.public-menu[open] .public-menu__panel {
    margin-top: 14px;
}

.public-menu__panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.public-menu__panel .btn {
    justify-content: center;
}

.public-hero,
.public-page-hero {
    display: grid;
    gap: 24px;
    padding: 40px;
}

.public-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
}

.public-hero::after,
.public-page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.5) 0%, rgba(191, 219, 254, 0) 70%);
    pointer-events: none;
}

.public-hero__content,
.public-hero__panel,
.public-section,
.public-section__head,
.public-stat-card,
.public-step-card,
.public-icon-card,
.public-support-card,
.public-article-card,
.public-flow-item,
.public-faq-preview__item,
.public-cta,
.public-footer {
    position: relative;
    z-index: 1;
}

.public-hero__content,
.public-hero__panel,
.public-section,
.public-section__head,
.public-support-card,
.public-article-card,
.public-cta,
.public-footer {
    display: grid;
    gap: 16px;
}

.public-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.8);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-lead,
.public-section__head p,
.public-article-card p,
.public-support-card p,
.public-cta p,
.public-footer p,
.public-faq-item p,
.public-flow-item p,
.public-faq-preview__item p,
.public-step-card p,
.public-icon-card p,
.public-stat-card p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.public-hero h1,
.public-page-hero h1 {
    max-width: 760px;
    margin-bottom: 0;
}

.public-hero__panel {
    align-content: start;
}

.public-stat-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.public-stat-card span,
.public-step-card span,
.public-flow-item__index {
    color: #1d4ed8;
    font-weight: 800;
}

.public-stat-card strong {
    font-size: 1.1rem;
    line-height: 1.35;
    color: #0f172a;
}

.btn-ghost {
    background: transparent;
    color: #1d4ed8;
    border: 1px solid rgba(147, 197, 253, 0.88);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
}

.public-section {
    padding: 36px;
}

.public-section__head--split,
.public-section--split,
.public-cta,
.public-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.public-journey-grid,
.public-feature-grid,
.public-faq-preview,
.public-faq-list {
    display: grid;
    gap: 16px;
}

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

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

.public-step-card,
.public-icon-card,
.public-faq-preview__item {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.public-step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(219, 234, 254, 0.9);
}

.public-icon-card h3,
.public-step-card h3,
.public-faq-preview__item h3,
.public-flow-item h3,
.public-article-card h2,
.public-support-card h2,
.public-cta h2 {
    margin: 0;
}

.public-support-card,
.public-article-card {
    padding: 28px;
}

.public-support-card--soft,
.public-article-card--tint {
    background:
        radial-gradient(circle at top right, rgba(224, 242, 254, 0.72), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 252, 0.98) 100%);
}

.public-flow-list {
    display: grid;
    gap: 14px;
}

.public-flow-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
}

.public-flow-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(219, 234, 254, 0.92);
}

.public-faq-list {
    gap: 14px;
}

.public-faq-item {
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.public-faq-item summary {
    position: relative;
    list-style: none;
    padding: 20px 56px 20px 22px;
    cursor: pointer;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #1d4ed8;
    font-size: 1.4rem;
    font-weight: 400;
}

.public-faq-item[open] summary::after {
    content: "−";
}

.public-faq-item p {
    padding: 0 22px 22px;
}

.public-cta {
    padding: 32px 36px;
}

.public-footer {
    padding: 0 6px;
}

.public-footer p {
    max-width: 520px;
}

.public-footer__links {
    justify-content: flex-end;
}

.public-footer__links a:hover {
    color: #1d4ed8;
}

@media (max-width: 1080px) {
    .public-hero,
    .public-section--split,
    .public-cta,
    .public-footer,
    .public-section__head--split {
        grid-template-columns: 1fr;
    }

    .public-journey-grid,
    .public-feature-grid,
    .public-faq-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-header {
        grid-template-columns: auto 1fr;
    }

    .public-header__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 820px) {
    .public-header {
        grid-template-columns: 1fr auto;
    }

    .public-header__nav,
    .public-header__actions {
        display: none;
    }

    .public-menu {
        display: block;
    }
}

@media (max-width: 640px) {
    .public-shell {
        padding: 14px 12px 28px;
    }

    .public-header,
    .public-hero,
    .public-page-hero,
    .public-section,
    .public-support-card,
    .public-article-card,
    .public-cta {
        padding: 20px;
        border-radius: 22px;
    }

    .public-page {
        gap: 18px;
    }

    .public-journey-grid,
    .public-feature-grid,
    .public-faq-preview {
        grid-template-columns: 1fr;
    }

    .public-actions,
    .public-footer__links {
        align-items: stretch;
    }

    .public-actions .btn,
    .public-footer__links a,
    .public-menu__panel .btn {
        width: 100%;
        justify-content: center;
    }

    .public-header__brand {
        align-items: flex-start;
    }

    .public-header__brand-copy span {
        max-width: 220px;
    }

    .public-flow-item {
        grid-template-columns: 1fr;
    }

    .public-flow-item__index {
        width: 36px;
        height: 36px;
    }
}

/* Public Identity Upgrade */
.public-page {
    max-width: 1380px;
    gap: 24px;
}

.public-shell {
    padding-top: 28px;
}

.public-header {
    padding: 20px 26px;
}

.public-surface {
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.98) 100%);
}

.public-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 26%),
        radial-gradient(circle at bottom right, rgba(220, 252, 231, 0.44), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(191, 219, 254, 0.08) 100%);
    pointer-events: none;
}

.public-hero,
.public-page-hero,
.public-section,
.public-footer {
    isolation: isolate;
}

.public-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    align-items: center;
    min-height: 620px;
    padding: 50px;
}

.public-page-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    align-items: center;
    padding: 44px 46px;
}

.public-hero h1,
.public-page-hero h1 {
    font-size: clamp(2.85rem, 6vw, 5.1rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.public-lead {
    max-width: 720px;
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.public-section h2,
.public-preview-card h2,
.public-support-card h2,
.public-article-card h2,
.public-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.02;
}

.public-section {
    padding: 38px;
}

.public-section + .public-section::before,
.public-section + .public-cta::before,
.public-page-hero + .public-section::before,
.public-hero + .public-section::before,
.public-section--split + .public-section::before,
.public-section + .public-section--split::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 40px;
    top: -10px;
    height: 34px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.55) 0%, rgba(241, 245, 249, 0) 100%);
    pointer-events: none;
}

.public-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
    max-width: 860px;
}

.public-mini-metric {
    display: grid;
    gap: 6px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(203, 213, 225, 0.62);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.public-mini-metric strong {
    color: #0f172a;
    font-size: 1rem;
}

.public-mini-metric span {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.public-hero__panel {
    gap: 18px;
    align-content: center;
}

.public-illustration {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(191, 219, 254, 0.86);
    border-radius: 32px;
    background:
        radial-gradient(circle at 20% 22%, rgba(219, 234, 254, 0.95), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(220, 252, 231, 0.72), transparent 22%),
        linear-gradient(160deg, #eff6ff 0%, #ffffff 52%, #f0fdfa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.public-illustration__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
}

.public-illustration__orb--one {
    left: 42px;
    top: 42px;
    width: 88px;
    height: 88px;
    background: rgba(125, 211, 252, 0.34);
}

.public-illustration__orb--two {
    right: 54px;
    bottom: 70px;
    width: 120px;
    height: 120px;
    background: rgba(167, 243, 208, 0.28);
}

.public-illustration__screen {
    position: absolute;
    inset: 62px 52px 86px;
    padding: 18px;
    border: 1px solid rgba(191, 219, 254, 0.84);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.public-illustration__screen-top {
    height: 16px;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.9) 0%, rgba(203, 213, 225, 0.46) 100%);
}

.public-illustration__screen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.public-illustration__screen-grid span {
    display: block;
    min-height: 104px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid rgba(203, 213, 225, 0.7);
}

.public-illustration__card {
    position: absolute;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.public-illustration__card strong {
    font-size: 0.98rem;
}

.public-illustration__card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
}

.public-illustration__card--left {
    left: 28px;
    bottom: 24px;
}

.public-illustration__card--right {
    right: 28px;
    top: 28px;
}

.public-stat-card--overlay {
    background: rgba(255, 255, 255, 0.92);
}

.public-section--split-wide {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.public-preview-card {
    display: grid;
    gap: 18px;
    padding: 30px;
    min-height: 100%;
}

.public-preview-card--soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 249, 252, 0.98) 100%);
}

.public-dashboard-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-dashboard-preview__card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.72);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.public-dashboard-preview__card--wide {
    grid-column: 1 / -1;
}

.public-dashboard-preview__card span {
    color: #64748b;
    font-size: 0.9rem;
}

.public-dashboard-preview__card strong {
    color: #0f172a;
    font-size: 1.12rem;
}

.public-dashboard-preview__bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.public-dashboard-preview__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
}

.public-visual-stack {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 260px;
}

.public-visual-stack__item {
    min-height: 96px;
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, 0.64);
    background: rgba(255, 255, 255, 0.76);
}

.public-visual-stack__item--accent {
    min-height: 128px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9) 0%, rgba(240, 253, 250, 0.9) 100%);
}

.public-visual-stack__item--line {
    min-height: 18px;
    border-radius: 999px;
}

.public-onboarding-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    padding: 18px 6px 4px;
}

.public-onboarding-visual__track {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 35px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.8) 0%, rgba(167, 243, 208, 0.8) 100%);
}

.public-onboarding-visual__point {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    background: linear-gradient(180deg, #60a5fa 0%, #34d399 100%);
    box-shadow: 0 0 0 8px rgba(191, 219, 254, 0.26);
}

.public-page-hero__visual,
.public-concept-grid,
.public-pillars,
.public-route-map {
    position: relative;
    z-index: 1;
}

.public-page-hero__visual {
    display: grid;
    gap: 14px;
    min-height: 220px;
    align-content: center;
}

.public-page-hero__visual-card,
.public-page-hero__visual-chip,
.public-page-hero__faq-bubble,
.public-concept-grid__item,
.public-pillars__item,
.public-route-map__node {
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.public-page-hero__visual-card {
    min-height: 110px;
    border-radius: 24px;
}

.public-page-hero__visual-card--accent {
    min-height: 140px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92) 0%, rgba(240, 253, 250, 0.92) 100%);
}

.public-page-hero__visual-line {
    width: 72%;
    height: 18px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.72);
}

.public-page-hero__visual--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.public-page-hero__visual-chip {
    min-height: 72px;
    border-radius: 20px;
}

.public-page-hero__visual--faq {
    position: relative;
    align-content: center;
    justify-items: end;
}

.public-page-hero__faq-bubble {
    width: 78%;
    min-height: 88px;
    border-radius: 24px 24px 12px 24px;
}

.public-page-hero__faq-bubble--large {
    width: 92%;
    min-height: 116px;
    border-radius: 24px 24px 24px 12px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92) 0%, rgba(255, 255, 255, 0.95) 100%);
}

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

.public-concept-grid__item {
    min-height: 128px;
    border-radius: 24px;
}

.public-concept-grid__item--tall {
    min-height: 164px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.88) 0%, rgba(255, 255, 255, 0.92) 100%);
}

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

.public-pillars__item {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
}

.public-pillars__item strong {
    color: #1d4ed8;
    font-size: 1.1rem;
}

.public-pillars__item span {
    color: #0f172a;
    font-weight: 700;
}

.public-route-map {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding-top: 20px;
}

.public-route-map__line {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 62px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.85) 0%, rgba(52, 211, 153, 0.85) 100%);
}

.public-route-map__node {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 22px 18px 18px;
    border-radius: 22px;
}

.public-route-map__node::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #60a5fa 0%, #34d399 100%);
    box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.28);
}

.public-route-map__node strong {
    color: #0f172a;
    font-size: 1rem;
}

.public-route-map__node span {
    color: #64748b;
    font-size: 0.9rem;
}

.public-footer {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.58fr) minmax(250px, 0.72fr);
    padding: 32px 34px;
    gap: 24px;
}

.public-footer strong {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.15;
}

.public-footer__intro,
.public-footer__column {
    display: grid;
    gap: 14px;
}

.public-footer__column h3 {
    margin: 0;
    font-size: 1rem;
}

.public-footer__links {
    display: grid;
    gap: 10px;
    justify-content: flex-start;
}

.public-footer__links a {
    line-height: 1.45;
}

.public-footer__actions {
    display: grid;
    gap: 10px;
}

@media (max-width: 1180px) {
    .public-hero,
    .public-page-hero,
    .public-section--split-wide,
    .public-footer {
        grid-template-columns: 1fr;
    }

    .public-hero {
        min-height: auto;
    }

    .public-hero__metrics,
    .public-route-map,
    .public-pillars,
    .public-concept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .public-hero,
    .public-page-hero,
    .public-section,
    .public-preview-card,
    .public-footer {
        padding: 28px;
    }

    .public-hero__metrics,
    .public-dashboard-preview,
    .public-pillars,
    .public-concept-grid,
    .public-route-map {
        grid-template-columns: 1fr;
    }

    .public-illustration {
        min-height: 340px;
    }

    .public-illustration__screen {
        inset: 42px 28px 74px;
    }

    .public-onboarding-visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 24px;
    }

    .public-onboarding-visual__track,
    .public-route-map__line {
        display: none;
    }
}

@media (max-width: 640px) {
    .public-page {
        gap: 18px;
    }

    .public-header,
    .public-hero,
    .public-page-hero,
    .public-section,
    .public-preview-card,
    .public-support-card,
    .public-article-card,
    .public-cta,
    .public-footer {
        padding: 20px;
        border-radius: 24px;
    }

    .public-hero h1,
    .public-page-hero h1 {
        font-size: clamp(2.15rem, 12vw, 3rem);
        line-height: 1;
    }

    .public-lead {
        font-size: 1rem;
    }

    .public-illustration {
        min-height: 280px;
    }

    .public-illustration__screen {
        inset: 32px 18px 64px;
        padding: 14px;
    }

    .public-illustration__screen-grid span {
        min-height: 72px;
    }

    .public-illustration__card {
        padding: 12px 14px;
    }

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

    .public-dashboard-preview__card--wide {
        grid-column: auto;
    }

    .public-page-hero__visual {
        min-height: auto;
    }

    .public-pillars,
    .public-concept-grid,
    .public-route-map {
        grid-template-columns: 1fr;
    }

    .public-footer__actions .btn {
        width: 100%;
    }
}

/* Real Product Media Layer */
.public-product-mockup {
    position: relative;
    min-height: 470px;
    border-radius: 34px;
    border: 1px solid rgba(191, 219, 254, 0.82);
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.88), transparent 24%),
        radial-gradient(circle at bottom right, rgba(220, 252, 231, 0.7), transparent 24%),
        linear-gradient(160deg, #f7fbff 0%, #ffffff 55%, #f0fdfa 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 22px 48px rgba(15, 23, 42, 0.08);
}

.public-product-mockup__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.public-product-mockup__glow--one {
    top: 36px;
    left: 24px;
    width: 130px;
    height: 130px;
    background: rgba(125, 211, 252, 0.32);
}

.public-product-mockup__glow--two {
    right: 34px;
    bottom: 42px;
    width: 160px;
    height: 160px;
    background: rgba(167, 243, 208, 0.26);
}

.public-preview-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.public-preview-frame__top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(248, 250, 252, 0.98);
}

.public-preview-frame__top span,
.public-preview-frame__mobile-top {
    display: inline-block;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.82);
}

.public-preview-frame__top span {
    width: 10px;
    height: 10px;
}

.public-preview-frame__body {
    display: grid;
    min-height: 220px;
}

.public-preview-frame--desktop {
    position: absolute;
    left: 34px;
    right: 82px;
    top: 34px;
}

.public-preview-frame--mobile {
    position: absolute;
    right: 18px;
    bottom: 28px;
    width: 170px;
    border-radius: 30px;
}

.public-preview-frame__mobile-top {
    width: 42%;
    height: 8px;
    margin: 14px auto 4px;
}

.public-preview-frame__body--dashboard {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 260px;
}

.public-preview-sidebar {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px 14px;
    border-right: 1px solid rgba(226, 232, 240, 0.88);
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
}

.public-preview-sidebar span,
.public-preview-header-block,
.public-preview-grid span,
.public-preview-lesson-layout span,
.public-preview-progress-bars span,
.public-preview-profile-lines span,
.public-preview-frame__body--faq span,
.public-onboarding-stack span,
.public-journey-media__block,
.empty-state-media span {
    display: block;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.96) 0%, rgba(226, 232, 240, 0.92) 100%);
}

.public-preview-sidebar span {
    min-height: 30px;
}

.public-preview-sidebar--mini {
    grid-template-rows: repeat(3, 1fr);
}

.public-preview-main {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.public-preview-header-block {
    min-height: 56px;
}

.public-preview-header-block--small {
    min-height: 44px;
}

.public-preview-grid {
    display: grid;
    gap: 12px;
}

.public-preview-grid--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-preview-grid span {
    min-height: 92px;
}

.public-preview-frame__body--mobile {
    gap: 12px;
    padding: 16px 14px 18px;
}

.public-preview-frame__body--mobile span {
    display: block;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(226, 232, 240, 0.88) 100%);
}

.public-preview-showcase {
    position: relative;
    min-height: 300px;
}

.public-preview-frame--compact {
    position: relative;
    inset: auto;
    width: 100%;
}

.public-preview-frame--floating {
    width: 150px;
    right: auto;
    left: auto;
    right: -10px;
    bottom: -8px;
}

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

.public-media-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.public-media-card__copy {
    display: grid;
    gap: 8px;
}

.public-media-card__copy span {
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.public-media-card__copy h3,
.public-footer__column h3 {
    margin: 0;
}

.public-media-card__copy p {
    margin: 0;
    color: #475569;
}

.public-section__head p,
.public-media-card__copy p,
.public-preview-card p,
.public-support-card p,
.public-article-card p,
.public-cta p {
    max-width: 68ch;
}

.public-preview-frame--lesson .public-preview-frame__body,
.public-preview-frame--progress .public-preview-frame__body,
.public-preview-frame--mentor .public-preview-frame__body,
.public-preview-frame--profile .public-preview-frame__body,
.public-preview-frame__body--faq {
    min-height: 220px;
    padding: 16px;
}

.public-preview-frame__body--lesson,
.public-preview-frame__body--progress,
.public-preview-frame__body--mentor,
.public-preview-frame__body--profile,
.public-preview-frame__body--faq {
    gap: 14px;
}

.public-preview-lesson-layout {
    display: grid;
    gap: 12px;
}

.public-preview-lesson-layout span:nth-child(1) {
    min-height: 100px;
}

.public-preview-lesson-layout span:nth-child(2),
.public-preview-lesson-layout span:nth-child(3) {
    min-height: 56px;
}

.public-preview-frame--progress {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 252, 0.98) 100%);
}

.public-preview-frame__body--progress {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
}

.public-preview-progress-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #ffffff 63%, transparent 64% 100%),
        conic-gradient(#60a5fa 0 68%, rgba(226, 232, 240, 0.95) 68% 100%);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.64);
}

.public-preview-progress-bars {
    display: grid;
    gap: 12px;
}

.public-preview-progress-bars span {
    min-height: 18px;
    border-radius: 999px;
}

.public-preview-chat-bubble {
    min-height: 58px;
    width: 78%;
    border-radius: 22px 22px 12px 22px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.96) 0%, rgba(226, 232, 240, 0.94) 100%);
}

.public-preview-chat-bubble--mentor {
    width: 62%;
    margin-left: auto;
    border-radius: 22px 22px 22px 12px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.94) 0%, rgba(224, 242, 254, 0.92) 100%);
}

.public-preview-chat-bubble--small {
    width: 52%;
}

.public-preview-frame__body--profile {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
}

.public-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.96) 0%, rgba(240, 253, 250, 0.94) 100%);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.82);
}

.public-preview-profile-lines {
    display: grid;
    gap: 10px;
}

.public-preview-profile-lines span:nth-child(1) {
    min-height: 22px;
}

.public-preview-profile-lines span:nth-child(2),
.public-preview-profile-lines span:nth-child(3) {
    min-height: 16px;
}

.public-preview-frame__body--faq span:nth-child(1) {
    min-height: 54px;
}

.public-preview-frame__body--faq span:nth-child(2) {
    min-height: 72px;
}

.public-preview-frame__body--faq span:nth-child(3) {
    min-height: 42px;
}

.public-journey-media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
}

.public-journey-media__block {
    min-height: 140px;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 28px;
}

.public-journey-media__block--accent {
    min-height: 180px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92) 0%, rgba(240, 253, 250, 0.94) 100%);
}

.public-journey-media__track {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 90px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.74) 0%, rgba(52, 211, 153, 0.74) 100%);
}

.public-onboarding-stack {
    display: grid;
    gap: 12px;
}

.public-onboarding-stack span:nth-child(1) {
    min-height: 64px;
}

.public-onboarding-stack span:nth-child(2) {
    min-height: 94px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.94) 0%, rgba(240, 249, 255, 0.92) 100%);
}

.public-onboarding-stack span:nth-child(3) {
    min-height: 48px;
}

.empty-state-media {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin-top: 6px;
}

.empty-state-media span {
    min-height: 44px;
    border: 1px solid rgba(203, 213, 225, 0.72);
}

.empty-state-media--learning span:nth-child(1),
.empty-state-media--progress span:nth-child(2) {
    min-height: 86px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92) 0%, rgba(240, 253, 250, 0.92) 100%);
}

.empty-state-media--mentor span:nth-child(2),
.empty-state-media--feedback span:nth-child(1) {
    min-height: 72px;
}

.empty-state-media--tasks span:nth-child(3),
.empty-state-media--progress span:nth-child(3) {
    min-height: 18px;
    border-radius: 999px;
}

.mentor-card--empty,
.learning-empty-card,
.empty-state,
.achievement-card--muted,
.progress-timeline__item--empty {
    align-items: start;
}

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

@media (max-width: 900px) {
    .public-product-mockup {
        min-height: 420px;
    }

    .public-preview-frame--desktop {
        left: 22px;
        right: 70px;
        top: 28px;
    }

    .public-preview-frame__body--dashboard {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .public-preview-frame--floating {
        left: auto;
        right: 0;
        bottom: -6px;
    }

    .public-preview-frame__body--progress,
    .public-preview-frame__body--profile {
        grid-template-columns: 1fr;
    }

    .public-journey-media {
        grid-template-columns: 1fr;
    }

    .public-journey-media__track {
        display: none;
    }
}

@media (max-width: 640px) {
    .public-product-mockup {
        min-height: 320px;
        border-radius: 26px;
    }

    .public-preview-frame--desktop {
        left: 14px;
        right: 48px;
        top: 16px;
    }

    .public-preview-frame--mobile {
        width: 118px;
        right: 8px;
        bottom: 12px;
    }

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

    .public-preview-sidebar {
        display: none;
    }

    .public-preview-grid--dashboard,
    .public-media-grid {
        grid-template-columns: 1fr;
    }

    .public-preview-grid span {
        min-height: 64px;
    }

    .public-media-card {
        padding: 18px;
        border-radius: 24px;
    }

    .public-preview-showcase {
        min-height: 208px;
    }

    .public-preview-frame--floating {
        width: 104px;
        right: -4px;
        bottom: -2px;
    }

    .public-preview-frame--lesson .public-preview-frame__body,
    .public-preview-frame--progress .public-preview-frame__body,
    .public-preview-frame--mentor .public-preview-frame__body,
    .public-preview-frame--profile .public-preview-frame__body,
    .public-preview-frame__body--faq {
        min-height: 170px;
        padding: 14px;
    }

    .empty-state-media {
        max-width: 100%;
    }
}
.content-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(72, 97, 84, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(244, 248, 244, 0.96), rgba(235, 243, 238, 0.98));
}

.content-topbar__intro {
    display: grid;
    gap: 0.2rem;
}

.content-topbar__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c7f73;
}

.notification-menu {
    position: relative;
}

.notification-bell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(72, 97, 84, 0.12);
    cursor: pointer;
    list-style: none;
}

.notification-bell::marker,
.notification-menu summary::marker {
    display: none;
    content: "";
}

.notification-bell__icon {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5ef;
    color: #4d6a57;
}

.notification-bell__label {
    color: #284235;
    font-weight: 600;
}

.notification-bell__count {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dbeee1;
    color: #2e5a40;
    font-size: 0.82rem;
    font-weight: 700;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: min(28rem, 92vw);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(72, 97, 84, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(43, 63, 50, 0.15);
    z-index: 30;
}

.notification-dropdown__header,
.notification-card__head,
.notifications-hero,
.activity-group__date,
.notification-preview {
    display: flex;
}

.notification-dropdown__header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.notification-dropdown__header span,
.notification-preview span,
.notification-card p,
.activity-group__date,
.notification-card time {
    color: #617266;
}

.notification-dropdown__list,
.notifications-timeline,
.activity-group__items,
.dashboard-calm-grid {
    display: grid;
    gap: 0.75rem;
}

.onboarding-grid,
.onboarding-guidance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.95fr);
    gap: 1rem;
}

.onboarding-welcome-card,
.onboarding-progress-card,
.onboarding-checklist-card,
.onboarding-hints-card,
.onboarding-checklist,
.onboarding-hints {
    display: grid;
    gap: 0.9rem;
}

.onboarding-welcome-card {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    padding: 1.35rem;
    background: linear-gradient(135deg, rgba(245, 249, 246, 0.98), rgba(234, 242, 237, 0.98));
}

.onboarding-welcome-card__content h3,
.onboarding-progress-card h3,
.onboarding-checklist__body p,
.onboarding-hint p {
    margin: 0;
}

.onboarding-welcome-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.onboarding-soft-note {
    color: #647468;
    font-size: 0.92rem;
}

.onboarding-welcome-card__media {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 5rem;
}

.onboarding-welcome-card__media span {
    width: 0.95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #dbeadf, #bcd6c4);
}

.onboarding-welcome-card__media span:nth-child(1) { height: 2.4rem; }
.onboarding-welcome-card__media span:nth-child(2) { height: 3.2rem; }
.onboarding-welcome-card__media span:nth-child(3) { height: 2.7rem; }

.onboarding-progress-card {
    padding: 1.25rem;
}

.onboarding-progress-card__value {
    display: grid;
    gap: 0.2rem;
}

.onboarding-progress-card__value strong {
    font-size: 1.4rem;
    color: #284235;
}

.onboarding-checklist {
    gap: 0.75rem;
}

.onboarding-checklist__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    background: #fafcfb;
    border: 1px solid rgba(80, 101, 89, 0.1);
}

.onboarding-checklist__item.is-complete {
    background: linear-gradient(135deg, #f3f8f4, #ecf4ef);
}

.onboarding-checklist__mark {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5efe8;
    color: #365744;
    font-weight: 700;
}

.onboarding-checklist__body {
    display: grid;
    gap: 0.25rem;
}

.onboarding-checklist__cta {
    color: #617266;
    font-size: 0.86rem;
    font-weight: 600;
}

.onboarding-hints {
    gap: 0.75rem;
}

.onboarding-hint {
    padding: 1rem;
    border-radius: 18px;
    background: #f9fbfa;
    border: 1px solid rgba(80, 101, 89, 0.1);
}

.onboarding-hint--soft {
    background: linear-gradient(135deg, #f4f8f5, #edf5f0);
}

.notification-preview,
.notification-card {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    background: #f8fbf9;
    border: 1px solid rgba(72, 97, 84, 0.1);
}

.notification-preview.is-unread,
.notification-card.is-unread {
    background: linear-gradient(135deg, #f6fbf7, #eef7f1);
    border-color: rgba(88, 130, 103, 0.22);
}

.notification-preview--empty {
    cursor: default;
}

.notification-preview__badge {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
}

.notification-preview__badge--blue {
    background: #e6f0fb;
    color: #385d86;
}

.notification-preview__badge--mint {
    background: #e4f4ec;
    color: #386750;
}

.notification-preview__badge--amber {
    background: #f8efdd;
    color: #8a6630;
}

.notification-preview__badge--rose {
    background: #f9e9ea;
    color: #8a4650;
}

.notifications-hero {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notifications-hero__aside {
    display: grid;
    gap: 0.8rem;
    width: min(18rem, 100%);
}

.activity-group {
    display: grid;
    gap: 0.7rem;
}

.activity-group__date {
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-group__date::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(72, 97, 84, 0.14);
}

.dashboard-activity-item--highlight {
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, #f7faf7, #edf5ef);
}

.calm-card {
    padding: 1.2rem;
}

.calm-card h3 {
    margin: 0;
    color: #284235;
}

.notification-empty-state {
    padding: 1.4rem;
}

.empty-state-media--notifications span {
    background: linear-gradient(180deg, #dfeee5, #bdd9c6);
}

.structure-page {
    display: grid;
    gap: 1.25rem;
}

.structure-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.9fr);
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 28px;
    border: 1px solid rgba(88, 113, 98, 0.12);
    background: linear-gradient(135deg, rgba(244, 248, 244, 0.98), rgba(233, 242, 237, 0.96));
}

.structure-hero__content,
.structure-lead-card,
.structure-summary-grid,
.structure-summary-card,
.structure-badges,
.structure-branch-grid,
.structure-branch-card__body,
.structure-branch-card__meta,
.structure-node-card,
.structure-node-card__identity,
.structure-node-card__badges,
.structure-node-card__meta,
.structure-node-card__foot,
.structure-progress__meta,
.structure-empty-state__media {
    display: grid;
    gap: 0.7rem;
}

.structure-hero__content h1,
.structure-hero__content p,
.structure-summary-card strong,
.structure-node-card__identity strong,
.structure-branch-card__summary strong {
    margin: 0;
}

.structure-lead-card {
    align-content: start;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(88, 113, 98, 0.12);
}

.structure-lead-card__avatar,
.structure-node-card__avatar {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dbe9df, #bdd6c6);
    color: #305342;
    font-weight: 700;
}

.structure-lead-card__avatar img,
.structure-node-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.structure-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.structure-badge--role {
    background: #e8f0fb;
    color: #405f84;
}

.structure-badge--status,
.structure-badge--active {
    background: #e8f4ec;
    color: #3f6b50;
}

.structure-badge--inactive {
    background: #f3f0ea;
    color: #7a6f60;
}

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

.structure-summary-card,
.structure-branch-card {
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(88, 113, 98, 0.1);
    background: #fbfcfb;
}

.structure-summary-card span,
.structure-branch-card__meta span,
.structure-node-card__identity span,
.structure-node-card__meta span,
.structure-node-card__foot span,
.structure-node-empty span {
    color: #66786d;
}

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

.structure-branch-card[open] {
    background: linear-gradient(135deg, #fbfdfb, #f2f7f3);
}

.structure-branch-card--left {
    box-shadow: inset 0 0 0 1px rgba(112, 145, 122, 0.08);
}

.structure-branch-card--right {
    box-shadow: inset 0 0 0 1px rgba(114, 140, 168, 0.08);
}

.structure-branch-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.structure-branch-card__summary::marker,
.structure-branch-card summary::marker {
    display: none;
    content: "";
}

.structure-branch-card__share {
    font-size: 1.25rem;
    font-weight: 700;
    color: #355645;
}

.structure-progress {
    display: grid;
    gap: 0.45rem;
}

.structure-progress__track {
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efe9;
}

.structure-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #99c0a7, #c5ddd0);
}

.structure-tree-panel {
    padding: 1.25rem;
}

.structure-tree-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.structure-tree-panel__hint {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(240, 246, 241, 0.9);
    color: #5f7367;
}

.structure-tree-scroll {
    padding-bottom: 0.4rem;
}

.structure-binary-tree {
    --tree-card-width: 260px;
    --tree-card-min-height: 245px;
    --tree-gap-default: 54px;
    --tree-gap-level-1: 152px;
    --tree-gap-level-2: 52px;
    --tree-gap-level-3: 28px;
    --tree-gap-level-4: 20px;
    --tree-connector-height: 92px;
}

.structure-node-card {
    text-align: left;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 246, 0.96));
    border-color: rgba(104, 126, 111, 0.12);
    box-shadow: 0 18px 40px rgba(52, 74, 60, 0.08);
}

.structure-node-card--selected {
    box-shadow: 0 20px 44px rgba(48, 83, 66, 0.14);
}

.structure-node-card__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.structure-node-card__identity {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.structure-node-card__identity .tree-node-email {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.structure-node-card__email {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
}

.structure-node-card__meta,
.structure-node-card__foot {
    grid-template-columns: 1fr;
}

.structure-progress--card {
    margin-top: auto;
}

.structure-progress__meta {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.structure-node-empty {
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(249, 251, 249, 0.98), rgba(241, 246, 242, 0.96));
    border: 1px dashed rgba(106, 129, 114, 0.22);
    color: #486154;
}

.structure-node-empty__media,
.structure-empty-state__media {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
}

.structure-node-empty__media span,
.structure-empty-state__media span {
    width: 0.9rem;
    height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #dcecdf, #bdd7c5);
}

.structure-empty-state {
    padding: 2rem 1.3rem;
}

@media (max-width: 1100px) {
    .structure-hero,
    .structure-summary-grid {
        grid-template-columns: 1fr;
    }

    .structure-binary-tree {
        --tree-card-width: 220px;
        --tree-card-min-height: 232px;
        --tree-gap-default: 28px;
        --tree-gap-level-1: 104px;
        --tree-gap-level-2: 34px;
        --tree-gap-level-3: 20px;
        --tree-connector-height: 74px;
    }
}

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

    .structure-tree-panel__header {
        flex-direction: column;
    }

    .structure-binary-tree {
        --tree-card-width: 188px;
        --tree-card-min-height: 220px;
        --tree-gap-default: 18px;
        --tree-gap-level-1: 52px;
        --tree-gap-level-2: 22px;
        --tree-gap-level-3: 14px;
        --tree-gap-level-4: 12px;
        --tree-connector-height: 56px;
    }

    .structure-node-card,
    .structure-node-empty {
        padding: 0.85rem;
    }

    .structure-node-card__head {
        align-items: flex-start;
    }

    .structure-node-card__avatar {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 900px) {
    .content-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-dropdown {
        right: auto;
        left: 0;
        width: min(100vw - 2rem, 28rem);
    }

    .notifications-hero {
        flex-direction: column;
    }

    .onboarding-grid,
    .onboarding-guidance-grid,
    .onboarding-welcome-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .notification-bell--mobile {
        display: inline-flex;
        margin-left: auto;
        margin-right: 0.65rem;
    }

    .content-topbar {
        padding: 0.9rem;
    }

    .onboarding-checklist__item {
        grid-template-columns: auto 1fr;
    }

    .onboarding-checklist__cta {
        grid-column: 2;
    }
}

.operations-page {
    display: grid;
    gap: 1.5rem;
}

.operations-hero,
.operations-layout,
.operations-grid-two,
.operations-cards-grid {
    display: grid;
    gap: 1rem;
}

.operations-hero {
    padding: 1.4rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(185, 214, 198, 0.4), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 244, 0.98));
    border: 1px solid rgba(97, 123, 107, 0.12);
    box-shadow: 0 22px 44px rgba(57, 77, 64, 0.08);
}

.operations-hero__content,
.operations-hero__aside,
.operations-sidebar,
.operations-queue,
.operations-link-list,
.operations-activity-list,
.operations-support-list,
.operations-replies-list {
    display: grid;
    gap: 1rem;
}

.operations-mini-card,
.operations-card,
.operations-user-card,
.operations-link-card,
.operations-activity-card,
.operations-support-card,
.operations-reply-card {
    border-radius: 24px;
    border: 1px solid rgba(98, 124, 109, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.97));
    box-shadow: 0 18px 34px rgba(54, 78, 60, 0.07);
}

.operations-mini-card,
.operations-card,
.operations-user-card,
.operations-activity-card,
.operations-support-card {
    padding: 1rem;
}

.operations-mini-card span,
.operations-card__eyebrow,
.operations-user-card__meta dt,
.operations-link-card span,
.operations-support-card small,
.operations-reply-card time {
    color: #61786a;
}

.operations-mini-card strong,
.operations-card strong,
.operations-card__value,
.operations-user-card h3,
.operations-link-card strong,
.operations-activity-card strong,
.operations-support-card strong,
.operations-reply-card strong {
    color: #244232;
}

.operations-mini-card strong,
.operations-card__value {
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    line-height: 1;
}

.operations-mini-card--soft {
    background: linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(238, 245, 249, 0.96));
}

.operations-card {
    display: grid;
    gap: 0.75rem;
}

.operations-card p,
.operations-link-card p,
.operations-activity-card p,
.operations-support-card p,
.operations-reply-card p,
.operations-user-card__meta dd {
    margin: 0;
    color: #496052;
}

.operations-layout,
.operations-grid-two {
    grid-template-columns: 1fr;
}

.operations-user-card {
    display: grid;
    gap: 1rem;
}

.operations-user-card__head,
.operations-user-card__identity,
.operations-user-card__actions,
.operations-activity-card__head,
.operations-support-card__head {
    display: flex;
    gap: 0.85rem;
}

.operations-user-card__head,
.operations-support-card__head,
.operations-activity-card__head {
    align-items: flex-start;
    justify-content: space-between;
}

.operations-user-card__identity {
    align-items: center;
    min-width: 0;
}

.operations-user-card__identity h3,
.operations-user-card__identity p {
    margin: 0;
}

.operations-user-card__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d9e9de, #bdd5c5);
    color: #315140;
    font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
}

.operations-user-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.operations-user-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.operations-user-card__meta div {
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(241, 246, 242, 0.96);
}

.operations-user-card__meta dt,
.operations-user-card__meta dd {
    margin: 0;
}

.operations-user-card__actions {
    flex-wrap: wrap;
}

.operations-user-card__actions form {
    margin: 0;
}

.operations-panel {
    padding: 1.15rem;
}

.operations-link-card,
.operations-reply-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    text-decoration: none;
}

.operations-link-card span {
    font-weight: 600;
}

.operations-activity-card small {
    color: #61786a;
}

.operations-support-card,
.operations-reply-card {
    display: grid;
    gap: 0.7rem;
}

.operations-reply-card--blue {
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(239, 246, 251, 0.96));
}

.operations-reply-card--mint {
    background: linear-gradient(180deg, rgba(245, 252, 248, 0.98), rgba(238, 248, 242, 0.96));
}

.operations-reply-card--rose {
    background: linear-gradient(180deg, rgba(255, 248, 249, 0.98), rgba(252, 241, 243, 0.96));
}

.operations-reply-card--amber {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(250, 244, 232, 0.96));
}

.operations-empty-state {
    min-height: 100%;
}

@media (min-width: 760px) {
    .operations-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 960px) {
    .operations-hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.9fr);
        align-items: start;
    }

    .operations-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 0.8fr);
        align-items: start;
    }

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

@media (max-width: 759px) {
    .operations-user-card__meta {
        grid-template-columns: 1fr;
    }
}

.mobile-header__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.mobile-menu__icon {
    position: relative;
    width: 1.1rem;
    height: 0.9rem;
    display: inline-block;
    margin-right: 0.15rem;
}

.mobile-menu__icon::before,
.mobile-menu__icon::after,
.mobile-menu__icon span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu__icon::before {
    top: 0;
}

.mobile-menu__icon::after {
    bottom: 0;
}

.mobile-menu__icon {
    border-top: 2px solid currentColor;
    border-bottom: 2px solid transparent;
}

.mobile-header .notification-bell,
.mobile-header .mobile-menu summary,
.mobile-header .mobile-menu__nav a,
.mobile-header .btn,
.mobile-header button {
    min-height: 46px;
}

.breadcrumbs,
.dashboard-section-header,
.dashboard-learning-progress__header,
.dashboard-actions__header,
.notifications-hero,
.structure-hero,
.progress-center-teaser,
.operations-hero,
.operations-card,
.notification-card,
.support-panel__header,
.feedback-card__head,
.mentor-review-card__head,
.mentor-card__head,
.progress-panel__header,
.learning-hero__chips,
.lesson-content-card__meta,
.lesson-actions-card__controls,
.lesson-nav,
.operations-user-card__actions,
.operations-support-card__head,
.operations-activity-card__head {
    gap: 0.85rem;
}

.dashboard-card,
.progress-panel,
.support-panel,
.mentor-card,
.mentor-review-card,
.notification-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card,
.onboarding-checklist__item,
.lesson-structured-block,
.media-preview-block,
.lesson-section-card,
.mentor-insight-card,
.highlighted-reflection-block,
.calm-quote-block,
.lesson-empty-media-card {
    overflow-wrap: anywhere;
}

.learning-hero__title,
.mentor-hero__content h1,
.operations-hero__content h1,
.notifications-hero h1,
.structure-hero h1,
.dashboard-hero h2,
.dashboard-next-step h3,
.onboarding-progress-card__value strong,
.operations-card__value,
.stats-card__value {
    word-break: break-word;
}

.notification-card,
.dashboard-activity-item,
.operations-link-card,
.operations-reply-card,
.mentor-review-card,
.mentor-card,
.support-panel,
.feedback-card {
    min-width: 0;
}

.notification-card p,
.mentor-review-card__text,
.mentor-review-card__reply p,
.support-panel p,
.feedback-card p,
.operations-user-card__meta dd,
.operations-reply-card span,
.operations-support-card p {
    word-break: break-word;
}

.lesson-content-card__body,
.lesson-content-card__body p,
.lesson-content-card__body li,
.lesson-content-card__body blockquote,
.lesson-content-card__body figcaption,
.lesson-structured-block p,
.lesson-structured-block blockquote,
.lesson-structured-block cite {
    overflow-wrap: anywhere;
}

.lesson-content-card__body img,
.lesson-content-card__body figure,
.lesson-content-card__body table,
.lesson-content-card__body iframe,
.lesson-content-card__body pre {
    max-width: 100%;
}

.support-panel textarea,
.lesson-task-form__textarea,
.task-detail-form textarea,
.task-detail-form input[type="url"],
.profile-form textarea,
.feedback-form-grid textarea {
    min-height: 132px;
}

.errors,
.errorlist,
.helptext {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.errors li,
.errorlist li {
    margin-bottom: 0.4rem;
}

.operations-card .lesson-card__cta,
.operations-user-card__actions .btn,
.operations-user-card__actions button,
.operations-link-card,
.notifications-hero__aside .lesson-card__cta {
    width: 100%;
}

.onboarding-checklist__item,
.dashboard-attention-item,
.notification-card,
.operations-link-card,
.operations-reply-card {
    min-height: 0;
}

@media (max-width: 900px) {
    .mobile-header {
        padding: 0.9rem 0.95rem;
    }

    .mobile-menu summary {
        width: 100%;
        justify-content: center;
        gap: 0.55rem;
    }

    .content {
        padding: 0.95rem;
    }

    .content__inner {
        gap: 1rem;
    }

    .dashboard-progress-grid,
    .dashboard-growth-grid,
    .dashboard-stats-grid,
    .dashboard-calm-grid,
    .actions-grid,
    .notifications-timeline,
    .structure-summary-grid,
    .operations-cards-grid,
    .referrals-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-learning-progress__header,
    .dashboard-actions__header,
    .dashboard-section-header,
    .notifications-hero,
    .structure-hero,
    .operations-hero,
    .tasks-hero,
    .tasks-toolbar,
    .task-card__head,
    .operations-user-card__head,
    .operations-support-card__head,
    .operations-activity-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-learning-progress__stats,
    .dashboard-attention-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-dropdown {
        max-height: min(70vh, 32rem);
        overflow-y: auto;
    }

    .structure-tree-scroll,
    .tree-scroll-area {
        margin-inline: -0.35rem;
        padding-inline: 0.35rem;
    }

    .operations-user-card__actions form,
    .operations-user-card__actions .btn,
    .operations-user-card__actions button {
        flex: 1 1 100%;
    }

    .tasks-page .task-card__footer {
        align-items: stretch;
    }

    .onboarding-welcome-card__actions,
    .support-panel__actions,
    .lesson-task-form__actions,
    .task-detail-form__actions {
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .mobile-header {
        border-radius: 0 0 20px 20px;
    }

    .mobile-header__title {
        font-size: 1rem;
    }

    .notification-bell--mobile {
        margin: 0;
        padding-inline: 0.85rem;
    }

    .notification-bell--mobile .notification-bell__label {
        display: none;
    }

    .content,
    .content-topbar {
        padding: 0.8rem;
    }

    .dashboard-page,
    .notifications-page,
    .mentor-page,
    .operations-page,
    .structure-page,
    .tasks-page,
    .referrals-page {
        gap: 1rem;
    }

    .dashboard-card,
    .progress-panel,
    .support-panel,
    .mentor-card,
    .mentor-review-card,
    .notification-card,
    .operations-card,
    .operations-user-card,
    .operations-support-card,
    .operations-activity-card,
    .operations-link-card,
    .operations-reply-card,
    .onboarding-welcome-card,
    .onboarding-progress-card,
    .onboarding-checklist-card,
    .onboarding-hints-card,
    .structure-summary-card,
    .structure-branch-card,
    .structure-node-card,
    .structure-node-empty {
        padding: 0.95rem;
        border-radius: 20px;
    }

    .breadcrumbs {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        font-size: 0.85rem;
    }

    .hero-card__summary,
    .dashboard-learning-progress__stats,
    .dashboard-attention-card__stats,
    .hero-card__summary-item,
    .dashboard-learning-progress__stat,
    .dashboard-attention-card__stat,
    .task-card__details {
        grid-template-columns: 1fr;
    }

    .dashboard-learning-progress__stats,
    .dashboard-attention-card__stats {
        gap: 0.7rem;
    }

    .onboarding-checklist__item {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        padding: 0.9rem;
    }

    .onboarding-checklist__cta {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.2rem;
        text-align: left;
    }

    .lesson-content-card__body {
        font-size: 0.96rem;
        line-height: 1.72;
    }

    .lesson-content-card__body h1,
    .lesson-content-card__body h2,
    .lesson-content-card__body h3,
    .lesson-content-card__body h4 {
        line-height: 1.2;
    }

    .lesson-content-card__body figure,
    .lesson-content-card__body .lesson-media-placeholder,
    .lesson-content-card__body .lesson-infographic-placeholder,
    .lesson-content-card__body .mentor-note,
    .lesson-content-card__body .lesson-mentor-note,
    .lesson-content-card__body .reflection-block,
    .lesson-content-card__body .lesson-reflection-block,
    .lesson-structured-block,
    .lesson-section-card,
    .mentor-insight-card,
    .highlighted-reflection-block,
    .calm-quote-block {
        padding: 1rem;
    }

    .lesson-structured-block__media,
    .media-preview-block__canvas,
    .media-preview-block__placeholder,
    .media-preview-block__infographic {
        gap: 0.6rem;
    }

    .support-panel textarea,
    .lesson-task-form__textarea,
    .task-detail-form textarea,
    .task-detail-form input[type="url"] {
        min-height: 120px;
        padding: 0.9rem 0.95rem;
    }

    input,
    select,
    textarea,
    button,
    .btn,
    .lesson-card__cta,
    .lesson-video-card__link,
    .learning-filter-pill,
    .tasks-filter-tab,
    .mobile-menu__nav a {
        font-size: 16px;
    }

    .mentor-filter-tabs,
    .learning-filter-pills,
    .tasks-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        margin-inline: -0.15rem;
        padding-inline: 0.15rem 0.15rem;
        scrollbar-width: thin;
    }

    .mentor-filter-tabs > *,
    .learning-filter-pills > *,
    .tasks-filter-tabs > * {
        flex: 0 0 auto;
    }

    .structure-binary-tree {
        --tree-card-width: 176px;
        --tree-card-min-height: 214px;
        --tree-gap-default: 14px;
        --tree-gap-level-1: 42px;
        --tree-gap-level-2: 18px;
        --tree-gap-level-3: 12px;
        --tree-gap-level-4: 10px;
        --tree-connector-height: 50px;
    }

    .structure-node-card__meta,
    .structure-node-card__foot,
    .operations-user-card__meta {
        gap: 0.65rem;
    }

    .structure-tree-panel__hint,
    .operations-user-card__meta div {
        padding: 0.75rem 0.8rem;
    }

    .notification-card__head,
    .operations-user-card__identity,
    .feedback-card__head,
    .referrals-mobile-card__head {
        gap: 0.55rem;
    }

    .operations-user-card__identity {
        align-items: flex-start;
    }

    .operations-link-card span,
    .operations-reply-card time,
    .support-panel__header p,
    .mentor-review-card__head p,
    .task-card-meta,
    .task-card__detail span {
        font-size: 0.88rem;
    }

    .tasks-hero,
    .tasks-stat-card,
    .task-card,
    .link-row,
    .referrals-mobile-card {
        padding: 0.95rem;
        border-radius: 20px;
    }

    .tasks-filter-tab,
    .task-type-badge,
    .task-points-badge,
    .task-status-badge,
    .lesson-status-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .task-card-title,
    .task-card-description,
    .task-card__detail strong,
    .tasks-toolbar__copy h2,
    .tasks-hero__content h1,
    .tasks-hero__note strong {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .tasks-page .task-card__cta,
    .tasks-page .btn,
    .tasks-page button,
    .referrals-copy-button,
    .referrals-page .btn {
        width: 100%;
    }

    .link-row__header {
        flex-direction: column;
        align-items: stretch;
    }

    .referrals-link-value {
        font-size: 0.92rem;
    }

    .referrals-table-wrap {
        display: none;
    }

    .referrals-mobile-list {
        display: grid;
    }
}

@media (max-width: 390px) {
    .tasks-filter-tabs,
    .mentor-filter-tabs,
    .learning-filter-pills {
        gap: 0.45rem;
    }

    .tasks-filter-tab,
    .task-type-badge,
    .task-points-badge,
    .task-status-badge,
    .lesson-status-badge {
        padding-inline: 0.7rem;
        font-size: 0.78rem;
    }

    .task-card,
    .tasks-stat-card,
    .tasks-hero,
    .link-row,
    .referrals-mobile-card {
        padding: 0.85rem;
    }

    .referrals-link-value,
    .task-card-description,
    .task-card-meta,
    .task-card__detail strong {
        font-size: 0.9rem;
    }
}

/* Final Design Audit & Visual Polish */
.content__inner,
.public-page,
.public-shell,
.content,
.auth-shell__inner,
.dashboard-layout,
.public-header,
.public-footer,
.feedback-center-layout,
.feedback-history-grid,
.mentor-layout,
.operations-layout,
.operations-grid-two,
.operations-cards-grid,
.profile-layout,
.profile-progress-grid,
.profile-readonly-grid,
.task-cards-grid,
.dashboard-grid,
.notifications-timeline,
.referrals-hero,
.public-section__head--split,
.public-cta,
.public-section--split,
.public-media-grid,
.public-feature-grid,
.public-journey-grid,
.public-faq-preview {
    min-width: 0;
}

.content__inner > *,
.public-page > *,
.feedback-center-layout > *,
.feedback-history-grid > *,
.mentor-layout > *,
.operations-layout > *,
.operations-grid-two > *,
.operations-cards-grid > *,
.profile-layout > *,
.task-cards-grid > *,
.dashboard-grid > *,
.public-section--split > *,
.public-media-grid > *,
.public-feature-grid > *,
.public-journey-grid > *,
.public-faq-preview > * {
    min-width: 0;
}

img,
svg,
video,
canvas,
iframe,
table,
pre {
    max-width: 100%;
}

.card,
.public-surface,
.dashboard-card,
.support-panel,
.notification-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card,
.mentor-card,
.mentor-review-card,
.feedback-card,
.task-card,
.tasks-stat-card,
.task-detail-card,
.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card,
.structure-summary-card,
.structure-branch-card,
.structure-node-card,
.structure-node-empty,
.referral-card,
.card-status-card,
.onboarding-welcome-card,
.onboarding-progress-card,
.onboarding-checklist-card,
.onboarding-hints-card {
    border-radius: clamp(20px, 2vw, 26px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.public-surface,
.card,
.dashboard-card,
.support-panel,
.notification-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card,
.mentor-card,
.mentor-review-card,
.feedback-card,
.task-card,
.tasks-stat-card,
.task-detail-card,
.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card,
.referral-card,
.card-status-card {
    overflow: clip;
}

.public-lead,
.public-section__head p,
.public-article-card p,
.public-support-card p,
.public-cta p,
.public-media-card__copy p,
.public-faq-preview__item p,
.support-panel p,
.mentor-card p,
.mentor-review-card__text,
.mentor-review-card__reply p,
.feedback-card p,
.task-card-description,
.task-card-meta,
.task-card__detail span,
.task-card__detail strong,
.referrals-link-value,
.notification-card p,
.notification-preview span,
.operations-user-card__meta dd,
.operations-activity-card p,
.operations-support-card p,
.operations-reply-card p,
.profile-info-card p,
.profile-form-card p,
.profile-progress-card p,
.structure-node-card__identity span,
.structure-node-card__meta span,
.structure-node-card__foot span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.task-card-title,
.public-page-hero h1,
.public-hero__content h1,
.feedback-center-hero__content h1,
.mentor-hero__content h1,
.operations-hero__content h1,
.notifications-hero h1,
.tasks-hero__content h1,
.structure-hero h1,
.profile-avatar-meta h2,
.profile-info-card h2,
.profile-progress-card h2,
.profile-form-card h2,
.support-panel__header h2,
.mentor-card h3,
.mentor-review-card__head h3,
.notification-card__head strong,
.operations-user-card__identity h3,
.operations-link-card strong,
.operations-reply-card strong,
.public-faq-item summary,
.public-media-card__copy h3,
.public-step-card h3,
.public-icon-card h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.btn,
button,
input,
select,
textarea {
    max-width: 100%;
}

.btn,
button,
.lesson-card__cta,
.course-card__cta,
.lesson-video-card__link,
.card-status-card__cta,
.referrals-copy-button {
    min-height: 2.9rem;
}

.public-header__nav a,
.public-menu__panel a,
.sidebar__nav a,
.mobile-menu__nav a {
    border-radius: 999px;
}

.public-header__nav a.is-active,
.public-menu__panel a.is-active,
.sidebar__nav a.is-active,
.mobile-menu__nav a.is-active {
    box-shadow: inset 0 0 0 1px rgba(115, 146, 123, 0.24);
}

.notification-preview,
.notification-card,
.public-dashboard-preview__card,
.public-faq-preview__item,
.public-media-card,
.public-step-card,
.public-icon-card,
.auth-entry-card,
.auth-entry-intro,
.support-panel,
.mentor-card,
.mentor-review-card,
.feedback-card,
.operations-user-card,
.operations-link-card,
.operations-support-card,
.operations-activity-card,
.operations-reply-card,
.tasks-stat-card,
.task-card,
.task-detail-card,
.referrals-mobile-card,
.structure-node-card,
.structure-node-empty {
    min-width: 0;
}

.auth-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.1rem, 2vw, 1.75rem);
    align-items: stretch;
    margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

.auth-entry-layout--wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.auth-entry-intro,
.auth-entry-card {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.auth-entry-intro {
    display: grid;
    gap: 1.15rem;
    align-content: start;
    background:
        radial-gradient(circle at top right, rgba(162, 189, 216, 0.28), transparent 48%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 245, 0.96));
}

.auth-entry-card {
    display: grid;
    gap: 1rem;
}

.auth-entry-card__head {
    display: grid;
    gap: 0.55rem;
}

.auth-entry-card__head p,
.auth-entry-card__foot,
.auth-entry-points p {
    color: var(--text-soft);
}

.auth-entry-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-entry-highlights span {
    display: block;
    min-height: 4.5rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 240, 233, 0.9));
    border: 1px solid rgba(150, 175, 157, 0.18);
}

.auth-entry-highlights span:nth-child(2) {
    min-height: 5.6rem;
}

.auth-entry-highlights--tall span:nth-child(1) {
    min-height: 5.2rem;
}

.auth-entry-highlights--tall span:nth-child(3) {
    min-height: 6rem;
}

.auth-entry-points {
    display: grid;
    gap: 0.9rem;
}

.auth-entry-points div {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(150, 175, 157, 0.16);
}

.auth-entry-points strong {
    display: block;
    margin-bottom: 0.35rem;
}

.auth-form-stack {
    display: grid;
    gap: 1rem;
}

.auth-form-field {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.auth-form-field label,
.public-shell label,
.support-panel label,
.profile-form label {
    font-weight: 600;
    color: var(--text);
}

.auth-form-field input,
.auth-form-field select,
.auth-form-field textarea {
    width: 100%;
}

.muted,
.form-help,
small.muted {
    overflow-wrap: anywhere;
}

/* Contrast and readability refinement */
.muted,
.form-help,
small.muted,
.public-lead,
.public-section__head p,
.public-article-card p,
.public-support-card p,
.public-cta p,
.public-media-card__copy p,
.public-faq-preview__item p,
.tasks-hero__content p,
.tasks-hero__note p,
.tasks-stat-card__hint,
.hero-card__subtitle,
.hero-card__summary-item span,
.hero-card__note span,
.stats-card__label,
.stats-card__description,
.dashboard-learning-progress__stat span,
.dashboard-attention-card__stat span,
.course-card__description,
.course-card__stat span,
.course-card__progress-text,
.learning-overview-card__message,
.lesson-content-card__lead,
.lesson-video-card p,
.lesson-actions-card p,
.profile-info-card p,
.profile-form-card p,
.profile-progress-card p,
.profile-readonly-item__label,
.support-panel__header p,
.support-panel p,
.mentor-card p,
.mentor-card__head p,
.mentor-card__reply span,
.mentor-review-card__head p,
.mentor-review-card__text,
.mentor-review-card__reply p,
.feedback-card p,
.feedback-card__head span,
.progress-center-hero__content p,
.progress-center-hero__panel p,
.progress-stat-card p,
.progress-stat-card span,
.notification-dropdown__header span,
.notification-preview span,
.notification-card p,
.notification-card time,
.notifications-hero__aside,
.onboarding-soft-note,
.onboarding-checklist__body p,
.onboarding-hint p,
.card-status-card__header p,
.card-status-card__content p,
.referral-card__copy-label,
.referrals-link-value,
.operations-card p,
.operations-link-card p,
.operations-activity-card p,
.operations-support-card p,
.operations-reply-card p,
.operations-support-card small,
.operations-reply-card time,
.operations-user-card__meta dt,
.operations-user-card__meta dd,
.structure-hero__content p,
.structure-summary-card span,
.structure-branch-card__meta span,
.structure-node-card__identity span,
.structure-node-card__meta span,
.structure-node-card__foot span,
.empty-state p,
.empty-state__description {
    color: var(--text-soft);
}

.public-kicker,
.hero-card__eyebrow,
.learning-hero__eyebrow,
.learning-overview-card__eyebrow,
.progress-pill,
.operations-card__eyebrow,
.notification-preview__badge,
.auth-entry-card__head .public-kicker,
.auth-entry-intro .public-kicker {
    color: var(--text-kicker);
}

.public-stat-card span,
.tasks-stat-card__label,
.mentor-stat-inline span,
.soft-metric__label,
.lesson-sidebar-card__stat span,
.lesson-sidebar-card__progress-head span,
.task-card-meta,
.task-card__detail span,
.task-card-description,
.dashboard-stat-card .stats-card__label,
.progress-course-card__meta,
.course-progress-card__header p {
    color: var(--text-subtle);
}

.public-hero__content,
.public-page-hero,
.hero-card__content,
.feedback-center-hero__content,
.mentor-hero__content,
.progress-center-hero__content,
.notifications-hero,
.operations-hero__content,
.tasks-hero__content,
.structure-hero__content,
.onboarding-welcome-card__content,
.onboarding-progress-card,
.onboarding-checklist-card,
.onboarding-hints-card,
.support-panel,
.mentor-card,
.mentor-review-card,
.feedback-card,
.progress-stat-card,
.progress-course-card,
.course-progress-card,
.tasks-stat-card,
.task-card,
.task-detail-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card {
    text-shadow: none;
}

.public-hero__content h1,
.public-page-hero h1,
.hero-card h2,
.feedback-center-hero__content h1,
.mentor-hero__content h1,
.progress-center-hero__content h1,
.notifications-hero h1,
.operations-hero__content h1,
.tasks-hero__content h1,
.structure-hero h1,
.onboarding-progress-card__value strong,
.stats-card__value,
.progress-stat-card strong,
.course-progress-card__header h2,
.mentor-stat-inline strong,
.tasks-stat-card__value {
    color: #1d2a38;
}

.support-panel__header h2,
.mentor-card h3,
.mentor-review-card__head h3,
.notification-card__head strong,
.operations-user-card__identity h3,
.operations-link-card strong,
.operations-reply-card strong,
.public-media-card__copy h3,
.public-step-card h3,
.public-icon-card h3,
.profile-info-card h2,
.profile-progress-card h2,
.profile-form-card h2,
.profile-avatar-meta h2 {
    color: #223144;
}

label,
.auth-form-field label,
.public-shell label,
.support-panel label,
.profile-form label,
.form-field label,
.lesson-task-form__label {
    color: #314256;
}

.notices,
.errors {
    padding-inline-start: 1.1rem;
}

.errors li,
.notices li {
    overflow-wrap: anywhere;
}

.public-page-hero,
.public-hero,
.feedback-center-hero,
.mentor-hero,
.notifications-hero,
.operations-hero,
.tasks-hero,
.structure-hero {
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.public-section__head,
.public-support-card,
.public-article-card,
.public-cta,
.public-preview-card,
.public-media-card,
.public-faq-preview__item,
.public-step-card,
.public-icon-card {
    scroll-margin-top: 1.5rem;
}

.public-faq-item summary {
    padding-right: 1.5rem;
}

.referrals-table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.referrals-table {
    min-width: 42rem;
}

.feedback-form-grid .form-field,
.profile-form__grid > *,
.mentor-form-row > *,
.support-panel__actions > *,
.operations-user-card__actions > *,
.task-card__footer > *,
.lesson-actions-card__controls > * {
    min-width: 0;
}

.public-header__actions,
.public-actions,
.support-panel__actions,
.profile-actions,
.lesson-actions-card__controls,
.operations-user-card__actions {
    flex-wrap: wrap;
}

.content-topbar__intro strong,
.content-topbar__intro span,
.notification-dropdown__header span,
.notifications-hero__aside,
.public-footer__intro strong,
.public-footer__intro p,
.public-header__brand-copy span,
.public-header__brand-copy strong {
    overflow-wrap: anywhere;
}

@media (max-width: 959px) {
    .auth-entry-layout,
    .auth-entry-layout--wide {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .content__inner,
    .public-page,
    .auth-shell__inner {
        width: min(100%, 100%);
    }

    .public-page-hero,
    .public-hero,
    .feedback-center-hero,
    .mentor-hero,
    .notifications-hero,
    .operations-hero,
    .tasks-hero,
    .structure-hero,
    .auth-entry-intro,
    .auth-entry-card,
    .public-preview-card,
    .public-support-card,
    .public-article-card,
    .public-cta,
    .public-media-card,
    .public-step-card,
    .public-icon-card,
    .support-panel,
    .mentor-card,
    .mentor-review-card,
    .feedback-card,
    .notification-card,
    .operations-card,
    .operations-user-card,
    .operations-link-card,
    .operations-support-card,
    .operations-activity-card,
    .operations-reply-card,
    .task-card,
    .tasks-stat-card,
    .task-detail-card,
    .referrals-mobile-card,
    .structure-node-card,
    .structure-node-empty,
    .profile-avatar-card,
    .profile-info-card,
    .profile-progress-card,
    .profile-form-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .public-header__actions,
    .public-actions,
    .auth-entry-card button,
    .auth-entry-card .btn,
    .support-panel__actions .btn,
    .support-panel__actions button,
    .profile-actions .btn,
    .profile-actions button,
    .lesson-actions-card__controls .btn,
    .lesson-actions-card__controls button,
    .lesson-card__cta,
    .course-card__cta,
    .lesson-video-card__link,
    .card-status-card__cta,
    .referrals-copy-button,
    .operations-user-card__actions .btn,
    .operations-user-card__actions button,
    .tasks-page .task-card__cta {
        width: 100%;
    }

    .public-actions .btn,
    .public-header__actions .btn,
    .support-panel__actions .btn,
    .support-panel__actions button,
    .lesson-actions-card__controls .btn,
    .lesson-actions-card__controls button,
    .operations-user-card__actions .btn,
    .operations-user-card__actions button {
        justify-content: center;
    }

    .notification-bell,
    .public-header__nav a,
    .public-menu__panel a,
    .sidebar__nav a,
    .mobile-menu__nav a,
    .learning-filter-pill,
    .mentor-filter-tabs > *,
    .task-status-badge,
    .task-type-badge,
    .task-points-badge {
        min-height: 2.75rem;
    }

    .auth-entry-highlights {
        gap: 0.55rem;
    }

    .auth-entry-highlights span {
        min-height: 3.6rem;
        border-radius: 14px;
    }

    .public-dashboard-preview,
    .public-preview-showcase,
    .public-section__head--split,
    .feedback-center-layout,
    .feedback-history-grid,
    .operations-grid-two,
    .operations-cards-grid,
    .profile-layout,
    .task-card__head,
    .task-card__footer,
    .mentor-review-card__head,
    .mentor-card__head,
    .feedback-card__head,
    .notification-card__head,
    .operations-user-card__head,
    .operations-support-card__head,
    .operations-activity-card__head,
    .support-panel__header,
    .lesson-content-card__header,
    .lesson-video-card__header,
    .lesson-actions-card,
    .content-topbar {
        gap: 0.85rem;
    }

    .public-faq-item summary,
    .task-card-title,
    .task-card-description,
    .task-card-meta,
    .referrals-link-value,
    .public-media-card__copy p,
    .public-section__head p,
    .support-panel p,
    .mentor-review-card__text,
    .mentor-review-card__reply p,
    .notification-card p,
    .feedback-card p,
    .operations-reply-card p,
    .operations-support-card p,
    .operations-user-card__meta dd {
        font-size: 0.95rem;
    }

    .referrals-table {
        min-width: 36rem;
    }
}

/* Branding Foundation */
:root {
    --color-primary: #355c9a;
    --color-primary-dark: #2d4d84;
    --color-success: #2f8f75;
    --color-warning: #b9853e;
    --color-danger: #bf5f58;
    --color-dark: #1d2a38;
    --color-muted: #5b6d82;
    --color-border: #d7e1ec;
    --color-surface: #ffffff;
    --color-bg: #eef3f7;
    --surface-muted: #f6f9fc;
    --text: #243241;
    --text-soft: #506274;
    --text-subtle: #5a6c7e;
    --text-kicker: #4f6579;
    --sidebar: #1f3558;
    --sidebar-hover: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 14px 30px rgba(21, 38, 63, 0.07);
    --shadow-md: 0 22px 52px rgba(21, 38, 63, 0.11);
    --shadow: var(--shadow-sm);
}

body {
    font-family: "Segoe UI Variable Text", "Segoe UI", "Noto Sans", sans-serif;
    background:
        radial-gradient(circle at top, rgba(217, 229, 240, 0.72), transparent 34%),
        linear-gradient(180deg, #f4f8fb 0%, #eef3f7 100%);
    color: var(--text);
    text-rendering: optimizeLegibility;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

p,
li,
td,
th,
label {
    font-size: 0.98rem;
}

.card,
.panel,
.public-surface,
.dashboard-card,
.progress-panel,
.progress-stat-card,
.learning-overview-card,
.course-card,
.lesson-card,
.notification-card,
.support-panel,
.mentor-card,
.mentor-review-card,
.feedback-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card,
.task-card,
.task-detail-card,
.tasks-stat-card,
.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card,
.structure-summary-card,
.structure-branch-card,
.structure-node-card,
.structure-node-empty,
.referral-card,
.referrals-mobile-card,
.public-preview-card,
.public-article-card,
.public-support-card,
.public-cta,
.public-media-card,
.public-step-card,
.public-icon-card,
.public-faq-preview__item,
.notification-preview {
    border-color: rgba(130, 152, 177, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: var(--shadow-sm);
}

.card:hover,
.panel:hover,
.public-surface:hover,
.dashboard-card:hover,
.progress-panel:hover,
.progress-stat-card:hover,
.support-panel:hover,
.mentor-card:hover,
.mentor-review-card:hover,
.feedback-card:hover,
.operations-card:hover,
.operations-user-card:hover,
.operations-support-card:hover,
.operations-activity-card:hover,
.operations-link-card:hover,
.operations-reply-card:hover,
.task-card:hover,
.task-detail-card:hover,
.tasks-stat-card:hover,
.public-preview-card:hover,
.public-article-card:hover,
.public-support-card:hover,
.public-cta:hover,
.public-media-card:hover,
.public-step-card:hover,
.public-icon-card:hover,
.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn,
button,
.bonus-link-button,
.course-card__cta,
.lesson-card__cta,
.card-status-card__cta,
.lesson-video-card__link,
.referrals-copy-button {
    border-radius: 14px;
    background: linear-gradient(180deg, #4168a5 0%, #355c9a 100%);
    box-shadow: 0 12px 28px rgba(53, 92, 154, 0.18);
}

.btn:hover,
button:hover,
.bonus-link-button:hover,
.course-card__cta:hover,
.lesson-card__cta:hover,
.card-status-card__cta:hover,
.lesson-video-card__link:hover,
.referrals-copy-button:hover {
    background: linear-gradient(180deg, #3b629f 0%, #2f527f 100%);
    box-shadow: 0 18px 36px rgba(53, 92, 154, 0.2);
    filter: none;
}

.btn-secondary {
    background: linear-gradient(180deg, #f7fafc 0%, #e8eff5 100%);
    color: #223144;
    border: 1px solid rgba(117, 139, 163, 0.18);
    box-shadow: 0 10px 22px rgba(36, 50, 65, 0.07);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #eef4f8 0%, #e0e8f0 100%);
}

.badge,
.lesson-status-badge,
.card-status-card__badge,
.hero-card__badge,
.notification-preview__badge,
.question-status-badge {
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.badge-success {
    background: rgba(47, 143, 117, 0.12);
    color: #236a57;
    border-color: rgba(47, 143, 117, 0.12);
}

.badge-warning,
.question-status-badge-pending,
.question-status-badge-open,
.question-status-badge-in_review {
    background: rgba(185, 133, 62, 0.14);
    color: #94652c;
    border-color: rgba(185, 133, 62, 0.14);
}

.badge-danger,
.question-status-badge-closed,
.question-status-badge-rejected {
    background: rgba(191, 95, 88, 0.12);
    color: #9d4e48;
    border-color: rgba(191, 95, 88, 0.12);
}

.badge-info,
.question-status-badge-answered {
    background: rgba(53, 92, 154, 0.11);
    color: #355c9a;
    border-color: rgba(53, 92, 154, 0.11);
}

.question-status-badge-approved {
    background: rgba(47, 143, 117, 0.12);
    color: #236a57;
    border-color: rgba(47, 143, 117, 0.12);
}

.badge-muted {
    background: rgba(90, 108, 126, 0.1);
    color: #4f6274;
    border-color: rgba(90, 108, 126, 0.1);
}

input,
select,
textarea {
    border-color: rgba(126, 150, 176, 0.2);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input::placeholder,
textarea::placeholder {
    color: #7b8da0;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(53, 92, 154, 0.14);
    border-color: #5576ad;
    box-shadow: 0 0 0 4px rgba(53, 92, 154, 0.08);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand-lockup__mark,
.public-header__brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(31, 53, 88, 0.12);
}

.brand-lockup__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-lockup__copy strong {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.brand-lockup__copy span {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.76;
}

.brand-lockup--sidebar {
    margin-bottom: 14px;
}

.brand-lockup--sidebar .brand-lockup__mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    box-shadow: 0 6px 14px rgba(31, 53, 88, 0.12);
}

.brand-lockup--sidebar .brand-lockup__copy strong {
    font-size: 0.88rem;
}

.brand-lockup--sidebar .brand-lockup__copy span {
    font-size: 0.76rem;
}

.brand-lockup--sidebar .brand-lockup__copy strong,
.brand-lockup--mobile .brand-lockup__copy strong {
    color: #ffffff;
}

.brand-lockup--sidebar .brand-lockup__copy span,
.brand-lockup--mobile .brand-lockup__copy span {
    color: rgba(255, 255, 255, 0.74);
}

.brand-lockup--auth {
    margin: 0 0 18px;
}

.brand-lockup--auth .brand-lockup__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

.brand-lockup--auth .brand-lockup__copy strong {
    color: #223144;
}

.public-header__brand {
    gap: 10px;
    text-decoration: none;
}

.public-header__brand-copy strong {
    font-size: 0.92rem;
    color: #223144;
}

.public-header__brand-copy span {
    color: var(--text-soft);
}

.sidebar {
    background:
        radial-gradient(circle at top, rgba(121, 153, 211, 0.14), transparent 34%),
        linear-gradient(180deg, #20365a 0%, #1b304f 100%);
}

.sidebar__brand {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.mobile-header {
    background:
        radial-gradient(circle at top, rgba(121, 153, 211, 0.14), transparent 34%),
        linear-gradient(180deg, #20365a 0%, #1b304f 100%);
}

.content-topbar__intro strong {
    color: #223144;
}

.content-topbar__eyebrow {
    color: var(--text-kicker);
}

.auth-shell {
    background:
        radial-gradient(circle at top left, rgba(189, 209, 225, 0.34), transparent 32%),
        linear-gradient(180deg, rgba(248, 251, 253, 0.94), rgba(238, 243, 247, 0.94));
}

.auth-shell__inner {
    max-width: 1080px;
}

.auth-entry-card__head h2 {
    margin-bottom: 0;
}

.auth-entry-card__foot {
    margin: 0;
}

.public-page-hero,
.public-hero,
.feedback-center-hero,
.mentor-hero,
.notifications-hero,
.operations-hero,
.tasks-hero,
.structure-hero,
.progress-center-hero,
.learning-hero,
.dashboard-hero {
    border: 1px solid rgba(160, 182, 202, 0.16);
    background:
        radial-gradient(circle at top right, rgba(201, 219, 235, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 252, 0.95) 100%);
}

.public-header,
.public-footer,
.content-topbar {
    gap: 18px;
}

.public-header__actions,
.support-panel__actions,
.profile-actions,
.operations-user-card__actions,
.lesson-actions-card__controls {
    gap: 12px;
}

.public-header__nav a,
.public-menu__panel a {
    color: #314256;
}

.public-header__nav a:hover,
.public-menu__panel a:hover,
.public-header__nav a.is-active,
.public-menu__panel a.is-active {
    background: rgba(53, 92, 154, 0.08);
    color: #27456e;
}

.mobile-header__top {
    align-items: flex-start;
}

.mobile-header__title {
    min-width: 0;
}

.notification-bell,
.public-menu summary,
.mobile-menu summary {
    border: 1px solid rgba(126, 150, 176, 0.16);
}

.muted,
.form-help,
small.muted,
.hero-card__subtitle,
.stats-card__label,
.stats-card__description,
.task-card-description,
.task-card-meta,
.task-card__detail span,
.course-card__description,
.course-card__stat span,
.course-card__progress-text,
.learning-overview-card__message,
.progress-stat-card p,
.progress-course-card__meta,
.progress-course-card__head p,
.notification-card p,
.notification-card time,
.notification-preview span,
.feedback-card p,
.feedback-card__head span,
.support-panel p,
.mentor-card p,
.mentor-review-card__text,
.mentor-review-card__head p,
.operations-card p,
.operations-link-card p,
.operations-activity-card p,
.operations-support-card p,
.operations-reply-card p,
.operations-reply-card time,
.operations-user-card__meta dt,
.operations-user-card__meta dd,
.profile-info-card p,
.profile-form-card p,
.profile-progress-card p,
.profile-readonly-item__label,
.public-lead,
.public-section__head p,
.public-article-card p,
.public-support-card p,
.public-cta p,
.public-media-card__copy p,
.public-faq-preview__item p,
.empty-state p,
.empty-state__description {
    color: var(--text-soft);
}

.hero-card__eyebrow,
.progress-pill,
.public-kicker,
.learning-overview-card__eyebrow,
.learning-hero__eyebrow,
.operations-card__eyebrow {
    color: var(--text-kicker);
}

.hero-card h2,
.stats-card__value,
.task-card-title,
.course-card h3,
.learning-hero__title,
.notification-card__head strong,
.feedback-card__head strong,
.mentor-card h3,
.mentor-review-card__head h3,
.operations-user-card__identity h3,
.operations-link-card strong,
.operations-reply-card strong,
.support-panel__header h2,
.profile-avatar-meta h2,
.profile-info-card h2,
.profile-progress-card h2,
.profile-form-card h2 {
    color: #223144;
}

.stats-card__value,
.soft-metric__value,
.learning-overview-card__value,
.progress-center-hero__value,
.tasks-stat-card__value {
    letter-spacing: -0.03em;
}

.dashboard-action-link,
.dashboard-attention-item,
.dashboard-activity-item,
.progress-timeline__item,
.notification-card,
.operations-link-card,
.operations-reply-card {
    background: rgba(255, 255, 255, 0.74);
}

.empty-state__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f1f6fb 0%, #e2ebf3 100%);
    color: #355c9a;
    font-size: 1.05rem;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.language-switcher__label {
    color: var(--text-kicker);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.language-switcher__controls {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(126, 150, 176, 0.16);
    box-shadow: 0 10px 24px rgba(21, 38, 63, 0.06);
}

.language-switcher__button {
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #314256;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: none;
}

.language-switcher__button:hover {
    transform: none;
    background: rgba(53, 92, 154, 0.08);
    color: #27456e;
    box-shadow: none;
}

.language-switcher__button.is-active {
    background: linear-gradient(180deg, #4168a5 0%, #355c9a 100%);
    color: #ffffff;
}

.language-switcher--dashboard,
.language-switcher--public {
    margin-left: auto;
}

.language-switcher--mobile,
.language-switcher--auth {
    width: 100%;
}

.language-switcher--mobile {
    display: grid;
    gap: 8px;
}

.language-switcher--mobile .language-switcher__controls,
.language-switcher--auth .language-switcher__controls {
    width: 100%;
    justify-content: space-between;
}

.language-switcher--mobile .language-switcher__button,
.language-switcher--auth .language-switcher__button {
    flex: 1 1 0;
}

@media (max-width: 959px) {
    .brand-lockup--sidebar {
        display: none;
    }

    .language-switcher--dashboard {
        margin-left: 0;
    }
}

@media (max-width: 430px) {
    .brand-lockup__mark,
    .public-header__brand-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 50%;
    }

    .brand-lockup__copy strong,
    .public-header__brand-copy strong {
        font-size: 0.86rem;
    }

    .brand-lockup__copy span,
    .public-header__brand-copy span {
        font-size: 0.75rem;
    }

    .mobile-header__top,
    .public-header {
        gap: 12px;
    }

    .language-switcher {
        width: 100%;
    }

    .language-switcher--public {
        margin-left: 0;
    }

    .language-switcher__label {
        font-size: 0.78rem;
    }

    .language-switcher__controls {
        width: 100%;
    }

    .notification-bell--mobile {
        width: 100%;
        justify-content: center;
    }

    .public-header__actions,
    .support-panel__actions,
    .profile-actions,
    .operations-user-card__actions {
        width: 100%;
    }

    .public-header__actions .btn,
    .support-panel__actions .btn,
    .profile-actions .btn,
    .operations-user-card__actions .btn,
    .operations-user-card__actions button {
        flex: 1 1 100%;
    }
}

@media (max-width: 390px) {
    body {
        font-size: 15px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-lockup__copy span,
    .public-header__brand-copy span {
        max-width: 14rem;
    }
}

/* Dashboard Visual Redesign */
.dashboard-layout {
    align-items: stretch;
    background: #eef3f9;
}

.sidebar {
    width: 296px;
    flex: 0 0 296px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 18px 24px;
    background: linear-gradient(180deg, #17325a 0%, #1b3a64 100%);
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.14);
}

.sidebar__brand {
    margin: 0;
    padding: 0 6px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup--sidebar {
    gap: 12px;
    margin: 0 0 16px;
}

.brand-lockup--sidebar .brand-lockup__mark,
.brand-lockup--mobile .brand-lockup__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 50%;
    box-shadow: none;
}

.brand-lockup--sidebar .brand-lockup__copy strong,
.brand-lockup--mobile .brand-lockup__copy strong {
    font-size: 1rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.brand-lockup--sidebar .brand-lockup__copy span,
.brand-lockup--mobile .brand-lockup__copy span {
    font-size: 0.82rem;
    opacity: 0.76;
}

.sidebar-profile {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-profile__avatar {
    width: 42px;
    height: 42px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.sidebar-profile__meta h1 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    line-height: 1.2;
}

.sidebar-profile__meta p {
    font-size: 0.79rem;
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-profile__badges {
    margin-top: 10px;
}

.sidebar-profile__account {
    background: rgba(209, 250, 229, 0.14);
    color: #d7f8e7;
}

.sidebar-profile__account--inactive {
    background: rgba(254, 226, 226, 0.14);
    color: #fee2e2;
}

.sidebar-profile__status,
.sidebar .badge {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.sidebar .badge-info {
    background: rgba(134, 175, 255, 0.18);
    color: #d6e5ff;
}

.sidebar__nav {
    gap: 8px;
}

.sidebar__nav a,
.mobile-menu__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transform: none;
    box-shadow: none;
}

.sidebar__nav a:hover,
.mobile-menu__nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

.sidebar__nav a.is-active,
.mobile-menu__nav a.is-active {
    background: rgba(123, 164, 244, 0.16);
    border-color: rgba(123, 164, 244, 0.16);
    box-shadow: inset 0 0 0 1px rgba(189, 213, 255, 0.08);
}

.sidebar__nav a.is-active::before,
.mobile-menu__nav a.is-active::before {
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 999px;
    background: #9bc0ff;
    box-shadow: none;
}

.sidebar__nav a > span:last-child,
.mobile-menu__nav a > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar__nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.92;
}

.sidebar__nav .ui-icon,
.mobile-menu__nav .ui-icon,
.notification-bell .ui-icon {
    position: relative;
    display: inline-block;
}

.sidebar__nav .ui-icon::before,
.sidebar__nav .ui-icon::after,
.mobile-menu__nav .ui-icon::before,
.mobile-menu__nav .ui-icon::after,
.notification-bell .ui-icon::before,
.notification-bell .ui-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    border-color: currentColor;
}

.ui-icon--home::before {
    inset: 6px 3px 2px;
    border: 1.7px solid currentColor;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.ui-icon--home::after {
    left: 2px;
    top: 1px;
    width: 14px;
    height: 14px;
    border-top: 1.7px solid currentColor;
    border-left: 1.7px solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.ui-icon--progress::before {
    left: 2px;
    right: 2px;
    bottom: 3px;
    height: 1.7px;
    background: currentColor;
}

.ui-icon--progress::after {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: skew(-18deg) rotate(-45deg);
}

.ui-icon--notifications::before {
    left: 4px;
    top: 3px;
    width: 10px;
    height: 10px;
    border: 1.7px solid currentColor;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.ui-icon--notifications::after {
    left: 7px;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.ui-icon--mentor::before {
    left: 1px;
    top: 4px;
    width: 7px;
    height: 7px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.ui-icon--mentor::after {
    right: 1px;
    top: 2px;
    width: 8px;
    height: 12px;
    border: 1.7px solid currentColor;
    border-radius: 6px 6px 5px 5px;
}

.ui-icon--operations::before {
    inset: 3px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.ui-icon--operations::after {
    left: 8px;
    top: 1px;
    width: 1.7px;
    height: 16px;
    background: currentColor;
    box-shadow: -5px 5px 0 currentColor, 5px -5px 0 currentColor;
    transform: rotate(35deg);
}

.ui-icon--profile::before {
    left: 5px;
    top: 2px;
    width: 8px;
    height: 8px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.ui-icon--profile::after {
    left: 3px;
    bottom: 2px;
    width: 12px;
    height: 7px;
    border: 1.7px solid currentColor;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
}

.ui-icon--referrals::before {
    left: 2px;
    top: 7px;
    width: 5px;
    height: 5px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    box-shadow: 9px -4px 0 -1.7px currentColor, 9px 4px 0 -1.7px currentColor;
}

.ui-icon--referrals::after {
    left: 6px;
    top: 8px;
    width: 7px;
    height: 1.7px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

.ui-icon--feedback::before {
    left: 2px;
    top: 3px;
    width: 14px;
    height: 10px;
    border: 1.7px solid currentColor;
    border-radius: 6px;
}

.ui-icon--feedback::after {
    left: 5px;
    bottom: 1px;
    width: 6px;
    height: 6px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: skew(-18deg);
}

.ui-icon--logout::before {
    left: 2px;
    top: 3px;
    width: 8px;
    height: 12px;
    border: 1.7px solid currentColor;
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.ui-icon--logout::after {
    right: 2px;
    top: 7px;
    width: 8px;
    height: 1.7px;
    background: currentColor;
    box-shadow: -1px -3px 0 0 currentColor;
    transform: rotate(0deg);
    clip-path: polygon(0 0, 65% 0, 65% -150%, 100% 50%, 65% 250%, 65% 100%, 0 100%);
}

.content {
    padding: 26px;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

.content__inner {
    max-width: 1360px;
    animation: none;
}

.content-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(130, 152, 177, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.content-topbar__intro {
    gap: 4px;
}

.content-topbar__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.content-topbar__intro strong {
    font-size: 1rem;
    color: #203041;
}

.notification-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(130, 152, 177, 0.14);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    color: #223144;
}

.notification-bell__icon {
    width: 18px;
    height: 18px;
    color: #355c9a;
    font-size: 0;
}

.notification-bell__label {
    font-size: 0.92rem;
    font-weight: 700;
}

.notification-bell__count {
    min-width: 22px;
    min-height: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #355c9a;
    color: #fff;
    font-size: 0.76rem;
}

.dashboard-card,
.progress-panel,
.progress-stat-card,
.tasks-stat-card,
.task-card,
.notification-card,
.support-panel,
.mentor-card,
.mentor-review-card,
.feedback-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-activity-card,
.operations-link-card,
.operations-reply-card,
.profile-avatar-card,
.profile-info-card,
.profile-progress-card,
.profile-form-card,
.structure-summary-card,
.structure-branch-card,
.structure-node-card,
.structure-node-empty,
.referral-card,
.progress-course-card,
.achievement-card,
.learning-overview-card,
.course-card {
    border-radius: 28px;
    border: 1px solid rgba(130, 152, 177, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.hero-card,
.progress-center-hero,
.mentor-hero,
.operations-hero,
.tasks-hero,
.structure-hero,
.learning-hero,
.notifications-hero,
.referrals-hero {
    border-radius: 30px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.hero-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    padding: 28px 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f4597 0%, #2d54d0 48%, #1f8da0 100%);
}

.hero-card__content,
.hero-card__aside {
    gap: 18px;
}

.hero-card__eyebrow {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card h2 {
    font-size: clamp(2.05rem, 3vw, 3.1rem);
    line-height: 1.05;
    color: #ffffff;
}

.hero-card__subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.hero-card__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-card__summary-item,
.hero-card__note {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
}

.hero-card__summary-item span,
.hero-card__note span {
    color: rgba(255, 255, 255, 0.72);
}

.hero-card__summary-item strong,
.hero-card__note strong {
    color: #ffffff;
}

.hero-card__aside {
    align-content: start;
    justify-items: stretch;
}

.hero-card__badge-group {
    justify-content: flex-end;
}

.hero-card__badge {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.18);
    color: #ffffff;
}

.hero-card__badge--success {
    background: rgba(50, 165, 133, 0.2);
}

.hero-card__badge--danger {
    background: rgba(191, 95, 88, 0.2);
}

.dashboard-learning-progress__header,
.support-panel__header,
.dashboard-section-header,
.progress-panel__header,
.tasks-toolbar,
.learning-section-header,
.card-heading,
.dashboard-actions__header {
    gap: 16px;
}

.dashboard-learning-progress__stats,
.dashboard-attention-card__stats,
.progress-center-stats,
.profile-progress-grid {
    gap: 14px;
}

.dashboard-learning-progress__stat,
.dashboard-attention-card__stat,
.progress-stat-card,
.learning-overview-card,
.soft-metric,
.tasks-stat-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(130, 152, 177, 0.12);
}

.progress-line,
.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e7eef7;
}

.progress-line__fill,
.progress-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #2e58d5 0%, #3a8ac7 100%);
}

.stats-card,
.dashboard-action-link,
.dashboard-attention-item,
.dashboard-activity-item,
.progress-timeline__item,
.operations-link-card,
.operations-reply-card,
.notification-card {
    border-radius: 24px;
}

.stats-card {
    min-height: 100%;
    padding: 20px 18px;
}

.stats-card__icon,
.dashboard-action-link__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef5ff 0%, #e2eefb 100%);
    color: #2f57c9;
    box-shadow: none;
}

.stats-card__body {
    gap: 6px;
}

.stats-card__label,
.stats-card__description,
.dashboard-action-link span:last-child,
.dashboard-learning-progress__stat span,
.dashboard-attention-card__stat span,
.progress-stat-card p,
.progress-course-card__meta,
.profile-facts dt,
.profile-readonly-item__label,
.breadcrumbs span,
.breadcrumbs a {
    color: #647892;
}

.stats-card__value,
.dashboard-learning-progress__stat strong,
.dashboard-attention-card__stat strong,
.progress-stat-card strong,
.learning-overview-card__value,
.soft-metric__value {
    color: #16273c;
}

.dashboard-actions,
.dashboard-learning-progress,
.dashboard-next-step,
.progress-center-teaser,
.support-panel,
.tasks-page,
.profile-center,
.notifications-page,
.mentor-page,
.operations-page {
    min-width: 0;
}

.dashboard-action-link {
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(130, 152, 177, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
}

.dashboard-action-link strong {
    color: #1d2f45;
}

.dashboard-action-link:hover {
    transform: translateY(-2px);
    border-color: rgba(53, 92, 154, 0.14);
}

.breadcrumbs {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: #5b7190;
}

.tasks-page,
.profile-center,
.progress-center-page,
.notifications-page,
.mentor-page,
.operations-page,
.learning-page,
.feedback-center-page,
.structure-page,
.referrals-page {
    display: grid;
    gap: 20px;
}

.panel.tasks-page,
.panel {
    border-radius: 30px;
    border: 1px solid rgba(130, 152, 177, 0.12);
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.mobile-header {
    display: none;
    padding: 16px 16px 8px;
    background: linear-gradient(180deg, #17325a 0%, #1b3a64 100%);
}

.mobile-header__top {
    align-items: center;
}

.mobile-menu summary {
    min-height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu__nav {
    gap: 8px;
}

.language-switcher--dashboard {
    margin-left: 0;
}

.language-switcher--dashboard .language-switcher__controls {
    background: #ffffff;
}

@media (max-width: 1180px) {
    .content-topbar {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .language-switcher--dashboard,
    .notification-menu,
    .notification-bell {
        width: 100%;
    }

    .notification-bell {
        justify-content: center;
    }
}

@media (max-width: 959px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .content {
        padding: 16px;
    }

    .content-topbar {
        margin-top: 0;
    }

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

    .hero-card__badge-group {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 12px;
    }

    .content-topbar {
        padding: 14px;
        border-radius: 20px;
    }

    .content-topbar__intro strong {
        font-size: 0.96rem;
    }

    .hero-card,
    .dashboard-card,
    .progress-panel,
    .progress-stat-card,
    .tasks-stat-card,
    .task-card,
    .notification-card,
    .support-panel,
    .mentor-card,
    .mentor-review-card,
    .feedback-card,
    .operations-card,
    .operations-user-card,
    .operations-support-card,
    .operations-activity-card,
    .operations-link-card,
    .operations-reply-card,
    .profile-avatar-card,
    .profile-info-card,
    .profile-progress-card,
    .profile-form-card,
    .progress-course-card,
    .achievement-card {
        border-radius: 24px;
    }

    .hero-card {
        padding: 22px 18px;
    }

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

    .dashboard-learning-progress__stats,
    .dashboard-attention-card__stats,
    .progress-center-stats,
    .profile-progress-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile sidebar menu alignment fix */
.sidebar__nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
    font-size: 0;
}

.sidebar__nav a > span:last-child,
.mobile-menu__nav a > span:last-child {
    display: block;
    line-height: 1.25;
}

.sidebar__nav .ui-icon--lesson::before,
.mobile-menu__nav .ui-icon--lesson::before {
    left: 3px;
    top: 2px;
    width: 14px;
    height: 16px;
    border: 1.7px solid currentColor;
    border-radius: 4px;
}

.sidebar__nav .ui-icon--lesson::after,
.mobile-menu__nav .ui-icon--lesson::after {
    left: 9px;
    top: 4px;
    width: 1.7px;
    height: 12px;
    background: currentColor;
    box-shadow: -4px 0 0 rgba(255, 255, 255, 0.32), 4px 0 0 rgba(255, 255, 255, 0.32);
}

.sidebar__nav .ui-icon--tasks::before,
.mobile-menu__nav .ui-icon--tasks::before {
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    border: 1.7px solid currentColor;
    border-radius: 4px;
}

.sidebar__nav .ui-icon--tasks::after,
.mobile-menu__nav .ui-icon--tasks::after {
    left: 6px;
    top: 8px;
    width: 7px;
    height: 4px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(-45deg);
}

.sidebar__nav .ui-icon--structure::before,
.mobile-menu__nav .ui-icon--structure::before {
    left: 3px;
    top: 4px;
    width: 14px;
    height: 1.7px;
    background: currentColor;
}

.sidebar__nav .ui-icon--structure::after,
.mobile-menu__nav .ui-icon--structure::after {
    left: 3px;
    top: 5px;
    width: 14px;
    height: 10px;
    border-left: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
}

.sidebar__nav .ui-icon--bonus::before,
.mobile-menu__nav .ui-icon--bonus::before {
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
    transform: rotate(45deg);
}

.sidebar__nav .ui-icon--bonus::after,
.mobile-menu__nav .ui-icon--bonus::after {
    left: 7px;
    top: 7px;
    width: 6px;
    height: 6px;
    border: 1.7px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

/* Compact language switcher */
.language-switcher {
    position: relative;
    width: auto;
    margin: 0;
}

.language-switcher summary {
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(130, 152, 177, 0.16);
    box-shadow: 0 10px 24px rgba(21, 38, 63, 0.06);
    color: #243549;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.language-switcher__current {
    line-height: 1;
}

.language-switcher__chevron {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.language-switcher[open] .language-switcher__chevron {
    transform: rotate(225deg) translateY(-1px);
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 132px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(130, 152, 177, 0.14);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.language-switcher__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #314256;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
    box-shadow: none;
}

.language-switcher__option:hover {
    background: rgba(53, 92, 154, 0.08);
    color: #27456e;
    transform: none;
    box-shadow: none;
}

.language-switcher__option.is-active {
    background: rgba(53, 92, 154, 0.12);
    color: #244574;
}

.language-switcher--dashboard,
.language-switcher--public {
    margin-left: auto;
}

.language-switcher--mobile,
.language-switcher--auth {
    width: 100%;
}

.language-switcher--mobile .language-switcher__summary,
.language-switcher--auth .language-switcher__summary {
    width: 100%;
    justify-content: space-between;
}

.language-switcher--mobile .language-switcher__menu,
.language-switcher--auth .language-switcher__menu {
    left: 0;
    right: 0;
    min-width: 0;
}

.language-switcher--dashboard .language-switcher__summary {
    background: #ffffff;
}

@media (max-width: 1180px) {
    .language-switcher--dashboard {
        margin-left: 0;
    }

    .language-switcher--dashboard .language-switcher__summary,
    .language-switcher--dashboard .language-switcher__menu {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .language-switcher {
        width: auto;
    }

    .language-switcher--public {
        margin-left: 0;
    }

    .language-switcher--public .language-switcher__summary {
        min-height: 38px;
        padding: 0 12px;
    }
}
.learning-cover-shell__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    pointer-events: none;
}

.learning-cover-shell__caption small {
    display: block;
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.5;
}

.lesson-structured-block__figure {
    margin: 1rem 0 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.lesson-structured-block__media-image {
    display: block;
    width: 100%;
    max-height: 26rem;
    object-fit: cover;
}

.lesson-media-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.lesson-media-link:hover,
.lesson-media-link:focus-visible {
    color: #163a8a;
    text-decoration: underline;
}

@media (max-width: 430px) {
    .learning-cover-shell__caption small {
        font-size: 0.76rem;
    }

    .lesson-structured-block__media-image {
        max-height: 14rem;
    }
}

/* Final product audit and operational polish */
.content,
.content__inner,
.lesson-layout,
.mentor-layout,
.feedback-center-layout,
.operations-layout,
.operations-grid-two,
.feedback-history-grid,
.structure-hero,
.structure-summary-grid,
.structure-branch-grid,
.notifications-hero,
.support-panel,
.progress-panel,
.mentor-review-card,
.notification-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-reply-card,
.referrals-mobile-card,
.structure-node-card,
.structure-summary-card,
.structure-branch-card,
.course-progress-card,
.learning-overview-card {
    min-width: 0;
}

.content__inner {
    width: min(100%, 1220px);
    margin-inline: auto;
}

.content-topbar {
    gap: 1rem;
    align-items: flex-start;
}

.content-topbar__intro {
    min-width: 0;
    flex: 1 1 22rem;
}

.content-topbar__intro strong,
.content-topbar__intro span,
.mentor-review-card__text,
.feedback-card p,
.notification-card p,
.operations-support-card p,
.operations-reply-card span,
.empty-state__description,
.mentor-card p,
.support-panel p,
.structure-summary-card p,
.structure-branch-card p,
.tree-node-email,
.structure-node-card__identity span,
.structure-node-card__meta span,
.structure-node-card__foot span,
.referrals-mobile-card,
.notification-dropdown__header span {
    overflow-wrap: anywhere;
}

.sidebar__nav a,
.mobile-menu__nav a,
.operations-link-card,
.support-panel__actions > *,
.empty-state__actions > * {
    min-height: 2.875rem;
}

.sidebar__nav a,
.mobile-menu__nav a {
    gap: 0.82rem;
}

.notification-dropdown {
    width: min(24rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
}

/* Partner discount program */
.partners-page {
    --partner-ink: #17334d;
    --partner-blue: #2867d8;
    --partner-mint: #dff4e8;
}

/* Partner staff workspace */
.partner-staff-page {
    --staff-navy: #173957;
    --staff-blue: #2769d8;
    --staff-green: #21855a;
    --staff-soft: #eef5f9;
}

.partner-staff-hero,
.partner-staff-panel,
.partner-scanner-card,
.partner-manual-card,
.partner-redemption-form-card,
.partner-redemption-receipt,
.partner-card-result {
    border: 1px solid rgba(47, 83, 112, 0.11);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(35, 70, 98, 0.08);
}

.partner-staff-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    background: linear-gradient(135deg, #fafdff, #eef7f3);
}

.partner-staff-hero--compact {
    padding-block: 1.35rem;
}

.partner-staff-hero h1,
.partner-staff-panel h2,
.partner-scanner-card h2,
.partner-manual-card h2,
.partner-redemption-form-card h2,
.partner-card-result h2 {
    margin: 0.45rem 0;
    color: var(--staff-navy);
}

.partner-staff-hero p,
.partner-staff-panel p,
.partner-manual-card p,
.partner-redemption-form-card p {
    margin: 0;
    color: var(--text-soft);
}

.partner-staff-hero__action {
    flex: 0 0 auto;
    min-width: 13rem;
}

.partner-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.partner-stat-grid article {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid rgba(47, 83, 112, 0.1);
    border-radius: 20px;
    background: linear-gradient(160deg, #fff, #f5f9fb);
}

.partner-stat-grid span,
.partner-stat-grid small,
.partner-month-summary span,
.partner-operation-row span {
    color: var(--text-soft);
}

.partner-stat-grid strong {
    color: var(--staff-navy);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    overflow-wrap: anywhere;
}

.partner-stat-card--warning {
    border-color: rgba(211, 126, 49, 0.3) !important;
    background: #fff8ef !important;
}

.partner-staff-panel {
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
}

.partner-staff-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.partner-staff-panel__head a,
.partner-receipt-actions a {
    color: var(--staff-blue);
    font-weight: 750;
}

.partner-month-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.partner-month-summary div {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--staff-soft);
}

.partner-month-summary strong {
    color: var(--staff-navy);
    font-size: 1.25rem;
}

.partner-operation-list {
    display: grid;
    gap: 0.6rem;
}

.partner-operation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(47, 83, 112, 0.09);
    border-radius: 16px;
    color: var(--staff-navy);
    text-decoration: none;
    background: #fbfdfe;
}

.partner-operation-row > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.partner-operation-row strong,
.partner-operation-row span {
    overflow-wrap: anywhere;
}

.partner-operation-warning {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    color: #914a18 !important;
    background: #ffead6;
    font-size: 0.72rem;
    font-weight: 800;
}

.partner-scanner-layout,
.partner-check-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.partner-scanner-card,
.partner-manual-card,
.partner-redemption-form-card {
    padding: clamp(1.15rem, 3vw, 1.7rem);
}

.partner-scanner-video {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background: #102b43;
}

.partner-scanner-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-scanner-frame {
    position: absolute;
    width: min(62%, 18rem);
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 0 0 999px rgba(4, 21, 34, 0.25);
    pointer-events: none;
}

.partner-scanner-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 1.2rem;
    text-align: center;
    background: linear-gradient(145deg, #153957, #235f8c);
}

.partner-scanner-placeholder[hidden] {
    display: none;
}

.partner-scanner-placeholder p {
    max-width: 28rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.partner-scanner-placeholder__icon {
    width: 4rem;
    height: 4rem;
    border: 3px solid #fff;
    border-radius: 18px;
    box-shadow: inset 0 0 0 10px #235f8c, inset 0 0 0 13px #fff;
}

.partner-scanner-status {
    min-height: 1.5rem;
    margin: 0.85rem 0;
    color: var(--text-soft);
    text-align: center;
}

.partner-scanner-card > .btn + .btn {
    margin-top: 0.55rem;
}

.partner-scanner-card > .btn,
.partner-manual-card form .btn,
.partner-redemption-form-card form .btn {
    width: 100%;
}

.partner-manual-card form,
.partner-redemption-form-card form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.partner-card-result {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.partner-card-result > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    color: #fff;
    background: #c95058;
    font-size: 2rem;
    font-weight: 800;
}

.partner-card-result--valid > span {
    background: var(--staff-green);
}

.partner-card-result div {
    min-width: 0;
}

.partner-card-result h2,
.partner-card-result strong,
.partner-card-result p {
    overflow-wrap: anywhere;
}

.partner-card-result--valid {
    min-height: 18rem;
    color: #fff;
    background: linear-gradient(135deg, #164169, #2e75d5);
}

.partner-card-result--valid h2,
.partner-card-result--valid p,
.partner-card-result--valid small {
    color: #fff;
}

.partner-redemption-receipt {
    max-width: 52rem;
    width: 100%;
    margin-inline: auto;
    padding: clamp(1.2rem, 4vw, 2rem);
}

.partner-redemption-receipt--warning {
    border-color: rgba(211, 126, 49, 0.4);
}

.partner-receipt-warning {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    color: #7e3f14;
    background: #fff1df;
}

.partner-redemption-receipt dl {
    margin: 0;
}

.partner-redemption-receipt dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(47, 83, 112, 0.1);
}

.partner-redemption-receipt dd {
    margin: 0;
    text-align: right;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.partner-receipt-note {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--staff-soft);
}

.partner-receipt-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.partner-history-table-wrap {
    overflow-x: auto;
}

.partner-history-table {
    width: 100%;
    min-width: 58rem;
    border-collapse: collapse;
}

.partner-history-table th,
.partner-history-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(47, 83, 112, 0.1);
    text-align: left;
    vertical-align: top;
}

.partner-history-table th {
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.partner-history-table td span {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.partner-history-table tr.is-suspicious {
    background: #fff8ef;
}

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

@media (max-width: 760px) {
    .partner-staff-hero,
    .partner-staff-panel__head,
    .partner-scanner-layout,
    .partner-check-layout {
        grid-template-columns: 1fr;
    }

    .partner-staff-hero,
    .partner-staff-panel__head {
        align-items: stretch;
        flex-direction: column;
    }

    .partner-staff-hero__action {
        width: 100%;
        min-width: 0;
    }

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

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

    .partner-operation-warning {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .partner-stat-grid {
        grid-template-columns: 1fr;
    }

    .partner-card-result,
    .partner-redemption-receipt dl div,
    .partner-receipt-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-redemption-receipt dd {
        text-align: left;
    }
}

.partners-intro,
.partner-directory {
    padding: clamp(1.2rem, 2vw, 2rem);
    border: 1px solid rgba(57, 91, 121, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(28, 58, 85, 0.08);
}

.partners-intro h1,
.partner-directory h2,
.discount-card-help h2 {
    margin: 0.45rem 0;
    color: var(--partner-ink);
}

.partners-intro p,
.partner-directory__header p,
.discount-card-help p {
    margin: 0;
    color: var(--text-soft);
}

.discount-card-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: 1.25rem;
    align-items: stretch;
}

.discount-card {
    position: relative;
    isolation: isolate;
    min-height: 21rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, #14375c 0%, #245fae 56%, #3b84eb 100%);
    box-shadow: 0 24px 54px rgba(25, 71, 132, 0.24);
}

.discount-card--inactive {
    background: linear-gradient(135deg, #42536a, #718096);
}

.discount-card:fullscreen {
    width: min(92vw, 48rem);
    height: min(90vh, 32rem);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discount-card__glow {
    position: absolute;
    z-index: -1;
    width: 19rem;
    height: 19rem;
    right: -5rem;
    bottom: -8rem;
    border-radius: 50%;
    background: rgba(132, 233, 193, 0.32);
}

.discount-card__header,
.discount-card__body,
.discount-card__footer,
.discount-card__brand {
    display: flex;
    align-items: center;
}

.discount-card__header,
.discount-card__body,
.discount-card__footer {
    justify-content: space-between;
    gap: 1rem;
}

.discount-card__brand {
    gap: 0.75rem;
}

.discount-card__brand div,
.discount-card__identity {
    display: grid;
    gap: 0.18rem;
}

.discount-card__brand span,
.discount-card__identity span,
.discount-card__footer span {
    color: rgba(255, 255, 255, 0.76);
}

.discount-card__mark {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.16rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(10, 34, 66, 0.18);
}

.discount-card__mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discount-card__status {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.discount-card__status--active {
    color: #173b2c;
    background: #bff0cf;
}

.discount-card__body {
    margin: 2.2rem 0;
}

.discount-card__identity strong {
    max-width: 26rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    overflow-wrap: anywhere;
}

.discount-card__identity small {
    margin-top: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.discount-card__qr {
    flex: 0 0 auto;
    padding: 0.7rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 34, 66, 0.18);
}

.discount-card__qr img {
    display: block;
    width: clamp(10.5rem, 18vw, 13.5rem);
    height: auto;
}

.discount-card:fullscreen .discount-card__qr img {
    width: clamp(14rem, 28vw, 18rem);
}

.discount-card-help {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid rgba(57, 91, 121, 0.1);
    border-radius: 28px;
    background: linear-gradient(145deg, #fff, #f3f8f5);
}

.discount-card-help form,
.discount-card-help .btn {
    width: 100%;
    margin-top: 1rem;
}

.partner-directory__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.partner-search {
    display: flex;
    gap: 0.6rem;
    width: min(100%, 31rem);
}

.partner-search input {
    min-width: 0;
    flex: 1;
}

.partner-categories {
    display: flex;
    gap: 0.55rem;
    margin: 1.4rem 0;
    padding-bottom: 0.25rem;
    overflow-x: auto;
}

.partner-categories a {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(49, 88, 120, 0.12);
    border-radius: 999px;
    color: var(--partner-ink);
    background: #f6f9fb;
    text-decoration: none;
    font-weight: 700;
}

.partner-categories a.is-active {
    color: #fff;
    border-color: var(--partner-blue);
    background: var(--partner-blue);
}

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

.partner-card {
    min-width: 0;
    padding: 1.2rem;
    border: 1px solid rgba(49, 88, 120, 0.1);
    border-radius: 22px;
    background: linear-gradient(160deg, #fff, #f8fbfa);
}

.partner-card--featured {
    border-color: rgba(42, 118, 205, 0.28);
    box-shadow: 0 14px 32px rgba(37, 99, 170, 0.1);
}

.partner-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.partner-card__head h3,
.partner-card__head span {
    margin: 0;
    overflow-wrap: anywhere;
}

.partner-card__head span,
.partner-card__description,
.partner-branch span,
.partner-branch small,
.partner-offer small {
    color: var(--text-soft);
}

.partner-card__logo {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    overflow: hidden;
    border-radius: 16px;
    color: var(--partner-blue);
    background: #e9f1ff;
    font-size: 1.3rem;
    font-weight: 800;
}

.partner-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-card__featured {
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    color: #245d44 !important;
    background: var(--partner-mint);
    font-size: 0.75rem;
    font-weight: 800;
}

.partner-card__description {
    margin: 1rem 0;
}

.partner-offers {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0;
}

.partner-offer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 16px;
    background: #edf7f1;
}

.partner-offer > strong {
    flex: 0 0 auto;
    color: #17633f;
    font-size: 1.25rem;
}

.partner-offer div,
.partner-branch {
    display: grid;
    gap: 0.2rem;
}

.partner-branch {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(49, 88, 120, 0.09);
}

.partner-branch + .partner-branch {
    margin-top: 0.8rem;
}

.partner-branch__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
}

.partner-branch__actions a {
    color: var(--partner-blue);
    font-weight: 750;
}

.partner-empty {
    padding: 2rem;
}

.card-verification {
    max-width: 44rem;
    margin: 2rem auto;
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}

.card-verification__icon {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    color: #fff;
    background: #26935d;
    font-size: 2.5rem;
}

.card-verification--invalid .card-verification__icon {
    background: #c84d58;
}

.card-verification dl {
    display: grid;
    gap: 0.7rem;
    margin: 1.4rem 0;
    text-align: left;
}

.card-verification dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(49, 88, 120, 0.1);
}

.card-verification dd {
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.card-verification__time {
    color: var(--text-soft);
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .discount-card-stage,
    .partner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .partners-intro,
    .partner-directory,
    .discount-card,
    .discount-card-help {
        border-radius: 22px;
    }

    .discount-card {
        min-height: 25rem;
    }

    .discount-card__header,
    .discount-card__body,
    .discount-card__footer,
    .partner-directory__header,
    .partner-search {
        align-items: stretch;
        flex-direction: column;
    }

    .discount-card__body {
        align-items: flex-start;
    }

    .discount-card__qr {
        align-self: center;
        padding: 0.7rem;
    }

    .discount-card__qr img {
        width: min(68vw, 13rem);
    }

    .partner-card__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .partner-card__featured {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .partner-search,
    .partner-search .btn {
        width: 100%;
    }
}

.notification-dropdown__list,
.operations-support-list,
.operations-replies-list,
.support-panel__list,
.mentor-card-list {
    gap: 0.9rem;
}

.notification-card,
.mentor-review-card,
.mentor-card,
.feedback-card,
.operations-user-card,
.operations-support-card,
.operations-reply-card,
.operations-card,
.operations-link-card,
.support-panel,
.progress-panel,
.empty-state,
.learning-empty-card {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.empty-state,
.learning-empty-card,
.mentor-card--empty,
.operations-empty-state,
.notification-empty-state {
    padding: clamp(1.25rem, 2.8vw, 1.8rem);
}

.empty-state__icon {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.support-panel__actions {
    align-items: stretch;
    flex-wrap: wrap;
}

.support-panel__actions .btn,
.support-panel__actions button,
.support-panel__actions a,
.empty-state__actions a,
.empty-state__actions button {
    justify-content: center;
    width: 100%;
}

.tree-scroll-area,
.structure-tree-scroll {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.lesson-structured-block__figure,
.learning-cover-shell__visual,
.operations-user-card__avatar img,
.structure-node-card__avatar img,
.structure-lead-card__avatar img {
    background: #eef4fb;
}

.lesson-structured-block__caption,
.feedback-card__head span,
.mentor-review-card__head p,
.operations-user-card__meta dd,
.operations-user-card__meta dt,
.operations-support-card small,
.operations-reply-card time,
.notification-card time,
.notification-dropdown__header span {
    color: #5b6678;
}

.dashboard-page h1,
.mentor-page h1,
.notifications-page h1,
.structure-page h1,
.feedback-center-page h1,
.operations-page h1 {
    text-wrap: balance;
}

@media (max-width: 430px) {
    .content__inner {
        width: 100%;
    }

    .content-topbar {
        align-items: stretch;
    }

    .content-topbar__intro strong {
        font-size: 1.02rem;
        line-height: 1.45;
    }

    .notification-dropdown {
        width: calc(100vw - 1.25rem);
        max-width: calc(100vw - 1.25rem);
    }

    .support-panel__actions .btn,
    .support-panel__actions button,
    .support-panel__actions a,
    .empty-state__actions a,
    .empty-state__actions button {
        width: 100%;
    }

    .structure-node-card,
    .operations-user-card,
    .mentor-review-card,
    .notification-card,
    .feedback-card {
        border-radius: 20px;
    }
}

/* Public zone redesign */
.public-shell {
    background:
        radial-gradient(circle at top left, rgba(198, 220, 255, 0.58), transparent 34%),
        radial-gradient(circle at top right, rgba(250, 233, 211, 0.62), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f7f3ec 100%);
}

.public-page {
    position: relative;
    gap: 1.3rem;
    padding-block: 1.35rem 2.4rem;
}

.public-page::before,
.public-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(12px);
    opacity: 0.78;
}

.public-page::before {
    top: 6rem;
    left: min(4vw, 2.5rem);
    width: min(24rem, 28vw);
    height: min(24rem, 28vw);
    background: radial-gradient(circle, rgba(213, 228, 255, 0.52), transparent 68%);
}

.public-page::after {
    top: 20rem;
    right: min(3vw, 2rem);
    width: min(20rem, 24vw);
    height: min(20rem, 24vw);
    background: radial-gradient(circle, rgba(242, 232, 220, 0.48), transparent 70%);
}

.public-shell,
.public-shell * {
    font-family: Inter, Manrope, "Segoe UI", sans-serif;
}

.public-header,
.public-footer,
.public-surface,
.public-hero,
.public-page-hero,
.public-section,
.public-cta,
.auth-entry-intro,
.auth-entry-card {
    border-radius: 1.9rem;
}

.public-header,
.public-footer,
.public-surface {
    box-shadow: 0 22px 54px rgba(125, 149, 197, 0.1);
}

.public-header {
    padding: 1.1rem 1.35rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.84);
}

.public-header__nav a,
.public-menu__panel a {
    font-weight: 600;
}

.public-hero--immersive,
.public-page-hero--split,
.public-cta--glow {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(213, 228, 255, 0.8), transparent 23%),
        radial-gradient(circle at 14% 10%, rgba(255, 245, 231, 0.9), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 255, 0.92));
}

.public-hero--immersive::before,
.public-page-hero--split::before,
.public-cta--glow::before {
    content: "";
    position: absolute;
    inset: auto auto -4rem -3rem;
    width: 15rem;
    height: 15rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(210, 226, 255, 0.6), transparent 68%);
    pointer-events: none;
}

.public-hero--immersive {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 1.6rem;
    padding: 2.1rem;
}

.public-hero__content,
.public-page-hero__copy {
    position: relative;
    z-index: 1;
}

.public-hero__content h1,
.public-page-hero__copy h1 {
    max-width: 11.5ch;
    letter-spacing: -0.04em;
    font-size: clamp(2.85rem, 4.45vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
}

.public-section h2,
.public-cta h2,
.public-story-card h2,
.public-support-card h2,
.auth-entry-intro h1,
.auth-entry-card__head h2 {
    font-size: clamp(2rem, 3.25vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.public-story-card h3,
.public-feature-card h3,
.public-step-visual-card h3,
.public-ecosystem-card h3 {
    font-size: clamp(1.12rem, 1.55vw, 1.4rem);
    line-height: 1.3;
}

.public-lead {
    font-size: clamp(1rem, 1.18vw, 1.1rem);
    line-height: 1.68;
    max-width: 34rem;
}

.public-hero__panel,
.public-page-hero__visual--illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-visual-card,
.public-illustration-panel,
.public-page-hero__visual--illustration {
    position: relative;
    border-radius: 2rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 24px 58px rgba(125, 149, 197, 0.15);
}

.public-visual-card img,
.public-illustration-panel img,
.public-page-hero__visual--illustration img,
.public-support-card__illustration,
.auth-entry-illustration img,
.public-step-visual-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.public-visual-card--hero {
    padding: 1.15rem;
}

.public-actions {
    align-items: center;
    gap: 0.72rem;
}

.public-actions .btn {
    min-height: 3.25rem;
    padding-inline: 1.35rem;
}

.public-feature-band {
    gap: 1.2rem;
}

.public-feature-band__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: stretch;
}

.public-feature-band__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-feature-card,
.public-story-card,
.public-ecosystem-card,
.public-step-visual-card,
.public-faq-card {
    min-width: 0;
    position: relative;
    border-radius: 1.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(209, 220, 239, 0.72);
    box-shadow: 0 18px 38px rgba(126, 145, 185, 0.09);
}

.public-feature-card::after,
.public-story-card::after,
.public-ecosystem-card::after,
.public-step-visual-card::after,
.public-faq-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(223, 234, 255, 0.28), transparent 32%);
    pointer-events: none;
}

.public-feature-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 0.5rem;
    min-height: 100%;
    padding: 1.25rem;
}

.public-feature-card__icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.public-feature-card__icon--blue {
    background: linear-gradient(180deg, #dfe9ff, #b9ccff);
}

.public-feature-card__icon--green {
    background: linear-gradient(180deg, #dff5e6, #bfe8cb);
}

.public-feature-card__icon--violet {
    background: linear-gradient(180deg, #eee5ff, #d0c2ff);
}

.public-feature-card__icon--amber {
    background: linear-gradient(180deg, #ffe9d5, #ffd3aa);
}

.public-feature-card h3,
.public-story-card h3,
.public-ecosystem-card h3,
.public-step-visual-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.public-feature-card p,
.public-story-card p,
.public-ecosystem-card p,
.public-step-visual-card p,
.public-faq-preview-list span,
.public-story-points span,
.public-journey-inline span,
.public-ordered-points span {
    color: #5f6f92;
    font-size: 0.96rem;
    line-height: 1.66;
}

.public-quote-ribbon,
.public-route-ribbon {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
    padding: 1.05rem 1.2rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.84), rgba(255, 255, 255, 0.92));
    color: #415579;
}

.public-quote-ribbon--hero {
    grid-template-columns: auto 1fr auto;
}

.public-quote-ribbon--hero::after {
    content: "";
    width: 4.25rem;
    height: 4.25rem;
    justify-self: end;
    border-radius: 1.6rem 1.6rem 1.6rem 0.8rem;
    background:
        radial-gradient(circle at 40% 28%, #9ede9e 0 18%, transparent 19%),
        radial-gradient(circle at 62% 48%, #74c577 0 20%, transparent 21%),
        linear-gradient(180deg, #f4fbf4 0%, #d8efd8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.public-route-ribbon {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 1.4rem;
}

.public-quote-ribbon__mark {
    font-size: 2rem;
    line-height: 1;
    color: #4f78d6;
}

.public-section--immersive {
    align-items: stretch;
}

.public-story-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.35rem;
}

.public-story-card--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
}

.public-story-card--compact {
    align-content: start;
}

.public-journey-inline,
.public-story-points,
.public-ordered-points,
.public-faq-preview-list {
    display: grid;
    gap: 0.9rem;
}

.public-journey-inline article,
.public-story-points article,
.public-ordered-points article,
.public-faq-preview-list article {
    display: grid;
    gap: 0.3rem;
    padding: 0.88rem 0.95rem;
    border-radius: 1.2rem;
    background: rgba(247, 250, 255, 0.86);
    border: 1px solid rgba(219, 227, 242, 0.88);
}

.public-check-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.public-check-list li {
    position: relative;
    padding-left: 1.6rem;
    color: #4f6287;
}

.public-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #9dd5aa, #60b570);
}

.public-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.public-story-grid--list {
    grid-template-columns: 1fr;
}

.public-story-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.92));
    border: 1px solid rgba(214, 224, 240, 0.78);
}

.public-story-feature p {
    margin: 0.35rem 0 0;
}

.public-note-ribbon {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1.15rem;
    margin-top: 0.95rem;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(214, 224, 240, 0.72);
}

.public-note-ribbon__leaf {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 38% 28%, #7dcc7e 0 18%, transparent 19%),
        radial-gradient(circle at 62% 48%, #4fb361 0 22%, transparent 23%),
        linear-gradient(180deg, #f3fbf4 0%, #d5ecd7 100%);
}

.public-note-ribbon p {
    margin: 0;
    color: #415579;
}

.public-note-ribbon--visual {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: center;
}

.public-note-ribbon--visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.9));
}

.public-note-ribbon--visual strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #172a46;
    font-size: 1.02rem;
}

.public-ecosystem-card {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-height: 100%;
    padding: 1.25rem;
}

.public-ecosystem-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #4e6fc8;
    font-weight: 700;
}

.public-ecosystem-card--soft {
    background: linear-gradient(180deg, #f4f8ff, #ffffff);
}

.public-ecosystem-card--mint {
    background: linear-gradient(180deg, #effaf2, #ffffff);
}

.public-ecosystem-card--violet {
    background: linear-gradient(180deg, #f4f1ff, #ffffff);
}

.public-page-hero--split,
.public-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.public-story-grid,
.public-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.public-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-steps-grid--journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0.65rem;
}

.public-step-visual-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
}

.public-step-connector {
    position: relative;
    height: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(131, 168, 248, 0.2), rgba(131, 168, 248, 0.85), rgba(122, 198, 132, 0.32));
}

.public-step-connector::after {
    content: "";
    position: absolute;
    right: -0.15rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 0.16rem solid #7fa1f4;
    border-right: 0.16rem solid #7fa1f4;
    transform: translateY(-50%) rotate(45deg);
}

.public-step-visual-card__image {
    border-radius: 1.3rem;
    padding: 0.65rem;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.92), rgba(249, 241, 233, 0.72));
}

.public-steps-grid--journey .public-step-visual-card__image {
    min-height: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.public-steps-grid--journey .public-step-visual-card__image img {
    max-width: 100%;
    max-height: 6.35rem;
    width: auto;
    object-fit: contain;
}

.public-step-visual-card__copy {
    display: grid;
    gap: 0.45rem;
}

.public-step-visual-card__copy span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #dbe6ff, #bfcfff);
    color: #3558a4;
    font-weight: 700;
}

.public-support-card--faq {
    align-content: start;
    gap: 0.9rem;
    padding: 1.35rem;
    background:
        radial-gradient(circle at top left, rgba(246, 237, 225, 0.88), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.94));
}

.public-support-card__illustration {
    max-width: 20rem;
    margin-inline: auto;
}

.public-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.public-faq-card {
    padding: 1.35rem;
}

.public-faq-layout--art {
    align-items: stretch;
}

.public-faq-layout--art .public-faq-card,
.public-faq-layout--art .public-support-card--faq {
    min-height: 100%;
}

.public-faq-item {
    background: rgba(255, 255, 255, 0.86);
}

.public-pillar-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.public-pillar-row article {
    display: grid;
    gap: 0.3rem;
    padding: 0.88rem 0.95rem;
    border-radius: 1.25rem;
    background: rgba(246, 249, 255, 0.92);
}

.public-pillar-row strong {
    color: #4f73cf;
}

.auth-entry-layout--refined {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.15rem;
    align-items: stretch;
}

.auth-entry-intro--visual,
.auth-entry-card--refined {
    min-height: 100%;
}

.auth-entry-intro--visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
    align-items: center;
    gap: 1.15rem;
    padding: 1.45rem;
    background:
        radial-gradient(circle at top right, rgba(217, 230, 255, 0.78), transparent 26%),
        radial-gradient(circle at top left, rgba(250, 237, 221, 0.86), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.auth-entry-intro__copy {
    display: grid;
    gap: 0.82rem;
}

.auth-entry-illustration {
    border-radius: 1.7rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.88));
}

.auth-entry-points--soft div {
    background: rgba(248, 250, 255, 0.88);
}

.auth-entry-card--refined {
    padding: 1.45rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 255, 0.94));
}

.public-section,
.public-cta {
    position: relative;
    isolation: isolate;
}

.public-section::after,
.public-cta::after {
    content: "";
    position: absolute;
    right: 1.4rem;
    bottom: 1.2rem;
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 232, 252, 0.28), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.auth-entry-card--refined form button,
.auth-entry-card--refined .btn {
    min-height: 3rem;
}

.public-kicker {
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

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

    .public-step-connector:nth-child(2n) {
        display: none;
    }

    .public-ecosystem-grid,
    .public-story-grid,
    .public-feature-band__grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .public-hero--immersive,
    .public-page-hero--split,
    .public-faq-layout,
    .auth-entry-layout--refined,
    .auth-entry-intro--visual,
    .public-section--split,
    .public-section--immersive {
        grid-template-columns: 1fr;
    }

    .public-hero__content h1,
    .public-page-hero__copy h1 {
        max-width: none;
    }

    .public-page {
        gap: 1.15rem;
        padding-block: 1.2rem 2rem;
    }

    .public-visual-card,
    .public-illustration-panel,
    .public-page-hero__visual--illustration,
    .auth-entry-illustration {
        max-width: 34rem;
        margin-inline: auto;
    }

    .public-feature-band__grid,
    .public-ecosystem-grid,
    .public-story-grid,
    .public-steps-grid,
    .public-feature-band__grid--three,
    .public-pillar-row {
        grid-template-columns: 1fr;
    }

    .public-steps-grid--journey {
        grid-template-columns: 1fr;
    }

    .public-note-ribbon--visual {
        grid-template-columns: 1fr;
    }

    .public-note-ribbon--visual img {
        max-width: 18rem;
        margin-inline: auto;
    }

    .public-step-connector {
        width: 0.24rem;
        height: 2.25rem;
        margin-inline: auto;
        background: linear-gradient(180deg, rgba(131, 168, 248, 0.2), rgba(131, 168, 248, 0.85), rgba(122, 198, 132, 0.32));
    }

    .public-step-connector::after {
        top: auto;
        bottom: -0.1rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 760px) {
    .public-page {
        gap: 1rem;
        padding-block: 1.05rem 1.75rem;
    }

    .public-hero--immersive,
    .public-page-hero--split,
    .public-section,
    .public-cta,
    .public-faq-card,
    .auth-entry-intro--visual,
    .auth-entry-card--refined {
        padding: 1.2rem;
    }

    .public-quote-ribbon,
    .public-route-ribbon {
        grid-template-columns: 1fr;
    }

    .public-page::before,
    .public-page::after {
        opacity: 0.56;
    }

    .public-quote-ribbon--hero::after {
        justify-self: start;
    }

    .public-support-actions,
    .public-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .public-actions .btn,
    .public-support-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .public-header {
        padding: 0.95rem 1rem;
    }

    .public-hero--immersive,
    .public-page-hero--split,
    .public-section,
    .public-cta,
    .public-faq-card,
    .auth-entry-intro--visual,
    .auth-entry-card--refined {
        padding: 1.05rem;
        border-radius: 1.45rem;
    }

    .public-feature-card,
    .public-story-card,
    .public-ecosystem-card,
    .public-step-visual-card {
        padding: 0.95rem;
    }

    .public-hero h1,
    .public-page-hero h1,
    .auth-entry-intro h1 {
        font-size: clamp(1.9rem, 7vw, 2.3rem);
    }

    .public-section h2,
    .public-cta h2,
    .public-story-card h2,
    .public-support-card h2,
    .auth-entry-card__head h2 {
        font-size: clamp(1.7rem, 6vw, 2.1rem);
    }

    .public-lead,
    .public-feature-card p,
    .public-story-card p,
    .public-ecosystem-card p,
    .public-step-visual-card p,
    .public-faq-item p {
        font-size: 0.95rem;
    }

    .public-quote-ribbon--hero {
        grid-template-columns: 1fr;
    }

    .public-header__brand-copy strong {
        font-size: 0.92rem;
    }

    .public-header__brand-copy span {
        font-size: 0.75rem;
    }

    .public-page::before,
    .public-page::after,
    .public-section::after,
    .public-cta::after {
        display: none;
    }
}

/* Premium motion system */
:root {
    --motion-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-ease-soft: cubic-bezier(0.25, 0.9, 0.3, 1);
    --motion-fast: 180ms;
    --motion-base: 320ms;
    --motion-slow: 520ms;
    --motion-shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.08);
    --motion-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
    --motion-ring: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

body {
    background-position: 0 0;
}

body.motion-page-ready .public-shell,
body.motion-page-ready .dashboard-layout,
body.motion-page-ready .auth-shell {
    animation: motionPageFade 520ms var(--motion-ease-premium);
}

.btn,
button,
.course-card__cta,
.lesson-card__cta,
.lesson-video-card__link,
.card-status-card__cta,
.public-header__nav a,
.public-menu__panel a,
.sidebar__nav a,
.mobile-menu__nav a,
.language-switcher__summary,
.language-switcher__menu,
.language-switcher__option,
.notification-bell,
.public-faq-item,
.public-feature-card,
.public-story-card,
.public-step-visual-card,
.public-support-card,
.public-ecosystem-card,
.public-surface,
.dashboard-card,
.hero-card,
.stats-card,
.dashboard-stat-card,
.mentor-card,
.mentor-review-card,
.feedback-card,
.progress-stat-card,
.progress-course-card,
.course-card,
.lesson-card,
.notification-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-link-card,
.operations-reply-card {
    transition:
        transform var(--motion-base) var(--motion-ease-premium),
        box-shadow var(--motion-base) var(--motion-ease-premium),
        border-color var(--motion-base) var(--motion-ease-soft),
        background-color var(--motion-base) var(--motion-ease-soft),
        opacity var(--motion-base) var(--motion-ease-soft),
        filter var(--motion-base) var(--motion-ease-soft);
    will-change: transform, opacity;
}

.public-feature-card:hover,
.public-story-card:hover,
.public-step-visual-card:hover,
.public-support-card:hover,
.public-ecosystem-card:hover,
.public-faq-card:hover,
.dashboard-card:hover,
.hero-card:hover,
.stats-card:hover,
.dashboard-stat-card:hover,
.mentor-card:hover,
.mentor-review-card:hover,
.feedback-card:hover,
.progress-stat-card:hover,
.progress-course-card:hover,
.course-card:hover,
.lesson-card:hover,
.notification-card:hover,
.operations-card:hover,
.operations-user-card:hover,
.operations-support-card:hover,
.operations-link-card:hover,
.operations-reply-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--motion-shadow-hover);
    border-color: rgba(119, 144, 193, 0.3);
}

.public-feature-card:hover,
.public-story-card:hover,
.public-step-visual-card:hover,
.public-support-card:hover,
.public-ecosystem-card:hover,
.public-faq-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.97));
}

.btn,
button,
.course-card__cta,
.lesson-card__cta,
.lesson-video-card__link,
.card-status-card__cta {
    position: relative;
    overflow: hidden;
}

.btn::before,
button::before,
.course-card__cta::before,
.lesson-card__cta::before,
.lesson-video-card__link::before,
.card-status-card__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    transform: translateX(-120%);
    transition: transform 560ms var(--motion-ease-premium);
    pointer-events: none;
}

.btn:hover,
button:hover,
.course-card__cta:hover,
.lesson-card__cta:hover,
.lesson-video-card__link:hover,
.card-status-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--motion-shadow-soft);
}

.btn:hover::before,
button:hover::before,
.course-card__cta:hover::before,
.lesson-card__cta:hover::before,
.lesson-video-card__link:hover::before,
.card-status-card__cta:hover::before {
    transform: translateX(120%);
}

.btn:active,
button:active,
.course-card__cta:active,
.lesson-card__cta:active,
.lesson-video-card__link:active,
.card-status-card__cta:active {
    transform: translateY(0) scale(0.985);
    transition-duration: var(--motion-fast);
}

.btn:focus-visible,
button:focus-visible,
.course-card__cta:focus-visible,
.lesson-card__cta:focus-visible,
.lesson-video-card__link:focus-visible,
.card-status-card__cta:focus-visible,
.language-switcher__summary:focus-visible,
.public-header__nav a:focus-visible,
.public-menu__panel a:focus-visible,
.sidebar__nav a:focus-visible,
.mobile-menu__nav a:focus-visible,
.public-faq-item summary:focus-visible {
    outline: none;
    box-shadow: var(--motion-ring);
}

.public-header::before,
.public-hero--immersive::after,
.public-page-hero--split::after,
.public-cta--glow::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.55;
    animation: motionBlobFloat 15s ease-in-out infinite alternate;
}

.public-hero--immersive::after,
.public-page-hero--split::after,
.public-cta--glow::after {
    inset: 12% auto auto 58%;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.36), transparent 72%);
}

.public-header::before {
    inset: -1.5rem auto auto 10%;
    width: 7rem;
    height: 7rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 72%);
}

.public-visual-card img,
.public-illustration-panel img,
.public-page-hero__visual--illustration img,
.auth-entry-illustration img,
.public-support-card__illustration,
.public-note-ribbon--visual img {
    animation: motionIllustrationFloat 12s ease-in-out infinite alternate;
    transform-origin: center center;
}

.public-hero__panel .public-visual-card img {
    animation-duration: 14s;
}

.public-illustration-panel img,
.public-note-ribbon--visual img {
    animation-duration: 16s;
}

.public-header__nav a,
.public-menu__panel a,
.sidebar__nav a,
.mobile-menu__nav a {
    position: relative;
}

.public-header__nav a:hover,
.public-menu__panel a:hover,
.sidebar__nav a:hover,
.mobile-menu__nav a:hover {
    transform: translateY(-1px);
}

.public-header__nav a.is-active,
.public-menu__panel a.is-active,
.sidebar__nav a.is-active,
.mobile-menu__nav a.is-active {
    transition-duration: 380ms;
}

.language-switcher__summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(112, 137, 186, 0.26);
}

.language-switcher__chevron {
    transition: transform var(--motion-base) var(--motion-ease-premium);
}

.language-switcher__menu {
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
}

.language-switcher[open] .language-switcher__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.language-switcher__option:hover {
    transform: translateX(2px);
}

.notification-dropdown,
.public-menu__panel,
.mobile-menu__nav {
    transform-origin: top center;
    animation: motionDropdownIn 300ms var(--motion-ease-premium);
}

.public-faq-item {
    overflow: hidden;
}

.public-faq-item summary {
    transition: color var(--motion-base) var(--motion-ease-soft), background-color var(--motion-base) var(--motion-ease-soft);
}

.public-faq-item:hover summary {
    color: #244574;
}

.public-faq-item__body {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        height 340ms var(--motion-ease-premium),
        opacity 240ms ease;
}

.public-faq-item[open] .public-faq-item__body {
    opacity: 1;
}

.public-faq-item__body p {
    margin-top: 0;
}

.public-faq-item summary::after {
    transition: transform var(--motion-base) var(--motion-ease-premium), opacity var(--motion-base) var(--motion-ease-soft);
}

.public-faq-item[open] summary::after {
    transform: rotate(135deg);
}

.motion-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 560ms var(--motion-ease-premium),
        transform 560ms var(--motion-ease-premium);
    transition-delay: var(--motion-delay, 0s);
}

.motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes motionIllustrationFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes motionBlobFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(8px, -10px, 0) scale(1.05);
    }
}

@keyframes motionDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes motionPageFade {
    from {
        opacity: 0.01;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 430px) {
    .public-feature-card:hover,
    .public-story-card:hover,
    .public-step-visual-card:hover,
    .public-support-card:hover,
    .public-ecosystem-card:hover,
    .public-faq-card:hover,
    .dashboard-card:hover,
    .hero-card:hover,
    .stats-card:hover,
    .dashboard-stat-card:hover,
    .mentor-card:hover,
    .mentor-review-card:hover,
    .feedback-card:hover,
    .progress-stat-card:hover,
    .progress-course-card:hover,
    .course-card:hover,
    .lesson-card:hover,
    .notification-card:hover,
    .operations-card:hover,
    .operations-user-card:hover,
    .operations-support-card:hover,
    .operations-link-card:hover,
    .operations-reply-card:hover {
        transform: translateY(-2px);
    }

    .public-visual-card img,
    .public-illustration-panel img,
    .public-page-hero__visual--illustration img,
    .auth-entry-illustration img,
    .public-support-card__illustration,
    .public-note-ribbon--visual img {
        animation-duration: 18s;
    }

    .motion-reveal {
        transform: translateY(12px);
        transition-duration: 420ms;
    }
}

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

    .motion-reveal,
    .motion-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Premium lesson experience system */
.learning-page--lesson .learning-hero.learning-cover-shell {
    position: relative;
    gap: 1.25rem;
    padding: 1.15rem;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.22), transparent 26%),
        radial-gradient(circle at bottom left, rgba(226, 232, 240, 0.26), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.97));
}

.learning-page--lesson .learning-hero__content {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.learning-page--lesson .learning-hero__title {
    max-width: 13ch;
    line-height: 1.05;
}

.learning-page--lesson .learning-hero__subtitle {
    max-width: 40rem;
    color: #52637f;
    font-size: 1.02rem;
    line-height: 1.76;
}

.learning-hero__microgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.learning-hero__microcard {
    display: grid;
    gap: 0.35rem;
    min-height: 100%;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.learning-hero__microcard span,
.learning-hero__microcard p {
    color: #64748b;
}

.learning-hero__microcard span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.learning-hero__microcard strong {
    color: #172a46;
    font-size: 1rem;
    line-height: 1.35;
}

.learning-hero__microcard p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.62;
}

.learning-hero__microcard--mint {
    background:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 246, 0.96));
}

.learning-hero__microcard--warm {
    background:
        radial-gradient(circle at top right, rgba(254, 243, 199, 0.76), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 241, 0.96));
}

.learning-page--lesson .learning-cover-shell__visual {
    min-height: 250px;
    padding: 1.05rem;
}

.learning-page--lesson .learning-cover-shell__caption {
    max-width: 20rem;
    padding: 0.9rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.learning-page--lesson .educational-media-grid--intro {
    margin-top: 0.85rem;
}

.lesson-layout {
    gap: 1.35rem;
}

.lesson-layout__main {
    gap: 1.35rem;
}

.lesson-content-card,
.lesson-task-card,
.support-panel,
.lesson-video-card,
.lesson-actions-card,
.lesson-empty-media-card {
    border-radius: 28px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background:
        radial-gradient(circle at top right, rgba(241, 245, 249, 0.72), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.lesson-content-card__header {
    gap: 1rem;
    margin-bottom: 1.05rem;
}

.lesson-content-card__lead {
    max-width: 44rem;
    color: #5d6f8c;
    line-height: 1.72;
}

.lesson-content-card__intro-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.05rem;
    margin-bottom: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(191, 219, 254, 0.6);
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.68), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
}

.lesson-content-card__intro-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #172a46;
}

.lesson-content-card__intro-note p {
    margin: 0;
    color: #5e6f89;
    line-height: 1.68;
}

.lesson-content-card__intro-mark {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86), transparent 22%),
        linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.lesson-reading-flow {
    position: relative;
    padding-left: 1.1rem;
}

.lesson-reading-flow__line {
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.76), rgba(209, 250, 229, 0.52), rgba(254, 243, 199, 0.5));
}

.lesson-content-card__body {
    max-width: 690px;
    margin-top: 0;
    color: #172a46;
    font-size: 1.02rem;
    line-height: 1.88;
}

.lesson-content-card__body p,
.lesson-content-card__body ul,
.lesson-content-card__body ol,
.lesson-content-card__body blockquote {
    margin: 0 0 1.3rem;
}

.lesson-content-card__body h1,
.lesson-content-card__body h2,
.lesson-content-card__body h3,
.lesson-content-card__body h4 {
    margin: 2rem 0 0.95rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.lesson-content-card__body figure,
.lesson-content-card__body .lesson-media-placeholder,
.lesson-content-card__body .lesson-infographic-placeholder,
.lesson-content-card__body .mentor-note,
.lesson-content-card__body .lesson-mentor-note,
.lesson-content-card__body .reflection-block,
.lesson-content-card__body .lesson-reflection-block {
    margin: 1.65rem 0;
    padding: 1.2rem 1.25rem;
    border-radius: 26px;
}

.lesson-structured-block {
    position: relative;
    gap: 0.95rem;
    margin: 0 0 1.25rem;
    padding: 1.25rem 1.3rem 1.3rem;
    border-radius: 26px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.lesson-structured-block::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: -1.4rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #93c5fd 0%, #a7f3d0 100%);
    box-shadow: 0 0 0 8px rgba(219, 234, 254, 0.62);
}

.lesson-structured-block__head {
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.25rem;
}

.lesson-structured-block__index {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.94));
    color: #365aa6;
    font-size: 0.83rem;
    font-weight: 800;
    flex-shrink: 0;
}

.lesson-structured-block__title-group {
    display: grid;
    gap: 0.38rem;
}

.lesson-structured-block__signal {
    margin: 0;
    color: #6b7b95;
    font-size: 0.92rem;
    line-height: 1.62;
}

.lesson-structured-block--mentor {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.98));
}

.lesson-structured-block--reflection {
    background:
        radial-gradient(circle at top left, rgba(254, 243, 199, 0.7), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 240, 0.98));
}

.lesson-structured-block--quote,
.lesson-structured-block--kind-quote {
    background:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.68), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 246, 0.98));
}

.lesson-structured-block--kind-media,
.lesson-structured-block--kind-media_placeholder,
.lesson-structured-block--kind-infographic {
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.62), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
}

.lesson-structured-block__figure {
    overflow: hidden;
    padding: 0.8rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.62), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
}

.lesson-structured-block__media-image {
    border-radius: 18px;
}

.lesson-structured-block__caption {
    margin-top: 0.1rem;
    line-height: 1.65;
}

.mentor-insight-card,
.learning-atmosphere-card,
.calm-quote-block,
.media-preview-block,
.highlighted-reflection-block,
.reflection-prompt-card {
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.mentor-insight-card,
.support-panel,
.mentor-card__reply,
.mentor-review-card__reply {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.68), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.97));
}

.calm-quote-block blockquote {
    font-size: 1.06rem;
    line-height: 1.76;
}

.media-preview-block__canvas,
.media-preview-block__placeholder,
.media-preview-block__infographic,
.lesson-structured-block__media {
    padding: 0.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
}

.highlighted-reflection-block__excerpt {
    padding: 1rem 1.05rem;
    border-radius: 22px;
}

.lesson-task-card--practice {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.54), transparent 28%),
        radial-gradient(circle at bottom left, rgba(219, 234, 254, 0.48), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.97));
}

.lesson-task-card__atmosphere {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.lesson-task-card__atmosphere-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(191, 219, 254, 0.56);
    background: rgba(255, 255, 255, 0.7);
}

.lesson-task-card__atmosphere-item--warm {
    border-color: rgba(253, 186, 116, 0.4);
    background:
        radial-gradient(circle at top right, rgba(254, 243, 199, 0.56), transparent 42%),
        rgba(255, 255, 255, 0.78);
}

.lesson-task-card__atmosphere-item strong {
    color: #172a46;
}

.lesson-task-card__atmosphere-item p {
    margin: 0;
    color: #5f6f88;
    line-height: 1.62;
}

.lesson-task-card__item {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
}

.lesson-support-signal {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(191, 219, 254, 0.56);
    background: rgba(255, 255, 255, 0.72);
}

.lesson-support-signal__mark {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #172a46 0%, #355ea8 100%);
    color: #fff;
    font-weight: 800;
}

.lesson-support-signal p {
    margin: 0.25rem 0 0;
    color: #60708b;
    line-height: 1.65;
}

.lesson-sidebar {
    gap: 1rem;
}

.lesson-sidebar-card {
    border-radius: 24px;
}

.lesson-sidebar-card--flow {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.62), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.97));
}

.lesson-reading-map {
    display: grid;
    gap: 0.7rem;
}

.lesson-reading-map__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.64);
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
}

.lesson-reading-map__index {
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.94));
    color: #355aa5;
    font-size: 0.82rem;
    font-weight: 800;
}

.lesson-reading-map__copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.lesson-reading-map__copy strong {
    color: #172a46;
    font-size: 0.95rem;
    line-height: 1.45;
}

.lesson-reading-map__copy small {
    color: #6b7c96;
    line-height: 1.5;
}

.tasks-page .tasks-hero,
.mentor-page .mentor-hero {
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.97));
}

.tasks-page .task-card--polished,
.mentor-page .mentor-review-card {
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

@media (max-width: 980px) {
    .learning-page--lesson .learning-hero.learning-cover-shell {
        grid-template-columns: 1fr;
    }

    .learning-hero__microgrid,
    .lesson-task-card__atmosphere {
        grid-template-columns: 1fr;
    }

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

    .lesson-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .learning-page--lesson .learning-hero.learning-cover-shell {
        padding: 1rem;
    }

    .lesson-content-card,
    .lesson-task-card,
    .support-panel,
    .lesson-video-card,
    .lesson-actions-card,
    .lesson-empty-media-card {
        border-radius: 24px;
    }

    .lesson-reading-flow {
        padding-left: 0.85rem;
    }

    .lesson-structured-block::before {
        left: -1.1rem;
    }
}

@media (max-width: 430px) {
    .learning-page--lesson .learning-hero__title {
        max-width: 100%;
    }

    .learning-page--lesson .learning-cover-shell__visual {
        min-height: 210px;
    }

    .lesson-content-card__body {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .lesson-content-card__body h1,
    .lesson-content-card__body h2,
    .lesson-content-card__body h3,
    .lesson-content-card__body h4 {
        margin: 1.65rem 0 0.85rem;
    }

    .lesson-content-card__intro-note,
    .lesson-support-signal {
        grid-template-columns: 1fr;
    }

    .lesson-reading-flow {
        padding-left: 0;
    }

    .lesson-reading-flow__line,
    .lesson-structured-block::before {
        display: none;
    }

    .lesson-reading-map__item,
    .learning-hero__microcard,
    .lesson-task-card__atmosphere-item {
        padding: 0.9rem;
    }

    .lesson-structured-block {
        padding: 1rem;
        border-radius: 22px;
    }
}

/* Premium dashboard refinement */
:root {
    --app-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --primary: #3b82f6;
    --primary-deep: #2457a6;
    --text-main: #172a46;
    --text-muted: #64748b;
    --line-soft: rgba(100, 116, 139, 0.16);
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

.content,
.dashboard-layout,
.learning-page,
.mentor-page,
.tasks-page {
    background: var(--app-bg);
}

.lesson-premium-shell,
.learning-page--lesson {
    max-width: 1440px;
    margin-inline: auto;
}

.learning-page--lesson .learning-hero.learning-cover-shell {
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
}

.learning-page--lesson .learning-hero__panel {
    display: none;
}

.learning-cover-shell__image--illustration {
    object-fit: contain;
    max-height: 230px;
    margin: auto;
}

.lesson-outcomes {
    display: grid;
    gap: 0.8rem;
}

.lesson-outcomes__head {
    display: grid;
    gap: 0.15rem;
}

.lesson-outcomes__head strong {
    color: var(--text-main);
    font-size: 0.98rem;
}

.lesson-outcomes__head span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.lesson-outcome-card {
    position: relative;
    grid-template-columns: auto 1fr;
    gap: 0.55rem 0.8rem;
    align-items: start;
}

.lesson-outcome-card strong,
.lesson-outcome-card p {
    grid-column: 2;
}

.lesson-outcome-card__icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lesson-outcome-card__icon--mint {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(167, 243, 208, 0.98));
}

.lesson-outcome-card__icon--violet {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, rgba(224, 231, 255, 0.98), rgba(199, 210, 254, 0.98));
}

.lesson-outcome-card__icon--amber {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, rgba(254, 243, 199, 0.98), rgba(253, 230, 138, 0.98));
}

.lesson-premium-grid,
.lesson-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
}

.lesson-side-stack,
.lesson-sidebar {
    gap: 1rem;
}

.lesson-side-card,
.lesson-sidebar-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.4), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.97));
    box-shadow: var(--shadow-soft);
}

.lesson-side-card__eyebrow {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lesson-side-card__value {
    color: var(--text-main);
    font-size: 2.35rem;
    line-height: 1;
}

.lesson-side-card__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.68;
}

.lesson-side-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-main);
    font-weight: 600;
}

.lesson-side-card__status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #93c5fd;
    box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.38);
}

.lesson-side-card__status-dot--done {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(187, 247, 208, 0.42);
}

.lesson-side-mentor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
}

.lesson-side-mentor__avatar {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #172a46 0%, #3b82f6 100%);
    color: white;
    font-weight: 800;
}

.lesson-side-mentor__copy {
    display: grid;
    gap: 0.15rem;
}

.lesson-side-mentor__copy strong {
    color: var(--text-main);
}

.lesson-side-mentor__copy span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lesson-side-card__cta {
    width: 100%;
    justify-content: center;
}

.lesson-side-card__art {
    padding: 0.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.lesson-side-card__art img {
    display: block;
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
    height: auto;
}

.lesson-side-card__quote {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.72;
}

.lesson-reading-map {
    position: relative;
}

.lesson-reading-map::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.32), rgba(34, 197, 94, 0.28));
}

.lesson-reading-map__item {
    position: relative;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.8rem 0.9rem;
}

.lesson-reading-map__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.02), rgba(59, 130, 246, 0.01));
    pointer-events: none;
}

.lesson-reading-map__index {
    position: relative;
    z-index: 1;
}

.lesson-reading-map__copy small {
    font-size: 0.82rem;
}

.lesson-content-card__body a,
.lesson-structured-block a {
    word-break: break-word;
}

.lesson-practice-card,
.lesson-task-card--practice {
    border-color: rgba(125, 211, 252, 0.34);
}

.mentor-premium-shell {
    max-width: 1440px;
    margin-inline: auto;
}

.mentor-hero-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr) minmax(240px, 0.6fr);
    gap: 1.2rem;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.58), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.97));
    box-shadow: var(--shadow-soft);
}

.mentor-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
}

.mentor-hero__visual img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
}

.mentor-hero__note {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(191, 219, 254, 0.56);
    background: rgba(255, 255, 255, 0.78);
}

.mentor-hero__note p {
    margin: 0;
    color: var(--text-muted);
}

.mentor-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mentor-layout--premium {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mentor-review-panel {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.mentor-review-card--premium,
.mentor-review-card {
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.97));
}

.mentor-card--illustrated {
    justify-items: start;
    padding: 1.1rem;
}

.mentor-card--illustrated__art {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-top: 0.25rem;
}

.mentor-feedback-strip--premium {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.97));
    box-shadow: var(--shadow-soft);
}

.mentor-feedback-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sidebar {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 24%),
        linear-gradient(180deg, #17305b 0%, #142b53 48%, #13284c 100%);
}

.sidebar__brand {
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
}

.sidebar-profile {
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__nav {
    gap: 0.32rem;
}

.sidebar__nav a {
    min-height: 50px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar__nav a.is-active {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.24), rgba(255, 255, 255, 0.1));
    border-color: rgba(147, 197, 253, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(15, 23, 42, 0.12);
}

.notification-bell__count {
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
}

@media (max-width: 1180px) {
    .mentor-hero-card {
        grid-template-columns: 1fr;
    }

    .mentor-stat-grid,
    .mentor-feedback-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .lesson-premium-grid,
    .lesson-layout,
    .mentor-layout--premium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .lesson-outcomes-grid,
    .mentor-stat-grid,
    .mentor-feedback-strip__grid {
        grid-template-columns: 1fr;
    }
}

.lesson-premium-shell {
    max-width: 1480px;
    padding: 32px 32px 64px;
}

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

.lesson-main-stack {
    display: grid;
    gap: 24px;
}

.lesson-hero-card {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 28px;
    padding: 28px;
    border-radius: 32px;
    border: 1px solid rgba(100, 116, 139, 0.12);
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.lesson-visual-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.92), transparent 24%),
        radial-gradient(circle at 80% 14%, rgba(199, 210, 254, 0.56), transparent 30%),
        linear-gradient(145deg, #eef5ff, #f8fbff 55%, #eefdf7);
}

.lesson-visual-panel::before,
.lesson-visual-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
}

.lesson-visual-panel::before {
    width: 140px;
    height: 140px;
    right: -30px;
    top: -24px;
    background: rgba(191, 219, 254, 0.48);
}

.lesson-visual-panel::after {
    width: 110px;
    height: 110px;
    left: -22px;
    bottom: -18px;
    background: rgba(167, 243, 208, 0.34);
}

.lesson-visual-illustration {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 320px);
    max-height: 290px;
    height: auto;
    object-fit: contain;
}

.lesson-visual-card {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 0.2rem;
    max-width: 180px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.lesson-visual-card strong {
    color: var(--text-main);
    font-size: 0.92rem;
}

.lesson-visual-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.lesson-visual-card--top {
    top: 22px;
    left: 18px;
}

.lesson-visual-card--bottom {
    right: 18px;
    bottom: 22px;
}

.lesson-hero-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.lesson-hero-copy__eyebrow {
    color: var(--primary-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lesson-hero-copy h1 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lesson-hero-copy > p {
    margin: 0;
    max-width: 62ch;
    color: #4c5f79;
    font-size: 1.0625rem;
    line-height: 1.65;
}

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

.lesson-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.14);
    background: #f8fbff;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.lesson-meta-pill__icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.lesson-meta-pill__icon--violet {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.lesson-meta-pill__icon--mint {
    background: linear-gradient(135deg, #dcfce7, #a7f3d0);
}

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

.lesson-outcome-card.lesson-side-card {
    min-height: 124px;
    align-content: start;
    padding: 18px;
    gap: 0.4rem 0.75rem;
}

.lesson-outcome-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.lesson-side-stack {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.lesson-map-timeline .lesson-reading-map__item {
    display: grid;
    gap: 0.18rem 0.8rem;
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.72);
}

.lesson-map-timeline .lesson-reading-map__item.is-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.88), rgba(239, 246, 255, 0.94));
}

.lesson-reading-map__index {
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-deep);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
}

.lesson-reading-map__copy strong {
    color: var(--text-main);
}

.lesson-reading-map__copy small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.lesson-insight-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(100, 116, 139, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98));
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.lesson-insight-card h2,
.lesson-content-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1.25;
}

.lesson-insight-card p,
.lesson-insight-card blockquote {
    margin: 0;
    color: #4c5f79;
    line-height: 1.68;
}

.lesson-content-card {
    margin-top: 0;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(100, 116, 139, 0.12);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.lesson-content-card--notice,
.lesson-content-card--memory,
.lesson-content-card--actions {
    display: grid;
    gap: 18px;
}

.lesson-content-card__header--wide {
    align-items: start;
}

.lesson-content-card__section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.lesson-section-marker {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary-deep);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.lesson-content-card__section-meta {
    display: grid;
    gap: 8px;
}

.lesson-content-card__lead {
    max-width: 64ch;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.lesson-content-card__body {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.lesson-content-card__body > *:first-child {
    margin-top: 0;
}

.lesson-content-card__body > *:last-child {
    margin-bottom: 0;
}

.lesson-content-card__body p + p,
.lesson-content-card__body p + ul,
.lesson-content-card__body ul + p,
.lesson-content-card__body blockquote + p {
    margin-top: 1rem;
}

.lesson-content-card__body--rich {
    max-width: 74ch;
}

.lesson-content-card__quote {
    margin: 0;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.98));
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.72;
}

.lesson-content-card__cite {
    display: inline-block;
    margin-top: 14px;
    color: var(--text-muted);
    font-style: normal;
}

.lesson-content-media {
    margin-top: 20px;
}

.lesson-content-media__figure,
.lesson-content-media__placeholder {
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(248, 251, 255, 0.98));
    border: 1px solid rgba(100, 116, 139, 0.1);
}

.lesson-content-media__figure img,
.lesson-content-media__placeholder img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-inline: auto;
}

.lesson-content-media__figure figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

.lesson-practice-card {
    background:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.42), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 253, 250, 0.96));
}

.lesson-task-form__helper {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.lesson-empty-card {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 22px;
    align-items: center;
}

.lesson-empty-card__art {
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(248, 251, 255, 0.98));
}

.lesson-empty-card__art img {
    display: block;
    width: 100%;
    height: auto;
}

.lesson-actions-card__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.lesson-actions-card__controls form {
    margin-left: auto;
}

.sidebar-encouragement {
    display: grid;
    gap: 10px;
    margin-top: 1.2rem;
    padding: 18px 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.96);
}

.sidebar-encouragement strong {
    font-size: 1rem;
}

.sidebar-encouragement p {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.55;
}

.sidebar-encouragement__icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 20%),
        linear-gradient(135deg, rgba(147, 197, 253, 0.96), rgba(99, 102, 241, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.sidebar-encouragement__line {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.sidebar-encouragement__line span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.96), rgba(147, 197, 253, 0.96));
}

@media (max-width: 1180px) {
    .lesson-hero-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 980px) {
    .lesson-premium-shell {
        padding-inline: 20px;
    }

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

    .lesson-side-stack {
        position: static;
    }
}

@media (max-width: 760px) {
    .lesson-premium-shell {
        padding: 24px 16px 40px;
    }

    .lesson-hero-card,
    .lesson-content-card {
        padding: 20px;
        border-radius: 24px;
    }

    .lesson-visual-panel {
        min-height: 280px;
        padding: 18px;
    }

    .learning-page--lesson .lesson-visual-panel {
        min-height: 300px;
        padding: 0;
    }

    .learning-page--lesson .lesson-hero-copy {
        order: -1;
        padding-left: 0;
    }

    .learning-page--lesson .lesson-visual-panel {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .lesson-visual-card {
        position: static;
        max-width: none;
    }

    .lesson-hero-rhythm {
        width: 100%;
    }

    .lesson-hero-copy h1 {
        font-size: 1.9rem;
    }

    .lesson-outcomes-grid,
    .lesson-empty-card {
        grid-template-columns: 1fr;
    }

    .lesson-actions-card__controls,
    .lesson-actions-card__controls form,
    .lesson-actions-card__controls .lesson-nav {
        width: 100%;
    }

    .lesson-actions-card__controls form {
        margin-left: 0;
    }

    .lesson-actions-card__controls button,
    .lesson-side-card__cta {
        width: 100%;
    }
}

/* Premium Depth & Surface System 2.0 */
:root {
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-medium: 0 18px 46px rgba(15, 23, 42, 0.08);
    --shadow-floating: 0 24px 70px rgba(15, 23, 42, 0.1);
    --shadow-hero: 0 35px 100px rgba(15, 23, 42, 0.12);
    --surface-primary:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.985));
    --surface-soft-layer:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
    --surface-atmospheric:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.44), transparent 28%),
        radial-gradient(circle at bottom left, rgba(209, 250, 229, 0.24), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 250, 255, 0.985));
    --surface-mentor:
        radial-gradient(circle at top left, rgba(224, 231, 255, 0.48), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 249, 255, 0.985));
    --surface-progress:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.42), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(246, 250, 255, 0.985));
    --surface-insight:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(249, 253, 251, 0.985));
    --surface-border-strong: rgba(148, 163, 184, 0.18);
}

.content,
.dashboard-page,
.learning-page--lesson,
.mentor-page {
    position: relative;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.96), transparent 20%),
        radial-gradient(circle at 88% 4%, rgba(191, 219, 254, 0.22), transparent 18%),
        radial-gradient(circle at 92% 86%, rgba(209, 250, 229, 0.16), transparent 18%),
        var(--app-bg);
}

.content__inner {
    position: relative;
}

.content__inner::before {
    content: "";
    position: absolute;
    inset: 8px 0 auto;
    height: 220px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.88), transparent 28%),
        radial-gradient(circle at 78% 0%, rgba(199, 210, 254, 0.22), transparent 18%);
    opacity: 0.9;
}

.content-topbar {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.46), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.88));
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.content-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.dashboard-card,
.progress-panel,
.lesson-content-card,
.mentor-review-panel,
.mentor-review-card,
.feedback-card,
.progress-stat-card {
    position: relative;
    border-color: var(--surface-border-strong);
    background: var(--surface-primary);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.dashboard-card::before,
.progress-panel::before,
.lesson-content-card::before,
.mentor-review-panel::before,
.mentor-review-card::before,
.feedback-card::before,
.progress-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.74), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 32%);
    pointer-events: none;
}

.dashboard-card > *,
.progress-panel > *,
.lesson-content-card > *,
.mentor-review-panel > *,
.mentor-review-card > *,
.feedback-card > *,
.progress-stat-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-card:hover,
.progress-panel:hover,
.lesson-content-card:hover,
.mentor-review-card:hover,
.feedback-card:hover {
    box-shadow: var(--shadow-floating);
}

.hero-card,
.dashboard-hero,
.lesson-hero-card,
.mentor-hero-card {
    position: relative;
    background: var(--surface-atmospheric);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow-hero);
    overflow: hidden;
}

.hero-card::before,
.dashboard-hero::before,
.lesson-hero-card::before,
.mentor-hero-card::before {
    content: "";
    position: absolute;
    inset: -12% auto auto -4%;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 62%);
    opacity: 0.72;
    pointer-events: none;
}

.hero-card::after,
.dashboard-hero::after,
.lesson-hero-card::after,
.mentor-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -7% -14% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(199, 210, 254, 0.34), transparent 62%);
    filter: blur(8px);
    pointer-events: none;
}

.lesson-hero-card {
    box-shadow: var(--shadow-hero);
}

.lesson-visual-panel {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.94), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(199, 210, 254, 0.56), transparent 30%),
        radial-gradient(circle at 20% 88%, rgba(209, 250, 229, 0.38), transparent 24%),
        linear-gradient(145deg, #eef5ff, #f8fbff 55%, #eefdf7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -30px 60px rgba(255, 255, 255, 0.22);
}

.lesson-visual-panel::before {
    box-shadow: 0 0 90px rgba(191, 219, 254, 0.3);
}

.lesson-visual-panel::after {
    box-shadow: 0 0 64px rgba(167, 243, 208, 0.22);
}

.lesson-visual-card,
.mentor-hero__note,
.lesson-side-card__art {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82));
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-floating);
}

.lesson-meta-pill {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.lesson-side-card,
.lesson-sidebar-card {
    background: var(--surface-soft-layer);
    box-shadow: var(--shadow-floating);
}

.lesson-side-card--progress {
    background: var(--surface-progress);
}

.lesson-side-card--mentor {
    background: var(--surface-mentor);
}

.lesson-side-card--advice {
    background:
        radial-gradient(circle at top right, rgba(254, 240, 138, 0.22), transparent 22%),
        radial-gradient(circle at bottom left, rgba(191, 219, 254, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(252, 251, 245, 0.985));
}

.lesson-map-timeline .lesson-reading-map__item {
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lesson-map-timeline .lesson-reading-map__item.is-active {
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 34px rgba(59, 130, 246, 0.08);
}

.lesson-insight-card {
    background: var(--surface-insight);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-medium);
}

.lesson-insight-card--mentor {
    background:
        radial-gradient(circle at top right, rgba(224, 231, 255, 0.42), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 249, 255, 0.985));
}

.lesson-insight-card--focus,
.lesson-practice-card {
    background:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.34), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(246, 253, 249, 0.985));
}

.lesson-insight-card--quote,
.lesson-content-card__quote {
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.985));
}

.lesson-content-card--lead,
.lesson-content-card--memory,
.lesson-content-card--next {
    background: var(--surface-atmospheric);
}

.lesson-content-card--notice {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.3), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 253, 249, 0.985));
}

.lesson-content-card__section-head {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.lesson-content-card__section-meta h2,
.lesson-content-card h2 {
    text-wrap: balance;
}

.lesson-section-marker {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 14px 32px rgba(59, 130, 246, 0.12);
}

.lesson-content-media__figure,
.lesson-content-media__placeholder,
.lesson-empty-card__art {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 30%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(248, 251, 255, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.highlighted-reflection-block__excerpt {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.985));
}

.highlighted-reflection-block__excerpt strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
}

.mentor-premium-shell {
    max-width: 1280px;
}

.mentor-hero-card {
    background:
        radial-gradient(circle at top left, rgba(224, 231, 255, 0.5), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(191, 219, 254, 0.28), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 250, 255, 0.985));
    box-shadow: var(--shadow-hero);
}

.mentor-hero__visual {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82));
    box-shadow: var(--shadow-floating);
}

.mentor-hero__panel,
.mentor-stat-inline,
.progress-stat-card {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.965));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-medium);
}

.mentor-hero__panel {
    padding: 12px;
    border-radius: 24px;
}

.mentor-stat-inline {
    overflow: hidden;
}

.mentor-review-panel {
    background: var(--surface-primary);
    box-shadow: var(--shadow-floating);
}

.mentor-review-card--premium,
.mentor-review-card,
.mentor-card--illustrated,
.mentor-feedback-strip--premium {
    box-shadow: var(--shadow-medium);
}

.mentor-card--illustrated,
.mentor-feedback-strip--premium {
    background: var(--surface-atmospheric);
}

.dashboard-hero,
.dashboard-learning-progress,
.progress-center-teaser,
.dashboard-attention-card,
.dashboard-activity-card,
.support-panel,
.dashboard-actions {
    background: var(--surface-atmospheric);
}

.dashboard-learning-progress__stat,
.hero-card__summary-item,
.dashboard-attention-card__stat,
.dashboard-learning-progress__stats > div,
.dashboard-action-link,
.onboarding-hint,
.onboarding-checklist__item,
.dashboard-attention-item,
.dashboard-activity-item,
.calm-card,
.stats-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.97));
    box-shadow: var(--shadow-soft);
}

.dashboard-action-link:hover,
.onboarding-checklist__item:hover,
.dashboard-attention-item:hover,
.dashboard-activity-item:hover {
    box-shadow: var(--shadow-medium);
}

.sidebar-profile,
.sidebar-encouragement {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(15, 23, 42, 0.16);
}

.sidebar-encouragement {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.28), transparent 30%),
        radial-gradient(circle at bottom left, rgba(110, 231, 183, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.sidebar__nav a {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar__nav a:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 26px rgba(15, 23, 42, 0.12);
}

.sidebar__nav a.is-active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 34px rgba(15, 23, 42, 0.16);
}

.notification-bell,
.language-switcher__summary {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(15, 23, 42, 0.08);
}

.progress-line,
.progress-bar {
    box-shadow: inset 0 2px 8px rgba(148, 163, 184, 0.14);
}

.progress-line__fill,
.progress-fill {
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.22);
}

@media (max-width: 980px) {
    .content__inner::before {
        height: 160px;
        opacity: 0.7;
    }

    .lesson-side-stack {
        position: static;
    }
}

@media (max-width: 760px) {
    .dashboard-card,
    .progress-panel,
    .lesson-content-card,
    .mentor-review-panel,
    .mentor-review-card,
    .feedback-card,
    .progress-stat-card,
    .lesson-side-card {
        box-shadow: var(--shadow-soft);
    }

    .lesson-hero-card,
    .mentor-hero-card,
    .dashboard-hero {
        box-shadow: var(--shadow-medium);
    }

    .lesson-visual-card {
        box-shadow: var(--shadow-medium);
    }
}

/* Final Consistency & Premium Polish Pass */
:root {
    --radius-card: 28px;
    --radius-soft: 22px;
    --radius-pill: 999px;
    --control-height: 48px;
    --control-height-compact: 42px;
    --icon-shell: 2.75rem;
}

.dashboard-card,
.progress-panel,
.lesson-content-card,
.lesson-side-card,
.mentor-review-card,
.mentor-card,
.feedback-card,
.tasks-stat-card,
.task-card,
.task-detail-card,
.learning-empty-card,
.empty-state,
.profile-form-card,
.support-panel,
.operations-card,
.operations-user-card,
.operations-link-card,
.operations-support-card,
.operations-reply-card,
.notifications-hero,
.referrals-hero,
.structure-summary-card,
.structure-branch-card,
.structure-node-card,
.sidebar-encouragement {
    border-radius: var(--radius-card);
}

.mentor-review-card,
.mentor-card,
.feedback-card,
.task-card,
.operations-link-card,
.operations-support-card,
.operations-reply-card,
.structure-summary-card,
.structure-branch-card,
.structure-node-card,
.lesson-visual-card,
.lesson-content-media__figure,
.lesson-content-media__placeholder,
.lesson-empty-card__art,
.highlighted-reflection-block__excerpt {
    border-radius: var(--radius-soft);
}

.btn,
.lesson-card__cta,
button[type="submit"],
input[type="submit"] {
    min-height: var(--control-height);
    padding: 0.78rem 1.2rem;
    border-radius: 16px;
    font-size: 0.98rem;
    line-height: 1.2;
}

.learning-filter-pill,
.tasks-filter-tab,
.progress-pill,
.badge,
.question-status-badge,
.task-type-badge,
.task-points-badge,
.task-status-badge,
.lesson-meta-pill {
    min-height: var(--control-height-compact);
    border-radius: var(--radius-pill);
}

.btn,
.lesson-card__cta,
.tasks-filter-tab,
.learning-filter-pill,
.operations-link-card,
.dashboard-action-link,
.notification-card,
.task-card,
.mentor-review-card,
.feedback-card,
.lesson-side-card,
.lesson-content-card,
.dashboard-attention-item,
.dashboard-activity-item {
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        opacity 220ms ease;
}

.btn:focus-visible,
.lesson-card__cta:focus-visible,
.tasks-filter-tab:focus-visible,
.learning-filter-pill:focus-visible,
.auth-form-field input:focus,
.auth-form-field select:focus,
.auth-form-field textarea:focus,
.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus,
.support-panel__form textarea:focus,
.task-detail-form textarea:focus,
.task-detail-form input[type="url"]:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(191, 219, 254, 0.45),
        0 14px 30px rgba(15, 23, 42, 0.08);
}

.ui-icon,
.stats-card__icon,
.sidebar__nav-icon,
.notification-bell .ui-icon,
.mobile-menu__nav .ui-icon,
.sidebar__nav .ui-icon,
.empty-state__icon {
    width: var(--icon-shell);
    height: var(--icon-shell);
    min-width: var(--icon-shell);
    min-height: var(--icon-shell);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-card__icon,
.empty-state__icon {
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
        linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(199, 210, 254, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 12px 26px rgba(59, 130, 246, 0.12);
}

.sidebar__nav-icon,
.notification-bell .ui-icon,
.mobile-menu__nav .ui-icon,
.sidebar__nav .ui-icon {
    border-radius: 14px;
}

.content-topbar__intro strong,
.hero-card h2,
.lesson-hero-copy h1,
.mentor-hero__content h1,
.tasks-hero__content h1,
.notifications-hero h1,
.structure-hero__content h1,
.operations-hero__content h1,
.feedback-center-hero__content h1,
.auth-entry-intro__copy h1 {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.dashboard-card p,
.progress-panel p,
.lesson-content-card p,
.mentor-review-card p,
.mentor-card p,
.feedback-card p,
.tasks-stat-card__hint,
.task-card-description,
.task-card-meta,
.auth-entry-card p,
.auth-entry-intro__copy p,
.page-heading__lead,
.form-help,
.muted {
    line-height: 1.65;
}

.lesson-content-card__body,
.task-text-content,
.mentor-review-card__text,
.feedback-message__body p,
.feedback-timeline__item p {
    line-height: 1.72;
}

.auth-form-stack,
.profile-form,
.support-panel__form,
.task-detail-form {
    display: grid;
    gap: 1rem;
}

.auth-form-field,
.form-field,
.task-detail-form__field {
    display: grid;
    gap: 0.5rem;
}

.auth-form-field input,
.auth-form-field select,
.auth-form-field textarea,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"],
.profile-form input[type="file"],
.profile-form textarea,
.support-panel__form textarea,
.task-detail-form textarea,
.task-detail-form input[type="url"],
.task-detail-form input[type="file"],
.feedback-form-grid input,
.feedback-form-grid select,
.feedback-form-grid textarea {
    min-height: var(--control-height);
    padding: 0.88rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
}

.auth-form-field textarea,
.profile-form textarea,
.support-panel__form textarea,
.task-detail-form textarea,
.feedback-form-grid textarea {
    min-height: 132px;
}

.auth-form-field small,
.form-help,
.muted,
.lesson-side-card__text,
.lesson-outcomes__head span,
.lesson-content-card__lead,
.profile-form-card p,
.feedback-center-hero__content p,
.tasks-hero__content p,
.notifications-hero p,
.operations-hero__content p,
.structure-hero__content p {
    color: #61748c;
}

.empty-state,
.learning-empty-card,
.mentor-card--empty,
.operations-empty-state,
.tasks-empty-state,
.notification-empty-state,
.structure-empty-state {
    position: relative;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.26), transparent 24%),
        radial-gradient(circle at bottom left, rgba(209, 250, 229, 0.16), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.985));
}

.empty-state__title,
.empty-state h3,
.mentor-card--empty strong,
.operations-empty-state strong {
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.empty-state-media {
    position: relative;
    min-height: 88px;
    padding: 10px;
}

.empty-state-media::before {
    content: "";
    position: absolute;
    inset: 10px 14px auto;
    height: 64px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), transparent 26%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(248, 251, 255, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.empty-state-media span {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 12px 24px rgba(15, 23, 42, 0.06);
}

.notifications-timeline,
.feedback-history-grid,
.support-panel__list,
.mentor-card-list,
.operations-queue,
.operations-support-list,
.operations-replies-list,
.dashboard-activity-list,
.dashboard-attention-list,
.task-cards-grid,
.lesson-task-card__list {
    gap: 1rem;
}

.support-panel__actions,
.task-detail-form__actions,
.lesson-task-form__actions,
.profile-actions,
.operations-user-card__actions {
    gap: 0.85rem;
    align-items: center;
}

.notification-card,
.dashboard-attention-item,
.dashboard-activity-item,
.task-card,
.mentor-review-card,
.feedback-card,
.operations-link-card,
.operations-support-card,
.operations-reply-card {
    border-color: rgba(148, 163, 184, 0.14);
}

.notification-card:hover,
.dashboard-attention-item:hover,
.dashboard-activity-item:hover,
.task-card:hover,
.mentor-review-card:hover,
.feedback-card:hover,
.operations-link-card:hover,
.operations-support-card:hover,
.operations-reply-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 760px) {
    .content-topbar__intro strong,
    .hero-card h2,
    .lesson-hero-copy h1,
    .mentor-hero__content h1,
    .tasks-hero__content h1,
    .notifications-hero h1,
    .structure-hero__content h1,
    .operations-hero__content h1,
    .feedback-center-hero__content h1,
    .auth-entry-intro__copy h1 {
        text-wrap: pretty;
    }

    .empty-state,
    .learning-empty-card,
    .mentor-card--empty,
    .operations-empty-state,
    .tasks-empty-state,
    .notification-empty-state,
    .structure-empty-state {
        padding: 22px;
    }

    .btn,
    .lesson-card__cta,
    button[type="submit"],
    input[type="submit"] {
        min-height: 46px;
    }

    .lesson-meta-pills,
    .profile-chip-row,
    .hero-card__badge-group,
    .task-card__badges,
    .support-panel__actions {
        gap: 0.65rem;
    }
}

/* Public typography guardrails: keep premium headings wrapping only by words. */
.public-hero__content,
.public-page-hero__copy,
.auth-entry-intro__copy,
.public-section__head,
.public-cta > div:first-child {
    max-width: 44rem;
}

.public-hero__content h1,
.public-page-hero__copy h1,
.auth-entry-intro__copy h1,
.public-section__head h2,
.public-story-card h2,
.public-support-card h2,
.public-cta h2,
.public-faq-card h2,
.auth-entry-card__head h2,
.public-feature-card h3,
.public-story-feature h3,
.public-step-visual-card h3,
.public-ecosystem-card h3,
.public-faq-item summary {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.public-hero__content h1,
.public-page-hero__copy h1,
.auth-entry-intro__copy h1 {
    max-width: 16ch;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.public-section__head h2,
.public-story-card h2,
.public-support-card h2,
.public-cta h2,
.public-faq-card h2,
.auth-entry-card__head h2 {
    max-width: 22ch;
    line-height: 1.15;
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.public-feature-card h3,
.public-story-feature h3,
.public-step-visual-card h3,
.public-ecosystem-card h3,
.public-faq-item summary {
    line-height: 1.28;
    letter-spacing: -0.018em;
    text-wrap: pretty;
}

@media (max-width: 980px) {
    .public-hero__content h1,
    .public-page-hero__copy h1,
    .auth-entry-intro__copy h1 {
        max-width: 18ch;
        text-wrap: pretty;
    }

    .public-section__head h2,
    .public-story-card h2,
    .public-support-card h2,
    .public-cta h2,
    .public-faq-card h2,
    .auth-entry-card__head h2 {
        max-width: 24ch;
        text-wrap: pretty;
    }
}

@media (max-width: 430px) {
    .public-hero__content,
    .public-page-hero__copy,
    .auth-entry-intro__copy,
    .public-section__head,
    .public-cta > div:first-child {
        max-width: none;
    }

    .public-hero__content h1,
    .public-page-hero__copy h1,
    .auth-entry-intro__copy h1,
    .public-section__head h2,
    .public-story-card h2,
    .public-support-card h2,
    .public-cta h2,
    .public-faq-card h2,
    .auth-entry-card__head h2 {
        max-width: none;
    }

    .public-hero__content h1,
    .public-page-hero__copy h1,
    .auth-entry-intro__copy h1 {
        line-height: 1.1;
    }

    .public-section__head h2,
    .public-story-card h2,
    .public-support-card h2,
    .public-cta h2,
    .public-faq-card h2,
    .auth-entry-card__head h2 {
        line-height: 1.18;
    }
}

/* Dashboard home refinements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content,
.content__inner,
.content-topbar {
    overflow: visible;
}

.content-topbar {
    position: relative;
    z-index: 20;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
}

.content-topbar__intro {
    min-width: 0;
}

.content-topbar__eyebrow {
    color: #64748b;
}

.content-topbar__intro strong {
    color: #172a46;
}

.notification-menu,
.language-switcher {
    position: relative;
    z-index: 30;
}

.notification-menu[open],
.language-switcher[open] {
    z-index: 90;
}

.notification-dropdown,
.language-switcher__menu {
    z-index: 120;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
}

.notification-dropdown__header strong,
.notification-preview strong,
.language-switcher__option,
.language-switcher__current {
    color: #172a46;
}

.notification-dropdown__header span,
.notification-preview span,
.notification-preview time {
    color: #64748b;
}

.dashboard-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
    padding: 1.5rem;
    color: #172a46;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 34%),
        radial-gradient(circle at bottom right, rgba(191, 219, 254, 0.44), transparent 28%),
        linear-gradient(135deg, #f9fbff 0%, #eef5ff 52%, #edf9f7 100%);
    border-color: rgba(148, 163, 184, 0.18);
}

.dashboard-hero::before {
    opacity: 0.9;
}

.hero-card__content,
.hero-card__aside {
    gap: 1rem;
}

.hero-card__eyebrow,
.hero-card__subtitle,
.hero-card__lead,
.hero-card__summary-item span,
.hero-card__note span {
    color: #64748b;
}

.hero-card h2,
.hero-card__summary-item strong,
.hero-card__note strong {
    color: #172a46;
}

.hero-card h2 {
    font-size: clamp(2.4rem, 4vw, 3.45rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 12ch;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-card__subtitle {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.hero-card__lead {
    margin: -0.2rem 0 0;
    max-width: 34rem;
    font-size: 0.96rem;
    line-height: 1.65;
}

.hero-card__summary {
    max-width: 30rem;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.hero-card__summary-item,
.hero-card__note {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(191, 219, 254, 0.48);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.hero-card__badge-group {
    justify-content: flex-start;
}

.hero-card__badge {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.88);
    color: #244574;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hero-card__badge--role {
    color: #244574;
    background: rgba(219, 234, 254, 0.86);
}

.hero-card__badge--success {
    color: #166534;
    background: rgba(220, 252, 231, 0.9);
}

.hero-card__badge--danger {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.9);
}

.hero-card__note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 132px;
}

.hero-card__note-copy {
    display: grid;
    gap: 0.4rem;
}

.hero-card__note strong {
    font-size: 1rem;
    line-height: 1.5;
}

.hero-card__note-visual {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.85), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-card__note-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-growth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.dashboard-attention-card,
.dashboard-activity-card {
    gap: 1rem;
    padding: 1.15rem;
}

.dashboard-attention-card .dashboard-section-header,
.dashboard-activity-card .dashboard-section-header {
    align-items: start;
    margin-bottom: 0;
}

.dashboard-attention-card .dashboard-section-header p,
.dashboard-activity-card .dashboard-section-header p {
    max-width: 40rem;
    line-height: 1.55;
}

.dashboard-attention-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-attention-card__stat {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 100px;
    padding: 0.95rem 1rem;
}

.dashboard-attention-card__stat-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #ecfeff 100%);
    color: #355c9a;
    flex-shrink: 0;
}

.dashboard-attention-card__stat span:not(.dashboard-attention-card__stat-icon) {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.35;
}

.dashboard-attention-card__stat strong {
    font-size: 1.45rem;
    line-height: 1;
    color: #172a46;
}

.dashboard-attention-list,
.dashboard-activity-list {
    gap: 0.75rem;
}

.dashboard-attention-item,
.dashboard-activity-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    gap: 0.35rem;
}

.dashboard-activity-card__footer {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
}

.dashboard-activity-card__link {
    min-width: min(100%, 18rem);
    justify-content: center;
}

.dashboard-activity-item__date {
    color: #475569;
}

.dashboard-attention-item strong,
.dashboard-activity-item strong {
    color: #172a46;
}

.dashboard-attention-item span,
.dashboard-activity-item span {
    color: #64748b;
}

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

    .hero-card h2 {
        max-width: none;
    }

    .hero-card__note {
        grid-template-columns: minmax(0, 1fr) 76px;
        min-height: 0;
    }

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

    .content-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 760px) {
    .content-topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .language-switcher--dashboard,
    .notification-menu {
        width: 100%;
    }

    .language-switcher--dashboard .language-switcher__summary,
    .notification-bell {
        width: 100%;
        justify-content: center;
    }

    .dashboard-attention-card .dashboard-section-header {
        grid-template-columns: 1fr;
    }

    .dashboard-attention-card .lesson-card__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .dashboard-hero {
        padding: 1.05rem;
    }

    .hero-card h2 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

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

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

    .hero-card__note-visual {
        width: 72px;
        height: 72px;
    }

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

    .dashboard-attention-card__stat {
        min-height: 92px;
    }

    .dashboard-activity-card__footer,
    .dashboard-activity-card__link {
        width: 100%;
    }
}

/* Public Premium Design System */
:root {
    --public-bg: #F4F7FB;
    --public-surface: #FFFFFF;
    --public-surface-soft: #F8FBFF;
    --public-text: #172A46;
    --public-muted: #64748B;
    --public-primary: #2F66D0;
    --public-primary-2: #3B82F6;
    --public-mint: #10B981;
    --public-lavender: #A5B4FC;
    --public-beige: #FFF4E5;
    --public-border: rgba(100, 116, 139, .16);
    --public-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    --public-shadow-soft: 0 10px 30px rgba(15, 23, 42, .055);
    --public-radius-xl: 34px;
    --public-radius-lg: 26px;
    --public-radius-md: 18px;
}

.public-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(59, 130, 246, .12), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(245, 158, 11, .10), transparent 28%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, .10), transparent 32%),
        #F4F7FB;
}

.public-card-stage {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 72px;
    display: grid;
    gap: 24px;
}

.public-surface,
.public-page-card,
.public-section-card,
.public-footer-card,
.public-auth-panel,
.public-support-panel,
.public-faq-panel {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius-xl);
    box-shadow: var(--public-shadow);
    position: relative;
    overflow: hidden;
}

.public-header {
    position: relative;
    z-index: 80;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 16px 22px;
    border-radius: 28px;
    overflow: visible;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--public-shadow-soft);
}

.public-header .language-switcher {
    z-index: 120;
}

.public-header .language-switcher[open] {
    z-index: 240;
}

.public-header .language-switcher__menu {
    z-index: 260;
}

.public-header__brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    min-width: 0;
}

.public-header__brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(47, 102, 208, .16);
}

.public-header__brand-copy {
    display: grid;
    gap: .16rem;
}

.public-header__brand-copy strong {
    color: var(--public-text);
    font-size: 1rem;
    line-height: 1.1;
}

.public-header__brand-copy span {
    color: var(--public-muted);
    font-size: .88rem;
}

.public-header__nav,
.public-header__actions,
.public-actions,
.public-footer-card__links,
.public-mini-card-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.public-header__nav {
    justify-content: center;
}

.public-header__nav a,
.public-menu__panel a,
.public-footer-card__links a {
    color: var(--public-muted);
    text-decoration: none;
    font-weight: 600;
    padding: .78rem 1rem;
    border-radius: 999px;
    transition: .2s ease;
}

.public-header__nav a:hover,
.public-header__nav a.is-active,
.public-menu__panel a:hover,
.public-menu__panel a.is-active,
.public-footer-card__links a:hover {
    color: var(--public-text);
    background: rgba(47, 102, 208, .09);
}

.public-header__actions {
    justify-content: flex-end;
}

.public-menu {
    display: none;
}

.public-menu summary {
    list-style: none;
    cursor: pointer;
    color: var(--public-text);
    font-weight: 700;
    padding: .9rem 1.1rem;
    border-radius: 999px;
    background: rgba(47, 102, 208, .08);
}

.public-menu summary::-webkit-details-marker {
    display: none;
}

.public-menu__panel {
    margin-top: .9rem;
    padding: 1rem;
    display: grid;
    gap: .45rem;
    background: rgba(255, 255, 255, .98);
    border-radius: 24px;
    border: 1px solid var(--public-border);
    box-shadow: var(--public-shadow-soft);
}

.public-shell .btn,
.public-shell button[type="submit"] {
    min-height: 56px;
    padding: .95rem 1.35rem;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -.01em;
    box-shadow: 0 12px 25px rgba(47, 102, 208, .14);
}

.public-shell .btn,
.public-shell button[type="submit"] {
    background: linear-gradient(135deg, var(--public-primary), var(--public-primary-2));
    color: #fff;
}

.public-shell .btn.btn-secondary {
    background: rgba(255, 255, 255, .92);
    color: var(--public-text);
    border-color: var(--public-border);
    box-shadow: none;
}

.public-eyebrow,
.public-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: rgba(47, 102, 208, .08);
    color: var(--public-primary);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.public-page-card,
.public-section-card {
    padding: 44px;
}

.public-page-card--hero::before,
.public-section-card::before,
.public-footer-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(165, 180, 252, .18), transparent 72%);
    pointer-events: none;
}

.public-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 42px;
    align-items: center;
}

.public-page-grid--auth {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
}

.public-page-copy,
.public-auth-copy,
.public-split-card__copy,
.public-footer-card__copy {
    position: relative;
    z-index: 1;
}

.public-title,
.public-page-card h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.055em;
    color: var(--public-text);
    font-weight: 850;
    max-width: 720px;
    margin: 0;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.public-section-card h2,
.public-auth-panel h2,
.public-footer-card h2,
.public-support-panel h2,
.public-faq-panel h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
    color: var(--public-text);
}

.public-lead,
.public-section-card__head p,
.public-mini-card span,
.public-feature-card p,
.public-support-panel p,
.public-faq-item__body p,
.public-auth-panel__head p,
.public-footer-card p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--public-muted);
    margin: 0;
}

.public-page-copy,
.public-section-card__head,
.public-auth-panel__head,
.public-support-panel,
.public-faq-panel,
.public-footer-card__copy {
    display: grid;
    gap: 16px;
}

.public-page-visual,
.public-split-card__visual {
    position: relative;
    z-index: 1;
}

.public-visual-frame {
    min-height: 300px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 70% 20%, rgba(165, 180, 252, .22), transparent 35%),
        linear-gradient(145deg, #F8FBFF, #EEF5FF 55%, #FFF7EA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 45px rgba(15, 23, 42, .06);
}

.public-visual-frame--compact {
    min-height: 240px;
}

.public-visual-frame--auth {
    min-height: 280px;
}

.public-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.public-feature-grid,
.public-mini-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

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

.public-mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-mini-card-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-feature-card,
.public-mini-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: var(--public-radius-lg);
    background: rgba(248, 251, 255, .88);
    border: 1px solid rgba(148, 163, 184, .14);
    box-shadow: var(--public-shadow-soft);
}

.public-mini-card--horizontal {
    align-content: start;
    min-height: 154px;
}

.public-mini-card--emphasis {
    background: linear-gradient(145deg, rgba(248, 251, 255, .95), rgba(255, 244, 229, .8));
}

.public-feature-card h3,
.public-mini-card strong,
.public-path-step h3 {
    margin: 0;
    color: var(--public-text);
    font-size: 1.18rem;
    line-height: 1.25;
}

.public-feature-card__accent {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-block;
}

.public-feature-card__accent--blue {
    background: linear-gradient(145deg, rgba(59, 130, 246, .18), rgba(47, 102, 208, .36));
}

.public-feature-card__accent--mint {
    background: linear-gradient(145deg, rgba(16, 185, 129, .16), rgba(52, 211, 153, .34));
}

.public-feature-card__accent--lavender {
    background: linear-gradient(145deg, rgba(165, 180, 252, .22), rgba(129, 140, 248, .34));
}

.public-feature-card__accent--beige {
    background: linear-gradient(145deg, rgba(255, 244, 229, 1), rgba(251, 191, 36, .28));
}

.public-mini-card-row {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.public-mini-card-row .public-mini-card {
    height: 100%;
}

.public-section-card__head--tight {
    margin-bottom: 8px;
}

.public-split-card {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
}

.public-journey-path {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
    align-items: center;
}

.public-path-step {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(248, 251, 255, .92);
    border: 1px solid rgba(148, 163, 184, .14);
    min-height: 100%;
}

.public-path-step img {
    width: 100%;
    max-width: 116px;
    height: auto;
}

.public-path-step__number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 102, 208, .12);
    color: var(--public-primary);
    font-weight: 800;
}

.public-path-step__connector {
    height: 2px;
    margin: 0 10px;
    background: linear-gradient(90deg, rgba(47, 102, 208, .15), rgba(16, 185, 129, .28), rgba(165, 180, 252, .22));
    border-radius: 999px;
}

.public-faq-layout-grid {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 24px;
}

.public-support-panel,
.public-faq-panel,
.public-auth-panel {
    padding: 32px;
    display: grid;
    gap: 18px;
}

.public-faq-list--carded {
    display: grid;
    gap: 12px;
}

.public-faq-item {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 22px;
    background: rgba(248, 251, 255, .85);
    overflow: hidden;
}

.public-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.3rem;
    color: var(--public-text);
    font-weight: 700;
    position: relative;
    padding-right: 3.2rem;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-size: 1.4rem;
    color: var(--public-primary);
}

.public-faq-item[open] summary::after {
    content: "−";
}

.public-faq-item__body {
    padding: 0 1.3rem 1.2rem;
}

.public-auth-panel--wide .auth-form-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.public-auth-panel--wide .auth-form-field:has(textarea),
.public-auth-panel--wide .auth-form-field:has(input[type="checkbox"]),
.public-auth-panel--wide .auth-form-stack > button,
.public-auth-panel--wide .auth-form-stack > p:last-of-type {
    grid-column: 1 / -1;
}

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

.auth-form-field {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.auth-form-field label {
    color: var(--public-text);
    font-weight: 700;
}

.auth-form-field input,
.auth-form-field select,
.auth-form-field textarea {
    width: 100%;
    min-height: 56px;
    padding: .95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .96);
    color: var(--public-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.auth-form-field textarea {
    min-height: 116px;
    resize: vertical;
}

.auth-form-field input:focus,
.auth-form-field select:focus,
.auth-form-field textarea:focus {
    outline: none;
    border-color: rgba(47, 102, 208, .42);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}

.auth-form-field input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    padding: 0;
    box-shadow: none;
}

.errors,
.notices {
    margin: 0;
    padding: 16px 18px;
    list-style: none;
    border-radius: 18px;
    background: rgba(255, 241, 242, .88);
    border: 1px solid rgba(248, 113, 113, .18);
    color: #9f1239;
}

.notices {
    background: rgba(255, 247, 214, .9);
    border-color: rgba(245, 158, 11, .22);
    color: #8a5a08;
}

.public-footer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    gap: 24px;
    align-items: center;
    padding: 34px 38px;
}

.public-footer-card__links {
    display: grid;
    gap: 10px;
}

.public-actions--stack-mobile .btn,
.public-actions--stack-mobile button {
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    .public-header {
        grid-template-columns: auto auto;
    }

    .public-header__nav,
    .public-header__actions {
        display: none;
    }

    .public-menu {
        display: block;
        justify-self: end;
    }

    .public-page-grid,
    .public-page-grid--auth,
    .public-split-card,
    .public-faq-layout-grid,
    .public-footer-card {
        grid-template-columns: 1fr;
    }

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

    .public-mini-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-journey-path {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-path-step__connector {
        height: 28px;
        width: 2px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .public-card-stage {
        width: min(100% - 16px, 1180px);
        padding: 20px 0 56px;
        gap: 18px;
    }

    .public-page-card,
    .public-section-card,
    .public-auth-panel,
    .public-support-panel,
    .public-faq-panel,
    .public-footer-card {
        padding: 24px;
        border-radius: 26px;
    }

    .public-page-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .public-title,
    .public-page-card h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .public-lead,
    .public-section-card__head p,
    .public-mini-card span,
    .public-feature-card p,
    .public-support-panel p,
    .public-faq-item__body p,
    .public-auth-panel__head p,
    .public-footer-card p {
        font-size: 16px;
        line-height: 1.65;
    }

    .public-feature-grid,
    .public-mini-card-grid,
    .public-mini-card-grid--wide,
    .public-mini-card-row {
        grid-template-columns: 1fr;
    }

    .public-actions,
    .public-actions--stack-mobile {
        flex-direction: column;
        align-items: stretch;
    }

    .public-actions .btn,
    .public-shell button[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    .public-auth-panel--wide .auth-form-stack {
        grid-template-columns: 1fr;
    }

    .public-auth-panel--wide .auth-form-field,
    .public-auth-panel--wide .auth-form-stack > button {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .public-header {
        padding: 14px 16px;
    }

    .public-header__brand {
        gap: .7rem;
    }

    .public-header__brand-mark {
        width: 46px;
        height: 46px;
    }

    .public-visual-frame {
        min-height: 230px;
        padding: 1rem;
    }

    .public-path-step {
        padding: 18px;
    }
}

/* Authenticated Premium Ecosystem System */

:root {
    --eco-surface: rgba(255, 255, 255, 0.92);
    --eco-surface-strong: #ffffff;
    --eco-surface-soft: #f7faff;
    --eco-border: rgba(148, 163, 184, 0.2);
    --eco-border-strong: rgba(71, 85, 105, 0.14);
    --eco-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --eco-shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.05);
    --eco-radius-xl: 32px;
    --eco-radius-lg: 24px;
    --eco-radius-md: 18px;
    --eco-accent-blue: rgba(59, 130, 246, 0.16);
    --eco-accent-lavender: rgba(165, 180, 252, 0.18);
    --eco-accent-mint: rgba(16, 185, 129, 0.14);
    --eco-accent-warm: rgba(245, 158, 11, 0.14);
}

.ecosystem-page,
.dashboard-page,
.profile-center,
.notifications-page,
.mentor-page,
.operations-page,
.progress-center-page,
.tasks-page,
.referrals-page,
.structure-page,
.feedback-center-page,
.learning-page--home {
    position: relative;
    display: grid;
    gap: 28px;
}

.ecosystem-page::before,
.dashboard-page::before,
.profile-center::before,
.notifications-page::before,
.mentor-page::before,
.operations-page::before,
.progress-center-page::before,
.tasks-page::before,
.referrals-page::before,
.structure-page::before,
.feedback-center-page::before,
.learning-page--home::before {
    content: "";
    position: absolute;
    inset: -30px -12px auto;
    height: 360px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.14), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.1), transparent 24%),
        radial-gradient(circle at 52% 92%, rgba(16, 185, 129, 0.08), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.ecosystem-page > *,
.dashboard-page > *,
.profile-center > *,
.notifications-page > *,
.mentor-page > *,
.operations-page > *,
.progress-center-page > *,
.tasks-page > *,
.referrals-page > *,
.structure-page > *,
.feedback-center-page > *,
.learning-page--home > * {
    position: relative;
    z-index: 1;
}

.ecosystem-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.62fr) minmax(250px, 0.72fr);
    gap: 24px;
    padding: 32px;
    border-radius: var(--eco-radius-xl);
    border: 1px solid var(--eco-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96) 55%, rgba(255, 247, 234, 0.9)),
        var(--eco-surface);
    box-shadow: var(--eco-shadow);
    overflow: hidden;
}

.ecosystem-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -70px -40px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.24), transparent 72%);
    pointer-events: none;
}

.ecosystem-hero::after {
    content: "";
    position: absolute;
    inset: -50px -20px auto auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
    pointer-events: none;
}

.ecosystem-hero__content,
.ecosystem-hero__visual,
.ecosystem-hero__aside {
    position: relative;
    z-index: 1;
}

.ecosystem-hero__content {
    display: grid;
    align-content: start;
    gap: 16px;
}

.ecosystem-hero__content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ecosystem-hero__lead {
    margin: 0;
    max-width: 700px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.ecosystem-hero__context {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.ecosystem-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(145deg, rgba(248, 251, 255, 0.96), rgba(237, 244, 255, 0.95) 55%, rgba(255, 247, 234, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 40px rgba(15, 23, 42, 0.05);
}

.ecosystem-hero__visual img {
    width: min(100%, 280px);
    max-height: 240px;
    object-fit: contain;
}

.ecosystem-hero__aside,
.ecosystem-side-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.ecosystem-side-card,
.ecosystem-info-card,
.ecosystem-stat-card,
.ecosystem-section-card {
    border-radius: var(--eco-radius-lg);
    border: 1px solid var(--eco-border);
    background: var(--eco-surface);
    box-shadow: var(--eco-shadow-soft);
}

.ecosystem-side-card,
.ecosystem-info-card,
.ecosystem-stat-card {
    padding: 20px 22px;
}

.ecosystem-side-card {
    display: grid;
    gap: 10px;
}

.ecosystem-side-card__eyebrow,
.ecosystem-info-card__eyebrow {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecosystem-side-card strong,
.ecosystem-info-card strong {
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.3;
}

.ecosystem-side-card p,
.ecosystem-info-card p,
.ecosystem-stat-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.ecosystem-side-card__value,
.ecosystem-info-card__value,
.ecosystem-stat-card__value {
    color: var(--text);
    font-size: clamp(1.7rem, 2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ecosystem-side-card--blue {
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.ecosystem-side-card--mint {
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.94));
}

.ecosystem-side-card--warm {
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.94));
}

.ecosystem-side-card--lavender {
    background: linear-gradient(145deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.ecosystem-chip-row,
.ecosystem-actions,
.ecosystem-mini-grid,
.ecosystem-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ecosystem-chip-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}

.ecosystem-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecosystem-stat-card {
    display: grid;
    gap: 10px;
    min-height: 100%;
}

.ecosystem-stat-card span:first-child,
.ecosystem-mini-card span:first-child {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ecosystem-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: 24px;
    align-items: start;
}

.ecosystem-main-stack,
.ecosystem-sidebar,
.ecosystem-section-card,
.ecosystem-panel-stack {
    display: grid;
    gap: 22px;
}

.ecosystem-section-card {
    padding: 26px 28px;
}

.ecosystem-section-card__header,
.ecosystem-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.ecosystem-section-card__header h2,
.ecosystem-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ecosystem-section-card__header p,
.ecosystem-section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    max-width: 760px;
}

.ecosystem-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecosystem-mini-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--eco-surface-soft);
    border: 1px solid var(--eco-border);
}

.ecosystem-mini-card strong {
    font-size: 1.02rem;
    color: var(--text);
}

.ecosystem-mini-card p,
.ecosystem-mini-card small {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.ecosystem-soft-list,
.ecosystem-link-list {
    display: grid;
    gap: 12px;
}

.ecosystem-soft-item,
.ecosystem-link-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.78);
}

.ecosystem-soft-item strong,
.ecosystem-link-item strong {
    color: var(--text);
}

.ecosystem-soft-item span,
.ecosystem-link-item span,
.ecosystem-soft-item p,
.ecosystem-link-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.ecosystem-link-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ecosystem-link-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.ecosystem-table-card .table-wrap,
.ecosystem-section-card .table-wrap {
    margin: 0;
}

.ecosystem-layout .progress-panel,
.ecosystem-layout .support-panel,
.ecosystem-layout .dashboard-card,
.ecosystem-layout .mentor-review-card,
.ecosystem-layout .operations-card,
.ecosystem-layout .bonus-stage-card,
.ecosystem-layout .task-card,
.ecosystem-layout .progress-course-card,
.ecosystem-layout .achievement-card,
.ecosystem-layout .notification-card,
.ecosystem-layout .operations-support-card,
.ecosystem-layout .operations-reply-card,
.ecosystem-layout .operations-user-card,
.ecosystem-layout .referrals-mobile-card,
.ecosystem-layout .structure-summary-card,
.ecosystem-layout .structure-branch-card,
.ecosystem-layout .mentor-card,
.ecosystem-layout .feedback-card {
    box-shadow: none;
}

.ecosystem-layout .progress-panel,
.ecosystem-layout .support-panel,
.ecosystem-layout .dashboard-card {
    border-radius: var(--eco-radius-lg);
}

.ecosystem-page .btn,
.ecosystem-page .lesson-card__cta,
.dashboard-page .btn,
.dashboard-page .lesson-card__cta,
.profile-center .btn,
.profile-center .lesson-card__cta,
.notifications-page .btn,
.mentor-page .btn,
.operations-page .btn,
.progress-center-page .btn,
.tasks-page .btn,
.referrals-page .btn,
.structure-page .btn,
.feedback-center-page .btn,
.learning-page--home .btn,
.learning-page--home .lesson-card__cta {
    min-height: 48px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(47, 102, 208, 0.14);
}

.ecosystem-page .empty-state,
.dashboard-page .empty-state,
.profile-center .empty-state,
.notifications-page .learning-empty-card,
.mentor-page .mentor-card--empty,
.operations-page .operations-empty-state,
.progress-center-page .learning-empty-card,
.tasks-page .empty-state,
.referrals-page .empty-state,
.structure-page .empty-state,
.feedback-center-page .mentor-card--empty,
.learning-page--home .learning-empty-card {
    border-radius: 26px;
    border: 1px solid var(--eco-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    box-shadow: var(--eco-shadow-soft);
}

.ecosystem-page .task-card--polished,
.ecosystem-page .course-card,
.ecosystem-page .operations-card,
.ecosystem-page .progress-stat-card,
.ecosystem-page .bonus-summary-card,
.ecosystem-page .bonus-progress-card,
.ecosystem-page .bonus-withdrawal-card,
.ecosystem-page .bonus-stage-card,
.ecosystem-page .structure-summary-card,
.ecosystem-page .structure-branch-card,
.ecosystem-page .operations-user-card,
.ecosystem-page .operations-support-card,
.ecosystem-page .operations-reply-card,
.ecosystem-page .referrals-mobile-card,
.ecosystem-page .feedback-card {
    border: 1px solid var(--eco-border);
    box-shadow: var(--eco-shadow-soft);
}

.ecosystem-hero .progress-pill {
    width: fit-content;
}

@media (max-width: 1240px) {
    .ecosystem-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
    }

    .ecosystem-hero__visual {
        grid-column: 1 / -1;
        order: 3;
    }

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

@media (max-width: 1024px) {
    .ecosystem-layout {
        grid-template-columns: 1fr;
    }

    .ecosystem-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .ecosystem-page,
    .dashboard-page,
    .profile-center,
    .notifications-page,
    .mentor-page,
    .operations-page,
    .progress-center-page,
    .tasks-page,
    .referrals-page,
    .structure-page,
    .feedback-center-page,
    .learning-page--home {
        gap: 20px;
    }

    .ecosystem-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 26px;
        gap: 18px;
    }

    .ecosystem-hero__content h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .ecosystem-hero__visual {
        min-height: 220px;
    }

    .ecosystem-section-card {
        padding: 22px;
        border-radius: 24px;
        gap: 18px;
    }

    .ecosystem-section-card__header,
    .ecosystem-section-head {
        flex-direction: column;
    }

    .ecosystem-stats-grid,
    .ecosystem-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* Landing page refresh */

.landing-hero-card {
    padding-top: 34px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(207, 227, 255, 0.34), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.landing-hero-copy {
    padding-top: 34px;
}

.landing-hero-copy .public-title {
    max-width: 560px;
    margin-bottom: 20px;
    color: #1f3761;
    font-size: clamp(3rem, 5vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.landing-hero-copy .public-lead {
    max-width: 430px;
    color: #7788a2;
    font-size: 1.05rem;
    line-height: 1.85;
}

.landing-hero-copy .btn {
    min-width: 170px;
    border-radius: 18px;
}

.landing-hero-copy .btn.btn-secondary {
    border: 1px solid rgba(120, 152, 214, 0.42);
    background: rgba(255, 255, 255, 0.96);
    color: #5d78a6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.landing-hero-visual {
    align-self: stretch;
}

.landing-hero-video {
    position: relative;
    min-height: 420px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #0f172a, #1d355f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 24px 58px rgba(38, 62, 104, 0.18);
}

.landing-hero-video::before,
.landing-hero-video::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-hero-video::before {
    z-index: 1;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1), rgba(15, 23, 42, 0.24) 62%, rgba(15, 23, 42, 0.48)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.34));
}

.landing-hero-video::after {
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 -72px 84px rgba(15, 23, 42, 0.58), inset 0 72px 84px rgba(15, 23, 42, 0.24);
}

.landing-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border: 0;
    opacity: 0.86;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.02);
    filter: saturate(0.72) contrast(1.08);
}

.landing-hero-video__brand {
    position: absolute;
    z-index: 3;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 44px);
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.46);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
}

.landing-hero-video__brand span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #173261;
    background: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.landing-hero-video__brand strong {
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-scene {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 21%, rgba(255, 245, 224, 0.9), transparent 15%),
        linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(236, 244, 255, 0.55) 66%, rgba(255, 255, 255, 0.92) 100%);
}

.landing-scene__mist,
.landing-scene__ridge,
.landing-scene__books,
.landing-scene__steps,
.landing-scene__arch,
.landing-scene__plant {
    position: absolute;
}

.landing-scene__mist {
    inset: auto 40px 42px 36px;
    height: 74px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.2), transparent 68%);
    filter: blur(10px);
}

.landing-scene__ridge {
    left: 26px;
    right: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(199, 216, 249, 0.52), rgba(230, 239, 255, 0.3));
}

.landing-scene__ridge--back {
    bottom: 142px;
    height: 120px;
    clip-path: polygon(0 72%, 10% 58%, 23% 63%, 36% 45%, 52% 60%, 66% 39%, 79% 52%, 100% 28%, 100% 100%, 0 100%);
}

.landing-scene__ridge--front {
    bottom: 102px;
    height: 104px;
    clip-path: polygon(0 76%, 14% 66%, 27% 72%, 42% 54%, 58% 67%, 74% 49%, 88% 57%, 100% 45%, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(183, 205, 243, 0.52), rgba(241, 247, 255, 0.18));
}

.landing-scene__books {
    left: 68px;
    bottom: 72px;
    width: 175px;
    height: 122px;
}

.landing-scene__book {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    border-radius: 13px 16px 16px 13px;
    box-shadow: 0 18px 32px rgba(79, 116, 175, 0.18);
}

.landing-scene__book::before {
    content: "";
    position: absolute;
    inset: 6px 10px 6px auto;
    width: 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.landing-scene__book::after {
    content: "";
    position: absolute;
    inset: 7px 26px 7px 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 244, 255, 0.45));
}

.landing-scene__book--top {
    bottom: 70px;
    transform: rotate(7deg);
    background: linear-gradient(180deg, #4f8de8 0%, #2d68ce 100%);
}

.landing-scene__book--middle {
    bottom: 34px;
    left: 10px;
    right: -10px;
    background: linear-gradient(180deg, #4db58f 0%, #2f876c 100%);
}

.landing-scene__book--bottom {
    bottom: 0;
    left: 18px;
    right: -18px;
    transform: rotate(-6deg);
    background: linear-gradient(180deg, #9aa8ff 0%, #7482de 100%);
}

.landing-scene__steps {
    right: 108px;
    bottom: 70px;
    display: grid;
    gap: 8px;
    width: 120px;
}

.landing-scene__steps span {
    display: block;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 239, 252, 0.96));
    box-shadow: 0 16px 30px rgba(116, 144, 194, 0.16);
}

.landing-scene__steps span:nth-child(1) {
    width: 120px;
}

.landing-scene__steps span:nth-child(2) {
    width: 96px;
    margin-left: 12px;
}

.landing-scene__steps span:nth-child(3) {
    width: 74px;
    margin-left: 24px;
}

.landing-scene__arch {
    right: 86px;
    bottom: 96px;
    width: 156px;
    height: 235px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #a6bbec 0%, #b8c8ee 100%);
    box-shadow: 0 24px 44px rgba(123, 149, 198, 0.22);
}

.landing-scene__arch-inner {
    position: absolute;
    inset: 18px 24px 0;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 35%, #f4f8ff 100%);
}

.landing-scene__arch-glow {
    position: absolute;
    inset: 48px 44px 24px;
    border-radius: 999px 999px 24px 24px;
    background: radial-gradient(circle at 50% 30%, rgba(255, 245, 214, 0.92), rgba(255, 255, 255, 0.2) 72%);
    filter: blur(2px);
}

.landing-scene__plant {
    right: 18px;
    bottom: 60px;
    width: 86px;
    height: 134px;
}

.landing-scene__pot {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 42px;
    border-radius: 14px 14px 20px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #edf3fb 100%);
    box-shadow: 0 16px 28px rgba(125, 149, 188, 0.16);
}

.landing-scene__stem {
    position: absolute;
    left: 42px;
    bottom: 32px;
    width: 3px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6ab580 0%, #3b8c57 100%);
}

.landing-scene__leaf {
    position: absolute;
    width: 30px;
    height: 18px;
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(180deg, #7ed98d 0%, #54ad64 100%);
}

.landing-scene__leaf--left {
    left: 18px;
    bottom: 60px;
    transform: rotate(-34deg);
}

.landing-scene__leaf--right {
    right: 12px;
    bottom: 74px;
    transform: rotate(32deg) scaleX(-1);
}

.landing-scene__leaf--top {
    left: 28px;
    bottom: 92px;
    transform: rotate(-10deg);
}

.landing-feature-grid {
    margin-top: 26px;
}

.landing-feature-card {
    position: relative;
    padding-top: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
    border: 1px solid rgba(219, 229, 244, 0.92);
    box-shadow: 0 18px 40px rgba(119, 140, 175, 0.08);
}

.landing-feature-card__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.landing-feature-card__icon::before,
.landing-feature-card__icon::after {
    content: "";
    position: absolute;
}

.landing-feature-card__icon--blue {
    position: relative;
    background: linear-gradient(180deg, rgba(88, 152, 255, 0.22), rgba(88, 152, 255, 0.12));
}

.landing-feature-card__icon--blue::before {
    left: 17px;
    top: 15px;
    width: 20px;
    height: 18px;
    border-radius: 4px;
    background: #5e98f7;
    box-shadow: 0 10px 0 0 #7baeff;
}

.landing-feature-card__icon--mint {
    position: relative;
    background: linear-gradient(180deg, rgba(122, 213, 158, 0.24), rgba(122, 213, 158, 0.12));
}

.landing-feature-card__icon--mint::before,
.landing-feature-card__icon--mint::after {
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #65c58c;
}

.landing-feature-card__icon--mint::before {
    left: 13px;
    box-shadow: 15px 0 0 0 #65c58c, 8px -8px 0 0 rgba(101, 197, 140, 0.78);
}

.landing-feature-card__icon--lavender {
    position: relative;
    background: linear-gradient(180deg, rgba(166, 141, 255, 0.2), rgba(166, 141, 255, 0.1));
}

.landing-feature-card__icon--lavender::before {
    left: 14px;
    bottom: 14px;
    width: 6px;
    height: 12px;
    border-radius: 6px;
    background: #9f85ef;
    box-shadow: 10px -4px 0 0 #8d72ea, 20px -11px 0 0 #7c61df;
}

.landing-feature-card__icon--warm {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 177, 103, 0.22), rgba(255, 177, 103, 0.1));
}

.landing-feature-card__icon--warm::before {
    left: 15px;
    top: 13px;
    width: 24px;
    height: 28px;
    background: #f08b42;
    clip-path: polygon(50% 0%, 100% 20%, 88% 100%, 12% 100%, 0% 20%);
}

.landing-feature-card h3 {
    margin-bottom: 10px;
    color: #324b77;
    font-size: 1.2rem;
}

.landing-feature-card p {
    color: #7d8ba5;
    line-height: 1.7;
}

.landing-quote {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 22px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.95) 0%, rgba(238, 245, 255, 0.88) 100%);
    border: 1px solid rgba(218, 229, 247, 0.88);
}

.landing-quote__mark {
    color: #78a4ff;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 700;
}

.landing-quote p {
    margin: 0;
    color: #677b9a;
    font-size: 1rem;
    line-height: 1.8;
}

.landing-quote__sprout {
    position: relative;
    width: 56px;
    height: 70px;
}

.landing-quote__sprout::before,
.landing-quote__sprout::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.landing-quote__sprout::before {
    left: 26px;
    bottom: 0;
    width: 4px;
    height: 54px;
    background: linear-gradient(180deg, #72be84 0%, #4b9864 100%);
}

.landing-quote__sprout::after {
    left: 8px;
    bottom: 24px;
    width: 22px;
    height: 14px;
    background: linear-gradient(180deg, #85da91 0%, #5eaf6a 100%);
    box-shadow: 24px -12px 0 0 #72c87f;
    transform: rotate(-24deg);
}

@media (max-width: 1024px) {
    .landing-hero-copy {
        padding-top: 12px;
    }

    .landing-scene {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .landing-hero-card {
        padding-top: 24px;
    }

    .landing-hero-copy .public-title {
        font-size: clamp(2.45rem, 12vw, 3.4rem);
    }

    .landing-scene {
        min-height: 300px;
    }

    .landing-scene__books {
        left: 18px;
        bottom: 48px;
        transform: scale(0.85);
        transform-origin: left bottom;
    }

    .landing-scene__arch {
        right: 52px;
        width: 120px;
        height: 185px;
    }

    .landing-scene__steps {
        right: 56px;
        bottom: 48px;
        width: 92px;
    }

    .landing-scene__steps span:nth-child(1) {
        width: 92px;
    }

    .landing-scene__steps span:nth-child(2) {
        width: 74px;
    }

    .landing-scene__steps span:nth-child(3) {
        width: 56px;
    }

    .landing-scene__plant {
        right: 2px;
        bottom: 32px;
        transform: scale(0.82);
        transform-origin: right bottom;
    }

    .landing-quote {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .landing-quote__sprout {
        justify-self: end;
    }
}

/* About page refresh */

.about-hero-card {
    padding-top: 34px;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.98), transparent 30%),
        radial-gradient(circle at 84% 24%, rgba(245, 225, 207, 0.24), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 255, 0.98) 100%);
}

.about-hero-grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.92fr);
    gap: 38px;
    align-items: stretch;
}

.about-hero-copy {
    padding-top: 26px;
}

.about-hero-copy .public-title {
    max-width: 540px;
    margin-bottom: 18px;
    color: #1e365c;
    font-size: clamp(2.9rem, 4.9vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.about-hero-copy .public-lead {
    max-width: 500px;
    color: #73839d;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-hero-divider {
    width: 58px;
    height: 4px;
    margin: 18px 0 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7eaaf8 0%, #d5e3ff 100%);
}

.about-pillars {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.about-pillar {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.about-pillar__icon {
    position: relative;
    display: block;
    width: 82px;
    height: 82px;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 16px 36px rgba(123, 145, 180, 0.1);
}

.about-pillar__icon::before,
.about-pillar__icon::after {
    content: "";
    position: absolute;
}

.about-pillar__icon--book {
    background: linear-gradient(180deg, rgba(103, 160, 255, 0.18), rgba(103, 160, 255, 0.1));
}

.about-pillar__icon--book::before {
    inset: 24px 20px 22px;
    border-radius: 7px;
    border: 3px solid #639ff4;
    border-right-width: 2px;
    background:
        linear-gradient(90deg, transparent 47%, #639ff4 47%, #639ff4 53%, transparent 53%);
}

.about-pillar__icon--book::after {
    left: 26px;
    right: 26px;
    top: 38px;
    height: 3px;
    background: #639ff4;
    border-radius: 999px;
}

.about-pillar__icon--people {
    background: linear-gradient(180deg, rgba(123, 214, 150, 0.18), rgba(123, 214, 150, 0.1));
}

.about-pillar__icon--people::before {
    left: 25px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #66bd7e;
    box-shadow: 18px 3px 0 0 #66bd7e;
}

.about-pillar__icon--people::after {
    left: 18px;
    right: 18px;
    bottom: 22px;
    height: 18px;
    border-radius: 16px 16px 10px 10px;
    background:
        radial-gradient(circle at 34% 40%, #66bd7e 0 34%, transparent 35%),
        radial-gradient(circle at 66% 34%, #66bd7e 0 30%, transparent 31%),
        linear-gradient(180deg, rgba(102, 189, 126, 0.98), rgba(102, 189, 126, 0.98));
}

.about-pillar__icon--target {
    background: linear-gradient(180deg, rgba(176, 139, 255, 0.16), rgba(176, 139, 255, 0.08));
}

.about-pillar__icon--target::before {
    inset: 20px;
    border-radius: 50%;
    border: 4px solid #8a67ea;
    box-shadow: inset 0 0 0 8px rgba(138, 103, 234, 0.12);
}

.about-pillar__icon--target::after {
    left: 39px;
    top: 26px;
    width: 18px;
    height: 18px;
    border-top: 4px solid #8a67ea;
    border-right: 4px solid #8a67ea;
    transform: rotate(28deg);
}

.about-pillar__copy h3 {
    margin: 0 0 10px;
    color: #2d4570;
    font-size: 1.34rem;
}

.about-pillar__copy p {
    margin: 0;
    color: #7989a0;
    line-height: 1.8;
}

.about-hero-visual {
    align-self: stretch;
}

.about-room-scene {
    position: relative;
    min-height: 640px;
    border-radius: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 36%, rgba(248, 230, 214, 0.46), transparent 22%),
        radial-gradient(circle at 22% 86%, rgba(229, 236, 248, 0.36), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 254, 0.96) 100%);
}

.about-room-scene::before {
    content: "";
    position: absolute;
    inset: 110px 48px 24px 84px;
    border-radius: 55% 30% 22% 26% / 34% 24% 18% 24%;
    border: 1px solid rgba(233, 236, 243, 0.92);
    background: radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.85), rgba(245, 247, 252, 0.56));
}

.about-room-scene__halo {
    position: absolute;
    right: 26px;
    top: 90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 214, 187, 0.4), transparent 68%);
    filter: blur(8px);
}

.about-room-scene__arch {
    position: absolute;
    right: 0;
    top: 118px;
    width: 180px;
    height: 320px;
    border-radius: 120px 120px 0 0;
    background: linear-gradient(180deg, #e0c0a5 0%, #d8b091 100%);
    box-shadow: -12px 18px 40px rgba(199, 159, 126, 0.2);
}

.about-room-scene__arch-inner {
    position: absolute;
    inset: 22px 18px 0 34px;
    border-radius: 110px 110px 0 0;
    background: linear-gradient(180deg, #fff6ea 0%, #fffdf9 70%, #fff9f1 100%);
}

.about-room-scene__window-bars {
    position: absolute;
    inset: 78px 24px 42px 56px;
    background:
        linear-gradient(90deg, transparent 0 45%, #c5915f 45% 52%, transparent 52% 100%),
        linear-gradient(180deg, transparent 0 26%, #c5915f 26% 31%, transparent 31% 58%, #c5915f 58% 63%, transparent 63% 100%);
}

.about-room-scene__table {
    position: absolute;
    right: 26px;
    bottom: 58px;
    width: 250px;
    height: 170px;
    border-radius: 32px 32px 18px 18px;
    background:
        linear-gradient(180deg, #dbb68d 0%, #c79363 100%);
    box-shadow: 0 24px 48px rgba(175, 132, 92, 0.2);
}

.about-room-scene__table::before,
.about-room-scene__table::after {
    content: "";
    position: absolute;
    bottom: -72px;
    width: 14px;
    height: 98px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c79261 0%, #b78255 100%);
}

.about-room-scene__table::before {
    left: 30px;
    transform: rotate(4deg);
}

.about-room-scene__table::after {
    right: 26px;
    transform: rotate(-3deg);
}

.about-room-scene__chair {
    position: absolute;
    right: 178px;
    bottom: 66px;
    width: 112px;
    height: 216px;
}

.about-room-scene__chair-back,
.about-room-scene__chair-seat,
.about-room-scene__chair-leg {
    position: absolute;
    background: linear-gradient(180deg, #dfbb93 0%, #c89362 100%);
    border-radius: 999px;
}

.about-room-scene__chair-back {
    left: 30px;
    top: 8px;
    width: 54px;
    height: 96px;
    border-radius: 22px;
}

.about-room-scene__chair-seat {
    left: 16px;
    top: 92px;
    width: 82px;
    height: 22px;
    border-radius: 16px;
}

.about-room-scene__chair-leg {
    width: 8px;
    height: 94px;
    bottom: 20px;
}

.about-room-scene__chair-leg--one {
    left: 24px;
    transform: rotate(8deg);
}

.about-room-scene__chair-leg--two {
    left: 42px;
    transform: rotate(-4deg);
}

.about-room-scene__chair-leg--three {
    right: 28px;
    transform: rotate(6deg);
}

.about-room-scene__chair-leg--four {
    right: 10px;
    transform: rotate(-8deg);
}

.about-room-scene__laptop {
    position: absolute;
    right: 122px;
    bottom: 214px;
    width: 104px;
    height: 68px;
}

.about-room-scene__laptop-screen {
    position: absolute;
    left: 16px;
    right: 18px;
    top: 0;
    height: 50px;
    border-radius: 8px 8px 6px 6px;
    background: linear-gradient(180deg, #5a6576 0%, #2b3140 100%);
    box-shadow: 0 12px 24px rgba(69, 75, 91, 0.2);
}

.about-room-scene__laptop-base {
    position: absolute;
    left: 4px;
    right: 0;
    bottom: 0;
    height: 10px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #8c97a8 0%, #697486 100%);
}

.about-room-scene__plant {
    position: absolute;
    right: 208px;
    bottom: 204px;
    width: 88px;
    height: 138px;
}

.about-room-scene__pot {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 50px;
    border-radius: 18px 18px 22px 22px;
    background: linear-gradient(180deg, #d9b18a 0%, #bc8859 100%);
    box-shadow: 0 18px 30px rgba(181, 136, 93, 0.18);
}

.about-room-scene__stem {
    position: absolute;
    left: 43px;
    bottom: 34px;
    width: 3px;
    height: 74px;
    border-radius: 999px;
    background: linear-gradient(180deg, #78bb76 0%, #52945a 100%);
}

.about-room-scene__leaf {
    position: absolute;
    width: 32px;
    height: 18px;
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(180deg, #87d38c 0%, #66ad68 100%);
}

.about-room-scene__leaf--one {
    left: 12px;
    bottom: 78px;
    transform: rotate(-28deg);
}

.about-room-scene__leaf--two {
    right: 6px;
    bottom: 92px;
    transform: rotate(28deg) scaleX(-1);
}

.about-room-scene__leaf--three {
    left: 18px;
    bottom: 102px;
    transform: rotate(-8deg);
}

.about-room-scene__leaf--four {
    right: 14px;
    bottom: 62px;
    transform: rotate(18deg) scaleX(-1);
}

.about-affirmation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 26px;
    padding: 24px 30px;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 244, 0.96);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(242, 246, 254, 0.95) 100%);
}

.about-affirmation p {
    margin: 0;
    color: #687d9f;
    font-size: 1rem;
    line-height: 1.85;
}

.about-affirmation__sprout {
    position: relative;
    width: 86px;
    height: 72px;
}

.about-affirmation__sprout::before,
.about-affirmation__sprout::after {
    content: "";
    position: absolute;
}

.about-affirmation__sprout::before {
    left: 40px;
    bottom: 0;
    width: 4px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(180deg, #72be7b 0%, #51945c 100%);
}

.about-affirmation__sprout::after {
    left: 12px;
    bottom: 22px;
    width: 26px;
    height: 18px;
    border-radius: 999px 999px 999px 0;
    background: #89d990;
    box-shadow: 22px -14px 0 0 #76ca80, 38px 2px 0 0 #95e09d;
    transform: rotate(-26deg);
}

@media (max-width: 1100px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-room-scene {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .about-hero-card {
        padding-top: 24px;
    }

    .about-hero-copy {
        padding-top: 8px;
    }

    .about-hero-copy .public-title {
        max-width: 100%;
        font-size: clamp(2rem, 10.2vw, 2.65rem);
        line-height: 1.06;
        letter-spacing: -0.045em;
        overflow-wrap: anywhere;
    }

    .about-hero-copy .public-lead {
        font-size: 1rem;
        line-height: 1.78;
    }

    .about-hero-divider {
        margin: 14px 0 20px;
    }

    .about-pillar {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .about-pillar__icon {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .about-pillar__copy h3 {
        font-size: 1.16rem;
        line-height: 1.28;
    }

    .about-pillar__copy p {
        font-size: 0.96rem;
        line-height: 1.72;
    }

    .about-room-scene {
        min-height: 420px;
    }

    .about-room-scene::before {
        inset: 92px 18px 18px 28px;
    }

    .about-room-scene__arch {
        width: 136px;
        height: 250px;
        top: 94px;
    }

    .about-room-scene__table {
        right: 8px;
        bottom: 34px;
        width: 186px;
        height: 128px;
    }

    .about-room-scene__chair {
        right: 122px;
        bottom: 38px;
        transform: scale(0.84);
        transform-origin: bottom right;
    }

    .about-room-scene__laptop {
        right: 78px;
        bottom: 156px;
        transform: scale(0.84);
        transform-origin: bottom right;
    }

    .about-room-scene__plant {
        right: 148px;
        bottom: 150px;
        transform: scale(0.82);
        transform-origin: bottom right;
    }

    .about-affirmation {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px;
    }

    .about-affirmation p {
        font-size: 0.98rem;
        line-height: 1.72;
    }
}

.about-insight-card {
    background:
        radial-gradient(circle at 10% 0%, rgba(230, 238, 255, 0.62), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.97) 100%);
}

.about-insight-head h2 {
    max-width: 780px;
}

.about-insight-head p {
    max-width: 760px;
}

.about-insight-grid {
    margin-top: 10px;
}

.about-insight-feature {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding-top: 26px;
    border: 1px solid rgba(220, 230, 245, 0.96);
    background:
        radial-gradient(circle at top right, rgba(232, 239, 255, 0.56), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 255, 0.98) 100%);
    box-shadow: 0 20px 42px rgba(115, 136, 172, 0.08);
}

.about-insight-feature::after {
    content: "";
    position: absolute;
    inset: auto 18px 16px 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 225, 241, 0), rgba(215, 225, 241, 0.86), rgba(215, 225, 241, 0));
}

.about-insight-feature__icon {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.about-insight-feature__icon::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 10px;
}

.about-insight-feature__icon--blue {
    background: linear-gradient(180deg, rgba(120, 162, 255, 0.2), rgba(120, 162, 255, 0.1));
}

.about-insight-feature__icon--blue::before {
    background: linear-gradient(180deg, #8aaef8 0%, #6f93e6 100%);
}

.about-insight-feature__icon--mint {
    background: linear-gradient(180deg, rgba(136, 222, 180, 0.22), rgba(136, 222, 180, 0.08));
}

.about-insight-feature__icon--mint::before {
    background: linear-gradient(180deg, #9ce0bc 0%, #75c89e 100%);
}

.about-insight-feature__icon--lavender {
    background: linear-gradient(180deg, rgba(193, 180, 255, 0.22), rgba(193, 180, 255, 0.08));
}

.about-insight-feature__icon--lavender::before {
    background: linear-gradient(180deg, #c9bfff 0%, #a89bea 100%);
}

.about-insight-feature h3 {
    margin-bottom: 10px;
    color: #284167;
    font-size: 1.18rem;
}

.about-insight-feature p {
    color: #7b89a2;
    line-height: 1.78;
}

.about-atmosphere-card {
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 230, 208, 0.34), transparent 20%),
        radial-gradient(circle at 12% 82%, rgba(225, 239, 255, 0.5), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.about-atmosphere-layout {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: center;
}

.about-atmosphere-visual {
    align-self: center;
}

.about-atmosphere-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(205, 226, 255, 0.45), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 232, 210, 0.44), transparent 28%),
        linear-gradient(180deg, rgba(241, 247, 255, 0.98) 0%, rgba(250, 251, 255, 0.96) 100%);
    border: 1px solid rgba(214, 228, 247, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 20px 44px rgba(123, 145, 180, 0.08);
}

.about-atmosphere-art__panel {
    position: relative;
    width: min(100%, 220px);
    aspect-ratio: 1 / 0.9;
    border-radius: 24px;
    background:
        radial-gradient(circle at 24% 28%, rgba(240, 246, 255, 0.96), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.96) 100%);
    box-shadow: 0 22px 40px rgba(110, 131, 163, 0.12);
}

.about-atmosphere-art__panel::before {
    content: "";
    position: absolute;
    inset: 20px 18px auto;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(227, 235, 248, 0.9), rgba(241, 245, 252, 0.6));
}

.about-atmosphere-art__dot {
    position: absolute;
    top: 54px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.86);
}

.about-atmosphere-art__dot--blue {
    left: 52px;
    background: #6f9ff1;
}

.about-atmosphere-art__dot--gold {
    left: 94px;
    background: #efbf76;
}

.about-atmosphere-art__dot--mint {
    left: 136px;
    background: #67c69b;
}

.about-atmosphere-art__line {
    position: absolute;
    left: 28px;
    right: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(228, 235, 247, 0.92), rgba(241, 244, 250, 0.7));
}

.about-atmosphere-art__line--top {
    top: 88px;
    height: 7px;
}

.about-atmosphere-art__line--mid {
    top: 110px;
    left: 42px;
    right: 52px;
    height: 7px;
}

.about-atmosphere-art__wave {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 34px;
    height: 24px;
    border-bottom: 4px solid #cfdcf0;
    border-radius: 0 0 40px 40px;
}

.about-atmosphere-art__wave::before,
.about-atmosphere-art__wave::after {
    content: "";
    position: absolute;
    top: 0;
    width: 34px;
    height: 18px;
    border-top: 4px solid #cfdcf0;
    border-radius: 30px 30px 0 0;
}

.about-atmosphere-art__wave::before {
    left: -8px;
}

.about-atmosphere-art__wave::after {
    right: -8px;
}

.about-atmosphere-copy h2 {
    max-width: 560px;
}

.about-atmosphere-copy p {
    max-width: 540px;
}

@media (max-width: 900px) {
    .about-atmosphere-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* How it works page */

.how-hero-card {
    background:
        radial-gradient(circle at 84% 14%, rgba(227, 236, 255, 0.34), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.how-hero-copy {
    max-width: 560px;
    padding-top: 18px;
    margin-bottom: 22px;
}

.how-hero-copy .public-title {
    color: #20385f;
    font-size: clamp(3rem, 4.8vw, 4.15rem);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.how-hero-copy .public-lead {
    color: #7687a0;
    line-height: 1.85;
}

.how-steps-stack {
    display: grid;
    gap: 18px;
}

.how-step-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
    gap: 22px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 30px;
    border: 1px solid rgba(221, 231, 245, 0.96);
    background:
        radial-gradient(circle at top right, rgba(235, 241, 255, 0.46), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.97) 100%);
    box-shadow: 0 18px 40px rgba(118, 138, 173, 0.08);
}

.how-step-card__content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.how-step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 167, 255, 0.2), rgba(132, 167, 255, 0.1));
    color: #6f93e2;
    font-size: 1.7rem;
    font-weight: 800;
}

.how-step-card__number--mint {
    background: linear-gradient(180deg, rgba(145, 220, 173, 0.22), rgba(145, 220, 173, 0.1));
    color: #68b67d;
}

.how-step-card__number--lavender {
    background: linear-gradient(180deg, rgba(197, 184, 255, 0.22), rgba(197, 184, 255, 0.1));
    color: #8f78e8;
}

.how-step-card__number--green {
    background: linear-gradient(180deg, rgba(157, 224, 176, 0.22), rgba(157, 224, 176, 0.1));
    color: #67b87c;
}

.how-step-card__copy h3 {
    margin: 4px 0 10px;
    color: #233d67;
    font-size: 1.7rem;
}

.how-step-card__copy p {
    margin: 0;
    color: #7b8aa3;
    line-height: 1.82;
    max-width: 360px;
}

.how-step-card__visual {
    position: relative;
    min-height: 138px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 16%, rgba(238, 244, 255, 0.62), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(244, 247, 254, 0.96) 100%);
}

.how-step-card__visual--mentor {
    background:
        radial-gradient(circle at 18% 18%, rgba(229, 237, 255, 0.58), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.97) 0%, rgba(244, 247, 254, 0.98) 100%);
}

.how-step-card__visual--growth {
    background:
        radial-gradient(circle at 76% 16%, rgba(225, 236, 255, 0.54), transparent 22%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.97) 0%, rgba(243, 247, 254, 0.98) 100%);
}

.how-scene-door,
.how-scene-book,
.how-scene-mentor,
.how-scene-growth {
    position: absolute;
    inset: 0;
}

.how-scene-door__arch {
    position: absolute;
    right: 70px;
    bottom: 14px;
    width: 96px;
    height: 116px;
    border-radius: 52px 52px 0 0;
    background: linear-gradient(180deg, #ada8f4 0%, #8c87df 100%);
}

.how-scene-door__inner {
    position: absolute;
    right: 82px;
    bottom: 14px;
    width: 72px;
    height: 92px;
    border-radius: 38px 38px 0 0;
    background: linear-gradient(180deg, #4d79c4 0%, #4166a6 100%);
}

.how-scene-door__knob {
    position: absolute;
    right: 96px;
    bottom: 58px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4ba74;
}

.how-scene-door__plant {
    position: absolute;
    bottom: 14px;
    width: 36px;
    height: 48px;
}

.how-scene-door__plant::before,
.how-scene-door__plant::after {
    content: "";
    position: absolute;
}

.how-scene-door__plant::before {
    left: 14px;
    bottom: 0;
    width: 3px;
    height: 22px;
    background: #6db57a;
    border-radius: 999px;
}

.how-scene-door__plant::after {
    left: 0;
    bottom: 12px;
    width: 14px;
    height: 10px;
    border-radius: 999px 999px 999px 0;
    background: #89d691;
    box-shadow: 12px -8px 0 0 #74c67c, 20px 2px 0 0 #8ddd96;
    transform: rotate(-24deg);
}

.how-scene-door__plant--left {
    right: 176px;
}

.how-scene-door__plant--right {
    right: 22px;
}

.how-scene-book__pages {
    position: absolute;
    left: 72px;
    right: 110px;
    bottom: 30px;
    height: 64px;
    border-radius: 8px 8px 18px 18px;
    background:
        linear-gradient(90deg, rgba(204, 175, 148, 0.84), rgba(204, 175, 148, 0.84)) center/3px 100% no-repeat,
        linear-gradient(180deg, #fffaf3 0%, #fbf3e8 100%);
    box-shadow: 0 14px 28px rgba(165, 133, 97, 0.18);
}

.how-scene-book__pages::before,
.how-scene-book__pages::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 42%;
    height: 2px;
    background: rgba(198, 175, 149, 0.82);
    box-shadow: 0 10px 0 0 rgba(198, 175, 149, 0.52), 0 20px 0 0 rgba(198, 175, 149, 0.34);
}

.how-scene-book__pages::before {
    left: 14px;
}

.how-scene-book__pages::after {
    right: 14px;
}

.how-scene-book__spine {
    position: absolute;
    left: 84px;
    right: 122px;
    bottom: 26px;
    height: 10px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #9a7451 0%, #7b5a3d 100%);
}

.how-scene-book__cup {
    position: absolute;
    right: 46px;
    bottom: 34px;
    width: 34px;
    height: 42px;
    border-radius: 10px 10px 14px 14px;
    background: linear-gradient(180deg, #c49d76 0%, #ab7f56 100%);
}

.how-scene-book__cup::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 11px;
    width: 10px;
    height: 14px;
    border: 3px solid #ab7f56;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.how-scene-book__pencil {
    position: absolute;
    right: 56px;
    bottom: 68px;
    width: 4px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f3bb74 0%, #db9548 100%);
}

.how-scene-book__pencil--one {
    transform: rotate(-8deg);
}

.how-scene-book__pencil--two {
    right: 68px;
    height: 32px;
    transform: rotate(8deg);
}

.how-scene-mentor__desk {
    position: absolute;
    left: 92px;
    right: 44px;
    bottom: 28px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d4b491 0%, #c2956b 100%);
}

.how-scene-mentor__laptop {
    position: absolute;
    left: 176px;
    bottom: 38px;
    width: 44px;
    height: 28px;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, #4d5969 0%, #2d3440 100%);
}

.how-scene-mentor__laptop::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -6px;
    bottom: -6px;
    height: 6px;
    border-radius: 0 0 10px 10px;
    background: #8994a4;
}

.how-scene-mentor__person {
    position: absolute;
    bottom: 22px;
    width: 74px;
    height: 88px;
}

.how-scene-mentor__person::before,
.how-scene-mentor__person::after {
    content: "";
    position: absolute;
}

.how-scene-mentor__person::before {
    left: 22px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0c8a2;
}

.how-scene-mentor__person::after {
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 56px;
    border-radius: 28px 28px 16px 16px;
}

.how-scene-mentor__person--left {
    left: 70px;
}

.how-scene-mentor__person--left::after {
    background: linear-gradient(180deg, #6f7fa9 0%, #53628d 100%);
}

.how-scene-mentor__person--right {
    left: 224px;
}

.how-scene-mentor__person--right::after {
    background: linear-gradient(180deg, #97a66d 0%, #748451 100%);
}

.how-scene-growth__bar {
    position: absolute;
    bottom: 24px;
    width: 24px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #a8c0ff 0%, #6f90eb 100%);
}

.how-scene-growth__bar--one {
    left: 112px;
    height: 18px;
}

.how-scene-growth__bar--two {
    left: 146px;
    height: 34px;
}

.how-scene-growth__bar--three {
    left: 180px;
    height: 54px;
}

.how-scene-growth__bar--four {
    left: 214px;
    height: 78px;
}

.how-scene-growth__arrow {
    position: absolute;
    left: 90px;
    bottom: 74px;
    width: 134px;
    height: 68px;
    border-top: 5px solid #99cf70;
    border-right: 5px solid #99cf70;
    border-radius: 0 52px 0 0;
    transform: rotate(14deg);
}

.how-scene-growth__arrow::after {
    content: "";
    position: absolute;
    right: -10px;
    top: -7px;
    width: 16px;
    height: 16px;
    border-top: 5px solid #99cf70;
    border-right: 5px solid #99cf70;
    transform: rotate(0deg);
}

.how-affirmation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding: 22px 28px;
    border-radius: 26px;
    border: 1px solid rgba(220, 231, 244, 0.96);
    background: linear-gradient(180deg, rgba(244, 250, 245, 0.98) 0%, rgba(241, 247, 243, 0.95) 100%);
}

.how-affirmation p {
    margin: 0;
    color: #6f829c;
    line-height: 1.75;
}

.how-affirmation__sprout {
    position: relative;
    width: 66px;
    height: 56px;
}

.how-affirmation__sprout::before,
.how-affirmation__sprout::after {
    content: "";
    position: absolute;
}

.how-affirmation__sprout::before {
    left: 30px;
    bottom: 0;
    width: 4px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, #79bf7c 0%, #5a9e64 100%);
}

.how-affirmation__sprout::after {
    left: 8px;
    bottom: 16px;
    width: 18px;
    height: 12px;
    border-radius: 999px 999px 999px 0;
    background: #8bd78d;
    box-shadow: 16px -10px 0 0 #75c778, 30px 0 0 0 #95df98;
    transform: rotate(-24deg);
}

.how-insight-card,
.how-summary-card {
    background:
        radial-gradient(circle at 8% 12%, rgba(229, 237, 255, 0.48), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.97) 100%);
}

.how-insight-grid {
    margin-top: 10px;
}

.how-insight-feature {
    padding-top: 24px;
    border: 1px solid rgba(220, 230, 244, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 255, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(119, 140, 175, 0.08);
}

.how-insight-feature__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
}

.how-insight-feature__icon--blue {
    background: linear-gradient(180deg, rgba(124, 164, 255, 0.22), rgba(124, 164, 255, 0.1));
}

.how-insight-feature__icon--mint {
    background: linear-gradient(180deg, rgba(145, 220, 173, 0.22), rgba(145, 220, 173, 0.1));
}

.how-insight-feature__icon--lavender {
    background: linear-gradient(180deg, rgba(197, 184, 255, 0.22), rgba(197, 184, 255, 0.1));
}

.how-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 26px;
    align-items: center;
}

.how-summary-copy h2 {
    max-width: 560px;
}

.how-summary-copy p {
    max-width: 540px;
    color: #7587a0;
    line-height: 1.82;
}

.how-summary-nav {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(220, 230, 244, 0.96);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(244, 247, 254, 0.97) 100%);
}

.how-summary-nav span {
    color: #6b7f9c;
    font-size: 0.95rem;
}

.how-summary-nav__actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.how-summary-nav__button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(208, 220, 240, 0.96);
    background: rgba(255, 255, 255, 0.98);
    color: #60789f;
    font-weight: 700;
}

.how-summary-nav__button--primary {
    border-color: transparent;
    background: #5c82d7;
    color: #fff;
}

@media (max-width: 900px) {
    .how-step-card,
    .how-summary-layout {
        grid-template-columns: 1fr;
    }

    .how-step-card__visual {
        min-height: 170px;
    }
}

@media (max-width: 768px) {
    .how-hero-copy .public-title {
        font-size: clamp(2.45rem, 11vw, 3.25rem);
    }

    .how-step-card {
        padding: 18px;
        border-radius: 24px;
    }

    .how-step-card__content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .how-step-card__number {
        width: 50px;
        height: 50px;
    }

    .how-step-card__copy h3 {
        font-size: 1.45rem;
    }

    .how-affirmation {
        grid-template-columns: 1fr;
    }
}

/* FAQ page */

.faq-hero-card {
    background:
        radial-gradient(circle at 84% 16%, rgba(228, 237, 255, 0.34), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.faq-hero-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: center;
}

.faq-hero-copy .public-title {
    max-width: 520px;
    margin-bottom: 14px;
    color: #1f375d;
    font-size: clamp(2.9rem, 4.7vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.faq-hero-copy .public-lead {
    margin-bottom: 22px;
    color: #7889a2;
    line-height: 1.82;
}

.faq-hero-scene {
    align-self: stretch;
}

.faq-room {
    position: relative;
    min-height: 460px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 36% 22%, rgba(253, 230, 205, 0.54), transparent 22%),
        radial-gradient(circle at 18% 72%, rgba(227, 236, 255, 0.42), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
}

.faq-room__glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(242, 229, 209, 0.7);
    filter: blur(2px);
}

.faq-room__glow--one {
    left: 24px;
    top: 72px;
    width: 170px;
    height: 170px;
}

.faq-room__glow--two {
    left: 112px;
    top: 32px;
    width: 220px;
    height: 220px;
    background: rgba(250, 231, 205, 0.8);
}

.faq-room__lamp-shade {
    position: absolute;
    left: 172px;
    top: 108px;
    width: 80px;
    height: 78px;
    border-radius: 20px 20px 30px 30px;
    background: linear-gradient(180deg, #8fa4e8 0%, #6f88d5 100%);
    box-shadow: 0 18px 30px rgba(113, 137, 196, 0.18);
}

.faq-room__lamp-stand {
    position: absolute;
    left: 208px;
    top: 180px;
    width: 6px;
    height: 150px;
    border-radius: 999px;
    background: linear-gradient(180deg, #806955 0%, #5e4d43 100%);
}

.faq-room__chair,
.faq-room__chair-seat {
    position: absolute;
    background: linear-gradient(180deg, #6684bf 0%, #506ea9 100%);
    box-shadow: 0 22px 42px rgba(83, 111, 164, 0.2);
}

.faq-room__chair {
    left: 40px;
    bottom: 88px;
    width: 176px;
    height: 170px;
    border-radius: 56px 56px 48px 48px;
}

.faq-room__chair-seat {
    left: 68px;
    bottom: 94px;
    width: 120px;
    height: 84px;
    border-radius: 28px;
}

.faq-room__chair-leg {
    position: absolute;
    bottom: 58px;
    width: 10px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b6865b 0%, #9c6f49 100%);
}

.faq-room__chair-leg--one {
    left: 66px;
    transform: rotate(8deg);
}

.faq-room__chair-leg--two {
    left: 112px;
    transform: rotate(-3deg);
}

.faq-room__chair-leg--three {
    left: 176px;
    transform: rotate(4deg);
}

.faq-room__chair-leg--four {
    left: 206px;
    transform: rotate(-8deg);
}

.faq-room__plant-pot {
    position: absolute;
    left: 234px;
    bottom: 112px;
    width: 56px;
    height: 72px;
    border-radius: 16px 16px 22px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
    box-shadow: 0 18px 34px rgba(133, 151, 186, 0.14);
}

.faq-room__plant-stem {
    position: absolute;
    left: 262px;
    bottom: 174px;
    width: 3px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7bbf7a 0%, #57995a 100%);
}

.faq-room__plant-leaf {
    position: absolute;
    width: 34px;
    height: 20px;
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(180deg, #8bd68f 0%, #68b06a 100%);
}

.faq-room__plant-leaf--one {
    left: 226px;
    bottom: 226px;
    transform: rotate(-24deg);
}

.faq-room__plant-leaf--two {
    left: 258px;
    bottom: 240px;
    transform: rotate(26deg) scaleX(-1);
}

.faq-room__plant-leaf--three {
    left: 246px;
    bottom: 202px;
    transform: rotate(-6deg);
}

.faq-room__table {
    position: absolute;
    left: 196px;
    bottom: 62px;
    width: 110px;
    height: 34px;
    border-radius: 20px;
    background: linear-gradient(180deg, #deb07d 0%, #c28c58 100%);
    box-shadow: 0 18px 30px rgba(175, 132, 92, 0.18);
}

.faq-room__table::before,
.faq-room__table::after {
    content: "";
    position: absolute;
    bottom: -28px;
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #bf8b58 0%, #a07049 100%);
}

.faq-room__table::before {
    left: 16px;
    transform: rotate(10deg);
}

.faq-room__table::after {
    right: 16px;
    transform: rotate(-10deg);
}

.faq-room__book {
    position: absolute;
    left: 232px;
    bottom: 84px;
    width: 48px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #7ca2ec 0%, #6087d8 100%);
    box-shadow: 0 6px 14px rgba(96, 135, 216, 0.22);
}

.faq-room__book::after {
    content: "";
    position: absolute;
    inset: auto 6px -4px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: #e8edf8;
}

.faq-accordion-list {
    display: grid;
    gap: 12px;
}

.faq-accordion-list .public-faq-item {
    border-radius: 18px;
    border: 1px solid rgba(223, 232, 246, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.97) 100%);
    box-shadow: 0 12px 28px rgba(122, 141, 173, 0.06);
}

.faq-accordion-list .public-faq-item summary {
    padding: 1.12rem 1.25rem;
    color: #2b436d;
    font-size: 1rem;
}

.faq-accordion-list .public-faq-item__body {
    padding: 0 1.25rem 1.12rem;
}

.faq-accordion-list .public-faq-item__body p {
    color: #7a89a3;
    line-height: 1.78;
}

.faq-help-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 26px;
    padding: 28px 32px;
    border-radius: 30px;
    border: 1px solid rgba(223, 232, 246, 0.96);
    background:
        radial-gradient(circle at 18% 32%, rgba(228, 237, 255, 0.5), transparent 16%),
        linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.faq-help-card__icon {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(162, 184, 255, 0.2), rgba(162, 184, 255, 0.08));
}

.faq-help-card__icon::before,
.faq-help-card__icon::after {
    content: "";
    position: absolute;
}

.faq-help-card__icon::before {
    inset: 24px 22px 22px;
    border: 4px solid #7695df;
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
}

.faq-help-card__icon::after {
    left: 29px;
    right: 29px;
    bottom: 22px;
    height: 20px;
    border: 4px solid #7695df;
    border-top: 0;
    border-radius: 0 0 20px 20px;
}

.faq-help-card__copy h2 {
    margin: 0 0 8px;
    color: #203960;
    font-size: clamp(1.8rem, 3vw, 2.15rem);
}

.faq-help-card__copy p {
    margin: 0;
    color: #7385a0;
    font-size: 1.06rem;
    line-height: 1.75;
}

.faq-help-card__button {
    min-width: 190px;
    border-radius: 16px;
    border: 1px solid rgba(135, 164, 226, 0.48);
    background: rgba(255, 255, 255, 0.98);
    color: #6080b1;
}

@media (max-width: 980px) {
    .faq-hero-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .faq-help-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 768px) {
    .faq-hero-copy .public-title {
        font-size: clamp(2.4rem, 11vw, 3.2rem);
    }

    .faq-room {
        min-height: 360px;
    }
}

/* Auth pages refresh */

.auth-hero-card {
    background:
        radial-gradient(circle at 84% 12%, rgba(227, 237, 255, 0.34), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.auth-hero-grid {
    align-items: stretch;
    gap: 34px;
}

.auth-hero-copy {
    padding-top: 18px;
}

.auth-hero-copy .public-title {
    max-width: 560px;
    margin-bottom: 16px;
    color: #20385e;
    font-size: clamp(2.9rem, 4.8vw, 4.05rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.auth-hero-copy .public-lead {
    max-width: 520px;
    color: #7687a0;
    line-height: 1.86;
}

.auth-value-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 24px;
}

.auth-value-card {
    border: 1px solid rgba(221, 231, 245, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
    box-shadow: 0 16px 34px rgba(121, 142, 176, 0.08);
}

.auth-scene {
    position: relative;
    min-height: 250px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(221, 231, 245, 0.9);
    background:
        radial-gradient(circle at 18% 18%, rgba(233, 240, 255, 0.52), transparent 24%),
        radial-gradient(circle at 84% 24%, rgba(255, 234, 213, 0.42), transparent 22%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(244, 248, 255, 0.97) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 36px rgba(120, 142, 178, 0.08);
}

.auth-scene--login {
    min-height: 270px;
}

.auth-scene__orb,
.auth-scene__screen,
.auth-scene__screen-line,
.auth-scene__card,
.auth-scene__plant-pot,
.auth-scene__plant-stem,
.auth-scene__leaf,
.auth-scene__sheet,
.auth-scene__sheet-line,
.auth-scene__sheet-badge,
.auth-scene__pen,
.auth-scene__seal,
.auth-scene__glow {
    position: absolute;
}

.auth-scene__orb {
    border-radius: 50%;
    filter: blur(2px);
}

.auth-scene__orb--one {
    left: 30px;
    top: 26px;
    width: 120px;
    height: 120px;
    background: rgba(219, 232, 255, 0.82);
}

.auth-scene__orb--two {
    right: 44px;
    top: 34px;
    width: 132px;
    height: 132px;
    background: rgba(255, 233, 207, 0.72);
}

.auth-scene__screen {
    left: 88px;
    top: 54px;
    width: 200px;
    height: 116px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 18px 34px rgba(121, 142, 176, 0.12);
}

.auth-scene__screen::before {
    content: "";
    position: absolute;
    inset: 16px 18px auto;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(223, 231, 244, 0.96), rgba(239, 244, 251, 0.72));
}

.auth-scene__screen-line {
    left: 116px;
    right: 120px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(225, 232, 245, 0.96), rgba(242, 246, 252, 0.7));
}

.auth-scene__screen-line--one {
    top: 98px;
}

.auth-scene__screen-line--two {
    top: 120px;
    right: 148px;
}

.auth-scene__card {
    width: 90px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(180deg, #7ea4ef 0%, #5f87d9 100%);
    box-shadow: 0 18px 28px rgba(96, 135, 216, 0.16);
}

.auth-scene__card--front {
    left: 80px;
    bottom: 40px;
}

.auth-scene__card--back {
    left: 150px;
    bottom: 56px;
    width: 76px;
    height: 52px;
    background: linear-gradient(180deg, #b7c7f3 0%, #90a6e0 100%);
}

.auth-scene__plant-pot {
    right: 72px;
    bottom: 34px;
    width: 48px;
    height: 58px;
    border-radius: 14px 14px 18px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #edf3fc 100%);
    box-shadow: 0 14px 28px rgba(129, 149, 183, 0.12);
}

.auth-scene__plant-stem {
    right: 95px;
    bottom: 82px;
    width: 3px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7abf78 0%, #5d9f60 100%);
}

.auth-scene__leaf {
    width: 28px;
    height: 16px;
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(180deg, #8dd88f 0%, #6ab06d 100%);
}

.auth-scene__leaf--one {
    right: 92px;
    bottom: 132px;
    transform: rotate(-28deg);
}

.auth-scene__leaf--two {
    right: 68px;
    bottom: 118px;
    transform: rotate(28deg) scaleX(-1);
}

.auth-scene__leaf--three {
    right: 86px;
    bottom: 104px;
    transform: rotate(-4deg);
}

.auth-scene--register {
    min-height: 280px;
}

.auth-scene__sheet {
    left: 84px;
    top: 34px;
    width: 180px;
    height: 200px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 20px 38px rgba(121, 142, 176, 0.12);
}

.auth-scene__sheet-line {
    left: 108px;
    right: 138px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 233, 245, 0.96), rgba(243, 246, 252, 0.74));
}

.auth-scene__sheet-line--one {
    top: 84px;
}

.auth-scene__sheet-line--two {
    top: 110px;
}

.auth-scene__sheet-line--three {
    top: 136px;
    right: 164px;
}

.auth-scene__sheet-badge {
    right: 82px;
    top: 72px;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(180deg, #7ea4ef 0%, #5f87d9 100%);
    box-shadow: 0 18px 30px rgba(96, 135, 216, 0.18);
}

.auth-scene__pen {
    right: 128px;
    bottom: 52px;
    width: 12px;
    height: 110px;
    border-radius: 999px;
    background: linear-gradient(180deg, #efbf79 0%, #d7934d 100%);
    transform: rotate(28deg);
}

.auth-scene__seal {
    right: 62px;
    bottom: 56px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #91d3a7 0%, #67b783 100%);
    box-shadow: 0 14px 26px rgba(103, 183, 131, 0.2);
}

.auth-scene__glow {
    right: 34px;
    bottom: 34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 209, 0.7), transparent 68%);
}

.auth-panel-card {
    border: 1px solid rgba(221, 231, 245, 0.96);
    background:
        radial-gradient(circle at top right, rgba(232, 239, 255, 0.42), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
    box-shadow: 0 22px 44px rgba(121, 142, 176, 0.1);
}

.auth-panel-card--wide {
    align-content: start;
}

.auth-panel-head h2 {
    margin-bottom: 8px;
}

.auth-panel-head p {
    color: #7587a0;
    line-height: 1.8;
}

.auth-entry-card__foot {
    margin: 4px 0 0;
    color: #7184a0;
}

.auth-entry-card__foot a {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .auth-hero-copy .public-title {
        font-size: clamp(2.55rem, 8vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .auth-value-grid {
        grid-template-columns: 1fr;
    }

    .auth-scene {
        min-height: 220px;
    }

    .auth-scene--register {
        min-height: 240px;
    }
}

/* Premium dashboard system */

:root {
    --dash-bg: #F4F7FB;
    --dash-sidebar: #102B55;
    --dash-sidebar-2: #173A6B;
    --dash-surface: #FFFFFF;
    --dash-surface-soft: #F8FBFF;
    --dash-text: #172A46;
    --dash-muted: #64748B;
    --dash-primary: #2F66D0;
    --dash-primary-2: #3B82F6;
    --dash-success: #10B981;
    --dash-warning: #F59E0B;
    --dash-border: rgba(100,116,139,.16);
    --dash-shadow: 0 18px 55px rgba(15,23,42,.08);
    --dash-shadow-soft: 0 10px 30px rgba(15,23,42,.055);
    --dash-radius-xl: 30px;
    --dash-radius-lg: 24px;
    --dash-radius-md: 18px;
}

.dashboard-page-shell {
    position: relative;
    display: grid;
    gap: 24px;
}

.dashboard-page-inner {
    display: grid;
    gap: 24px;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--dash-radius-lg);
    border: 1px solid rgba(217, 226, 240, 0.94);
    background:
        radial-gradient(circle at 18% 10%, rgba(233, 240, 255, 0.5), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
    box-shadow: var(--dash-shadow-soft);
    backdrop-filter: blur(10px);
}

.dashboard-topbar__intro {
    min-width: 0;
}

.dashboard-topbar .content-topbar__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--dash-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-topbar strong {
    color: var(--dash-text);
    font-size: 1.02rem;
    line-height: 1.35;
}

.dashboard-support-shortcut {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(220, 229, 243, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: var(--dash-text);
    text-decoration: none;
    box-shadow: var(--dash-shadow-soft);
}

.dashboard-support-shortcut__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 32%, #f8d5b3 0 24%, transparent 25%),
        linear-gradient(180deg, #d8e5ff 0%, #b8cff6 100%);
    position: relative;
}

.dashboard-support-shortcut__avatar::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px #fff;
}

.dashboard-support-shortcut__copy {
    display: grid;
    gap: 2px;
}

.dashboard-support-shortcut__copy strong {
    font-size: 0.92rem;
}

.dashboard-support-shortcut__copy span {
    color: var(--dash-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-sidebar {
    background:
        linear-gradient(180deg, var(--dash-sidebar) 0%, var(--dash-sidebar-2) 100%);
    border-radius: 0;
    box-shadow: 18px 0 45px rgba(16, 43, 85, 0.18);
}

.sidebar__brand {
    margin-bottom: 22px;
}

.brand-lockup--sidebar .brand-lockup__copy strong,
.brand-lockup--sidebar .brand-lockup__copy span {
    color: #f8fbff;
}

.sidebar-profile {
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.sidebar-profile__meta h1 {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
}

.sidebar-profile__meta p {
    color: rgba(255,255,255,.72);
    font-size: 0.9rem;
}

.sidebar__nav {
    gap: 8px;
}

.sidebar__nav a,
.mobile-menu__nav a {
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    color: rgba(248,251,255,.92);
}

.sidebar__nav a:hover,
.mobile-menu__nav a:hover {
    background: rgba(255,255,255,.08);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.sidebar__nav a.is-active,
.mobile-menu__nav a.is-active {
    background: linear-gradient(180deg, rgba(53,104,220,.98) 0%, rgba(39,84,190,.98) 100%);
    box-shadow: 0 16px 28px rgba(41, 89, 198, 0.28);
}

.sidebar__nav-icon {
    opacity: .95;
}

.dashboard-support-card,
.sidebar-encouragement {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 16% 14%, rgba(126, 164, 255, .2), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
    color: #fff;
}

.sidebar-encouragement strong {
    display: block;
    margin-bottom: 6px;
}

.sidebar-encouragement p,
.sidebar-encouragement small {
    color: rgba(255,255,255,.72);
}

.sidebar-encouragement__line {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}

.sidebar-encouragement__line span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a7f3d0 0%, #22c55e 100%);
}

.dashboard-hero,
.ecosystem-hero,
.learning-hero,
.feedback-center-hero,
.progress-center-hero,
.operations-hero,
.mentor-hero,
.notifications-hero,
.referrals-hero,
.structure-hero,
.tasks-hero {
    border-radius: var(--dash-radius-xl);
    border: 1px solid rgba(219, 229, 241, 0.94);
    background:
        radial-gradient(circle at 18% 12%, rgba(234, 240, 255, 0.46), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 234, 214, 0.32), transparent 20%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,250,255,.99) 100%);
    box-shadow: var(--dash-shadow);
}

.dashboard-hero-copy,
.ecosystem-hero__content,
.learning-hero__content,
.feedback-center-hero__content {
    display: grid;
    gap: 14px;
}

.dashboard-hero h1,
.ecosystem-hero h1,
.learning-hero__title,
.feedback-center-hero h1,
.progress-center-hero h1,
.mentor-hero h1,
.operations-hero h1,
.notifications-hero h1,
.referrals-hero h1,
.structure-hero h1,
.tasks-hero h1 {
    margin: 0;
    color: var(--dash-text);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.dashboard-hero p,
.ecosystem-hero__lead,
.ecosystem-hero__context,
.learning-hero__subtitle,
.feedback-center-hero p,
.progress-center-hero p,
.mentor-hero p,
.operations-hero p,
.notifications-hero p,
.referrals-hero p,
.structure-hero p,
.tasks-hero p {
    color: var(--dash-muted);
    line-height: 1.82;
}

.dashboard-hero-visual,
.ecosystem-hero__visual,
.learning-hero__panel,
.ecosystem-hero__aside {
    border-radius: var(--dash-radius-lg);
}

.dashboard-hero-visual,
.ecosystem-hero__visual {
    padding: 18px;
    background:
        radial-gradient(circle at 16% 16%, rgba(255,255,255,.92), transparent 22%),
        linear-gradient(180deg, rgba(242,247,255,.98) 0%, rgba(250,248,255,.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 16px 35px rgba(120,142,178,.08);
}

.dashboard-hero-visual img,
.ecosystem-hero__visual img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.dashboard-page-grid,
.ecosystem-layout,
.feedback-center-layout,
.feedback-ticket-layout,
.mentor-layout,
.progress-center-grid,
.operations-grid-two,
.how-summary-layout {
    display: grid;
    gap: 24px;
}

.dashboard-main-stack,
.ecosystem-main-stack,
.dashboard-side-stack,
.ecosystem-sidebar {
    display: grid;
    gap: 22px;
}

.dashboard-card,
.dashboard-section-card,
.dashboard-table-card,
.dashboard-support-card,
.dashboard-action-card,
.dashboard-stat-card,
.progress-panel,
.support-panel,
.mentor-review-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-reply-card,
.structure-summary-card,
.structure-branch-card,
.bonus-summary-card,
.bonus-progress-card,
.bonus-withdrawal-card,
.bonus-stage-card,
.task-card--polished,
.notification-card,
.feedback-card,
.progress-course-card,
.achievement-card,
.referrals-mobile-card,
.learning-overview-card,
.course-card,
.tasks-stat-card,
.task-detail-card,
.mentor-card {
    border-radius: var(--dash-radius-lg);
    border: 1px solid var(--dash-border);
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.98) 100%);
    box-shadow: var(--dash-shadow-soft);
}

.dashboard-section-card,
.progress-panel,
.support-panel,
.mentor-review-card,
.operations-card,
.structure-summary-card,
.structure-branch-card,
.bonus-summary-card,
.bonus-progress-card,
.bonus-withdrawal-card,
.bonus-stage-card,
.task-card--polished,
.notification-card,
.feedback-card,
.progress-course-card,
.achievement-card,
.referrals-mobile-card,
.learning-overview-card,
.course-card,
.tasks-stat-card,
.mentor-card {
    padding: 22px;
}

.dashboard-empty-state,
.empty-state,
.learning-empty-card,
.mentor-card--empty,
.operations-empty-state,
.notification-empty-state {
    border-radius: var(--dash-radius-lg);
    border: 1px solid var(--dash-border);
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.96) 100%);
    box-shadow: var(--dash-shadow-soft);
}

.dashboard-pill,
.progress-pill,
.learning-chip,
.hero-card__badge,
.badge,
.lesson-status-badge,
.task-status-badge,
.task-type-badge,
.task-points-badge,
.structure-badge,
.question-status-badge {
    border-radius: 999px;
}

.dashboard-cta,
.lesson-card__cta,
.course-card__cta,
.card-status-card__cta,
.bonus-link-button,
.dashboard-action-link,
.btn,
button {
    border-radius: 16px;
}

.dashboard-metric-grid,
.dashboard-stats-grid,
.dashboard-progress-grid,
.dashboard-calm-grid,
.bonus-summary-grid,
.bonus-progress-grid,
.progress-center-stats,
.tasks-stats-grid,
.feedback-history-grid {
    display: grid;
    gap: 18px;
}

.dashboard-metric-grid,
.dashboard-stats-grid,
.bonus-summary-grid,
.bonus-progress-grid,
.progress-center-stats,
.tasks-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-card strong,
.progress-stat-card strong,
.tasks-stat-card__value,
.bonus-summary-card .value,
.bonus-progress-card .value,
.ecosystem-side-card__value {
    color: var(--dash-text);
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    letter-spacing: -0.05em;
}

.dashboard-stat-card span,
.progress-stat-card span,
.tasks-stat-card__label,
.bonus-summary-card .label,
.bonus-progress-card .label,
.learning-overview-card__eyebrow,
.ecosystem-side-card__eyebrow {
    color: var(--dash-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-card p,
.progress-panel p,
.support-panel p,
.mentor-review-card p,
.operations-card p,
.bonus-stage-card p,
.feedback-card p,
.course-card p,
.task-card--polished p,
.referrals-mobile-card p,
.structure-summary-card p,
.structure-branch-card p {
    color: var(--dash-muted);
}

.data-table,
.bonus-table,
.referrals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--dash-radius-lg);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
}

.data-table thead th,
.bonus-table thead th,
.referrals-table thead th {
    padding: 14px 16px;
    background: var(--dash-surface-soft);
    color: var(--dash-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.data-table tbody td,
.bonus-table tbody td,
.referrals-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid rgba(100,116,139,.1);
    color: var(--dash-text);
    vertical-align: top;
}

.table-wrap {
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow-soft);
}

.notification-card.is-unread,
.notification-preview.is-unread,
.mentor-review-card--premium,
.task-card--polished {
    border-color: rgba(47,102,208,.18);
    box-shadow: 0 18px 40px rgba(47,102,208,.08);
}

.progress-line,
.structure-progress__track,
.progress-bar {
    background: rgba(206, 219, 238, .56);
}

.progress-line__fill,
.structure-progress__fill,
.progress-fill {
    background: linear-gradient(90deg, var(--dash-primary) 0%, var(--dash-primary-2) 100%);
}

.notification-bell,
.language-switcher,
.language-switcher--dashboard,
.notification-menu summary {
    border-radius: 16px;
}

.mobile-header {
    padding: 14px 14px 0;
    background: var(--dash-bg);
}

.mobile-header__top,
.mobile-menu summary {
    border-radius: 20px;
    background: linear-gradient(180deg, var(--dash-sidebar) 0%, var(--dash-sidebar-2) 100%);
    box-shadow: 0 14px 28px rgba(16,43,85,.2);
}

.mobile-menu summary {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
}

.mobile-menu__icon {
    width: 16px;
    height: 2px;
    background: #fff;
    position: relative;
    display: inline-block;
}

.mobile-menu__icon::before,
.mobile-menu__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: #fff;
}

.mobile-menu__icon::before {
    top: -5px;
}

.mobile-menu__icon::after {
    top: 5px;
}

@media (max-width: 1240px) {
    .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .dashboard-support-shortcut {
        display: none;
    }

    .dashboard-metric-grid,
    .dashboard-stats-grid,
    .bonus-summary-grid,
    .bonus-progress-grid,
    .progress-center-stats,
    .tasks-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 18px 14px 30px;
    }

    .dashboard-topbar {
        position: static;
        grid-template-columns: 1fr auto auto;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .dashboard-page-shell,
    .dashboard-page-inner {
        gap: 18px;
    }

    .dashboard-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-hero h1,
    .ecosystem-hero h1,
    .learning-hero__title,
    .feedback-center-hero h1,
    .progress-center-hero h1,
    .mentor-hero h1,
    .operations-hero h1,
    .notifications-hero h1,
    .referrals-hero h1,
    .structure-hero h1,
    .tasks-hero h1 {
        font-size: clamp(2.1rem, 9.6vw, 3rem);
    }

    .dashboard-metric-grid,
    .dashboard-stats-grid,
    .bonus-summary-grid,
    .bonus-progress-grid,
    .progress-center-stats,
    .tasks-stats-grid,
    .feedback-history-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .dashboard-section-card,
    .dashboard-table-card,
    .dashboard-support-card,
    .dashboard-action-card,
    .dashboard-stat-card,
    .progress-panel,
    .support-panel,
    .mentor-review-card,
    .operations-card,
    .operations-user-card,
    .operations-support-card,
    .operations-reply-card,
    .structure-summary-card,
    .structure-branch-card,
    .bonus-summary-card,
    .bonus-progress-card,
    .bonus-withdrawal-card,
    .bonus-stage-card,
    .task-card--polished,
    .notification-card,
    .feedback-card,
    .progress-course-card,
    .achievement-card,
    .referrals-mobile-card,
    .learning-overview-card,
    .course-card,
    .tasks-stat-card,
    .mentor-card {
        padding: 18px;
        border-radius: 22px;
    }
}

/* Design polish pass */
.dashboard-page-shell {
    gap: 28px;
}

.dashboard-page-shell::before {
    content: "";
    position: absolute;
    inset: -10px 0 auto;
    height: 260px;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(103, 151, 255, 0.12), transparent 24%),
        radial-gradient(circle at 84% 12%, rgba(45, 212, 191, 0.1), transparent 20%);
    filter: blur(12px);
}

.dashboard-topbar {
    top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(210, 221, 236, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-topbar strong {
    letter-spacing: -0.02em;
}

.dashboard-support-shortcut,
.notification-bell,
.language-switcher__current {
    min-height: 54px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    padding: 1.7rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 36%),
        radial-gradient(circle at 78% 22%, rgba(125, 211, 252, 0.22), transparent 18%),
        radial-gradient(circle at bottom right, rgba(167, 243, 208, 0.26), transparent 26%),
        linear-gradient(135deg, #fbfdff 0%, #eef5ff 54%, #effaf7 100%);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -24% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
    pointer-events: none;
}

.hero-card__content,
.hero-card__aside {
    position: relative;
    z-index: 1;
}

.hero-card h2 {
    max-width: 10ch;
    text-wrap: balance;
}

.hero-card__lead,
.ecosystem-hero__context {
    max-width: 42rem;
}

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

.hero-card__summary-item {
    min-height: 108px;
}

.hero-card__summary-item--code {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.82), transparent 44%),
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(242,248,255,.96) 100%);
}

.hero-card__summary-item--community {
    background:
        radial-gradient(circle at top right, rgba(209, 250, 229, 0.8), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(242,251,248,.96) 100%);
}

.hero-card__summary-item strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.hero-card__note {
    min-height: 148px;
    align-items: stretch;
}

.hero-card__note-visual {
    align-self: center;
}

.dashboard-progress-grid,
.dashboard-stats-grid,
.dashboard-growth-grid,
.dashboard-calm-grid {
    gap: 20px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    gap: 14px;
    min-height: 100%;
    padding: 22px 20px;
    border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, rgba(47, 102, 208, 0.85), rgba(45, 212, 191, 0.7));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.dashboard-stat-card:hover::before,
.dashboard-stat-card--accent::before,
.dashboard-stat-card--learning::before,
.dashboard-stat-card--success::before,
.dashboard-stat-card--warning::before,
.dashboard-stat-card--payout::before {
    opacity: 1;
}

.dashboard-stat-card--accent {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(243,248,255,.98) 100%);
}

.dashboard-stat-card--cool {
    background:
        radial-gradient(circle at top right, rgba(224, 242, 254, 0.88), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(246,250,255,.98) 100%);
}

.dashboard-stat-card--learning {
    background:
        radial-gradient(circle at top left, rgba(224, 231, 255, 0.86), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(243,246,255,.98) 100%);
}

.dashboard-stat-card--warning {
    background:
        radial-gradient(circle at top right, rgba(254, 243, 199, 0.8), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,251,242,.98) 100%);
}

.dashboard-stat-card--success {
    background:
        radial-gradient(circle at top left, rgba(220, 252, 231, 0.82), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(243,252,248,.98) 100%);
}

.dashboard-stat-card--payout {
    background:
        radial-gradient(circle at top right, rgba(237, 233, 254, 0.84), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,245,255,.98) 100%);
}

.stats-card__value {
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    letter-spacing: -0.04em;
}

.stats-card__description {
    max-width: 28ch;
}

.learning-hero {
    position: relative;
    overflow: hidden;
}

.learning-hero__title {
    max-width: 8ch;
    text-wrap: balance;
}

.learning-hero__subtitle {
    max-width: 34rem;
    color: #53657c;
    font-size: 1.02rem;
}

.learning-page--home .learning-hero--home.ecosystem-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
}

.learning-hero-progress-inline {
    display: grid;
    gap: 10px;
    width: min(100%, 520px);
    margin-top: 8px;
}

.learning-hero-progress-inline__row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: 18px;
    align-items: center;
}

.learning-hero-progress-inline .learning-overview-card__value {
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.learning-hero-progress-inline .learning-overview-card__message {
    max-width: 34rem;
    margin: 0;
}

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

.learning-guidance-grid .lesson-insight-card {
    min-height: 100%;
}

.learning-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.learning-chip--light {
    background: rgba(255, 255, 255, 0.84);
    color: #28456f;
    border: 1px solid rgba(191, 219, 254, 0.5);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.learning-hero__panel--highlight {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(188, 208, 237, 0.72);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.8), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(244,249,255,.96) 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.learning-overview-grid {
    gap: 18px;
}

.learning-overview-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(203, 214, 228, 0.75);
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.98) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.learning-overview-card::after {
    content: "";
    position: absolute;
    inset: auto -34px -42px auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.32), transparent 72%);
}

.learning-overview-card--primary {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(243,248,255,.98) 100%);
}

.learning-overview-card--success {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.86), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(244,252,248,.98) 100%);
}

.learning-overview-card--calm {
    background:
        radial-gradient(circle at top left, rgba(224, 231, 255, 0.84), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(246,248,255,.98) 100%);
}

.learning-overview-card__value {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.learning-overview-card__message {
    position: relative;
    z-index: 1;
    max-width: 30ch;
    color: #5f7085;
}

.learning-section-header--split {
    align-items: end;
    gap: 18px;
}

.course-grid {
    gap: 20px;
}

.course-card {
    border-radius: 26px;
    border: 1px solid rgba(203, 214, 228, 0.78);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.94), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.98) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.055);
}

.course-card--active {
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.72), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(244,248,255,.98) 100%);
}

.course-card--complete {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.76), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(244,252,248,.98) 100%);
}

.course-card--idle {
    background:
        radial-gradient(circle at top left, rgba(226, 232, 240, 0.58), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(249,251,253,.98) 100%);
}

.course-card__stat {
    background: rgba(248, 250, 252, 0.92);
}

.course-card__cta {
    min-height: 52px;
    border-radius: 16px;
    box-shadow: 0 14px 26px rgba(47, 102, 208, 0.16);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.085);
}

.bonuses-hero {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
    grid-template-areas:
        "copy visual"
        "cards visual";
    align-items: stretch;
}

.bonuses-hero .ecosystem-hero__content {
    grid-area: copy;
}

.bonuses-hero .ecosystem-hero__aside {
    grid-area: cards;
    align-self: start;
    gap: 14px;
}

.bonuses-hero .ecosystem-hero__visual {
    grid-area: visual;
    grid-column: auto;
    order: initial;
    align-self: stretch;
    min-height: 300px;
    padding: 6px;
}

.bonuses-hero .ecosystem-hero__visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 960px) {
    .dashboard-topbar {
        position: relative;
        top: 0;
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .learning-hero {
        grid-template-columns: 1fr;
        padding: 1.3rem;
    }

    .bonuses-hero {
        grid-template-areas:
            "copy"
            "visual"
            "cards";
    }

    .bonuses-hero .ecosystem-hero__visual {
        min-height: 220px;
    }

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

    .dashboard-progress-grid,
    .dashboard-stats-grid,
    .dashboard-growth-grid,
    .dashboard-calm-grid,
    .learning-overview-grid,
    .course-grid {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .referrals-link-card {
        transform: none;
    }

    .referrals-hero,
    .structure-page .structure-hero,
    .bonuses-hero,
    .notifications-hero,
    .tasks-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch;
    }

    .referrals-hero,
    .bonuses-hero,
    .notifications-hero {
        grid-template-areas:
            "copy"
            "visual"
            "cards";
    }

    .structure-page .structure-hero {
        grid-template-areas:
            "copy"
            "visual"
            "profile";
    }

    .referrals-hero__copy,
    .structure-page .structure-hero__content,
    .bonuses-hero .ecosystem-hero__content,
    .notifications-hero .ecosystem-hero__content {
        grid-area: copy;
        max-width: 100%;
    }

    .referrals-link-card,
    .structure-page .structure-hero__aside,
    .bonuses-hero .ecosystem-hero__aside,
    .notifications-hero__aside {
        grid-area: cards;
        align-self: stretch;
    }

    .structure-page .structure-hero__aside {
        grid-area: profile;
    }

    .referrals-hero .dashboard-hero-visual,
    .structure-page .structure-hero .dashboard-hero-visual,
    .bonuses-hero .dashboard-hero-visual,
    .notifications-hero .dashboard-hero-visual {
        grid-area: visual;
        min-height: 220px;
        align-self: stretch;
        justify-self: stretch;
    }

    .tasks-page .tasks-hero__note {
        margin-top: 0;
    }

    .tasks-hero {
        grid-template-areas:
            "copy"
            "visual"
            "note";
    }

    .tasks-hero .dashboard-hero-visual {
        min-height: 220px;
    }

    .learning-page--home .learning-guidance-grid {
        display: none;
    }

    .dashboard-page-shell,
    .dashboard-page-inner {
        gap: 18px;
    }

    .dashboard-topbar {
        padding: 14px;
        border-radius: 20px;
    }

    .dashboard-hero,
    .learning-hero,
    .learning-hero__panel--highlight,
    .learning-overview-card,
    .course-card,
    .dashboard-stat-card {
        border-radius: 22px;
    }

    .dashboard-hero,
    .learning-hero,
    .course-card,
    .learning-overview-card,
    .dashboard-stat-card {
        padding: 18px;
    }

    .hero-card h2,
    .learning-hero__title {
        max-width: 100%;
        font-size: clamp(2rem, 8vw, 2.65rem);
    }

    .hero-card__lead,
    .ecosystem-hero__context,
    .learning-hero__subtitle {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .course-card__stats {
        grid-template-columns: 1fr;
    }

    .course-card__cta,
    .lesson-card__cta {
        width: 100%;
    }
}

/* Readability and card layout stabilization */
.dashboard-page-shell,
.learning-page,
.progress-center-page,
.feedback-center-page,
.operations-page {
    overflow-x: clip;
}

.dashboard-page-shell h1,
.dashboard-page-shell h2,
.dashboard-page-shell h3,
.dashboard-page-shell h4,
.learning-page h1,
.learning-page h2,
.learning-page h3,
.learning-page h4,
.progress-panel strong,
.progress-panel h2,
.support-panel h2,
.support-panel h3,
.operations-panel h2,
.operations-panel h3,
.mentor-card strong,
.mentor-card h3,
.feedback-card strong,
.feedback-card h3,
.operations-card strong,
.operations-card h3,
.operations-support-card strong,
.operations-reply-card strong,
.operations-user-card h3,
.progress-course-card h3,
.achievement-card strong,
.course-card h3,
.lesson-card h3,
.learning-overview-card__value,
.hero-card h2,
.learning-hero__title,
.lesson-hero-copy h1 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
}

.dashboard-page-shell p,
.dashboard-page-shell span,
.dashboard-page-shell small,
.dashboard-page-shell dd,
.dashboard-page-shell a,
.learning-page p,
.learning-page span,
.learning-page small,
.learning-page dd,
.learning-page a {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.support-panel,
.progress-panel,
.operations-panel,
.mentor-card,
.feedback-card,
.operations-card,
.operations-user-card,
.operations-support-card,
.operations-reply-card,
.achievement-card,
.progress-course-card,
.progress-stat-card,
.learning-overview-card,
.course-card,
.lesson-card,
.lesson-content-card,
.lesson-video-card,
.lesson-actions-card,
.learning-empty-card,
.dashboard-stat-card,
.dashboard-card {
    min-width: 0;
}

.feedback-center-layout,
.feedback-history-grid,
.progress-center-grid,
.operations-layout,
.operations-grid-two,
.progress-course-grid,
.progress-center-stats,
.achievement-grid,
.learning-overview-grid,
.learning-atmosphere-grid,
.lesson-guidance-strip,
.reflection-prompts-grid,
.lesson-premium-grid {
    align-items: start;
}

.feedback-center-main,
.support-panel__list,
.feedback-history,
.mentor-card-list,
.operations-support-list,
.operations-replies-list,
.operations-queue,
.operations-link-list,
.operations-activity-list,
.progress-timeline,
.roadmap-list,
.lesson-list,
.lesson-main-stack {
    align-content: start;
    grid-auto-rows: min-content;
}

.support-panel__header,
.progress-panel__header,
.dashboard-section-header,
.dashboard-learning-progress__header,
.mentor-review-card__head,
.feedback-card__head,
.operations-user-card__head,
.operations-support-card__head,
.operations-activity-card__head,
.progress-course-card__head,
.roadmap-block__head {
    align-items: start;
    flex-wrap: wrap;
}

.support-panel__header .btn,
.support-panel__header .lesson-card__cta,
.progress-panel__header .btn,
.progress-panel__header .lesson-card__cta,
.dashboard-learning-progress__header .lesson-card__cta,
.mentor-review-card__head .btn,
.feedback-card__head .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.feedback-center-layout {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.5fr);
}

.feedback-history-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.progress-center-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.progress-center-stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.progress-course-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
}

.progress-course-grid .progress-course-card {
    display: grid;
    grid-template-rows: 1fr auto auto;
    min-height: 180px;
}

.achievement-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.learning-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.learning-overview-grid--course {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.learning-atmosphere-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lesson-guidance-strip,
.reflection-prompts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.course-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.course-card,
.progress-course-card,
.achievement-card,
.mentor-card,
.feedback-card,
.operations-support-card,
.operations-reply-card,
.operations-link-card,
.operations-activity-card,
.dashboard-attention-item,
.dashboard-activity-item {
    align-content: start;
}

.progress-course-card__head {
    align-content: start;
}

.progress-course-card__meta {
    align-self: end;
}

.course-card h3 {
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    line-height: 1.28;
    max-width: 22ch;
    text-wrap: pretty;
}

.progress-course-card h3,
.achievement-card strong,
.mentor-card h3,
.feedback-card strong,
.operations-support-card strong,
.operations-reply-card strong,
.operations-user-card h3 {
    line-height: 1.3;
    text-wrap: pretty;
}

.achievement-card p,
.achievement-card span,
.progress-course-card p,
.progress-course-card__meta span,
.feedback-card p,
.mentor-card p,
.operations-support-card p,
.operations-reply-card p,
.operations-activity-card p,
.operations-user-card__meta dd {
    line-height: 1.6;
}

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

.progress-stat-card,
.achievement-card,
.progress-course-card,
.learning-overview-card,
.operations-support-card,
.operations-reply-card,
.mentor-card,
.feedback-card {
    min-height: 180px;
}

.learning-page--course .learning-cover-shell {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.18fr) minmax(300px, 0.84fr);
    align-items: stretch;
}

.learning-page--course .learning-hero__content,
.learning-page--lesson .lesson-hero-copy,
.learning-page--lesson .lesson-outcomes-grid,
.learning-page--lesson .lesson-meta-pills {
    min-width: 0;
}

.learning-page--course .learning-hero__title,
.learning-page--lesson .lesson-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 3.8vw, 4rem);
    line-height: 1.06;
    text-wrap: balance;
}

.learning-page--course .learning-hero__subtitle,
.learning-page--lesson .lesson-hero-copy p {
    max-width: 58ch;
}

.learning-page--course .learning-hero__panel,
.learning-page--lesson .lesson-side-card,
.learning-page--lesson .lesson-content-card,
.learning-page--lesson .lesson-insight-card {
    align-content: start;
}

.learning-page--course .learning-hero__progress-note {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(219, 234, 254, 0.62), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.72));
}

.learning-page--course .learning-hero__panel .learning-hero__progress-note strong {
    color: #223144;
    font-size: 0.96rem;
    line-height: 1.35;
    text-wrap: pretty;
}

.learning-page--course .learning-hero__panel .learning-hero__progress-note p {
    margin: 0;
    max-width: 32ch;
    color: #5f7085;
    font-size: 0.92rem;
    line-height: 1.58;
    text-wrap: pretty;
}

@media (max-width: 640px) {
    .learning-page--course .learning-hero__progress-note {
        padding: 14px 15px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
    }

    .learning-page--course .learning-hero__panel .learning-hero__progress-note strong {
        color: #1f2d40;
        font-size: 0.94rem;
    }

    .learning-page--course .learning-hero__panel .learning-hero__progress-note p {
        max-width: 100%;
        color: #50647d;
        font-size: 0.88rem;
        line-height: 1.55;
    }
}

.learning-page--lesson .lesson-premium-grid {
    grid-template-columns: minmax(0, 1fr);
}

.learning-page--lesson .lesson-main-stack {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.learning-page--lesson .lesson-hero-card {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.learning-page--lesson .lesson-visual-panel {
    min-height: 360px;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.learning-page--lesson .lesson-visual-illustration {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: inherit;
    object-fit: cover;
}

.learning-page--lesson .lesson-hero-copy {
    align-content: center;
    padding-left: clamp(6px, 1.2vw, 18px);
}

.lesson-hero-rhythm {
    display: grid;
    gap: 6px;
    width: min(100%, 360px);
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.94), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.84));
    box-shadow: var(--shadow-floating);
}

.lesson-hero-rhythm strong {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.35;
}

.lesson-hero-rhythm span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .learning-page--lesson .lesson-hero-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        overflow: visible;
    }

    .learning-page--lesson .lesson-hero-copy {
        order: -1;
        width: 100%;
        min-width: 0;
        padding-left: 0;
        align-content: start;
    }

    .learning-page--lesson .lesson-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(1.9rem, 8vw, 2.45rem);
        overflow-wrap: break-word;
        word-break: normal;
        text-wrap: balance;
    }

    .learning-page--lesson .lesson-visual-panel {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 0.92;
        padding: 0;
    }

    .learning-page--lesson .lesson-visual-illustration {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lesson-hero-rhythm {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .lesson-hero-rhythm span {
        overflow-wrap: break-word;
    }
}

.learning-page--lesson .lesson-content-card__body {
    max-width: none;
    width: 100%;
}

.learning-page--lesson .lesson-content-card__body > *,
.learning-page--lesson .lesson-content-card__body .lesson-structured-block,
.learning-page--lesson .lesson-content-card__body .lesson-mentor-note,
.learning-page--lesson .lesson-content-card__body .mentor-note,
.learning-page--lesson .lesson-content-card__body .reflection-block,
.learning-page--lesson .lesson-content-card__body .lesson-reflection-block {
    max-width: none;
}

.lesson-video-embed-card {
    overflow: hidden;
}

.lesson-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.55), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.lesson-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111827;
}

.lesson-content-card__body,
.lesson-card__description,
.course-card__description,
.progress-timeline__item p,
.mentor-review-card__text,
.feedback-message__body p,
.operations-user-card__meta dd {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.dashboard-attention-item strong,
.dashboard-activity-item strong {
    line-height: 1.35;
    text-wrap: pretty;
}

.operations-user-card__meta {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.operations-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.operations-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.operations-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.operations-grid-two {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.operations-support-list,
.operations-replies-list,
.mentor-card-list,
.support-panel__list,
.feedback-history {
    display: grid;
    gap: 16px;
}

.progress-center-hero__content h1,
.feedback-center-hero__content h1,
.operations-hero__content h1 {
    max-width: 18ch;
    text-wrap: balance;
}

.feedback-ticket-card,
.mentor-review-card,
.feedback-card,
.operations-support-card,
.operations-reply-card,
.operations-activity-card {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .feedback-center-layout,
    .operations-layout,
    .progress-center-grid,
    .learning-page--course .learning-cover-shell {
        grid-template-columns: 1fr;
    }

    .feedback-create-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .course-grid,
    .progress-course-grid,
    .achievement-grid,
    .feedback-history-grid,
    .operations-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .progress-center-stats,
    .learning-overview-grid,
    .operations-cards-grid,
    .operations-user-card__meta,
    .learning-atmosphere-grid,
    .lesson-guidance-strip,
    .reflection-prompts-grid {
        grid-template-columns: 1fr;
    }

    .learning-page--course .learning-hero__title,
    .learning-page--lesson .lesson-hero-copy h1,
    .progress-center-hero__content h1,
    .feedback-center-hero__content h1,
    .operations-hero__content h1 {
        max-width: 100%;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .support-panel__header .btn,
    .support-panel__header .lesson-card__cta,
    .progress-panel__header .btn,
    .progress-panel__header .lesson-card__cta {
        width: 100%;
        justify-content: center;
    }
}

/* Page composition refinement */
.progress-center-page,
.feedback-center-page,
.operations-page,
.learning-page--course {
    --section-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
    --section-border: rgba(155, 176, 214, 0.22);
    --section-shadow: 0 24px 60px rgba(31, 54, 102, 0.09);
}

.progress-center-hero,
.feedback-center-hero,
.operations-hero,
.learning-page--course .learning-cover-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(167, 189, 226, 0.28);
    box-shadow: 0 28px 70px rgba(31, 54, 102, 0.1);
}

.progress-center-hero::before,
.feedback-center-hero::before,
.operations-hero::before,
.learning-page--course .learning-cover-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(107, 154, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(109, 210, 190, 0.14), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.progress-stat-card,
.progress-panel,
.support-panel,
.operations-card,
.operations-panel,
.course-progress-card,
.learning-overview-card,
.learning-atmosphere-card {
    background: var(--section-surface);
    border: 1px solid var(--section-border);
    box-shadow: var(--section-shadow);
}

.progress-center-stats {
    gap: 18px;
}

.progress-stat-card {
    position: relative;
    padding: 22px 22px 20px;
    overflow: hidden;
}

.progress-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    opacity: 0.9;
}

.progress-stat-card--started::before {
    background: linear-gradient(90deg, #78a9ff, #99c4ff);
}

.progress-stat-card--completed::before {
    background: linear-gradient(90deg, #64c5a8, #94e0c7);
}

.progress-stat-card--streak::before {
    background: linear-gradient(90deg, #8a95ff, #b0b7ff);
}

.progress-stat-card--practice::before {
    background: linear-gradient(90deg, #ffbf70, #ffd8a1);
}

.progress-stat-card strong {
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
}

.progress-stat-card p {
    max-width: 28ch;
}

.progress-panel--featured,
.support-panel--featured-reply,
.operations-panel--queue,
.course-progress-card--primary,
.learning-atmosphere-card--featured {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94)),
        radial-gradient(circle at top right, rgba(118, 165, 255, 0.16), transparent 32%);
}

.progress-panel--featured::after,
.support-panel--featured-reply::after,
.operations-panel--queue::after,
.course-progress-card--primary::after,
.learning-atmosphere-card--featured::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 210, 194, 0.22), rgba(111, 210, 194, 0));
    pointer-events: none;
}

.progress-panel__header,
.support-panel__header {
    gap: 14px;
    margin-bottom: 18px;
}

.progress-panel__header h2,
.support-panel__header h2,
.course-progress-card__header h2,
.learning-atmosphere-card h2 {
    max-width: 18ch;
    letter-spacing: -0.03em;
}

.progress-panel__header p,
.support-panel__header p,
.learning-atmosphere-card p {
    max-width: 60ch;
}

.progress-panel--roadmap .roadmap-list,
.progress-panel--timeline .progress-timeline,
.support-panel--history .support-panel__list,
.support-panel--questions .support-panel__list,
.support-panel--feedback .feedback-history,
.operations-panel--support .operations-support-list,
.operations-panel--replies .operations-replies-list,
.operations-panel--questions .mentor-card-list,
.operations-panel--reviews .mentor-card-list {
    gap: 18px;
}

.roadmap-block,
.mentor-review-card,
.feedback-card,
.operations-support-card,
.operations-reply-card,
.operations-activity-card,
.operations-link-card,
.progress-course-card,
.achievement-card,
.lesson-card {
    border-color: rgba(164, 184, 220, 0.24);
    box-shadow: 0 16px 34px rgba(33, 55, 99, 0.06);
}

.roadmap-block__head strong,
.mentor-review-card__head h3,
.feedback-card__head strong,
.operations-support-card__head strong,
.operations-reply-card strong,
.progress-course-card h3,
.achievement-card strong,
.lesson-card h3 {
    max-width: 22ch;
}

.progress-course-card,
.achievement-card,
.mentor-card,
.feedback-card,
.operations-support-card,
.operations-reply-card {
    min-height: 0;
}

.achievement-grid {
    gap: 18px;
}

.achievement-card {
    padding: 20px 20px 18px;
}

.achievement-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.achievement-card p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(31, 54, 102, 0.9);
}

.achievement-card span {
    display: block;
    color: rgba(69, 88, 127, 0.82);
}

.feedback-center-layout {
    gap: 24px;
}

.feedback-center-layout--organized {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
}

.feedback-center-layout--organized .feedback-create-card {
    position: static;
}

.feedback-create-card {
    position: sticky;
    top: 24px;
}

.feedback-ticket-card,
.mentor-review-card,
.feedback-card {
    padding: 18px;
}

.feedback-ticket-card .mentor-review-card__text,
.feedback-card p,
.mentor-card__question p {
    max-width: 62ch;
}

.feedback-center-layout--organized .support-panel__header h2 {
    max-width: none;
}

.feedback-center-layout--organized .feedback-create-card,
.feedback-center-layout--organized .support-panel--history,
.feedback-center-layout--organized .support-panel--questions,
.feedback-center-layout--organized .support-panel--feedback {
    border-radius: 22px;
}

.feedback-center-layout--organized .support-panel--history .support-panel__list,
.feedback-center-layout--organized .support-panel--questions .support-panel__list,
.feedback-center-layout--organized .support-panel--feedback .feedback-history {
    gap: 14px;
}

.feedback-center-layout--organized .mentor-review-card__reply,
.feedback-center-layout--organized .mentor-card__reply {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(130, 170, 235, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(241, 247, 255, 0.92));
}

.feedback-center-layout--organized .mentor-review-card__reply--pending,
.feedback-center-layout--organized .mentor-card__reply--pending {
    border-color: rgba(176, 190, 213, 0.28);
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(245, 248, 252, 0.94));
}

.feedback-center-layout--organized .mentor-review-card__reply strong,
.feedback-center-layout--organized .mentor-card__reply strong {
    display: block;
    margin-bottom: 6px;
    color: #14233c;
    font-size: 0.86rem;
}

.feedback-center-layout--organized .mentor-review-card__reply p,
.feedback-center-layout--organized .mentor-card__reply p {
    margin: 0;
    color: #516482;
    line-height: 1.7;
    max-width: 68ch;
}

.feedback-center-layout--organized .mentor-card__reply span {
    display: inline-block;
    margin-top: 8px;
    color: #71829d;
    font-size: 0.82rem;
}

.feedback-center-layout--organized .feedback-history-grid {
    align-items: start;
}

.feedback-shortcut-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feedback-shortcut-button {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
    align-content: center;
    border-radius: 18px;
    border: 1px solid rgba(119, 163, 239, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95)),
        radial-gradient(circle at right bottom, rgba(95, 215, 192, 0.14), transparent 36%);
    color: #14233c;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(31, 54, 102, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feedback-shortcut-button:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 116, 224, 0.38);
    box-shadow: 0 20px 42px rgba(31, 54, 102, 0.12);
}

.feedback-shortcut-button strong {
    font-size: 1rem;
    line-height: 1.25;
}

.feedback-shortcut-button span {
    max-width: 34ch;
    color: #5d6f8b;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .feedback-center-layout--organized {
        grid-template-columns: 1fr;
    }

    .feedback-center-layout--organized .feedback-create-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .feedback-shortcut-actions {
        grid-template-columns: 1fr;
    }
}

.feedback-history-grid > .support-panel,
.operations-grid-two > .operations-panel {
    min-height: 100%;
}

.operations-cards-grid {
    gap: 18px;
}

.operations-card {
    position: relative;
    padding: 22px 22px 20px;
    overflow: hidden;
}

.operations-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
}

.operations-card--tone-1::before {
    background: linear-gradient(90deg, #78a9ff, #adc8ff);
}

.operations-card--tone-2::before {
    background: linear-gradient(90deg, #64c5a8, #9ee3cf);
}

.operations-card--tone-3::before {
    background: linear-gradient(90deg, #ffbf70, #ffe0af);
}

.operations-card--tone-4::before {
    background: linear-gradient(90deg, #8f97ff, #bfc5ff);
}

.operations-card__value {
    letter-spacing: -0.04em;
}

.operations-link-card,
.operations-activity-card,
.operations-support-card,
.operations-reply-card {
    padding: 18px;
}

.operations-link-card span,
.operations-reply-card time {
    margin-top: auto;
}

.operations-reply-card span {
    line-height: 1.58;
}

.learning-page--course .learning-cover-shell {
    gap: 18px;
}

.learning-page--course .learning-cover-shell__caption {
    max-width: 26ch;
}

.learning-page--course .learning-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
}

.learning-page--course .learning-hero__chips {
    gap: 10px;
}

.learning-atmosphere-grid--course,
.learning-overview-grid--course {
    gap: 18px;
}

.learning-atmosphere-card,
.learning-overview-card,
.course-progress-card {
    padding: 22px;
}

.learning-overview-card--completion,
.learning-overview-card--status,
.learning-overview-card--next-step,
.learning-atmosphere-card--focus {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
}

.learning-overview-card__value {
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.learning-overview-card--next-step .learning-overview-card__value {
    display: block;
    max-width: 100%;
    font-size: clamp(1.65rem, 2.1vw, 2rem);
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.learning-section-header--split {
    align-items: end;
    gap: 16px;
}

.lesson-list--timeline {
    gap: 18px;
}

.lesson-card {
    padding: 22px;
}

.lesson-card__main {
    gap: 12px;
}

.lesson-card__description {
    max-width: 64ch;
}

@media (max-width: 1200px) {
    .feedback-create-card {
        top: 0;
    }

    .progress-panel__header h2,
    .support-panel__header h2,
    .course-progress-card__header h2,
    .learning-atmosphere-card h2 {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .progress-stat-card,
    .operations-card,
    .learning-overview-card,
    .course-progress-card,
    .learning-atmosphere-card,
    .lesson-card,
    .feedback-ticket-card,
    .mentor-review-card,
    .feedback-card {
        padding: 18px;
    }

    .progress-stat-card p,
    .feedback-ticket-card .mentor-review-card__text,
    .feedback-card p,
    .mentor-card__question p,
    .lesson-card__description {
        max-width: 100%;
    }
}

/* Dashboard visual refresh */

:root {
    --dash-ink-strong: #13213a;
    --dash-ink: #263954;
    --dash-ink-muted: #65758d;
    --dash-accent-blue: #2e6bff;
    --dash-accent-teal: #16a394;
    --dash-accent-gold: #d89b28;
    --dash-accent-violet: #6d5df6;
    --dash-shell: #edf3f8;
    --dash-panel: rgba(255, 255, 255, 0.96);
    --dash-panel-soft: rgba(247, 250, 255, 0.92);
    --dash-line: rgba(111, 132, 166, 0.18);
    --dash-lift: 0 18px 44px rgba(30, 53, 91, 0.09);
    --dash-lift-soft: 0 10px 28px rgba(30, 53, 91, 0.065);
}

.dashboard-layout {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(241, 247, 253, 0.9) 38%, rgba(232, 241, 246, 0.95) 100%),
        var(--dash-shell);
}

.content__inner.dashboard-page-inner {
    max-width: 1240px;
}

.dashboard-sidebar {
    width: 292px;
    background:
        linear-gradient(180deg, #102746 0%, #173d67 54%, #123850 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 12px 0 34px rgba(20, 42, 70, 0.12);
}

.dashboard-sidebar .sidebar__brand {
    gap: 18px;
    padding: 22px 18px 16px;
}

.dashboard-sidebar .brand-lockup--sidebar {
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .sidebar-profile {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .sidebar__nav {
    gap: 6px;
    padding: 6px 14px 16px;
}

.dashboard-sidebar .sidebar__nav a {
    min-height: 46px;
    padding: 11px 13px;
    color: rgba(236, 245, 255, 0.82);
    border: 1px solid transparent;
    border-radius: 14px;
}

.dashboard-sidebar .sidebar__nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.10);
}

.dashboard-sidebar .sidebar__nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(67, 118, 255, 0.72), rgba(22, 163, 148, 0.36));
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 12px 24px rgba(4, 18, 38, 0.18);
}

.dashboard-sidebar .sidebar__nav a.is-active::before {
    display: none;
}

.dashboard-sidebar .sidebar-language {
    display: block;
    margin: 0 20px 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dashboard-sidebar .sidebar-language__label {
    display: none;
}

.dashboard-sidebar .language-switcher--sidebar,
.dashboard-sidebar .language-switcher--sidebar .language-switcher__summary,
.dashboard-sidebar .language-switcher--sidebar .language-switcher__menu {
    width: 100%;
}

.dashboard-sidebar .language-switcher--sidebar .language-switcher__summary {
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    color: #ffffff;
    background: rgba(24, 65, 116, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: none;
}

.dashboard-sidebar .language-switcher--sidebar .language-switcher__current {
    min-height: 0;
    color: #ffffff;
    line-height: 1.2;
}

.dashboard-sidebar .language-switcher--sidebar .language-switcher__chevron {
    width: 7px;
    height: 7px;
    color: rgba(255, 255, 255, 0.88);
}

.dashboard-sidebar .language-switcher--sidebar .language-switcher__menu {
    left: 0;
    right: 0;
}

@media (max-width: 959px) {
    .mobile-menu__nav .language-switcher--mobile {
        width: 100%;
    }

    .mobile-menu__nav .language-switcher--mobile .language-switcher__summary {
        width: 100%;
        min-height: 46px;
        color: #ffffff;
        background: rgba(13, 52, 102, 0.62);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .mobile-menu__nav .language-switcher--mobile .language-switcher__current {
        min-height: 0;
        color: #ffffff;
        line-height: 1.2;
    }

    .mobile-menu__nav .language-switcher--mobile .language-switcher__chevron {
        color: #ffffff;
    }
}

.dashboard-support-card {
    margin: auto 18px 18px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
}

.dashboard-topbar {
    min-height: 58px;
    margin-bottom: 20px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--dash-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(30, 53, 91, 0.055);
    backdrop-filter: blur(14px);
}

.dashboard-page-shell {
    gap: 24px;
}

.dashboard-card {
    border-color: var(--dash-line);
    background: var(--dash-panel);
    box-shadow: var(--dash-lift-soft);
}

.hero-card {
    min-height: 0;
    padding: 30px;
    color: #ffffff;
    border: 0;
    border-radius: 26px;
    background:
        linear-gradient(135deg, #174289 0%, #285ee6 46%, #0f887f 100%);
    box-shadow: 0 24px 54px rgba(29, 78, 216, 0.20);
}

.hero-card::before,
.hero-card::after {
    opacity: 0.42;
}

.hero-card__content,
.hero-card__aside {
    position: relative;
    z-index: 1;
}

.hero-card__eyebrow {
    color: rgba(255, 255, 255, 0.78) !important;
    letter-spacing: 0.08em;
}

.hero-card h2 {
    max-width: 15ch;
    color: #ffffff !important;
    font-size: clamp(2.1rem, 4vw, 4.1rem);
    line-height: 0.98;
}

.hero-card__subtitle,
.hero-card__lead,
.ecosystem-hero__context {
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.88) !important;
}

.ecosystem-hero__context {
    display: none;
}

.hero-card__summary {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    max-width: 620px;
    gap: 12px;
    margin-top: 24px;
}

.hero-card__summary-item,
.hero-card__note {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-card__summary-item {
    padding: 16px 18px;
    border-radius: 18px;
}

.hero-card__summary-item span,
.hero-card__note span {
    color: rgba(255, 255, 255, 0.68);
}

.hero-card__summary-item strong,
.hero-card__note strong {
    color: #ffffff;
}

.hero-card__aside {
    gap: 14px;
}

.hero-card__badge-group {
    justify-content: flex-start;
}

.hero-card__badge {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hero-card__note {
    padding: 18px;
    border-radius: 20px;
}

.hero-card__note-visual {
    width: 118px;
}

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

.dashboard-stat-card.stats-card {
    position: relative;
    min-height: 172px;
    padding: 18px;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
    box-shadow: var(--dash-lift-soft);
}

.dashboard-stat-card.stats-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--stat-accent, var(--dash-accent-blue));
}

.dashboard-stats-grid > *:nth-child(1),
.dashboard-stats-grid > *:nth-child(2),
.dashboard-stats-grid > *:nth-child(3) {
    --stat-accent: var(--dash-accent-blue);
}

.dashboard-stats-grid > *:nth-child(4),
.dashboard-stats-grid > *:nth-child(5) {
    --stat-accent: var(--dash-accent-teal);
}

.dashboard-stats-grid > *:nth-child(6),
.dashboard-stats-grid > *:nth-child(7),
.dashboard-stats-grid > *:nth-child(8) {
    --stat-accent: var(--dash-accent-gold);
}

.stats-card__icon {
    width: 44px;
    height: 44px;
    color: var(--stat-accent, var(--dash-accent-blue));
    background: color-mix(in srgb, var(--stat-accent, var(--dash-accent-blue)) 12%, #ffffff);
}

.stats-card__label {
    color: var(--dash-ink);
    font-weight: 800;
}

.stats-card__value {
    color: var(--dash-ink-strong);
    letter-spacing: 0;
}

.stats-card__description {
    max-width: 24ch;
    color: var(--dash-ink-muted);
}

.dashboard-learning-progress,
.dashboard-next-step,
.progress-center-teaser,
.support-panel,
.dashboard-actions {
    border-radius: 24px;
    background: var(--dash-panel);
    box-shadow: var(--dash-lift-soft);
}

.dashboard-learning-progress {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
}

.dashboard-next-step {
    border-color: rgba(22, 163, 148, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 252, 249, 0.95));
}

.progress-pill {
    color: #2753b8;
    background: #eaf1ff;
}

.lesson-card__cta,
.card-status-card__cta,
.referrals-copy-button,
.bonus-link-button,
#bonus-refresh-form button {
    min-height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2e6bff, #2453d6);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.20);
}

.dashboard-grid--main {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 18px;
}

.notifications-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr) minmax(250px, 0.42fr);
    align-items: stretch;
}

.notifications-hero .ecosystem-hero__content {
    max-width: 48ch;
}

.notifications-hero h1 {
    max-width: 14.5ch;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.notifications-hero .dashboard-hero-visual {
    justify-self: stretch;
    align-self: stretch;
    min-height: 170px;
    padding: 6px;
}

.notifications-hero .dashboard-hero-visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.notifications-hero__aside {
    align-self: stretch;
    display: grid;
    align-content: stretch;
    gap: 12px;
}

.notifications-hero__aside .progress-stat-card {
    min-height: 170px;
    height: 100%;
    align-content: start;
}

.dashboard-progress-grid {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-learning-progress {
    gap: 20px;
    padding: 28px;
    border: 1px solid rgba(219, 234, 254, 0.86);
}

.dashboard-learning-progress__header {
    align-items: flex-start;
    gap: 18px;
}

.dashboard-learning-progress__header > div {
    min-width: 0;
}

.dashboard-learning-progress__header .lesson-card__cta {
    flex: 0 0 auto;
}

.dashboard-learning-progress__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.dashboard-learning-progress__stat {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-color: rgba(203, 213, 225, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 14px 26px rgba(30, 64, 120, 0.07);
}

.dashboard-learning-progress__stat span {
    line-height: 1.35;
}

.dashboard-learning-progress__stat strong {
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.dashboard-learning-progress__stat:last-child strong {
    font-size: 1.02rem;
}

.dashboard-learning-progress .progress-line {
    height: 10px;
    margin-top: 0;
}

.link-row.referrals-link-card,
.referral-card,
.card-status-card {
    border-radius: 24px;
}

.dashboard-actions {
    padding: 24px;
}

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

.dashboard-action-link {
    min-height: 154px;
    padding: 18px;
    border-radius: 18px;
    background: var(--dash-panel-soft);
    border-color: var(--dash-line);
}

.dashboard-action-link:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 107, 255, 0.28);
    box-shadow: 0 16px 32px rgba(30, 53, 91, 0.10);
}

.dashboard-action-link__icon {
    width: 42px;
    height: 42px;
}

.dashboard-growth-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1240px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-learning-progress__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 1024px) {
    .dashboard-layout {
        display: block;
    }

    .dashboard-topbar {
        display: none;
    }

    .content__inner.dashboard-page-inner {
        padding-top: 18px;
    }

    .mobile-header {
        background: linear-gradient(180deg, #102746 0%, #173d67 100%);
        box-shadow: 0 12px 28px rgba(16, 39, 70, 0.14);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .content {
        width: 100vw;
        max-width: 100vw;
        padding: 14px !important;
        overflow-x: hidden;
    }

    .content__inner.dashboard-page-inner,
    .dashboard-page,
    .dashboard-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        overflow-x: hidden;
    }

    .dashboard-page-shell {
        gap: 18px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .dashboard-page-shell > * {
        width: 100%;
        max-width: 100% !important;
        margin-inline: auto;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
        inline-size: 100% !important;
        max-inline-size: 100% !important;
        min-width: 0 !important;
        padding: 22px;
        border-radius: 24px;
        overflow: hidden;
    }

    .dashboard-card {
        inline-size: 100% !important;
        max-inline-size: 100% !important;
        min-width: 0 !important;
    }

    .hero-card *,
    .dashboard-card * {
        max-width: 100%;
    }

    .ecosystem-hero,
    .onboarding-grid,
    .onboarding-guidance-grid,
    .dashboard-progress-grid,
    .dashboard-growth-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .hero-card h2 {
        max-width: 100%;
        font-size: 2.25rem;
        line-height: 1.05;
    }

    .hero-card__lead {
        display: none;
    }

    .hero-card__content,
    .hero-card__aside,
    .hero-card__note,
    .dashboard-card,
    .dashboard-action-link {
        min-width: 0;
    }

    .hero-card__note-visual {
        display: none;
    }

    .ecosystem-hero__visual,
    .dashboard-hero-visual {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-card__summary,
    .dashboard-stats-grid,
    .dashboard-grid--main,
    .actions-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .dashboard-stat-card.stats-card {
        min-height: 118px;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
    }

    .stats-card__description {
        max-width: 100%;
        margin-top: 2px;
    }

    .dashboard-actions {
        padding: 18px;
    }

    .notifications-hero {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .notifications-hero h1 {
        max-width: 100%;
    }

    .dashboard-learning-progress {
        padding: 20px;
    }

    .dashboard-learning-progress__header {
        flex-direction: column;
    }

    .dashboard-learning-progress__header .lesson-card__cta {
        width: 100%;
        justify-content: center;
    }

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

    .dashboard-learning-progress__stat {
        min-height: 96px;
    }

    .dashboard-action-link {
        min-height: 116px;
    }

    .onboarding-welcome-card__actions,
    .support-panel__actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .onboarding-welcome-card__actions .lesson-card__cta,
    .support-panel__actions .lesson-card__cta,
    .support-panel__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .content {
        padding: 12px 10px 28px !important;
    }

    .content__inner.dashboard-page-inner {
        width: 100%;
        padding-inline: 0 !important;
    }

    .dashboard-page-shell > * {
        max-width: calc(100vw - 20px) !important;
    }

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

    .hero-card h2 {
        font-size: 1.95rem;
    }

    .hero-card__summary {
        gap: 10px;
    }

    .hero-card__summary-item,
    .hero-card__note,
    .dashboard-stat-card.stats-card,
    .dashboard-action-link {
        border-radius: 16px;
    }
}

/* Final mobile safe area: fixed bottom nav must never cover page content */

@media (max-width: 768px) {
    :root {
        --mobile-bottom-nav-space: calc(124px + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-bottom: var(--mobile-bottom-nav-space) !important;
    }

    .content {
        padding-bottom: var(--mobile-bottom-nav-space) !important;
    }

    .content__inner.dashboard-page-inner,
    .dashboard-page,
    .dashboard-page-shell,
    .learning-page,
    .tasks-page,
    .profile-center,
    .feedback-center-page,
    .notifications-page,
    .progress-center-page,
    .ecosystem-page {
        padding-bottom: var(--mobile-bottom-nav-space) !important;
    }
}

@media (max-width: 430px) {
    :root {
        --mobile-bottom-nav-space: calc(136px + env(safe-area-inset-bottom, 0px));
    }
}

/* Hide the old dashboard topbar across every cabinet page */

.content-topbar.dashboard-topbar.dashboard-topbar--hidden,
.dashboard-topbar.dashboard-topbar--hidden {
    display: none !important;
}

/* Final word wrapping guard: never split ordinary interface words by letters. */
:where(
    .content,
    .dashboard-page-shell,
    .dashboard-shell,
    .learning-page,
    .mentor-page,
    .notifications-page,
    .structure-page,
    .feedback-center-page,
    .operations-page,
    .public-page,
    .public-shell,
    .auth-entry
) :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    small,
    strong,
    em,
    a,
    button,
    label,
    li,
    dt,
    dd,
    figcaption
) {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

:where(
    code,
    pre,
    kbd,
    samp,
    .referral-code,
    .referrals-copy-button,
    .copyable-code,
    .monospace,
    [data-copy-value]
) {
    overflow-wrap: anywhere !important;
}
.mentor-workspace-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

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

.operations-hero--focused {
    min-height: 320px;
}

.operations-cards-grid--summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operations-cards-grid--summary .operations-card {
    height: 100%;
}

.operations-panel .progress-panel__header p,
.mentor-review-panel .progress-panel__header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

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

@media (max-width: 720px) {
    .mentor-stat-grid--compact,
    .operations-cards-grid--summary {
        grid-template-columns: 1fr;
    }

    .mentor-workspace-links .btn {
        width: 100%;
    }
}

/* Administrative support queue */
.admin-support-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-support-heading h1,
.admin-support-thread h1 {
    margin: 10px 0 8px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.admin-support-heading p,
.admin-support-thread .support-panel__header p {
    max-width: 70ch;
}

.admin-support-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-support-stats .dashboard-stat-card {
    min-height: 120px;
}

.admin-support-queue,
.admin-support-thread,
.admin-support-reply-panel {
    min-width: 0;
}

.admin-support-queue .support-panel__header {
    gap: 20px;
}

.admin-support-queue .feedback-filter-row {
    justify-content: flex-end;
}

.admin-support-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.admin-support-ticket {
    min-height: 0;
}

.admin-support-ticket h3 {
    margin: 8px 0 4px;
    font-size: 1.2rem;
}

.admin-support-ticket__user {
    margin: 0;
    color: var(--muted);
}

.admin-support-ticket__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-support-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
    align-items: start;
    gap: 20px;
}

.admin-support-reply-panel {
    position: sticky;
    top: 24px;
}

.admin-support-reply-panel .support-panel__form select {
    width: 100%;
}

.admin-support-facts {
    margin-top: 20px;
}

@media (max-width: 980px) {
    .admin-support-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-support-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-support-reply-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .admin-support-heading,
    .admin-support-ticket__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-support-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-support-queue .feedback-filter-row {
        justify-content: flex-start;
    }

    .admin-support-ticket__footer .lesson-card__cta {
        width: 100%;
    }
}

/* Mentor hero: let the illustration fill the full right side on desktop. */
@media (min-width: 1181px) {
    .mentor-page .mentor-hero-card {
        grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
        grid-template-rows: auto 1fr;
        align-items: stretch;
    }

    .mentor-page .mentor-hero__content {
        grid-column: 1;
        grid-row: 1;
    }

    .mentor-page .mentor-hero__panel {
        grid-column: 1;
        grid-row: 2;
    }

    .mentor-page .mentor-hero__visual {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: stretch;
        min-height: 100%;
        padding: 0;
        overflow: hidden;
    }

    .mentor-page .mentor-hero__visual img {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
    }
}
