:root {
    --ink: #24312b;
    --muted: #68746e;
    --line: #d9ddd2;
    --paper: #fffdf8;
    --soft: #f3efe7;
    --sage: #476255;
    --sage-dark: #2f463b;
    --moss: #7f956b;
    --clay: #b8614b;
    --rose: #cf9a8c;
    --sky: #dce8ee;
    --shadow: 0 18px 45px rgba(36, 49, 43, .12);
    --violet: #6f35c8;
    --violet-dark: #35135d;
    --magenta: #e85a9d;
    --aqua: #68d6ef;
    --gold: #e7bd75;
    --admin-border: var(--line);
    --admin-card-bg: #fff;
    --admin-text: var(--ink);
    --admin-dim: var(--muted);
    --admin-z-nested-modal: 1600;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(111, 53, 200, .09), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(232, 90, 157, .08), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #fbf7ff 52%, #fffdf8 100%);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    background: rgba(255, 253, 248, .84);
    border-bottom: 1px solid rgba(111, 53, 200, .12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(53, 19, 93, .05);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}

.brand-logo {
    display: block;
    width: clamp(150px, 16vw, 218px);
    height: auto;
    filter: brightness(0) drop-shadow(0 6px 16px rgba(53, 19, 93, .1));
}

.brand-logo--violet {
    filter: drop-shadow(0 8px 18px rgba(53, 19, 93, .16));
}

body:has(.landing-hero) .brand-logo {
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .34));
}

body:has(.landing-hero) .brand-logo--violet {
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .28));
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, var(--violet), var(--magenta), var(--aqua), var(--violet));
    box-shadow: inset 0 0 0 6px rgba(255, 253, 248, .75);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.language-switch a {
    min-width: 36px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.language-switch a:hover,
.language-switch a:focus {
    background: rgba(111, 53, 200, .1);
    color: var(--violet-dark);
}

.language-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    box-shadow: 0 10px 22px rgba(111, 53, 200, .18);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus {
    background: var(--soft);
    color: var(--ink);
}

.btn,
button.btn {
    border: 0;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(111, 53, 200, .2);
}

.btn:hover,
.btn:focus {
    background: linear-gradient(135deg, var(--violet-dark), var(--magenta));
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--violet-dark);
    border: 1px solid rgba(111, 53, 200, .18);
    box-shadow: none;
}

.btn-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}

.btn-icon,
.icon-action {
    border: 1px solid rgba(111, 53, 200, .16);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    min-height: 38px;
    padding: 8px 12px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(232, 90, 157, .15);
    border-color: rgba(111, 53, 200, .42);
}

.form-intro {
    margin: -6px 0 2px;
    color: var(--muted);
}

.icon-action.active {
    border-color: var(--clay);
    color: var(--clay);
}

.hero {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 76px 28px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.landing-app {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 460px;
    gap: 34px;
    align-items: center;
}

.landing-copy {
    min-height: 620px;
    border-radius: 18px;
    padding: 44px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(36, 49, 43, .92), rgba(71, 98, 85, .76)),
        url("../img/yoga-pattern.svg") center / cover no-repeat;
    display: grid;
    align-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.landing-copy-inner {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.photo-landing .phone-preview {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 1;
}

.photo-landing .landing-copy {
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 18%, rgba(247, 151, 255, .72), transparent 28%),
        radial-gradient(circle at 80% 8%, rgba(95, 230, 255, .42), transparent 26%),
        linear-gradient(135deg, #35135d 0%, #7b2bd3 48%, #e85a9d 100%);
}

.photo-landing .landing-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        url("../img/landing-yoga-photo.png") 58% center / cover no-repeat,
        url("../img/yoga-pattern.svg") center / cover no-repeat;
    opacity: .74;
    filter: saturate(1.25) contrast(1.04);
    transform: scale(1.03);
}

.photo-landing .landing-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(29, 10, 54, .92), rgba(78, 22, 125, .64) 48%, rgba(231, 75, 160, .18)),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(30, 10, 48, .42));
}

.landing-copy h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1;
    text-shadow: 0 18px 44px rgba(20, 8, 35, .38);
}

.landing-lead {
    max-width: 620px;
    margin: 0;
    font-size: 20px;
    color: rgba(255, 255, 255, .88);
}

.app-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-badges span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-weight: 800;
}

.landing-note {
    width: min(420px, 100%);
    display: grid;
    gap: 2px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 18px 50px rgba(29, 10, 54, .22);
    backdrop-filter: blur(14px);
}

.landing-note strong {
    font-size: 24px;
    letter-spacing: 0;
}

.landing-note span {
    color: rgba(255, 255, 255, .82);
}

.phone-preview {
    width: min(310px, 100%);
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 253, 248, .96);
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
    color: var(--ink);
    backdrop-filter: blur(8px);
}

.phone-top {
    width: 72px;
    height: 7px;
    border-radius: 999px;
    margin: 0 auto 22px;
    background: var(--line);
}

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

.phone-card.strong {
    background: var(--sage);
    color: #fff;
}

.phone-card span {
    display: block;
    font-size: 13px;
    opacity: .78;
}

.phone-card strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
}

.phone-metric {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
}

.phone-metric strong {
    color: var(--violet);
}

.phone-progress {
    margin: 18px 0;
    height: 11px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}

.phone-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--moss), var(--clay));
}

.phone-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.phone-row span {
    height: 54px;
    border-radius: 14px;
    background: var(--sky);
}

.access-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.photo-landing .access-card {
    border-color: rgba(124, 43, 211, .18);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(124, 43, 211, .5), rgba(232, 90, 157, .35), rgba(95, 230, 255, .25)) border-box;
    box-shadow: 0 24px 70px rgba(79, 38, 132, .18);
}

.access-card h2 {
    margin: 6px 0 12px;
    font-size: 30px;
}

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

.auth-tabs button {
    border: 0;
    border-radius: 9px;
    min-height: 42px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active {
    background: linear-gradient(135deg, #7b2bd3, #e85a9d);
    color: #fff;
    box-shadow: 0 12px 26px rgba(123, 43, 211, .2);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: grid;
}

.demo-box.compact {
    font-size: 13px;
}

.landing-strip {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 52px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-strip article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.landing-strip span {
    color: var(--clay);
    font-weight: 900;
}

.landing-strip h2 {
    margin: 10px 0 8px;
}

.landing-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin-top: 0;
    padding: 120px min(6vw, 76px) 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("../img/landing-yoga-photo.png") 62% center / cover no-repeat;
    filter: saturate(1.18) contrast(1.05);
    transform: scale(1.01);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 22%, rgba(157, 75, 255, .48), transparent 32%),
        radial-gradient(circle at 72% 18%, rgba(232, 90, 157, .24), transparent 30%),
        linear-gradient(90deg, rgba(19, 7, 37, .9) 0%, rgba(53, 19, 93, .76) 42%, rgba(28, 11, 42, .34) 100%),
        linear-gradient(180deg, rgba(12, 4, 24, .46), rgba(12, 4, 24, .7));
}

.landing-hero__content {
    max-width: 760px;
    padding-top: 20px;
}

.landing-hero .eyebrow {
    color: #ffd8f0;
}

.landing-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(58px, 9vw, 132px);
    line-height: .9;
    letter-spacing: 0;
    text-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.landing-logo-title {
    position: relative;
    width: min(720px, 100%);
    overflow: hidden;
    animation: landing-logo-reveal 1.45s ease-out .15s both;
}

.landing-logo-title img {
    display: block;
    width: min(720px, 100%);
    height: auto;
    filter: drop-shadow(0 22px 46px rgba(0, 0, 0, .32));
}

@keyframes landing-logo-reveal {
    0% {
        opacity: .04;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-logo-title {
        animation: none;
        opacity: 1;
        clip-path: none;
    }
}

.landing-hero .landing-lead {
    max-width: 640px;
    font-size: clamp(20px, 2.1vw, 31px);
    color: rgba(255, 255, 255, .88);
}

.landing-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-glass {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.btn-glass:hover,
.btn-glass:focus {
    background: rgba(255, 255, 255, .24);
}

.hero-access-card {
    align-self: end;
    margin-bottom: 62px;
    color: var(--ink);
    background: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 30px 90px rgba(13, 4, 29, .28);
    backdrop-filter: blur(22px);
}

.hero-access-card .eyebrow {
    color: var(--magenta);
}

.hero-access-card .demo-box {
    background: rgba(255, 255, 255, .54);
}

.hero-bottom-line {
    position: absolute;
    left: min(6vw, 76px);
    right: min(6vw, 76px);
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .74);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .14em;
}

.hero-bottom-line span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.landing-strip--quiet {
    margin-top: 28px;
}

body:has(.landing-hero) .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(12, 4, 24, .2);
    border-bottom-color: rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: none;
}

body:has(.landing-hero) .main-nav a {
    color: rgba(255, 255, 255, .84);
}

body:has(.landing-hero) .language-switch {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

body:has(.landing-hero) .language-switch a {
    color: rgba(255, 255, 255, .82);
}

body:has(.landing-hero) .language-switch a:hover,
body:has(.landing-hero) .language-switch a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

body:has(.landing-hero) .language-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

body:has(.landing-hero) .main-nav a:hover,
body:has(.landing-hero) .main-nav a:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

body:has(.landing-hero).is-scrolled .site-header {
    background: rgba(22, 8, 42, .78);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(13, 4, 29, .18);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(36, 49, 43, .86), rgba(36, 49, 43, .36), rgba(255, 253, 248, .1)),
        url("../img/yoga-pattern.svg") center right / cover no-repeat,
        var(--sage);
}

.hero-copy {
    position: relative;
    width: min(720px, 100%);
    color: #fff;
}

.hero h1,
.page-hero h1,
.dashboard-head h1,
.profile-hero h1 {
    margin: 6px 0 14px;
    font-size: 48px;
    line-height: 1.05;
}

.hero p,
.page-hero p,
.dashboard-head p,
.profile-hero p {
    max-width: 720px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.eyebrow {
    margin: 0;
    color: var(--clay);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: #f4c6b8;
}

.band,
.page-hero,
.dashboard-head,
.profile-hero,
.course-layout,
.auth-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.band {
    padding: 46px 0;
}

.page-hero {
    padding: 58px 0 26px;
}

.page-hero.compact {
    min-height: auto;
    margin-top: 24px;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(53, 19, 93, .92), rgba(111, 53, 200, .7)),
        url("../img/yoga-pattern.svg") center / cover no-repeat;
    color: #fff;
    box-shadow: 0 24px 70px rgba(53, 19, 93, .14);
    overflow: hidden;
}

.page-hero.compact .eyebrow {
    color: #ffd4ef;
}

.page-hero.compact p {
    color: rgba(255, 255, 255, .86);
}

.section-head,
.dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head h2,
.panel h2,
.side-panel h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

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

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

.card,
.panel,
.side-panel,
.auth-panel {
    background: #fff;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 14px;
    box-shadow: 0 18px 52px rgba(53, 19, 93, .09);
}

.card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 90, 157, .3);
    box-shadow: 0 24px 70px rgba(53, 19, 93, .13);
}

.card > div,
.card:not(.course-card):not(.program-card) {
    padding: 18px;
}

.card h3,
.panel h3 {
    margin: 8px 0;
    font-size: 20px;
}

.card p,
.panel p,
.side-panel p {
    color: var(--muted);
}

.course-card img,
.program-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(111, 53, 200, .1);
    color: var(--violet-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

.card-cta {
    margin-top: 16px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(111, 53, 200, .1), rgba(232, 90, 157, .1));
    color: var(--violet-dark);
    font-weight: 850;
}

.card-cta:hover,
.card-cta:focus {
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed rgba(111, 53, 200, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 14px;
}

.split-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-list span,
.reward,
.transaction,
.offer,
.wall-post,
.timeline-item {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tabs a {
    padding: 9px 13px;
    border: 1px solid rgba(111, 53, 200, .16);
    border-radius: 999px;
    color: var(--muted);
}

.tabs a.active {
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(111, 53, 200, .18);
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 36px 0 54px;
    align-items: start;
}

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

.course-cover,
.program-cover {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.program-cover {
    margin-bottom: 18px;
}

.course-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 22px 0;
}

.course-title-row h1 {
    margin: 8px 0 8px;
    font-size: 40px;
    line-height: 1.1;
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    margin: 22px 0;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.live-box,
.locked-box {
    padding: 22px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    margin: 20px 0;
}

.course-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
}

.course-action-row .btn {
    width: auto;
    min-width: min(220px, 100%);
}

.rich-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.rich-content h2 {
    margin-top: 0;
}

.rich-content blockquote {
    margin: 18px 0;
    border-left: 4px solid var(--clay);
    padding: 8px 0 8px 16px;
    color: var(--sage-dark);
    font-weight: 700;
}

.side-panel {
    padding: 20px;
    position: sticky;
    top: 88px;
}

.teacher-link {
    font-weight: 800;
    color: var(--sage-dark);
}

.facts {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
    font-weight: 800;
}

.auth-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 42px 0;
}

.auth-panel {
    width: min(520px, 100%);
    padding: 28px;
}

.auth-panel h1 {
    margin: 6px 0 18px;
    font-size: 34px;
}

.stack {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.demo-box,
.alert,
.flash {
    display: grid;
    gap: 5px;
    border-radius: 12px;
    padding: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.flash {
    width: min(900px, calc(100% - 40px));
    margin: 16px auto 0;
}

.flash-error,
.alert-error {
    background: #fff0ed;
    border-color: #efb3a3;
}

.flash-warning {
    background: #fff7df;
    border-color: #e6ca77;
}

.dashboard-head {
    padding: 38px 0 22px;
    margin-top: 18px;
    align-items: center;
    border-radius: 18px;
    padding: 28px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 18px 50px rgba(53, 19, 93, .07);
    backdrop-filter: blur(10px);
}

.dashboard-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-quick-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-quick-card {
    min-width: 0;
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    text-align: left;
    color: var(--ink);
    border-radius: 20px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 44px rgba(53, 19, 93, .08);
    cursor: pointer;
}

.admin-quick-card--primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.admin-quick-card strong {
    font-size: 18px;
}

.admin-quick-card small {
    color: var(--muted);
    font-weight: 760;
}

.admin-quick-card--primary small {
    color: rgba(255, 255, 255, .82);
}

.panel {
    padding: 20px;
}

.panel.wide {
    grid-column: 1 / -1;
}

.stats-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat {
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--violet-dark), var(--violet));
    color: #fff;
    box-shadow: 0 18px 46px rgba(53, 19, 93, .16);
}

.stat span {
    display: block;
    color: #dfe8e1;
}

.stat strong {
    font-size: 30px;
}

.level-bar {
    height: 12px;
    background: var(--soft);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.level-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--magenta), var(--aqua));
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.reward {
    --badge-a: #6f35c8;
    --badge-b: #e85a9d;
    min-width: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--badge-b), transparent 72%), transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(251, 246, 255, .9));
    border: 1px solid color-mix(in srgb, var(--badge-a), transparent 78%);
    box-shadow: 0 16px 42px rgba(53, 19, 93, .08);
    font-weight: 900;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reward:nth-child(4n + 2) {
    --badge-a: #0d9488;
    --badge-b: #68d6ef;
}

.reward:nth-child(4n + 3) {
    --badge-a: #b8614b;
    --badge-b: #e7bd75;
}

.reward:nth-child(4n + 4) {
    --badge-a: #476255;
    --badge-b: #8fcf9f;
}

.reward:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--badge-a), transparent 55%);
    box-shadow: 0 22px 58px rgba(53, 19, 93, .12);
}

.reward::after {
    content: "";
    position: absolute;
    width: 76px;
    height: 76px;
    right: -28px;
    bottom: -30px;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--badge-a), transparent 80%), color-mix(in srgb, var(--badge-b), transparent 78%));
    z-index: -1;
}

.reward img {
    width: 42px;
    height: 42px;
    padding: 9px;
    flex: 0 0 auto;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--badge-a), var(--badge-b));
    filter: brightness(0) invert(1);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--badge-a), transparent 70%);
}

.reward.badge-medal {
    width: 100%;
    align-items: flex-start;
}

.reward .reward__visual {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .28), transparent 42%),
        linear-gradient(135deg, var(--badge-a), var(--badge-b));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--badge-a), transparent 68%);
}

.reward .reward__visual--icon::before {
    content: none;
}

.reward__icon-svg {
    width: 30px;
    height: 30px;
    display: block;
    color: #fff;
    fill: currentColor;
}

.reward img.is-image,
.reward-card img.is-image {
    padding: 0;
    object-fit: cover;
    filter: none;
    background: #fff;
}

.reward .reward__visual--image img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border-radius: inherit;
    object-fit: cover;
    filter: none;
    background: #fff;
    box-shadow: none;
}

.reward-card > .reward-card__visual img.is-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.reward__body {
    min-width: 0;
}

.reward__body strong {
    line-height: 1.15;
}

.reward__body em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-weight: 650;
    font-size: 12px;
    line-height: 1.3;
}

.reward__condition {
    color: var(--violet-dark) !important;
}

.reward > span {
    display: grid;
    gap: 1px;
}

.reward small {
    display: block;
    color: var(--muted);
    font-weight: 750;
    text-transform: uppercase;
    font-size: 11px;
}

.badge-icon-picker {
    display: grid;
    gap: 10px;
}

.badge-icon-picker > strong {
    color: var(--muted);
}

.badge-icon-picker > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 9px;
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .045);
    border: 1px solid rgba(111, 53, 200, .12);
}

.badge-icon-picker label {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 92px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(111, 53, 200, .1);
    cursor: pointer;
    text-align: center;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.badge-icon-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.badge-icon-picker label span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    box-shadow: 0 12px 24px rgba(111, 53, 200, .18);
}

.badge-icon-picker label img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.badge-icon-picker label small {
    max-width: 100%;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
}

.badge-icon-picker label:has(input:checked) {
    background: #fff;
    border-color: rgba(232, 90, 157, .45);
    box-shadow: 0 14px 34px rgba(111, 53, 200, .14);
    transform: translateY(-1px);
}

.badge-icon-picker label:has(input:checked) span {
    background: linear-gradient(135deg, var(--violet-dark), var(--magenta));
}

.badge-editor {
    border-radius: 16px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .72);
    padding: 10px;
}

.badge-grid > .badge-editor {
    grid-column: 1 / -1;
}

.badge-editor summary {
    cursor: pointer;
    color: var(--violet-dark);
    font-weight: 900;
}

.badge-editor[open] {
    box-shadow: 0 18px 48px rgba(53, 19, 93, .08);
}

.badge-editor form {
    margin-top: 12px;
}

.app-modal--badge .app-modal__dialog {
    width: min(980px, calc(100vw - 28px));
    max-height: min(92dvh, 860px);
    overflow: auto;
    align-content: start;
}

.app-modal--badge .stack {
    gap: 16px;
}

.app-modal--badge .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.app-modal--badge .badge-translations {
    border-radius: 20px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(111, 53, 200, .045);
    padding: 12px;
}

.app-modal--badge .badge-translations summary {
    cursor: pointer;
    color: var(--violet-dark);
    font-weight: 950;
}

.app-modal--badge .badge-translations .form-grid {
    margin-top: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-modal--badge .badge-translations label {
    min-width: 0;
}

.app-modal--badge .badge-translations textarea {
    min-height: 96px;
}

.app-modal--badge .badge-icon-picker > div {
    max-height: 260px;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.app-modal--badge .badge-course-picker,
.app-modal--badge .mini-checks[data-rule-field="courses"] {
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(111, 53, 200, .12);
}

.app-modal--badge .inline-form,
.app-modal--badge form.inline-form {
    display: inline-flex;
    width: auto;
    margin: 0 8px 8px 0;
    vertical-align: top;
}

.badge-admin-panel {
    gap: 18px;
}

.badge-admin-form,
.badge-award-form {
    padding: 14px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .045);
    border: 1px solid rgba(111, 53, 200, .12);
}

.badge-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.badge-admin-card {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.badge-course-picker {
    max-height: 220px;
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(71, 98, 85, .12);
}

.badge-course-picker small {
    color: var(--muted);
    font-weight: 750;
}

.ref-code {
    display: inline-flex;
    padding: 12px;
    border-radius: 8px;
    background: var(--sage-dark);
    color: #fff;
    font-weight: 800;
}

.row-link,
.transaction,
.offer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.row-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.row-link span {
    color: var(--muted);
    font-weight: 700;
}

.table-list {
    display: grid;
    gap: 12px;
}

.table-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.table-list span,
.table-list p {
    color: var(--muted);
}

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form select {
    width: auto;
}

.admin-benefits-grid {
    display: grid;
    grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
}

.admin-benefits-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.admin-benefits-card--wide {
    min-width: 0;
}

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

.admin-benefits-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-member-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.admin-member-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
}

.admin-member-check input {
    width: auto;
    margin-top: 4px;
}

.admin-member-check span {
    display: grid;
    gap: 2px;
}

.admin-member-check small {
    color: var(--muted);
    font-weight: 750;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 42px 0 24px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.avatar.large {
    width: 110px;
    height: 110px;
    font-size: 44px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
}

.timeline-item > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    font-weight: 800;
}

.builder-form {
    display: grid;
    gap: 18px;
}

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

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

.builder-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.builder-blocks {
    display: grid;
    gap: 12px;
}

.builder-block {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.course-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.course-form-actions .btn {
    min-width: 150px;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--sage-dark);
    color: #fff;
    box-shadow: var(--shadow);
}

body.auth-modal-open .toast {
    top: 18px;
    bottom: auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .cards-3,
    .split-band,
    .course-layout,
    .dashboard-grid,
    .stats-grid,
    .landing-app,
    .landing-strip {
        grid-template-columns: 1fr;
    }

    .panel.wide {
        grid-column: auto;
    }

    .side-panel {
        position: static;
    }

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

    .form-grid > .cover-picker {
        grid-column: 1 / -1;
    }

    .photo-landing .phone-preview {
        position: relative;
        right: auto;
        bottom: auto;
    }

    .landing-hero {
        min-height: auto;
        padding: 112px 24px 72px;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-access-card {
        align-self: auto;
        margin-bottom: 0;
        width: min(520px, 100%);
    }

    .hero-bottom-line {
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 18px;
    }

    .language-switch {
        order: 2;
        margin-left: 0;
    }

    .main-nav {
        order: 3;
        justify-content: flex-start;
    }

    .hero {
        min-height: 520px;
        padding: 54px 20px;
    }

    .hero h1,
    .landing-copy h1,
    .page-hero h1,
    .dashboard-head h1,
    .profile-hero h1 {
        font-size: 36px;
    }

    .band,
    .page-hero,
    .dashboard-head,
    .profile-hero,
    .course-layout,
    .auth-shell,
    .dashboard-grid,
    .stats-grid,
    .landing-app,
    .landing-strip {
        width: min(100% - 28px, 1180px);
    }

    .landing-app {
        padding: 24px 0;
    }

    .landing-copy {
        min-height: 520px;
        padding: 28px;
    }

    .landing-hero {
        margin-top: -111px;
        padding: 142px 14px 68px;
        gap: 22px;
    }

    .landing-hero h1 {
        font-size: clamp(48px, 18vw, 78px);
    }

    .landing-hero .landing-lead {
        font-size: 19px;
    }

    .landing-actions {
        gap: 10px;
    }

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

    .hero-access-card {
        padding: 18px;
        border-radius: 16px;
    }

    .hero-bottom-line {
        justify-content: center;
        font-size: 10px;
        letter-spacing: .08em;
    }

    .feature-list,
    .form-grid,
    .builder-block {
        grid-template-columns: 1fr;
    }

    .course-title-row,
    .section-head,
    .dashboard-head,
    .profile-hero,
    .table-row {
        align-items: stretch;
        flex-direction: column;
    }

    .course-cover {
        height: 220px;
    }
}

/* Landing solo yoga */
.landing-hero {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 100vh;
    padding-bottom: 92px;
}

.landing-hero::before {
    background-position: center center;
    filter: saturate(1.16) contrast(1.04);
}

.landing-hero::after {
    background:
        radial-gradient(circle at 18% 24%, rgba(157, 75, 255, .42), transparent 32%),
        radial-gradient(circle at 74% 22%, rgba(232, 90, 157, .12), transparent 28%),
        linear-gradient(90deg, rgba(16, 5, 34, .9) 0%, rgba(53, 19, 93, .62) 42%, rgba(31, 8, 47, .12) 72%, rgba(14, 4, 26, .2) 100%),
        linear-gradient(180deg, rgba(12, 4, 24, .24), rgba(12, 4, 24, .58));
}

.landing-hero__content {
    align-self: end;
    max-width: 760px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.social-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(111, 53, 200, .1);
    border: 1px solid rgba(111, 53, 200, .18);
    color: var(--violet-dark);
    font-weight: 800;
}

.social-links--hero {
    margin-top: 24px;
}

.social-links--hero a {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(12px);
}

.social-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.social-dock--hero {
    margin-top: 26px;
    max-width: 720px;
}

.social-dock--blog {
    justify-content: flex-end;
}

.social-dock__item {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 9px 14px 9px 9px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    box-shadow: 0 18px 48px rgba(14, 4, 28, .18);
    backdrop-filter: blur(16px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.blog-hero .social-dock__item,
.blog-article .social-dock__item {
    background: #fff;
    border-color: rgba(111, 53, 200, .16);
    color: var(--violet-dark);
    box-shadow: 0 16px 42px rgba(53, 19, 93, .08);
}

.social-dock__item:hover,
.social-dock__item:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .38);
}

.blog-hero .social-dock__item:hover,
.blog-article .social-dock__item:hover,
.blog-hero .social-dock__item:focus,
.blog-article .social-dock__item:focus {
    background: linear-gradient(135deg, rgba(111, 53, 200, .09), rgba(232, 90, 157, .1));
    border-color: rgba(232, 90, 157, .26);
}

.social-dock__item span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.social-dock__item span img,
.social-rail__item span img,
.member-socials__link span img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-dock__item--facebook span,
.social-rail__item--facebook span,
.member-socials__link--facebook span {
    background: #1877f2;
}

.social-dock__item--instagram span,
.social-rail__item--instagram span,
.member-socials__link--instagram span {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-dock__item--youtube span {
    background: linear-gradient(135deg, #ff4f6f, #e2335f);
}

.social-rail__item--youtube span,
.member-socials__link--youtube span {
    background: #ff0033;
}

.social-dock__item--tiktok span {
    background: linear-gradient(135deg, #111, #21d4d7);
}

.social-rail__item--tiktok span,
.member-socials__link--tiktok span {
    background: linear-gradient(135deg, #111, #00f2ea);
}

.social-dock__item--website span,
.social-rail__item--website span,
.member-socials__link--website span {
    background: linear-gradient(135deg, #35b6d7, var(--violet));
}

.social-dock__item--newsletter span {
    background: linear-gradient(135deg, var(--gold), var(--magenta));
}

.social-rail__item--newsletter span {
    background: linear-gradient(135deg, var(--gold), var(--magenta));
}

.social-dock__item strong {
    font-size: 14px;
}

.social-rail,
.social-dock--hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.social-rail__item,
.social-dock--hero .social-rail__item {
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 16px 40px rgba(16, 4, 34, .28);
    backdrop-filter: blur(16px);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-rail__item span,
.social-dock--hero .social-rail__item span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.social-rail__item span img {
    width: 19px;
    height: 19px;
}

.social-rail__item strong,
.social-dock--hero .social-rail__item strong {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%) translateY(-4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .94);
    color: var(--violet-dark);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(16, 4, 34, .18);
    transition: opacity .18s ease, transform .18s ease;
}

.social-rail__item:hover,
.social-rail__item:focus,
.social-dock--hero .social-rail__item:hover,
.social-dock--hero .social-rail__item:focus {
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .12));
    box-shadow: 0 22px 54px rgba(16, 4, 34, .34);
}

.social-rail__item:hover strong,
.social-rail__item:focus strong,
.social-dock--hero .social-rail__item:hover strong,
.social-dock--hero .social-rail__item:focus strong {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.landing-rewards {
    width: min(1180px, calc(100% - 40px));
    margin: 10px auto 56px;
}

.soft-label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(111, 53, 200, .09);
    color: var(--violet-dark);
    font-weight: 800;
}

.reward-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.reward-card {
    --badge-a: #6f35c8;
    --badge-b: #e85a9d;
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 20px;
    background:
        radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--badge-b), transparent 68%), transparent 32%),
        linear-gradient(145deg, #fff, #fbf6ff);
    border: 1px solid rgba(111, 53, 200, .13);
    box-shadow: 0 18px 52px rgba(53, 19, 93, .08);
}

.reward-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -38px;
    bottom: -42px;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--badge-a), transparent 82%), color-mix(in srgb, var(--badge-b), transparent 80%));
}

.reward-card > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--badge-a), var(--badge-b));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 15px 32px color-mix(in srgb, var(--badge-a), transparent 70%);
}

.reward-card:nth-child(4n + 2) {
    --badge-a: #0d9488;
    --badge-b: #68d6ef;
}

.reward-card:nth-child(4n + 3) {
    --badge-a: #b8614b;
    --badge-b: #e7bd75;
}

.reward-card:nth-child(4n + 4) {
    --badge-a: #476255;
    --badge-b: #8fcf9f;
}

.reward-card > span img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.reward-card h3 {
    margin: 16px 0 8px;
    font-size: 21px;
    line-height: 1.1;
}

.reward-card p {
    color: var(--muted);
}

.reward-card small {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 8px;
    color: var(--violet-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.access-section,
.landing-blog,
.blog-hero,
.blog-list,
.blog-article {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.access-section {
    padding: 58px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 520px);
    gap: 34px;
    align-items: start;
}

.access-copy {
    padding-top: 14px;
}

.access-copy h2 {
    margin: 8px 0 14px;
    max-width: 620px;
    font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1;
}

.access-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.auth-card {
    position: relative;
    border-radius: 14px;
}

.auth-card .auth-tab-panel.stack {
    display: none;
}

.auth-card .auth-tab-panel.stack.active {
    display: grid;
}

.landing-blog {
    padding: 18px 0 56px;
}

.blog-mini-card img,
.blog-card img,
.blog-article > img {
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.blog-mini-card img,
.blog-card img {
    height: 210px;
}

.blog-hero {
    padding: 132px 0 36px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.blog-hero h1 {
    margin: 8px 0 14px;
    max-width: 780px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .96;
}

.blog-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 62px;
}

.blog-card {
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 52px rgba(53, 19, 93, .09);
}

.blog-card a {
    display: grid;
}

.blog-card .eyebrow,
.blog-card h2,
.blog-card p {
    margin-left: 18px;
    margin-right: 18px;
}

.blog-card .eyebrow {
    margin-top: 18px;
}

.blog-card h2 {
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.blog-card p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--muted);
}

.blog-article {
    max-width: 880px;
    padding: 120px 0 64px;
}

.blog-article > img {
    height: min(440px, 52vw);
    border-radius: 14px;
    margin-bottom: 24px;
}

.blog-article h1 {
    margin: 8px 0 14px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
}

.blog-excerpt {
    color: var(--muted);
    font-size: 20px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--violet-dark);
    font-weight: 800;
}

@media (max-width: 960px) {
    .access-section,
    .blog-list {
        grid-template-columns: 1fr;
    }

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

    .blog-hero {
        align-items: start;
        flex-direction: column;
    }

    .social-dock--blog {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .landing-hero {
        min-height: 100svh;
        margin-top: -111px;
        padding: 142px 18px 74px;
        background-color: #16082a;
    }

    .landing-hero::before {
        background-position: 68% center;
    }

    .landing-hero::after {
        background:
            linear-gradient(90deg, rgba(16, 5, 34, .88) 0%, rgba(53, 19, 93, .62) 48%, rgba(22, 7, 38, .24) 100%),
            linear-gradient(180deg, rgba(12, 4, 24, .18), rgba(12, 4, 24, .72));
    }

    .access-section,
    .landing-blog,
    .blog-hero,
    .blog-list,
    .blog-article {
        width: min(100% - 28px, 1180px);
    }

    .access-section {
        padding-top: 42px;
    }

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

    .social-dock__item {
        flex: 1 1 150px;
    }

    .blog-hero {
        padding-top: 150px;
    }
}

.landing-mobile-topbar {
    display: none;
}

@media (max-width: 700px) {
    body.is-public.route-home .site-header {
        display: none;
    }

    body.is-public.route-home .landing-hero {
        min-height: 100svh;
        margin-top: 0;
        padding: calc(78px + env(safe-area-inset-top)) 16px 58px;
        align-items: end;
    }

    body.is-public.route-home .landing-hero::before {
        background-position: 70% center;
    }

    body.is-public.route-home .landing-hero::after {
        background:
            linear-gradient(90deg, rgba(16, 5, 34, .9) 0%, rgba(53, 19, 93, .62) 50%, rgba(22, 7, 38, .2) 100%),
            linear-gradient(180deg, rgba(12, 4, 24, .1), rgba(12, 4, 24, .72));
    }

    body.is-public.route-home .landing-mobile-topbar {
        position: absolute;
        top: calc(14px + env(safe-area-inset-top));
        left: 14px;
        right: 14px;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        pointer-events: none;
    }

    .landing-mobile-brand,
    .landing-language-menu {
        pointer-events: auto;
    }

    .landing-mobile-brand {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
        backdrop-filter: blur(16px);
        box-shadow: 0 18px 46px rgba(13, 4, 29, .2);
        font-weight: 950;
    }

    .landing-mobile-brand .brand-logo {
        width: min(190px, 45vw);
        filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .34));
    }

    .landing-language-menu {
        position: relative;
    }

    .landing-language-menu__button {
        min-width: 58px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0 10px 0 14px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
        backdrop-filter: blur(16px);
        box-shadow: 0 18px 46px rgba(13, 4, 29, .2);
        font-size: 13px;
        font-weight: 950;
        cursor: pointer;
    }

    .landing-language-menu__button svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        opacity: .82;
        transition: transform .18s ease;
    }

    .landing-language-menu.is-open .landing-language-menu__button svg {
        transform: rotate(180deg);
    }

    .landing-language-menu__panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 174px;
        display: grid;
        gap: 6px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 18px;
        background: rgba(24, 8, 44, .9);
        backdrop-filter: blur(18px);
        box-shadow: 0 24px 64px rgba(13, 4, 29, .34);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px) scale(.96);
        transform-origin: top right;
        transition: opacity .18s ease, transform .18s ease;
    }

    .landing-language-menu.is-open .landing-language-menu__panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .landing-language-menu__panel a {
        min-height: 38px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 8px;
        border-radius: 12px;
        color: rgba(255, 255, 255, .84);
        font-weight: 850;
    }

    .landing-language-menu__panel a span {
        width: 36px;
        min-height: 28px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, .1);
        font-size: 12px;
        font-weight: 950;
    }

    .landing-language-menu__panel a strong {
        font-size: 13px;
        font-weight: 850;
    }

    .landing-language-menu__panel a.active,
    .landing-language-menu__panel a:hover,
    .landing-language-menu__panel a:focus {
        color: #fff;
        background: rgba(255, 255, 255, .12);
    }

    .landing-language-menu__panel a.active span {
        background: linear-gradient(135deg, var(--violet), var(--magenta));
        box-shadow: 0 10px 22px rgba(232, 90, 157, .2);
    }

    body.is-public.route-home .landing-hero__content {
        width: 100%;
        padding-top: 0;
    }

    body.is-public.route-home .landing-hero h1 {
        margin-top: 8px;
        font-size: clamp(48px, 16.5vw, 76px);
        line-height: .92;
    }

    body.is-public.route-home .landing-logo-title {
        margin: 10px 0 16px;
        width: min(100%, 430px);
    }

    body.is-public.route-home .landing-logo-title img {
        width: min(100%, 430px);
    }

    body.is-public.route-home .landing-hero .landing-lead {
        font-size: 18px;
        line-height: 1.45;
    }

    body.is-public.route-home .landing-actions {
        margin-top: 24px;
        gap: 10px;
    }

    body.is-public.route-home .landing-actions .btn {
        min-height: 50px;
        border-radius: 10px;
    }

    body.is-public.route-home .social-dock--hero {
        margin-top: 22px;
        gap: 9px;
    }

    body.is-public.route-home .social-dock--hero .social-rail__item {
        width: 44px;
        height: 44px;
    }

    body.is-public.route-home .hero-bottom-line {
        left: 16px;
        right: 16px;
        bottom: 24px;
        font-size: 10px;
        letter-spacing: .1em;
    }
}

/* App-like shell, modal auth and transitions */
.js body.app-preloading,
body.auth-modal-open,
body.media-lightbox-open {
    overflow: hidden;
}

.app-preloader {
    display: none;
}

.js .app-preloader {
    --preloader-bg-position: center center;
    --preloader-bg-size: cover;
    --preloader-bg-origin: center center;
    --preloader-content-left: min(6vw, 76px);
    --preloader-content-right: min(6vw, 76px);
    --preloader-content-bottom: 92px;
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 22% 24%, rgba(157, 75, 255, .34), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(232, 90, 157, .24), transparent 30%),
        linear-gradient(135deg, #050109 0%, #17072b 48%, #050109 100%);
    opacity: 1;
    pointer-events: auto;
    transition: opacity .62s ease, visibility .62s ease, filter .62s ease;
}

.js .app-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    pointer-events: none;
}

.app-preloader__landing-content {
    position: absolute;
    left: var(--preloader-content-left);
    right: var(--preloader-content-right);
    bottom: var(--preloader-content-bottom);
    z-index: 2;
    width: auto;
    max-width: 760px;
    padding-top: 20px;
}

.app-preloader__logo-wrap {
    margin: 10px 0 18px;
    width: min(720px, 100%);
    overflow: hidden;
    animation: preloader-logo-reveal 1.65s ease-out 1.64s both;
}

.app-preloader__logo {
    display: block;
    width: min(720px, 100%);
    height: auto;
    filter: drop-shadow(0 22px 58px rgba(0, 0, 0, .46));
}

.app-preloader__ghost {
    visibility: hidden;
    pointer-events: none;
}

.app-preloader .landing-lead {
    max-width: 640px;
    font-size: clamp(20px, 2.1vw, 31px);
    color: rgba(255, 255, 255, .88);
}

.app-preloader__image,
.app-preloader__strips,
.app-preloader__strips::after,
.app-preloader__strips span,
.app-preloader__veil {
    position: absolute;
    inset: 0;
}

.app-preloader__image {
    background: url("../img/landing-yoga-photo.png") var(--preloader-bg-position) / var(--preloader-bg-size) no-repeat;
    opacity: .18;
    filter: blur(8px) saturate(1.08) contrast(1.01);
    transform: scale(1.12);
    transform-origin: var(--preloader-bg-origin);
    animation: preloader-image 2.4s cubic-bezier(.2, .8, .2, 1) both;
}

.app-preloader__strips {
    overflow: hidden;
}

.app-preloader__strips span {
    --strip-top: 0;
    --strip-bottom: 0;
    background: url("../img/landing-yoga-photo.png") var(--preloader-bg-position) / var(--preloader-bg-size) no-repeat;
    opacity: 0;
    clip-path: inset(var(--strip-top) 100% var(--strip-bottom) 0);
    filter: blur(2.2px) saturate(1.12) contrast(1.02);
    transform: translateX(-14px) scale(1.008);
    transform-origin: var(--preloader-bg-origin);
    animation: preloader-strip-in 1.12s cubic-bezier(.2, .8, .2, 1) forwards;
}

.app-preloader__strips::after {
    content: "";
    background: url("../img/landing-yoga-photo.png") var(--preloader-bg-position) / var(--preloader-bg-size) no-repeat;
    opacity: 0;
    filter: saturate(1.16) contrast(1.04);
    transform: scale(1.01);
    transform-origin: var(--preloader-bg-origin);
    animation:
        preloader-photo-settle .28s ease 2.04s forwards;
}

.app-preloader__strips span:nth-child(1) {
    --strip-top: 0;
    --strip-bottom: 95.1%;
    animation-delay: .02s;
}

.app-preloader__strips span:nth-child(2) {
    --strip-top: 4.2%;
    --strip-bottom: 90.6%;
    animation-delay: .07s;
}

.app-preloader__strips span:nth-child(3) {
    --strip-top: 8.7%;
    --strip-bottom: 86%;
    animation-delay: .11s;
}

.app-preloader__strips span:nth-child(4) {
    --strip-top: 13.3%;
    --strip-bottom: 81.5%;
    animation-delay: .16s;
}

.app-preloader__strips span:nth-child(5) {
    --strip-top: 17.8%;
    --strip-bottom: 76.9%;
    animation-delay: .21s;
}

.app-preloader__strips span:nth-child(6) {
    --strip-top: 22.4%;
    --strip-bottom: 72.4%;
    animation-delay: .25s;
}

.app-preloader__strips span:nth-child(7) {
    --strip-top: 26.9%;
    --strip-bottom: 67.8%;
    animation-delay: .3s;
}

.app-preloader__strips span:nth-child(8) {
    --strip-top: 31.5%;
    --strip-bottom: 63.3%;
    animation-delay: .35s;
}

.app-preloader__strips span:nth-child(9) {
    --strip-top: 36%;
    --strip-bottom: 58.7%;
    animation-delay: .4s;
}

.app-preloader__strips span:nth-child(10) {
    --strip-top: 40.6%;
    --strip-bottom: 54.2%;
    animation-delay: .44s;
}

.app-preloader__strips span:nth-child(11) {
    --strip-top: 45.1%;
    --strip-bottom: 49.6%;
    animation-delay: .49s;
}

.app-preloader__strips span:nth-child(12) {
    --strip-top: 49.6%;
    --strip-bottom: 45.1%;
    animation-delay: .54s;
}

.app-preloader__strips span:nth-child(13) {
    --strip-top: 54.2%;
    --strip-bottom: 40.6%;
    animation-delay: .58s;
}

.app-preloader__strips span:nth-child(14) {
    --strip-top: 58.7%;
    --strip-bottom: 36%;
    animation-delay: .63s;
}

.app-preloader__strips span:nth-child(15) {
    --strip-top: 63.3%;
    --strip-bottom: 31.5%;
    animation-delay: .68s;
}

.app-preloader__strips span:nth-child(16) {
    --strip-top: 67.8%;
    --strip-bottom: 26.9%;
    animation-delay: .72s;
}

.app-preloader__strips span:nth-child(17) {
    --strip-top: 72.4%;
    --strip-bottom: 22.4%;
    animation-delay: .77s;
}

.app-preloader__strips span:nth-child(18) {
    --strip-top: 76.9%;
    --strip-bottom: 17.8%;
    animation-delay: .82s;
}

.app-preloader__strips span:nth-child(19) {
    --strip-top: 81.5%;
    --strip-bottom: 13.3%;
    animation-delay: .87s;
}

.app-preloader__strips span:nth-child(20) {
    --strip-top: 86%;
    --strip-bottom: 8.7%;
    animation-delay: .91s;
}

.app-preloader__strips span:nth-child(21) {
    --strip-top: 90.6%;
    --strip-bottom: 4.2%;
    animation-delay: .96s;
}

.app-preloader__strips span:nth-child(22) {
    --strip-top: 95.1%;
    --strip-bottom: 0;
    animation-delay: 1.01s;
}

.app-preloader__veil {
    background:
        radial-gradient(circle at 18% 24%, rgba(157, 75, 255, .42), transparent 32%),
        radial-gradient(circle at 74% 22%, rgba(232, 90, 157, .12), transparent 28%),
        linear-gradient(90deg, rgba(16, 5, 34, .9) 0%, rgba(53, 19, 93, .62) 42%, rgba(31, 8, 47, .12) 72%, rgba(14, 4, 26, .2) 100%),
        linear-gradient(180deg, rgba(12, 4, 24, .24), rgba(12, 4, 24, .58));
}

.app-preloader__content {
    position: relative;
    z-index: 1;
    width: min(540px, calc(100% - 48px));
    display: grid;
    justify-items: start;
    gap: 14px;
    animation: preloader-content .72s cubic-bezier(.2, .8, .2, 1) 1.94s both;
}

.app-preloader__mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, var(--violet), var(--magenta), var(--aqua), var(--violet));
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .66), 0 18px 60px rgba(232, 90, 157, .32);
    animation: preloader-mark 2s ease-in-out infinite;
}

.app-preloader__brand {
    margin: 0;
    font-size: clamp(50px, 12vw, 116px);
    line-height: .88;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 24px 76px rgba(0, 0, 0, .38);
}

.app-preloader__line {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(15px, 2.4vw, 22px);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.app-preloader__breath {
    width: min(360px, 74vw);
    height: 2px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.app-preloader__breath::before {
    content: "";
    display: block;
    width: 48%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, .36), #fff, rgba(232, 90, 157, .72));
    animation: preloader-breath 1.65s cubic-bezier(.2, .8, .2, 1) 2.02s both;
}

.app-preloader__wait {
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    opacity: 0;
}

.js body.app-preloading .app-preloader__wait {
    animation: none;
}

.app-preloader.is-waiting .app-preloader__wait {
    opacity: 1;
    animation: preloader-spin .8s linear infinite;
}

.app-preloader.is-hidden .app-preloader__wait {
    animation: none;
}

@media (max-width: 1020px) {
    .js .app-preloader {
        --preloader-bg-position: center center;
        --preloader-bg-size: cover;
        --preloader-bg-origin: center center;
        --preloader-content-left: 24px;
        --preloader-content-right: 24px;
        --preloader-content-bottom: 92px;
    }

}

@media (max-width: 640px) {
    .js .app-preloader {
        --preloader-bg-position: 70% center;
        --preloader-bg-size: cover;
        --preloader-bg-origin: 70% center;
        --preloader-content-left: 16px;
        --preloader-content-right: 16px;
        --preloader-content-bottom: 42px;
    }

    .app-preloader__content {
        width: min(480px, calc(100% - 34px));
    }

    .app-preloader__landing-content {
        padding-top: 0;
    }

    .app-preloader__veil {
        background:
            linear-gradient(90deg, rgba(16, 5, 34, .9) 0%, rgba(53, 19, 93, .62) 50%, rgba(22, 7, 38, .2) 100%),
            linear-gradient(180deg, rgba(12, 4, 24, .1), rgba(12, 4, 24, .72));
    }

    .app-preloader__logo-wrap {
        margin: 10px 0 16px;
        width: min(100%, 430px);
    }

    .app-preloader__logo {
        width: min(100%, 430px);
    }

    .app-preloader .landing-lead {
        font-size: 18px;
        line-height: 1.45;
    }
}

@keyframes preloader-image {
    from {
        transform: scale(1.12);
    }
    to {
        transform: scale(1.055);
    }
}

@keyframes preloader-logo-reveal {
    0% {
        opacity: .02;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes preloader-strip-in {
    0% {
        opacity: 0;
        clip-path: inset(var(--strip-top) 100% var(--strip-bottom) 0);
        transform: translateX(-14px) scale(1.008);
        filter: blur(2.2px) saturate(1.08) contrast(1.01);
    }
    44% {
        opacity: .72;
        clip-path: inset(var(--strip-top) 32% var(--strip-bottom) 0);
        filter: blur(1.2px);
    }
    74% {
        opacity: .96;
        clip-path: inset(var(--strip-top) 5% var(--strip-bottom) 0);
        filter: blur(.4px);
    }
    100% {
        opacity: 1;
        clip-path: inset(var(--strip-top) 0 var(--strip-bottom) 0);
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes preloader-photo-settle {
    to {
        opacity: 1;
        transform: scale(1.01);
    }
}

@keyframes preloader-photo-breath {
    0%, 100% {
        opacity: 1;
        transform: scale(1.002);
    }
    50% {
        opacity: 1;
        transform: scale(1.012);
    }
}

@keyframes preloader-content {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes preloader-mark {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes preloader-breath {
    from {
        transform: translateX(-105%);
    }
    to {
        transform: translateX(220%);
    }
}

@keyframes auth-panel-zen {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes preloader-wait-visible {
    to {
        opacity: 1;
    }
}

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

@keyframes app-progress {
    from {
        transform: scaleX(.18);
    }
    to {
        transform: scaleX(.92);
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .34s ease;
}

.auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 18%, rgba(232, 90, 157, .28), transparent 32%),
        radial-gradient(circle at 70% 82%, rgba(104, 214, 239, .14), transparent 30%),
        rgba(14, 4, 28, .72);
    backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity .42s ease, backdrop-filter .42s ease;
}

.auth-modal.is-open .auth-modal__overlay {
    opacity: 1;
}

.auth-modal__dialog {
    position: relative;
    width: min(480px, 100%);
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    border-radius: 18px;
    padding: 24px;
    background:
        linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .86)) padding-box,
        linear-gradient(135deg, rgba(111, 53, 200, .66), rgba(232, 90, 157, .46), rgba(104, 214, 239, .32)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 34px 110px rgba(11, 3, 24, .42);
    color: var(--ink);
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px) scale(.94);
    transform-origin: 50% 70%;
    transition:
        opacity .38s ease,
        filter .42s ease,
        transform .46s cubic-bezier(.18, .82, .24, 1);
}

.auth-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 8%, rgba(232, 90, 157, .2), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(111, 53, 200, .16), transparent 30%);
    opacity: 0;
    transform: scale(.94);
    transition: opacity .5s ease, transform .7s ease;
}

.auth-modal.is-open .auth-modal__dialog {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.auth-modal.is-open .auth-modal__dialog::before {
    opacity: 1;
    transform: scale(1);
}

.auth-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--violet-dark);
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-modal__close:hover,
.auth-modal__close:focus-visible {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 26px rgba(53, 19, 93, .16);
    transform: translateY(-1px);
}

.auth-modal__close svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
}

.auth-modal__brand {
    display: grid;
    grid-template-columns: minmax(132px, .9fr) auto minmax(34px, .45fr);
    align-items: center;
    gap: 12px;
    padding-right: 42px;
    margin-bottom: 18px;
}

.auth-modal__logo {
    width: min(172px, 40vw);
    filter: brightness(0) drop-shadow(0 8px 18px rgba(53, 19, 93, .12));
}

.auth-modal__brand > div {
    text-align: center;
    justify-self: center;
}

.auth-modal__brand h2,
.auth-modal-form h3 {
    margin: 2px 0 0;
}

.auth-modal__brand h2 {
    white-space: nowrap;
    font-size: clamp(22px, 4.2vw, 24px);
    line-height: 1.1;
}

.auth-modal .auth-tab-panel.stack {
    display: none;
}

.auth-modal .auth-tab-panel.stack.active {
    display: grid;
    animation: auth-panel-zen .34s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-form-status {
    margin: -2px 0 0;
    padding: 11px 13px;
    border-radius: 12px;
    font-weight: 850;
    line-height: 1.35;
    background: rgba(104, 214, 239, .14);
    color: var(--sage-dark);
    border: 1px solid rgba(104, 214, 239, .35);
}

.auth-form-status.is-error {
    color: #8f2347;
    background: rgba(232, 90, 157, .13);
    border-color: rgba(232, 90, 157, .34);
}

.auth-form-status.is-success {
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .1);
    border-color: rgba(111, 53, 200, .18);
}

.app-main-leave {
    opacity: .18;
    transform: translateY(8px);
    transition: opacity .14s ease, transform .14s ease;
}

.app-main-enter {
    animation: app-main-enter .28s ease both;
}

@keyframes app-main-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-preloader__logo-wrap,
    .landing-logo-title {
        animation: none;
        opacity: 1;
        clip-path: none;
    }

    .app-preloader__image,
    .app-preloader__strips::after,
    .app-preloader__strips span,
    .app-preloader__content,
    .app-preloader__mark,
    .app-preloader__breath::before,
    .app-preloader__wait {
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card[data-reveal],
.panel[data-reveal],
.table-list article[data-reveal],
.stat[data-reveal] {
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease, border-color .18s ease;
}

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

    [data-reveal],
    .app-main-leave,
    .app-main-enter,
    .auth-modal__dialog {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .auth-modal .auth-tab-panel.stack.active {
        animation: none;
    }
}

@media (max-width: 700px) {
    .auth-modal {
        padding: 10px;
        align-items: end;
    }

    .auth-modal__dialog {
        width: 100%;
        max-height: calc(100svh - 20px);
        border-radius: 18px 18px 10px 10px;
        padding: 20px;
    }
}

.social-profile {
    width: min(1180px, calc(100% - 36px));
    margin: 96px auto 54px;
}

.social-cover {
    min-height: 280px;
    border-radius: 24px 24px 0 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.social-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(41, 14, 78, .06), rgba(41, 14, 78, .62));
}

.social-profile__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 0 26px 24px;
    background: #fff;
    border: 1px solid rgba(111, 53, 200, .12);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 22px 70px rgba(53, 19, 93, .09);
}

.profile-avatar-xl {
    width: 132px;
    height: 132px;
    margin-top: -64px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    border: 6px solid #fff;
    box-shadow: 0 18px 52px rgba(53, 19, 93, .2);
    font-size: 48px;
    font-weight: 900;
}

.profile-avatar-xl--editable {
    cursor: pointer;
}

.profile-avatar-hit {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: end end;
    padding: 8px;
    border: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(22, 12, 31, .4));
    color: #fff;
    cursor: pointer;
}

.profile-avatar-camera {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(28, 18, 39, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.profile-avatar-camera svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.avatar-modal-preview {
    display: grid;
    place-items: center;
}

.avatar-modal-preview .profile-avatar-xl {
    margin-top: 0;
    width: 126px;
    height: 126px;
}

.profile-avatar-xl img,
.avatar.small img,
.activity-row span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-profile__identity h1 {
    margin: 0 0 8px;
}

.social-profile__actions {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.member-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.member-socials__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border-radius: 999px;
    padding: 5px 11px 5px 5px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font-weight: 800;
}

.member-socials__link span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.profile-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    padding: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(111, 53, 200, .1);
    box-shadow: 0 18px 54px rgba(53, 19, 93, .08);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tabs button {
    flex: 1 0 auto;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.quick-create-action {
    box-shadow: 0 12px 30px rgba(111, 53, 200, .16);
}

.wallet-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 850;
}

.wallet-note span,
.wallet-note strong {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(111, 53, 200, .09);
    color: var(--violet-dark);
}

.wallet-note strong {
    background: rgba(232, 90, 157, .12);
}

.wallet-note--hero {
    flex-basis: 100%;
    margin: 0;
}

.profile-tabs button.active {
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    box-shadow: 0 12px 30px rgba(111, 53, 200, .22);
}

.profile-timeline {
    display: none;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(111, 53, 200, .1);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 58px rgba(53, 19, 93, .08);
}

.profile-timeline.active {
    display: block;
}

.feed-post {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(111, 53, 200, .09);
    box-shadow: 0 14px 42px rgba(53, 19, 93, .06);
}

.feed-post + .feed-post,
.activity-row + .activity-row {
    margin-top: 12px;
}

.feed-post__head,
.activity-row,
.friend-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.feed-post__head > div:last-child,
.activity-row > div {
    flex: 1 1 auto;
    min-width: 0;
}

.post-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.post-row-head strong,
.post-row-head a {
    min-width: 0;
}

.post-delete-button {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(111, 53, 200, .08);
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.post-delete-button svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.post-delete-button:hover,
.post-delete-button:focus-visible {
    background: rgba(218, 54, 96, .13);
    color: #b3234a;
    transform: scale(1.04);
}

.activity-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.activity-row-actions small {
    color: var(--muted);
}

.post-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-width: 620px;
}

.post-media-viewer-trigger {
    width: 100%;
    min-height: 140px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(111, 53, 200, .1);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(247, 238, 255, .86)),
        rgba(17, 17, 17, .04);
    cursor: zoom-in;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.post-media-grid img,
.post-media-grid video {
    width: 100%;
    height: min(48vw, 260px);
    max-height: 420px;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
}

.post-media-viewer-trigger img {
    border-radius: inherit;
    transition: transform .18s ease, filter .18s ease;
}

.post-media-viewer-trigger:hover img,
.post-media-viewer-trigger:focus-visible img {
    transform: scale(1.018);
    filter: saturate(1.04);
}

.post-media-grid--feed {
    margin: 10px 0 6px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 540px;
}

.post-media-grid--feed img,
.post-media-grid--feed video {
    height: min(52vw, 240px);
    max-height: 320px;
    border-radius: 14px;
}

.post-media-grid:has(.post-media-viewer-trigger:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 34px);
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 4, 24, .78);
    backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.media-lightbox__frame {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: min(86vh, 820px);
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.media-lightbox__frame img {
    width: 100%;
    max-height: min(86vh, 820px);
    object-fit: contain;
    background: rgba(255, 255, 255, .04);
}

.media-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 4, 24, .62);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    cursor: pointer;
}

.media-lightbox__close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.media-lightbox__close:hover,
.media-lightbox__close:focus-visible {
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.activity-row {
    padding: 14px;
    border-radius: 16px;
    background: rgba(111, 53, 200, .06);
    align-items: flex-start;
}

.activity-reward {
    width: min(420px, 100%);
    margin: 8px 0 10px;
    padding: 10px;
    border-radius: 16px;
    align-items: center;
}

.activity-reward .reward__visual {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.activity-reward .reward__body {
    gap: 1px;
}

.activity-reward .reward__body strong {
    font-size: 14px;
}

.activity-reward .reward__body em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-row > span,
.avatar.small {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-weight: 900;
}

.avatar.mini {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.avatar.mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    background: rgba(111, 53, 200, .06);
    color: var(--muted);
    font-weight: 700;
}

.social-dashboard .wide {
    grid-column: span 2;
}

.profile-edit-preview {
    min-height: 0;
    flex: 0 0 auto;
}

.profile-edit-panel {
    display: grid;
    gap: 18px;
    overflow: hidden;
}

.profile-photo-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(111, 53, 200, .09), rgba(232, 90, 157, .08)),
        #fff;
    border: 1px solid rgba(111, 53, 200, .12);
}

.profile-photo-copy h2 {
    margin-bottom: 6px;
}

.profile-photo-copy p:last-child {
    margin: 0;
    color: var(--muted);
}

.dashboard-avatar {
    width: 116px;
    height: 116px;
    margin-top: 0;
    border-radius: 28px;
    border-width: 5px;
    box-shadow: 0 16px 42px rgba(53, 19, 93, .16);
}

.file-drop {
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(111, 53, 200, .32);
    background: rgba(111, 53, 200, .045);
}

.file-drop input[type="file"] {
    margin-top: 4px;
    background: #fff;
    border-color: rgba(111, 53, 200, .18);
}

.file-drop span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cover-picker {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(111, 53, 200, .045);
    border: 1px solid rgba(111, 53, 200, .12);
}

.cover-picker__preview {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(111, 53, 200, .22), rgba(232, 90, 157, .18)),
        var(--soft);
    border: 1px solid rgba(111, 53, 200, .1);
}

.cover-picker__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-picker__actions {
    display: grid;
    gap: 10px;
}

.form-grid > .cover-picker {
    grid-column: span 2;
}

.dtp-fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr);
    gap: 10px;
}

.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.wallet-modal.is-open {
    display: flex;
}

.wallet-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 7, 45, .55);
    backdrop-filter: blur(8px);
}

.wallet-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(111, 53, 200, .14);
    box-shadow: 0 30px 90px rgba(25, 7, 45, .28);
}

.wallet-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.wallet-credit-trigger {
    width: 100%;
}

.wallet-custom-amount {
    display: grid;
    gap: 8px;
}

.paypal-disabled-state {
    padding: 14px;
    border-radius: 16px;
    background: #fff7df;
    border: 1px solid #e6ca77;
    color: var(--ink);
}

.wallet-amounts,
.composer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.wallet-amounts label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font-weight: 900;
}

.paypal-wallet {
    display: grid;
    gap: 14px;
}

.classmates {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(111, 53, 200, .12);
}

.classmate-list {
    display: grid;
    gap: 9px;
}

.classmate-list a,
.classmate-row {
    display: flex;
    gap: 9px;
    align-items: center;
}

.classmate-row {
    justify-content: space-between;
}

.classmate-list a {
    color: var(--violet-dark);
    font-weight: 800;
}

.news-head {
    margin-top: 32px;
}

.news-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.news-main,
.news-side {
    display: grid;
    gap: 18px;
}

.studio-home {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 54px;
    display: grid;
    gap: 20px;
}

.studio-teacher-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: stretch;
    border-radius: 30px;
    border: 1px solid rgba(111, 53, 200, .12);
    background:
        radial-gradient(circle at 16% 24%, rgba(232, 90, 157, .18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 239, 255, .9));
    box-shadow: 0 28px 80px rgba(53, 19, 93, .12);
}

.studio-teacher-hero__media {
    order: 2;
    min-height: 100%;
}

.studio-teacher-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: 72% center;
    display: block;
}

.studio-teacher-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(28px, 5vw, 58px);
}

.studio-teacher-hero__content h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(44px, 7vw, 90px);
    line-height: .92;
    letter-spacing: 0;
}

.studio-teacher-hero__content p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}

.studio-teacher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.studio-teacher-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font-weight: 900;
    font-size: 13px;
}

.studio-teacher-avatar {
    position: absolute;
    right: calc(42% - 42px);
    bottom: 26px;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(53, 19, 93, .24);
}

.studio-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-courses-panel {
    padding: 20px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 2%, rgba(232, 90, 157, .1), transparent 28%),
        rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(53, 19, 93, .09);
}

.studio-section-head,
.studio-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.studio-section-head {
    margin-bottom: 14px;
}

.studio-section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.studio-filter-row {
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tabs-soft a.active {
    background: rgba(111, 53, 200, .1);
    color: var(--violet-dark);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .16);
}

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

.studio-course-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(53, 19, 93, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.studio-course-card:hover,
.studio-course-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(232, 90, 157, .28);
    box-shadow: 0 24px 58px rgba(53, 19, 93, .13);
}

.studio-course-card a {
    display: grid;
    height: 100%;
    color: inherit;
}

.studio-course-card img {
    width: 100%;
    height: 154px;
    object-fit: cover;
    display: block;
}

.studio-course-card__body {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 14px;
}

.studio-course-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.08;
}

.studio-course-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: 14px;
}

.studio-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.studio-course-meta span {
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(71, 98, 85, .08);
    color: var(--sage-dark);
    font-size: 12px;
    font-weight: 850;
}

.studio-empty {
    grid-column: 1 / -1;
}

.studio-widget-grid {
    grid-template-columns: 1fr;
}

.studio-news-layout {
    width: 100%;
    margin: 0;
}

.news-composer textarea {
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
}

.emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-row button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 50%;
    background: rgba(111, 53, 200, .08);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}

.emoji-row button:hover,
.emoji-row button:focus {
    transform: translateY(-2px);
    background: rgba(232, 90, 157, .16);
}

.language-choice-grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.language-choice-grid .check-row {
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(111, 53, 200, .055);
}

.profile-media-button {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: rgba(21, 7, 40, .62);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(21, 7, 40, .22);
}

.profile-media-button--cover {
    right: 18px;
    bottom: 18px;
}

.profile-avatar-xl {
    position: relative;
}

.profile-media-button--avatar {
    left: 50%;
    bottom: 8px;
    width: calc(100% - 16px);
    transform: translateX(-50%);
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.profile-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.profile-modal__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 16%, rgba(232, 90, 157, .22), transparent 34%),
        rgba(24, 8, 44, .62);
    backdrop-filter: blur(12px);
}

.profile-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(780px, calc(100vh - 28px));
    overflow: auto;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(111, 53, 200, .16);
    box-shadow: 0 34px 110px rgba(11, 3, 24, .36);
    transform: translateY(18px) scale(.98);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.profile-modal.is-open .profile-modal__dialog {
    transform: translateY(0) scale(1);
}

.profile-modal__dialog--wide {
    width: min(720px, 100%);
}

.profile-modal__close {
    justify-self: end;
    border: 0;
    border-radius: 999px;
    background: rgba(111, 53, 200, .09);
    color: var(--violet-dark);
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
}

.profile-modal__close,
.post-modal__close,
.wallet-modal__close,
.course-modal-shell__close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--violet-dark);
    box-shadow: 0 12px 28px rgba(53, 19, 93, .12);
    font-size: 0;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.profile-modal__close::before,
.post-modal__close::before,
.wallet-modal__close::before,
.course-modal-shell__close::before {
    content: "×";
    font-size: 21px;
    font-weight: 950;
}

.profile-modal__close:hover,
.profile-modal__close:focus,
.post-modal__close:hover,
.post-modal__close:focus,
.wallet-modal__close:hover,
.wallet-modal__close:focus,
.course-modal-shell__close:hover,
.course-modal-shell__close:focus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.profile-social-form {
    padding-top: 14px;
    border-top: 1px solid rgba(111, 53, 200, .12);
}

/* Teacher studio app */
.teacher-workspace {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto 54px;
    min-width: 0;
}

.teacher-head {
    margin-bottom: 16px;
}

.teacher-tabs {
    position: sticky;
    top: 82px;
    z-index: 6;
    margin-bottom: 14px;
    scroll-snap-type: x proximity;
}

.teacher-tabs button,
.teacher-tabs a {
    flex: 0 0 auto;
    min-width: 76px;
    max-width: 168px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    scroll-snap-align: center;
}

.teacher-tabs button > span:last-child,
.teacher-tabs a > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-tab-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .09);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
}

.teacher-tab-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.teacher-tabs button.active .teacher-tab-icon,
.teacher-tabs a.active .teacher-tab-icon {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.teacher-section {
    padding: 20px;
}

.teacher-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.teacher-section-head h2 {
    margin: 0 0 4px;
}

.teacher-section-head p {
    margin: 0;
    color: var(--muted);
}

.teacher-stat-grid,
.teacher-action-grid,
.teacher-card-grid {
    display: grid;
    gap: 12px;
}

.teacher-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.teacher-stat-grid article,
.teacher-action-card,
.teacher-item-card {
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 38px rgba(53, 19, 93, .07);
}

.teacher-stat-grid article {
    padding: 16px;
}

.teacher-stat-grid span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.teacher-stat-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 32px;
    line-height: 1;
}

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

.teacher-action-card {
    display: grid;
    gap: 4px;
    min-height: 98px;
    align-content: center;
    padding: 18px;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.teacher-action-card--primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.teacher-action-card--primary span {
    color: rgba(255, 255, 255, .82);
}

.action-plus {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 14px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .12);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.teacher-action-card--primary .action-plus,
.admin-quick-card--primary .action-plus {
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .86);
}

.action-plus--edit::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 5px;
    background: currentColor;
    clip-path: polygon(14% 70%, 14% 86%, 30% 86%, 82% 34%, 66% 18%);
}

.action-plus--edit {
    font-size: 0;
}

button.teacher-action-card {
    width: 100%;
    font: inherit;
}

.teacher-action-card strong {
    font-size: 18px;
}

.teacher-action-card span {
    color: var(--muted);
    font-weight: 750;
}

.teacher-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.teacher-item-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.teacher-item-card h3 {
    margin: 8px 0 6px;
}

.teacher-item-card p,
.teacher-item-card small,
.teacher-item-card em {
    margin: 0;
    color: var(--muted);
}

.teacher-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.teacher-course-meta span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(111, 53, 200, .075);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}

.teacher-item-card em {
    display: block;
    margin-top: 8px;
    color: var(--clay);
    font-style: normal;
    font-weight: 800;
}

.teacher-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.teacher-card-actions form {
    display: inline-flex;
}

.modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal-title-row h2 {
    margin: 0;
}

.quick-course-form .dtp-fieldset {
    grid-column: span 2;
}

.admin-course-picker {
    max-height: 260px;
    overflow: auto;
}

.admin-content-card-grid .row-link {
    min-height: 104px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 38px rgba(53, 19, 93, .07);
}

.teacher-card-actions .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.teacher-offer-card {
    border-color: rgba(232, 90, 157, .18);
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.app-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-modal__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 16%, rgba(232, 90, 157, .22), transparent 34%),
        rgba(24, 8, 44, .62);
    backdrop-filter: blur(12px);
}

.app-modal__dialog {
    position: relative;
    width: min(540px, 100%);
    max-height: min(820px, calc(100vh - 28px));
    overflow: auto;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(111, 53, 200, .16);
    box-shadow: 0 34px 110px rgba(11, 3, 24, .36);
    transform: translateY(18px) scale(.98);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.app-modal.is-open .app-modal__dialog {
    transform: translateY(0) scale(1);
}

.app-modal--wide .app-modal__dialog {
    width: min(760px, 100%);
}

.app-modal--post .app-modal__dialog {
    width: min(520px, calc(100% - 22px));
}

.post-modal {
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.post-modal__head {
    position: relative;
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 14px 58px 13px;
    border-bottom: 1px solid rgba(31, 8, 55, .1);
}

.post-modal__head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
}

.post-modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 8, 55, .08);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.post-compose-form {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.post-modal__author {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.post-modal__author strong {
    display: block;
    color: var(--ink);
    line-height: 1.1;
}

.post-visibility-pill {
    width: auto;
    min-height: 28px;
    margin-top: 4px;
    padding: 4px 22px 4px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(111, 53, 200, .12);
    color: var(--violet-dark);
    font-size: 12px;
    font-weight: 900;
}

.post-modal__textarea {
    min-height: 154px;
    resize: none;
    border: 0;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.22;
    box-shadow: none;
}

.post-modal__textarea:focus {
    outline: none;
    box-shadow: none;
}

.post-modal__emoji-row {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.post-compose-form > .post-modal__emoji-row {
    position: absolute;
    right: 16px;
    bottom: 88px;
    z-index: 6;
    max-width: min(320px, calc(100vw - 34px));
    padding: 8px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(53, 19, 93, .16);
}

.post-modal__emoji-row.is-open {
    display: flex;
}

.post-modal__emoji-row button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 50%;
    background: rgba(111, 53, 200, .08);
    cursor: pointer;
}

.post-modal__extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(31, 8, 55, .14);
    border-radius: 12px;
}

.post-modal__extras > strong {
    margin-right: auto;
    color: var(--ink);
    font-size: 14px;
}

.post-extra-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.post-extra-action span[aria-hidden="true"] {
    font-size: 18px;
}

.post-media-state {
    width: 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.post-media-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.post-media-preview[hidden] {
    display: none;
}

.post-media-thumb {
    position: relative;
    min-height: 82px;
    overflow: hidden;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 14px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font-weight: 900;
}

.post-media-thumb img,
.post-media-thumb video {
    width: 100%;
    height: 100%;
    min-height: 82px;
    display: block;
    object-fit: cover;
}

.post-media-thumb__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 8, 55, .74);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.post-media-thumb--more {
    min-height: 82px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(111, 53, 200, .14), rgba(222, 74, 154, .2));
    font-size: 22px;
}

.post-media-manage {
    min-height: 40px;
    grid-column: 1 / -1;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 999px;
    background: rgba(111, 53, 200, .08);
    color: var(--violet-dark);
    font-weight: 900;
    cursor: pointer;
}

.post-media-gallery {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(18, 10, 30, .52);
    backdrop-filter: blur(16px);
}

.post-media-gallery[hidden] {
    display: none;
}

.post-media-gallery__panel {
    width: min(680px, 100%);
    max-height: min(760px, calc(100dvh - 36px));
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 80px rgba(31, 8, 55, .28);
}

.post-media-gallery__panel.is-dragging {
    outline: 2px dashed rgba(222, 74, 154, .65);
    outline-offset: -8px;
}

.post-media-gallery__head,
.post-media-gallery__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-media-gallery__head small,
.post-media-gallery__actions span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.post-media-gallery__head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(111, 53, 200, .1);
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
}

.post-media-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.post-media-thumb--gallery {
    min-height: 118px;
    cursor: grab;
}

.post-media-thumb--gallery:active {
    cursor: grabbing;
}

.post-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.25);
}

.btn-danger {
    background: linear-gradient(135deg, #d73661, #e85c8a);
    box-shadow: 0 16px 34px rgba(215, 54, 97, .22);
}

.wall-delete-confirm-modal__dialog p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.55;
}

.activity-translate-btn,
.activity-original-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 4px;
    border: 0;
    background: transparent;
    color: var(--violet-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.activity-translate-btn.is-loading {
    opacity: .65;
    pointer-events: none;
}

.activity-original--system {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.activity-collapsible-text {
    overflow-wrap: anywhere;
}

.activity-collapsible-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-collapsible-text.is-expanded {
    display: block;
}

.activity-read-more {
    display: inline-flex;
    width: fit-content;
    margin: -2px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--violet);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.activity-read-more:hover,
.activity-read-more:focus-visible {
    color: var(--magenta);
    text-decoration: underline;
}

.activity-translation {
    margin: 4px 0 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(111, 53, 200, .08);
    color: var(--ink);
}

.member-page {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 48px;
    display: grid;
    gap: 18px;
}

.route-member-friends .member-page {
    gap: 14px;
}

.member-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 8%, rgba(232, 90, 157, .14), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(250, 244, 255, .9));
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 18px 42px rgba(53, 19, 93, .08);
}

.member-page__head h1 {
    margin: 0 0 6px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: .98;
}

.member-page__head p {
    margin: 0;
    color: var(--muted);
}

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

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

.member-panel {
    min-width: 0;
}

.app-stat-card {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 16px 34px rgba(53, 19, 93, .07);
}

.app-stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.app-stat-card strong {
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}

.section-head--tight {
    margin-bottom: 10px;
}

.wallet-history {
    display: grid;
    gap: 10px;
}

.transaction .is-positive {
    color: #247a4d;
}

.transaction .is-negative {
    color: var(--violet-dark);
}

.friend-row--card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .055);
    border: 1px solid rgba(111, 53, 200, .1);
}

.friend-row__user {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.friend-row__user span:last-child {
    min-width: 0;
    display: grid;
}

.friend-row__user small {
    color: var(--muted);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.danger-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-color: rgba(143, 52, 40, .18);
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 244, 242, .9));
}

.purchase-confirm-summary,
.purchase-confirm-balance,
.purchase-confirm-course-credit,
.purchase-confirm-actions {
    display: grid;
    gap: 10px;
}

.purchase-confirm-summary {
    padding: 14px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .07);
}

.course-delete-impact {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    color: var(--ink);
    background: rgba(232, 90, 157, .09);
    border: 1px solid rgba(232, 90, 157, .18);
}

.course-delete-impact strong {
    color: var(--violet-dark);
}

.course-delete-impact span,
.course-delete-impact small {
    color: var(--muted);
    font-weight: 760;
}

.admin-inline-editor {
    display: grid;
    gap: 10px;
}

.admin-inline-editor summary {
    width: fit-content;
    list-style: none;
    cursor: pointer;
}

.admin-inline-editor summary::-webkit-details-marker {
    display: none;
}

.admin-inline-editor[open] {
    padding: 12px;
    border-radius: 16px;
    background: rgba(111, 53, 200, .055);
    border: 1px solid rgba(111, 53, 200, .12);
}

/* Desktop app sidebar v81 */
@media (min-width: 1021px) {
    :root {
        --desktop-sidebar-width: 252px;
    }

    body.is-authenticated {
        padding-left: var(--desktop-sidebar-width);
    }

    body.is-authenticated.route-member-welcome {
        padding-left: 0;
    }

    body.is-authenticated #app-main {
        min-height: 100svh;
    }

    .app-member-header {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: var(--desktop-sidebar-width);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 14px;
        border-right: 1px solid rgba(111, 53, 200, .12);
        border-bottom: 0;
        background:
            radial-gradient(circle at 8% 0%, rgba(232, 90, 157, .13), transparent 34%),
            linear-gradient(180deg, rgba(255, 253, 248, .97), rgba(255, 247, 253, .94));
        box-shadow: 18px 0 46px rgba(53, 19, 93, .08);
        backdrop-filter: blur(18px);
    }

    .app-member-identity {
        width: 100%;
        gap: 12px;
        padding: 10px;
        border-radius: 20px;
        text-decoration: none;
        background: rgba(255, 255, 255, .68);
        box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
    }

    .app-member-avatar {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .app-member-copy strong {
        font-size: 16px;
    }

    .app-member-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 2px;
    }

    .app-member-actions [data-message-header-link] {
        display: none;
    }

    .app-member-actions .app-header-icon {
        width: 44px;
        min-height: 44px;
        border-radius: 16px;
    }

    .app-member-nav {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2px 2px 0;
        scrollbar-width: thin;
    }

    .app-sidebar-section {
        display: grid;
        gap: 5px;
        padding-top: 10px;
        border-top: 1px solid rgba(111, 53, 200, .1);
    }

    .app-sidebar-section:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .app-sidebar-section:empty {
        display: none;
    }

    .app-sidebar-bottom {
        margin-top: auto;
        padding-top: 12px;
    }

    .app-member-nav a {
        position: relative;
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 16px;
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        line-height: 1.1;
    }

    .app-member-nav a:hover,
    .app-member-nav a:focus,
    .app-member-nav a.active,
    .app-member-nav a[aria-current="page"] {
        color: var(--violet-dark);
        background: rgba(111, 53, 200, .1);
        box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
    }

    .app-sidebar-icon {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 13px;
        color: var(--violet-dark);
        background: rgba(111, 53, 200, .08);
    }

    .app-sidebar-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .app-sidebar-icon img {
        width: 19px;
        height: 19px;
        object-fit: contain;
        filter: brightness(0) saturate(100%) invert(20%) sepia(82%) saturate(1512%) hue-rotate(254deg) brightness(83%) contrast(95%);
    }

    .app-sidebar-icon svg[fill="none"] {
        fill: none;
    }

    .app-member-nav a.active .app-sidebar-icon,
    .app-member-nav a[aria-current="page"] .app-sidebar-icon {
        color: #fff;
        background: linear-gradient(135deg, var(--violet), var(--magenta));
        box-shadow: 0 10px 24px rgba(111, 53, 200, .18);
    }

    .app-member-nav a.active .app-sidebar-icon img,
    .app-member-nav a[aria-current="page"] .app-sidebar-icon img {
        filter: brightness(0) invert(1);
    }

    .app-sidebar-badge {
        margin-left: auto;
        min-width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        padding: 0 6px;
        border-radius: 999px;
        color: #fff;
        background: #e85a9d;
        font-size: 11px;
        font-weight: 950;
    }

    .app-sidebar-badge[hidden] {
        display: none;
    }

    .app-sidebar-danger {
        color: #8f3428 !important;
        background: rgba(143, 52, 40, .06);
    }

    .app-sidebar-danger .app-sidebar-icon {
        color: #8f3428;
        background: rgba(143, 52, 40, .1);
    }

    .notification-popover {
        top: 0;
        right: auto;
        left: calc(100% + 12px);
        width: 360px;
    }

    .mobile-app-nav,
    .app-more-drawer {
        display: none;
    }
}

.purchase-confirm-summary strong {
    font-size: 20px;
}

.purchase-missing {
    color: #8f3428;
    font-weight: 800;
}

.purchase-confirm-course-credit {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(111, 53, 200, .1), rgba(232, 90, 157, .12));
    border: 1px solid rgba(111, 53, 200, .14);
}

.purchase-confirm-course-credit strong {
    color: var(--violet);
    font-size: 18px;
}

.wallet-note--course-credit {
    border-color: rgba(111, 53, 200, .18);
    background: rgba(111, 53, 200, .07);
}

.course-credit-pill {
    width: fit-content;
    margin-top: 8px;
    color: var(--violet);
    background: rgba(111, 53, 200, .1);
}

.activity-translation p {
    margin: 0 0 6px;
}

.activity-translation small {
    color: var(--muted);
    font-weight: 850;
}

@media (max-width: 820px) {
    .admin-quick-grid {
        width: calc(100% - 24px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-quick-card {
        min-height: 104px;
        padding: 14px;
        border-radius: 18px;
    }

    .social-profile__head {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .social-profile__actions {
        justify-items: start;
    }

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

    .profile-tabs button {
        min-width: 140px;
    }

    .social-dashboard .wide {
        grid-column: span 1;
    }

    .profile-photo-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .dtp-fieldset {
        grid-template-columns: 1fr;
    }

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

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

    .studio-teacher-hero__media {
        order: 0;
        min-height: 260px;
    }

    .studio-teacher-hero__media img {
        min-height: 260px;
    }

    .studio-teacher-avatar {
        right: 24px;
        top: 218px;
        bottom: auto;
    }

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

    .teacher-workspace {
        width: 100%;
        padding: 0 8px;
    }

    .teacher-tabs {
        position: static;
        gap: 6px;
        margin: 8px 0 12px;
        padding: 6px;
        border-radius: 16px;
        max-width: 100%;
        overflow-x: auto;
    }

    .teacher-tabs button,
    .teacher-tabs a {
        min-width: 68px;
        max-width: 116px;
        min-height: 42px;
        gap: 6px;
        padding: 0 8px;
        font-size: 12px;
    }

    .teacher-tab-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .teacher-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .teacher-stat-grid,
    .teacher-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .teacher-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .teacher-card-actions .btn,
    .teacher-card-actions form,
    .teacher-card-actions button {
        width: 100%;
    }

    .teacher-course-meta {
        gap: 6px;
    }

    .teacher-course-meta span {
        min-height: 26px;
        padding-inline: 8px;
        font-size: 12px;
    }

    .form-grid--compact,
    .quick-course-form .dtp-fieldset {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }

    .modal-title-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Responsive app shell */
.mobile-app-nav {
    display: none;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
    background: rgba(111, 53, 200, .1);
    color: var(--violet-dark);
    font-weight: 850;
}

.is-pressing {
    transform: scale(.98) !important;
}

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

.app-widget {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 12%, rgba(232, 90, 157, .16), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(248, 243, 255, .9));
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 14px 38px rgba(53, 19, 93, .07);
}

.app-widget span,
.app-widget small {
    color: var(--muted);
    font-weight: 800;
}

.app-widget strong {
    color: var(--ink);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1;
}

.quick-actions-panel {
    display: grid;
    gap: 14px;
}

.quick-actions-panel h2 {
    margin-bottom: 0;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 76px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .065);
    border: 1px solid rgba(111, 53, 200, .13);
    color: var(--violet-dark);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.quick-action__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .12), 0 12px 24px rgba(53, 19, 93, .08);
}

.quick-action__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.quick-action__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.quick-action:hover,
.quick-action:focus {
    transform: translateY(-2px);
    background: rgba(232, 90, 157, .1);
    border-color: rgba(232, 90, 157, .24);
}

.quick-action:hover .quick-action__icon,
.quick-action:focus .quick-action__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.quick-action strong {
    color: var(--ink);
    line-height: 1.1;
}

.quick-action__copy > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.quick-action--danger {
    background: rgba(184, 97, 75, .08);
    border-color: rgba(184, 97, 75, .18);
}

@media (max-width: 1020px) {
    .is-authenticated .site-header {
        display: none;
    }

    body.is-authenticated {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .builder-form {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .course-form-actions--sticky {
        position: sticky;
        bottom: calc(84px + env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        margin: 18px 0 0;
        padding: 10px;
        border-radius: 20px;
        border: 1px solid rgba(111, 53, 200, .16);
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 18px 48px rgba(53, 19, 93, .16);
        backdrop-filter: blur(16px);
    }

    .app-modal__dialog .course-form-actions--sticky {
        bottom: 0;
        margin-inline: -2px;
    }

    .course-form-actions--sticky .btn {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding-inline: 10px;
        white-space: nowrap;
        font-size: 13px;
    }

    .toast {
        right: 12px;
        left: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        max-width: none;
        z-index: 3000;
    }

    .is-authenticated .dashboard-head,
    .is-authenticated .page-hero.compact,
    .is-authenticated .profile-hero {
        margin-top: 12px;
    }

    .is-authenticated .social-profile {
        margin-top: 12px;
    }

    .is-authenticated .site-footer {
        display: none;
    }

    .mobile-app-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100dvw;
        box-sizing: border-box;
        z-index: 90;
        display: flex;
        align-items: stretch;
        gap: 4px;
        height: calc(76px + env(safe-area-inset-bottom));
        padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        border-radius: 24px 24px 0 0;
        background: rgba(255, 255, 255, .88);
        border: 1px solid rgba(111, 53, 200, .14);
        box-shadow: 0 18px 60px rgba(31, 8, 55, .22);
        backdrop-filter: blur(18px);
    }

    .mobile-app-nav a {
        min-width: 0;
        flex: 1 1 0;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        border-radius: 18px;
        color: var(--muted);
        font-weight: 900;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }

    .mobile-app-nav a.active,
    .mobile-app-nav a[aria-current="page"] {
        color: #fff;
        background: linear-gradient(135deg, var(--violet), var(--magenta));
        box-shadow: 0 12px 26px rgba(111, 53, 200, .24);
    }

    .mobile-app-nav a.active .app-nav-icon,
    .mobile-app-nav a[aria-current="page"] .app-nav-icon {
        background: rgba(255, 255, 255, .2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    .mobile-app-nav small {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.1;
    }

    .app-nav-icon {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: rgba(111, 53, 200, .08);
        box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
        transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .app-nav-icon svg {
        width: 19px;
        height: 19px;
        fill: currentColor;
    }

    .app-nav-icon img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        filter: brightness(0) saturate(100%) invert(20%) sepia(82%) saturate(1512%) hue-rotate(254deg) brightness(83%) contrast(95%);
    }

    .app-nav-icon svg[fill="none"] {
        fill: none;
    }
}

@media (max-width: 760px) {
    .is-authenticated .flash {
        width: calc(100% - 24px);
        margin-top: 10px;
    }

    .is-authenticated .dashboard-head,
    .is-authenticated .page-hero.compact,
    .is-authenticated .profile-hero {
        width: calc(100% - 24px);
        margin-top: 12px;
        padding: 18px;
        border-radius: 22px;
    }

    .is-authenticated .dashboard-head h1,
    .is-authenticated .page-hero h1,
    .is-authenticated .profile-hero h1 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1;
    }

    .is-authenticated .dashboard-head p,
    .is-authenticated .page-hero p {
        font-size: 15px;
    }

    .is-authenticated .hero-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .is-authenticated .hero-actions::-webkit-scrollbar {
        display: none;
    }

    .is-authenticated .hero-actions .btn {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 10px 14px;
        white-space: nowrap;
    }

    .is-authenticated .band,
    .is-authenticated .dashboard-grid,
    .is-authenticated .stats-grid,
    .is-authenticated .studio-home,
    .is-authenticated .news-layout,
    .is-authenticated .social-profile,
    .is-authenticated .course-layout {
        width: calc(100% - 24px);
    }

    .is-authenticated .band {
        padding: 18px 0 34px;
    }

    .is-authenticated .panel,
    .is-authenticated .side-panel,
    .is-authenticated .auth-panel,
    .is-authenticated .profile-timeline {
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 14px 38px rgba(53, 19, 93, .07);
    }

    .tabs,
    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tabs::-webkit-scrollbar,
    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .tabs a,
    .profile-tabs button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .app-section-head {
        gap: 10px;
    }

    .app-section-head .btn {
        align-self: flex-start;
    }

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

    .app-widget {
        padding: 12px 10px;
        border-radius: 18px;
    }

    .app-widget span,
    .app-widget small {
        font-size: 11px;
    }

    .app-widget strong {
        font-size: 21px;
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .quick-action {
        min-height: 70px;
        padding: 12px;
        border-radius: 16px;
    }

    .news-layout {
        margin-bottom: 24px;
    }

    .studio-home {
        margin-top: 12px;
        margin-bottom: 24px;
        gap: 14px;
    }

    .studio-teacher-hero {
        min-height: 0;
        border-radius: 24px;
    }

    .studio-teacher-hero__media,
    .studio-teacher-hero__media img {
        min-height: 190px;
    }

    .studio-teacher-hero__media img {
        object-position: 76% center;
    }

    .studio-teacher-hero__content {
        padding: 18px;
        gap: 10px;
    }

    .studio-teacher-hero__content h1 {
        padding-right: 86px;
        font-size: clamp(34px, 12vw, 56px);
    }

    .studio-teacher-hero__content p:not(.eyebrow) {
        font-size: 15px;
    }

    .studio-teacher-avatar {
        top: 146px;
        right: 18px;
        width: 72px;
        height: 72px;
        border-radius: 23px;
        font-size: 28px;
    }

    .studio-teacher-meta {
        gap: 6px;
    }

    .studio-teacher-meta span {
        min-height: 29px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .studio-courses-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .studio-section-head,
    .studio-filter-row {
        display: grid;
        gap: 10px;
    }

    .studio-section-head .btn {
        justify-self: start;
    }

    .studio-course-grid {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .studio-course-grid::-webkit-scrollbar {
        display: none;
    }

    .studio-course-card {
        flex: 0 0 min(82vw, 330px);
        scroll-snap-align: start;
        border-radius: 20px;
    }

    .studio-course-card img {
        height: 148px;
    }

    .studio-course-card__body {
        padding: 13px;
    }

    .studio-course-card h3 {
        font-size: 18px;
    }

    .studio-empty {
        flex-basis: calc(100vw - 56px);
    }

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

    .news-main,
    .news-side {
        gap: 12px;
    }

    .news-composer textarea {
        min-height: 108px;
    }

    .composer-row,
    .wallet-amounts {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .composer-row .btn,
    .wallet-amounts .btn {
        width: 100%;
    }

    input,
    select,
    textarea {
        min-height: 48px;
        border-radius: 12px;
        font-size: 16px;
    }

    input[type="file"] {
        padding: 12px;
    }

    .grid.cards-3 {
        gap: 12px;
    }

    .course-card,
    .program-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 150px;
        border-radius: 20px;
    }

    .course-card img,
    .program-card img {
        width: 100%;
        height: 100%;
        min-height: 150px;
        border-radius: 0;
    }

    .course-card > div,
    .program-card > div {
        min-width: 0;
        padding: 13px;
    }

    .course-card h3,
    .program-card h3 {
        margin: 7px 0;
        font-size: 18px;
        line-height: 1.08;
    }

    .course-card p,
    .program-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        margin: 6px 0;
        font-size: 14px;
    }

    .course-card .pill,
    .program-card .pill {
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        font-size: 12px;
    }

    .meta {
        display: grid;
        gap: 2px;
        margin-top: 8px;
        font-size: 12px;
    }

    .card-cta {
        margin-top: 10px;
        min-height: 36px;
        border-radius: 12px;
        font-size: 13px;
    }

    .course-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 0 34px;
    }

    .course-title-row {
        gap: 12px;
        margin: 14px 0;
    }

    .course-title-row h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .side-panel .btn,
    .side-panel .btn-secondary,
    .side-panel .js-purchase,
    .side-panel .js-complete-course {
        width: 100%;
    }

    .social-profile {
        margin-top: 12px;
        margin-bottom: 26px;
        width: calc(100% - 18px);
        max-width: calc(100vw - 18px);
        overflow: hidden;
    }

    .social-cover {
        min-height: 190px;
        border-radius: 22px 22px 0 0;
    }

    .social-profile__head {
        gap: 12px;
        padding: 0 16px 18px;
        border-radius: 0 0 22px 22px;
    }

    .profile-avatar-xl {
        width: 108px;
        height: 108px;
        margin-top: -52px;
        border-radius: 28px;
        font-size: 38px;
    }

    .profile-media-button--cover {
        right: 12px;
        bottom: 12px;
    }

    .profile-media-button--avatar {
        display: none;
    }

    .member-socials {
        justify-content: flex-start;
    }

    .profile-tabs {
        margin: 12px 0;
        border-radius: 18px;
        gap: 6px;
        padding: 6px;
    }

    .profile-tabs button {
        min-width: 92px;
        min-height: 42px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .feed-post,
    .activity-row,
    .friend-row,
    .transaction,
    .offer,
    .wall-post {
        border-radius: 16px;
    }

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

    .wallet-modal,
    .profile-modal,
    .app-modal {
        align-items: end;
        place-items: end center;
        padding: 10px;
    }

    .app-modal.app-modal--post {
        align-items: center;
        place-items: center;
        padding: 18px;
    }

    .wallet-modal__dialog,
    .profile-modal__dialog,
    .app-modal__dialog {
        width: 100%;
        max-height: calc(100svh - 20px);
        border-radius: 22px 22px 12px 12px;
    }

    .app-modal--post .app-modal__dialog {
        width: min(520px, calc(100vw - 28px));
        max-height: calc(100svh - 36px);
        border-radius: 22px;
    }
}

@media (max-width: 390px) {
    .mobile-app-nav {
        left: 6px;
        right: 6px;
        height: 66px;
        padding: 5px;
        border-radius: 21px;
    }

    .mobile-app-nav small {
        font-size: 10px;
    }

    .app-nav-icon {
        width: 26px;
        height: 26px;
        border-radius: 11px;
    }

    .app-nav-icon svg {
        width: 17px;
        height: 17px;
    }

    .course-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

/* App-first v39 */
body.is-public.route-home .site-footer,
body.is-authenticated .site-header,
body.is-authenticated .site-footer {
    display: none;
}

body.is-public.route-home {
    min-height: 100svh;
    overflow-x: hidden;
}

body.is-public.route-home [data-app-main] {
    min-height: 100svh;
}

body.is-public.route-home .landing-hero {
    min-height: 100svh;
    margin-top: 0;
}

body.is-public.route-home .landing-hero[data-reveal],
body.is-public.route-home .landing-hero[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

.app-member-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 8px max(18px, env(safe-area-inset-left)) 8px max(18px, env(safe-area-inset-right));
    border-bottom: 1px solid rgba(111, 53, 200, .11);
    background: rgba(255, 253, 248, .9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(53, 19, 93, .06);
}

.app-member-identity {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.app-member-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    border: 3px solid rgba(255, 255, 255, .86);
    box-shadow: 0 12px 30px rgba(111, 53, 200, .16);
    font-weight: 950;
}

.app-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-member-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.app-member-copy strong,
.app-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-member-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.app-member-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.app-member-nav::-webkit-scrollbar {
    display: none;
}

.app-member-nav a,
.app-header-icon {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.app-member-nav a:hover,
.app-member-nav a:focus,
.app-member-nav a.active,
.app-member-nav a[aria-current="page"] {
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .1);
}

.app-member-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-header-icon {
    position: relative;
    width: 42px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .1);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .09);
    cursor: pointer;
}

.app-header-icon:hover,
.app-header-icon:focus,
.app-header-icon.active,
.app-header-icon[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    box-shadow: 0 12px 28px rgba(111, 53, 200, .18);
}

.app-header-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.app-header-icon--messages {
    background: rgba(111, 53, 200, .13);
}

.app-header-icon--messages svg {
    width: 24px;
    height: 24px;
}

.app-header-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: #e85a9d;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.notification-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(360px, calc(100vw - 24px));
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 24px 70px rgba(53, 19, 93, .18);
}

.notification-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-popover__head button {
    border: 0;
    background: transparent;
    color: var(--violet-dark);
    font-weight: 900;
    cursor: pointer;
}

.notification-list {
    display: grid;
    gap: 8px;
}

.notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    color: var(--ink);
    background: rgba(111, 53, 200, .055);
}

.notification-item.is-unread {
    background: rgba(232, 90, 157, .12);
}

.notification-item span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.notification-item strong,
.notification-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.auth-transitioning [data-app-main],
body.auth-transitioning .auth-modal__dialog {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}

body.auth-arrival [data-app-main] {
    animation: auth-arrival .58s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes auth-arrival {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.studio-home--courses-first {
    margin-top: 18px;
    gap: 16px;
}

.studio-courses-panel--first {
    padding: clamp(14px, 2vw, 22px);
}

.studio-teacher-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(111, 53, 200, .11);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 10%, rgba(123, 43, 211, .1), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(250, 246, 255, .88));
}

.studio-teacher-strip__avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    border: 4px solid #fff;
    box-shadow: 0 14px 34px rgba(53, 19, 93, .14);
    font-size: 28px;
    font-weight: 950;
}

.studio-teacher-strip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-teacher-strip__copy {
    min-width: 0;
}

.studio-teacher-strip__copy h1 {
    margin: 0 0 4px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
}

.studio-teacher-strip__copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.studio-teacher-strip__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.studio-courses-panel--first .studio-section-head {
    align-items: center;
}

.studio-courses-panel--first .studio-section-head h2 {
    font-size: clamp(30px, 4.2vw, 48px);
}

.studio-courses-panel--first .studio-filter-row {
    padding-bottom: 2px;
}

.studio-news-layout--single {
    width: min(860px, 100%);
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
}

.feed-composer-card .feed-post__head {
    align-items: flex-start;
}

.feed-composer-card textarea {
    min-height: 54px;
    flex: 1;
    resize: vertical;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
}

.feed-panel {
    padding: clamp(16px, 2vw, 22px);
}

.studio-section-head--feed {
    margin-bottom: 12px;
}

@media (max-width: 1020px) {
    .app-member-header {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 7px 12px;
    }

    .app-member-nav {
        display: none;
    }

    .app-header-icon {
        min-height: 38px;
        padding: 0;
    }

    .studio-home--courses-first {
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    body.is-public.route-home .landing-hero {
        padding-bottom: 42px;
    }

    body.is-public.route-home .landing-hero h1 {
        font-size: clamp(46px, 15.5vw, 72px);
    }

    .app-member-copy small {
        font-size: 11px;
    }

    .studio-teacher-strip {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        margin-bottom: 14px;
        padding: 10px;
        border-radius: 20px;
    }

    .studio-teacher-strip__avatar {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 23px;
    }

    .studio-teacher-strip__copy h1 {
        font-size: 28px;
    }

    .studio-teacher-strip__copy p:not(.eyebrow) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .studio-teacher-strip__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .studio-teacher-strip__actions .btn {
        flex: 1 1 0;
    }

    .studio-courses-panel--first {
        padding: 12px;
        border-radius: 22px;
    }

    .studio-courses-panel--first .studio-section-head h2 {
        font-size: 28px;
    }

    .feed-composer-card .feed-post__head {
        gap: 9px;
    }

    .feed-composer-card textarea {
        min-height: 48px;
        padding: 13px 14px;
    }

    .post-media-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-media-gallery {
        align-items: end;
        padding: 0;
    }

    .post-media-gallery__panel {
        width: 100%;
        max-height: 86dvh;
        border-radius: 26px 26px 0 0;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 460px) {
    .app-member-header {
        min-height: 54px;
    }

    .app-member-avatar {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .app-member-copy strong {
        font-size: 14px;
    }

    .app-header-icon {
        min-height: 36px;
        padding: 0;
        font-size: 12px;
    }
}

/* Social feed app v40 */
.news-app-home {
    gap: 14px;
}

.story-courses-panel {
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.smart-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.smart-start-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    display: grid;
    align-content: end;
    border-radius: 24px;
    background: #1d0b32;
    color: #fff;
    box-shadow: 0 18px 46px rgba(53, 19, 93, .13);
}

.smart-start-card img,
.smart-start-card__veil {
    position: absolute;
    inset: 0;
}

.smart-start-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-start-card__veil {
    background:
        linear-gradient(90deg, rgba(21, 7, 39, .84), rgba(65, 25, 98, .42)),
        linear-gradient(180deg, transparent, rgba(21, 7, 39, .72));
}

.smart-start-card__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 18px;
    padding-right: 118px;
}

.smart-start-card small {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.smart-start-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.02;
}

.smart-start-card em {
    color: rgba(255, 255, 255, .82);
    font-style: normal;
    font-weight: 760;
}

.smart-start-card__cta {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--violet-dark);
    font-size: 13px;
    font-weight: 950;
}

.smart-progress {
    width: min(180px, 100%);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.smart-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a13bd8, #e85a9d, #82d5e8);
}

.recurrence-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 16px;
    background: rgba(111, 53, 200, .055);
}

.recurrence-box[hidden] {
    display: none;
}

.story-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.story-section-head h1 {
    margin: 0;
    font-size: clamp(31px, 4.8vw, 52px);
    line-height: 1;
}

.story-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.story-filter-row .tabs {
    margin-bottom: 0;
}

.story-course-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.story-course-rail::-webkit-scrollbar {
    display: none;
}

.story-course-card {
    position: relative;
    flex: 0 0 172px;
    height: 258px;
    overflow: hidden;
    border-radius: 22px;
    background: #18082c;
    box-shadow: 0 18px 44px rgba(31, 8, 55, .16);
    scroll-snap-align: start;
    transition: transform .18s ease, box-shadow .18s ease;
}

.story-course-card:hover,
.story-course-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(31, 8, 55, .24);
}

.story-course-card a,
.story-course-card img,
.story-course-card__veil {
    position: absolute;
    inset: 0;
}

.story-course-card a {
    display: block;
    color: #fff;
}

.story-course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.story-course-card:hover img,
.story-course-card:focus-within img {
    transform: scale(1.04);
}

.story-course-card__veil {
    background:
        linear-gradient(180deg, rgba(17, 6, 34, .38), transparent 34%),
        linear-gradient(180deg, transparent 36%, rgba(14, 4, 26, .88) 100%);
}

.story-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: calc(100% - 20px);
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 950;
}

.story-chip--top {
    top: 10px;
    left: 10px;
}

.story-chip--price {
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(111, 53, 200, .88), rgba(232, 90, 157, .88));
}

.story-chip--credit {
    top: 46px;
    right: 10px;
    background: rgba(255, 255, 255, .2);
}

.story-course-card__body {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 5px;
}

.story-course-card__body span,
.story-course-card__body small {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 850;
}

.story-course-card__body h2 {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff;
    font-size: 18px;
    line-height: 1.06;
    text-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}

.feed-composer-trigger {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 48px rgba(53, 19, 93, .08);
    color: var(--muted);
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.feed-composer-trigger > span:last-child {
    flex: 1;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(111, 53, 200, .065);
}

.feed-composer-trigger:hover,
.feed-composer-trigger:focus {
    border-color: rgba(232, 90, 157, .24);
    color: var(--violet-dark);
}

.lotus-action {
    min-width: 96px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(111, 53, 200, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    color: var(--violet-dark);
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(53, 19, 93, .1);
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.lotus-action__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: block;
    background: rgba(111, 53, 200, .42);
    filter: drop-shadow(0 7px 15px rgba(53, 19, 93, .14));
    -webkit-mask: url("../icons/lotus.svg") center / contain no-repeat;
    mask: url("../icons/lotus.svg") center / contain no-repeat;
}

.lotus-action__count {
    color: currentColor;
    line-height: 1;
    font-size: 18px;
    font-weight: 950;
    min-width: 1.4em;
    text-align: center;
}

.lotus-action:hover,
.lotus-action:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    border-color: transparent;
    transform: translateY(-2px);
}

.lotus-action.active {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(111, 53, 200, .24);
}

.lotus-action:hover .lotus-action__icon,
.lotus-action:focus .lotus-action__icon,
.lotus-action.active .lotus-action__icon {
    background: #fff;
}

.lotus-action.active .lotus-action__icon {
    animation: lotus-send .36s cubic-bezier(.2, .8, .2, 1);
}

.lotus-action--activity {
    min-width: 54px;
    min-height: 34px;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: none;
}

.lotus-action--activity .lotus-action__icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
}

.lotus-action--activity .lotus-action__count {
    min-width: 1em;
    font-size: 14px;
}

@keyframes lotus-send {
    0% {
        transform: scale(.82) rotate(-8deg);
    }
    70% {
        transform: scale(1.14) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

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

.app-more-grid a {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 13px;
    border-radius: 18px;
    color: var(--ink);
    background: rgba(111, 53, 200, .065);
    border: 1px solid rgba(111, 53, 200, .12);
}

.app-more-grid a:hover,
.app-more-grid a:focus {
    background: rgba(232, 90, 157, .11);
    border-color: rgba(232, 90, 157, .24);
}

.app-more-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .12);
}

.app-more-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.app-more-danger {
    color: #8f3428 !important;
}

.messages-app {
    width: min(1040px, 100%);
    min-height: calc(100svh - 72px);
    margin: 0 auto calc(82px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
}

.messages-sidebar,
.message-room {
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
}

.messages-sidebar {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    padding: 10px 12px 12px;
}

.messages-sidebar__head,
.message-room__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.messages-sidebar__head h1,
.message-room__head h2 {
    margin: 0;
}

.messages-sidebar__head h1 {
    font-size: 24px;
    line-height: 1.05;
}

.message-new-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    box-shadow: 0 14px 28px rgba(111, 53, 200, .22);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.message-search {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(31, 8, 55, .06);
    color: var(--muted);
}

.message-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 750;
}

.message-contact-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
}

.message-contact-strip::-webkit-scrollbar {
    display: none;
}

.message-contact {
    flex: 0 0 66px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 5px;
    min-height: 74px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.message-contact--teacher {
    background: transparent;
}

.message-contact .avatar {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 3px rgba(111, 53, 200, .12);
}

.avatar.presence-online,
.avatar.presence-recent {
    position: relative;
}

.avatar.presence-online::after,
.avatar.presence-recent::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #22c55e;
}

.avatar.presence-recent::after {
    background: #f59e0b;
}

.message-contact strong,
.message-contact small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.message-contact small {
    display: none;
}

.message-thread-list {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 2px;
    padding-right: 0;
}

.message-thread {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 8px 6px;
    border-radius: 14px;
    color: var(--ink);
}

.message-thread .avatar {
    width: 50px;
    height: 50px;
}

.message-thread:hover,
.message-thread:focus,
.message-thread.active {
    background: rgba(111, 53, 200, .1);
}

.message-thread span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.message-thread strong,
.message-thread small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-thread small {
    color: var(--muted);
}

.message-thread small[data-preview-kind="image"]::before,
.message-thread small[data-preview-kind="audio"]::before,
.message-thread small[data-preview-kind="lotus"]::before {
    display: inline-block;
    margin-right: 4px;
    color: var(--violet);
}

.message-thread em {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--magenta);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.my-courses-page {
    width: min(1060px, calc(100% - 28px));
    margin: 18px auto calc(100px + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
}

.my-course-section {
    display: grid;
    gap: 14px;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.section-title-row h2,
.section-title-row p {
    margin: 0;
}

.my-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

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

.my-course-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.my-course-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
}

.my-course-card:hover,
.my-course-card:focus {
    border-color: rgba(111, 53, 200, .34);
    box-shadow: 0 18px 34px rgba(111, 53, 200, .12);
}

.my-course-card img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
}

.my-course-card span {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.my-course-card strong,
.my-course-card small {
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.my-course-card small {
    color: var(--muted);
    font-weight: 800;
}

.my-course-card .course-progress-line {
    width: min(180px, 100%);
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(111, 53, 200, .12);
}

.my-course-card .course-progress-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.message-room {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.message-room__head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(111, 53, 200, .1);
}

.message-room__title {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.message-room__title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.message-bubbles {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
    background:
        radial-gradient(circle at 12% 8%, rgba(232, 90, 157, .08), transparent 28%),
        rgba(250, 247, 255, .76);
}

.message-bubble {
    display: grid;
    grid-template-columns: auto minmax(0, max-content);
    align-items: end;
    gap: 8px;
    max-width: min(680px, 88%);
}

.message-bubble--own {
    justify-self: end;
    grid-template-columns: minmax(0, max-content);
}

.message-bubble__body {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 20px 20px 20px 6px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 30px rgba(53, 19, 93, .08);
}

.message-bubble--own .message-bubble__body {
    border-radius: 20px 20px 6px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.message-bubble__body p {
    margin: 0;
    white-space: pre-wrap;
}

.message-bubble__body footer {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.message-bubble__body footer small {
    color: currentColor;
    opacity: .62;
    font-size: 10px;
}

.message-media-image {
    max-width: min(340px, 64vw);
    max-height: 320px;
    border-radius: 16px;
    object-fit: cover;
}

.message-bubble audio {
    max-width: min(320px, 64vw);
}

.message-expired {
    color: var(--muted);
    font-style: italic;
}

.message-lotus-mark,
.message-lotus-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("../icons/lotus.svg") center / contain no-repeat;
    mask: url("../icons/lotus.svg") center / contain no-repeat;
}

.message-lotus-mark {
    width: 46px;
    height: 46px;
    color: rgba(255, 255, 255, .95);
}

.message-lotus-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    color: currentColor;
    background: transparent;
    cursor: pointer;
    opacity: .72;
}

.message-lotus-btn.active {
    opacity: 1;
    color: #fff;
}

.message-bubble:not(.message-bubble--own) .message-lotus-btn.active {
    color: var(--violet);
}

.message-compose {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: end;
    padding: 12px;
    border-top: 1px solid rgba(111, 53, 200, .1);
    background: rgba(255, 255, 255, .96);
}

.message-compose .message-emoji-row {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    z-index: 5;
    max-width: min(320px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(53, 19, 93, .16);
}

.message-compose textarea {
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border-radius: 999px;
    padding: 12px 14px;
    background: rgba(111, 53, 200, .065);
}

.message-tool,
.message-send {
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .1);
    font-weight: 950;
    cursor: pointer;
}

.message-mic-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.message-tool.is-recording {
    color: #fff;
    background: #d43f77;
}

.message-send {
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.message-record-state {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.message-empty-room {
    place-self: center;
    max-width: 420px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 1020px) {
    body.is-authenticated {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mobile-app-nav {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100dvw;
        box-sizing: border-box;
        height: calc(76px + env(safe-area-inset-bottom));
        padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        border-radius: 24px 24px 0 0;
    }

    .mobile-app-nav a,
    .mobile-app-nav button {
        min-width: 0;
        flex: 1 1 0;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        border: 0;
        border-radius: 18px;
        background: transparent;
        color: var(--muted);
        font: inherit;
        font-weight: 900;
        cursor: pointer;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }

    .mobile-app-nav a.active,
    .mobile-app-nav a[aria-current="page"],
    .mobile-app-nav button.active,
    .mobile-app-nav button[aria-current="page"] {
        color: #fff;
        background: linear-gradient(135deg, var(--violet), var(--magenta));
        box-shadow: 0 12px 26px rgba(111, 53, 200, .24);
    }

    .mobile-app-nav a.active .app-nav-icon,
    .mobile-app-nav a[aria-current="page"] .app-nav-icon,
    .mobile-app-nav button.active .app-nav-icon,
    .mobile-app-nav button[aria-current="page"] .app-nav-icon {
        background: rgba(255, 255, 255, .2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    .app-more-modal .app-modal__dialog {
        width: 100%;
        max-height: calc(100svh - 20px);
        border-radius: 22px 22px 0 0;
    }

    .messages-app {
        width: 100%;
        min-height: calc(100svh - 126px);
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0 0 calc(76px + env(safe-area-inset-bottom));
    }

    .messages-sidebar {
        grid-template-rows: auto auto auto minmax(0, 1fr);
        border-radius: 0;
        border-inline: 0;
        padding: 6px 8px 10px;
        gap: 7px;
    }

    .messages-sidebar__head h1 {
        display: none;
    }

    .message-new-btn {
        width: 38px;
        height: 38px;
        margin-left: auto;
        border-radius: 14px;
    }

    .message-search {
        min-height: 38px;
        border-radius: 14px;
    }

    .message-contact-strip {
        gap: 8px;
    }

    .message-contact {
        flex-basis: 58px;
        min-height: 66px;
    }

    .message-contact .avatar {
        width: 44px;
        height: 44px;
    }

    .message-thread {
        padding: 7px 5px;
        gap: 9px;
    }

    .message-thread .avatar {
        width: 46px;
        height: 46px;
    }

    .message-thread-list {
        max-height: none;
    }

    .message-room {
        min-height: calc(100svh - 260px);
        border-radius: 22px;
    }

    .my-courses-page {
        width: calc(100% - 16px);
        margin-top: 8px;
        gap: 10px;
    }

    .my-course-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .my-course-row {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .message-compose {
        bottom: calc(76px + env(safe-area-inset-bottom));
        grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    }

    .message-compose .message-send {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .member-page {
        width: calc(100% - 18px);
        margin-bottom: calc(90px + env(safe-area-inset-bottom));
        gap: 12px;
    }

    .member-page__head {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
        border-radius: 22px;
    }

    .app-card-grid,
    .app-card-grid--compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .danger-panel,
    .friend-row--card {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-actions {
        justify-content: stretch;
    }

    .inline-actions .btn {
        flex: 1 1 auto;
    }

    .admin-benefits-grid,
    .admin-benefits-actions {
        grid-template-columns: 1fr;
    }

    .admin-member-checks {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .news-app-home {
        width: calc(100% - 18px) !important;
        margin-top: 8px;
        gap: 10px;
    }

    .story-courses-panel {
        padding: 0;
        border-radius: 0;
    }

    .smart-start-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .smart-start-card {
        min-height: 118px;
        border-radius: 20px;
    }

    .smart-start-card__copy {
        padding: 15px;
        padding-right: 98px;
    }

    .smart-start-card strong {
        font-size: 21px;
    }

    .story-section-head {
        display: grid;
        gap: 10px;
    }

    .story-section-head .btn {
        justify-self: start;
    }

    .story-section-head h1 {
        font-size: 30px;
    }

    .story-filter-row {
        display: grid;
        gap: 8px;
    }

    .story-course-rail {
        margin: 0 -9px;
        padding: 0 9px 4px;
    }

    .story-course-card {
        flex-basis: 122px;
        height: 166px;
        border-radius: 18px;
    }

    .story-chip {
        min-height: 23px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .story-chip--top {
        top: 8px;
        left: 8px;
    }

    .story-course-card__body {
        left: 9px;
        right: 9px;
        bottom: 9px;
        gap: 4px;
    }

    .story-course-card__body h2 {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .story-course-card__body span,
    .story-course-card__body small {
        font-size: 10px;
    }

    .feed-composer-trigger {
        min-height: 58px;
        padding: 9px 10px;
        border-radius: 20px;
    }

    .feed-composer-trigger > span:last-child {
        min-height: 38px;
        padding: 0 13px;
        font-size: 14px;
    }

    .studio-news-layout--single {
        width: 100%;
        margin-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .news-main {
        gap: 10px;
    }

    .feed-panel {
        padding: 12px;
        border-radius: 20px;
    }

    .studio-section-head--feed {
        margin-bottom: 8px;
    }

    .activity-row {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px 10px;
        align-items: start;
        padding: 12px;
        border-radius: 17px;
    }

    .activity-row > div {
        display: contents;
    }

    .activity-row .post-row-head {
        grid-column: 2;
        min-height: 42px;
        align-items: center;
    }

    .activity-row .activity-original,
    .activity-row .activity-translation,
    .activity-row .activity-translate-btn,
    .activity-row .post-media-grid,
    .activity-row .activity-row-actions,
    .activity-row .activity-reward {
        grid-column: 1 / -1;
    }

    .activity-row .activity-original {
        margin-top: 2px;
    }

    .activity-row .activity-reward {
        width: 100%;
    }

    .activity-row + .activity-row {
        margin-top: 9px;
    }

    .lotus-action {
        min-width: 44px;
        min-height: 32px;
        width: auto;
        align-self: flex-start;
        gap: 5px;
        padding: 5px 8px;
        border-radius: 999px;
    }

    .lotus-action__icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .lotus-action__count {
        min-width: .8em;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .mobile-app-nav {
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(72px + env(safe-area-inset-bottom));
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        border-radius: 21px 21px 0 0;
    }

    body.is-authenticated {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

html {
    scrollbar-gutter: stable;
}

body.is-authenticated {
    overflow-x: hidden;
}

/* Member app finish v69 */
.course-card--catalog {
    position: relative;
}

.course-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.course-card--catalog > img,
.course-card--catalog > div {
    position: relative;
    z-index: 0;
}

.course-card--catalog a:not(.course-card__hit),
.course-card--catalog button {
    position: relative;
    z-index: 2;
}

.course-card__pills,
.course-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.course-card__actions {
    margin-top: 12px;
}

.course-card__actions .card-cta {
    flex: 1 1 150px;
    margin-top: 0;
}

.course-invite-btn {
    white-space: nowrap;
}

.courses-app-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.courses-app-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 12%, rgba(232, 90, 157, .14), transparent 34%),
        rgba(255, 255, 255, .78);
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 20px 70px rgba(53, 19, 93, .08);
}

.courses-app-head h1,
.course-section-title h2,
.course-agenda__calendar h2 {
    margin: 0;
}

.courses-app-head p,
.course-section-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.course-type-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.course-type-tabs::-webkit-scrollbar {
    display: none;
}

.course-type-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 999px;
    border: 1px solid rgba(111, 53, 200, .16);
    background: rgba(255, 255, 255, .82);
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 850;
}

.course-type-tabs a.active {
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(111, 53, 200, .2);
}

.course-agenda,
.course-practice-panel,
.course-compact-panel {
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 18px 70px rgba(53, 19, 93, .08);
}

.course-agenda {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.course-agenda__calendar {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 12%, rgba(111, 53, 200, .12), transparent 34%),
        rgba(246, 239, 255, .72);
    border-right: 1px solid rgba(111, 53, 200, .1);
}

.course-agenda__calendar small {
    color: var(--muted);
    font-weight: 750;
}

.course-agenda__days {
    display: grid;
    gap: 8px;
}

.course-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.course-week-strip button {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    cursor: pointer;
}

@media (min-width: 721px) {
    .course-week-strip button {
        min-height: 74px;
    }

    .course-week-strip button small {
        display: block;
    }
}

.course-week-strip button small {
    display: none;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 721px) {
    .course-week-strip button small {
        display: block;
    }
}

.course-week-strip button.active,
.course-week-strip button.is-today,
.course-week-strip button:hover,
.course-week-strip button:focus {
    border-color: rgba(111, 53, 200, .36);
    background: rgba(111, 53, 200, .1);
}

.course-week-strip span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.course-week-strip strong {
    font-size: 12px;
}

.course-week-strip em {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--magenta);
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
}

.course-agenda__days button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(111, 53, 200, .13);
    background: rgba(255, 255, 255, .74);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font-weight: 850;
}

.course-agenda__days button.active {
    background: #fff;
    border-color: rgba(111, 53, 200, .26);
    box-shadow: 0 12px 30px rgba(53, 19, 93, .08);
}

.course-agenda__days button span {
    color: var(--muted);
    font-size: 12px;
}

.course-live-day-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 8px;
    padding: 0 2px;
}

.course-live-day-title strong {
    color: var(--violet-dark);
    font-size: 17px;
}

.course-live-day-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.course-agenda__list,
.course-practice-panel,
.course-compact-panel {
    padding: 20px;
}

.course-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.course-live-row {
    position: relative;
    display: grid;
    grid-template-columns: 76px 88px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 108px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(248, 244, 255, .8);
    border: 1px solid rgba(111, 53, 200, .1);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.course-live-row:hover,
.course-live-row:focus-within,
.course-live-row:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(53, 19, 93, .12);
}

.course-live-row:focus-visible {
    outline: 3px solid rgba(111, 53, 200, .24);
    outline-offset: 3px;
}

.course-live-row__hit,
.course-practice-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.course-live-row > *:not(.course-live-row__hit),
.course-practice-card > *:not(.course-practice-card__hit) {
    position: relative;
    z-index: 2;
}

.course-live-row__date {
    min-height: 66px;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(111, 53, 200, .08);
}

.course-live-row__date strong {
    color: var(--violet-dark);
    font-size: 14px;
}

.course-live-row__date span {
    font-size: 19px;
    font-weight: 950;
}

.course-live-row img {
    width: 88px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
}

.course-live-row h3,
.course-practice-card h3 {
    margin: 8px 0 4px;
    line-height: 1.08;
}

.course-live-row p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
}

.course-live-row .card-cta {
    min-width: 110px;
    margin: 0;
    text-align: center;
}

.course-live-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    cursor: default;
}

.course-live-row__actions .btn {
    min-height: 36px;
    padding-inline: 12px;
}

.course-agenda.course-agenda--week {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
}

.course-agenda--week .course-agenda__calendar,
.course-agenda--week .course-agenda__list > .course-section-title {
    display: none;
}

.course-agenda--week .course-agenda__list {
    padding: 0;
}

.course-live-agenda__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.course-live-agenda__head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
}

.course-live-agenda__head p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--muted);
}

.course-live-timezone {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .08);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.course-live-week-picker {
    display: grid;
    gap: 8px;
}

.course-live-week-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.course-live-week-nav {
    display: grid;
    grid-template-columns: 34px minmax(0, max-content) 34px;
    align-items: center;
    justify-content: start;
    gap: 8px;
}

.course-live-week-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: var(--violet-dark);
    cursor: pointer;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.course-live-week-arrow:hover,
.course-live-week-arrow:focus {
    box-shadow: 0 14px 34px rgba(53, 19, 93, .1);
    transform: translateY(-1px);
}

.course-live-week-arrow:disabled {
    cursor: not-allowed;
    opacity: .38;
    transform: none;
    box-shadow: none;
}

.course-live-week-label {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(246, 239, 255, .86);
    color: var(--violet-dark);
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.course-live-all-dates {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.course-live-all-dates.active,
.course-live-all-dates:hover,
.course-live-all-dates:focus {
    border-color: rgba(111, 53, 200, .3);
    background: rgba(111, 53, 200, .1);
    color: var(--violet-dark);
}

.course-live-all-dates span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.course-live-all-dates strong {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(111, 53, 200, .12);
    color: var(--violet-dark);
    font-size: 11px;
    font-weight: 950;
}

.course-live-week-panel[hidden],
.course-agenda-empty[hidden] {
    display: none;
}

.course-live-week-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 2px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.course-live-week-strip::-webkit-scrollbar {
    display: none;
}

.course-agenda-empty {
    margin-top: 10px;
    padding: 18px;
    border: 1px dashed rgba(111, 53, 200, .22);
    border-radius: 18px;
    background: rgba(246, 239, 255, .52);
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.course-live-week {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.course-live-week::-webkit-scrollbar {
    display: none;
}

.course-live-day-card {
    position: relative;
    flex: 0 0 auto;
    min-width: 70px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 999px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 90, 157, .1), transparent 42%),
        rgba(255, 255, 255, .86);
    color: var(--ink);
    text-align: center;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.course-live-day-card--all {
    flex-basis: 128px;
}

.course-live-day-card:hover,
.course-live-day-card:focus,
.course-live-day-card.active,
.course-live-day-card.is-today {
    border-color: rgba(111, 53, 200, .34);
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 90, 157, .18), transparent 46%),
        rgba(246, 239, 255, .98);
    box-shadow: 0 14px 34px rgba(53, 19, 93, .09);
    transform: translateY(-1px);
}

.course-live-day-card.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    box-shadow: 0 14px 34px rgba(111, 53, 200, .18);
}

.course-live-day-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.course-live-day-card strong {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.course-live-day-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.course-live-day-card em {
    position: static;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
}

.course-live-day-card.active em {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.course-live-groups {
    display: grid;
    gap: 14px;
}

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

.course-practice-card {
    position: relative;
    min-height: 310px;
    display: grid;
    grid-template-rows: 145px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 48px rgba(53, 19, 93, .08);
}

.course-practice-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-practice-card__body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
}

.course-practice-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-progress-line {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(31, 8, 55, .1);
}

.course-progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.course-compact-list {
    display: grid;
    gap: 8px;
}

.course-compact-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 9px;
    border: 1px solid rgba(111, 53, 200, .09);
    border-radius: 18px;
    background: rgba(248, 244, 255, .62);
    color: inherit;
    text-decoration: none;
}

.course-compact-row:hover,
.course-compact-row:focus {
    background: #fff;
}

.course-compact-row img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.course-compact-row span {
    min-width: 0;
}

.course-compact-row strong,
.course-compact-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-compact-row small {
    color: var(--muted);
    font-weight: 750;
}

.pill-access--free,
.pill-access--unlocked {
    background: rgba(71, 98, 85, .12);
    color: var(--sage-dark);
}

.pill-access--credit {
    background: rgba(232, 90, 157, .14);
    color: var(--magenta);
}

.pill-access--locked {
    background: rgba(31, 8, 55, .08);
    color: var(--muted);
}

.pill-access--closed {
    background: rgba(143, 52, 40, .1);
    color: #8f3428;
}

.course-modal-shell[hidden] {
    display: none;
}

.course-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: stretch;
}

.course-modal-shell__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 8, 55, .46);
    backdrop-filter: blur(10px);
}

.course-modal-shell__dialog {
    position: relative;
    width: min(1180px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    margin: auto;
    overflow: auto;
    isolation: isolate;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 247, 253, .94));
    box-shadow: 0 30px 90px rgba(31, 8, 55, .28);
}

.course-modal-shell__close {
    position: sticky;
    top: 10px;
    z-index: 80;
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    float: none;
    margin: 12px 12px -54px auto;
    border: 1px solid rgba(111, 53, 200, .12);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(53, 19, 93, .16);
    backdrop-filter: blur(14px);
}

.course-modal-shell__close-icon {
    display: none;
    line-height: 1;
    font-size: 20px;
    font-weight: 950;
}

.course-modal-shell__close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.course-modal-shell__content {
    padding: 18px;
}

.course-layout--modal {
    width: 100%;
    margin: 0;
}

.activity-load-more {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 16px;
    background: rgba(111, 53, 200, .07);
    color: var(--violet-dark);
    font-weight: 900;
    cursor: pointer;
}

.activity-load-more:disabled {
    opacity: .65;
    cursor: wait;
}

.course-invite-modal .mini-checks {
    max-height: min(360px, 48svh);
    overflow: auto;
}

.course-invite-search {
    width: 100%;
}

.course-invite-list .check-row {
    display: grid;
    grid-template-columns: auto 34px minmax(0, 1fr);
    align-items: center;
}

.member-welcome {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(14px, 4vw, 28px);
    background:
        radial-gradient(circle at 18% 15%, rgba(232, 90, 157, .18), transparent 34%),
        linear-gradient(135deg, #fff, #f7efff);
}

.route-member-welcome .app-member-header,
.route-member-welcome .mobile-app-nav,
.route-member-welcome .app-more-drawer {
    display: none;
}

.route-member-welcome #app-main {
    padding: 0;
}

.member-welcome__media,
.member-welcome__content {
    width: min(960px, 100%);
}

.member-welcome__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: .22;
}

.member-welcome__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.member-welcome__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    display: grid;
    gap: 16px;
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid rgba(111, 53, 200, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 28px 90px rgba(53, 19, 93, .16);
    backdrop-filter: blur(18px);
}

.member-welcome__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(111, 53, 200, .08);
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.member-welcome h1 {
    margin: 0;
    padding-right: 34px;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1;
}

.member-welcome__content > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 3vw, 21px);
    line-height: 1.45;
}

.member-welcome__gift {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(111, 53, 200, .11), rgba(232, 90, 157, .11));
}

.member-welcome__gift strong {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: #fff;
    font-size: 28px;
}

.member-welcome__gift span {
    font-weight: 900;
    color: var(--ink);
}

.member-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.member-welcome__onboarding {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid rgba(111, 53, 200, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.member-welcome__onboarding fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.member-welcome__onboarding legend {
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 900;
}

.mini-checks--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.app-more-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 89;
    width: 100dvw;
    max-height: min(58svh, 420px);
    padding: 12px max(12px, env(safe-area-inset-left)) 14px max(12px, env(safe-area-inset-right));
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(111, 53, 200, .12);
    box-shadow: 0 -20px 60px rgba(31, 8, 55, .2);
    backdrop-filter: blur(18px);
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}

.app-more-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.message-groups-head {
    display: grid;
    gap: 2px;
    padding: 2px 4px 0;
}

.message-groups-head h2 {
    margin: 0;
    font-size: 16px;
}

.message-groups-head small {
    color: var(--muted);
    font-weight: 700;
}

.message-room__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--violet-dark);
    background: rgba(111, 53, 200, .08);
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.message-room__close:hover,
.message-room__close:focus {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.message-room__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.message-room__title[href] {
    color: inherit;
}

@media (max-width: 760px) {
    .courses-app-shell {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 12px;
        padding: 0 6px;
        overflow: hidden;
    }

    .courses-app-head {
        display: grid;
        padding: 16px;
        border-radius: 22px;
    }

    .catalog-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .catalog-actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .course-agenda {
        display: grid;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 22px;
        overflow: hidden;
    }

    .course-agenda.course-agenda--week {
        gap: 10px;
        padding: 12px;
    }

    .course-live-agenda__head {
        display: flex;
        gap: 8px;
    }

    .course-live-timezone {
        width: fit-content;
        min-height: 30px;
        font-size: 11px;
    }

    .course-live-week-picker {
        min-width: 0;
        gap: 8px;
    }

    .course-live-week-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .course-live-week-nav {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .course-live-week-arrow {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .course-live-week-label {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .course-live-all-dates {
        width: fit-content;
        justify-content: space-between;
        min-height: 32px;
    }

    .course-live-week-strip {
        max-width: 100%;
        margin-inline: -2px;
        padding-bottom: 6px;
        overscroll-behavior-x: contain;
    }

    .course-live-week {
        gap: 8px;
        margin-inline: -2px;
    }

    .course-live-day-card {
        flex-basis: auto;
        min-width: 64px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 999px;
    }

    .course-live-day-card--all {
        flex-basis: 112px;
    }

    .course-live-day-card strong {
        font-size: 12px;
    }

    .course-agenda__calendar {
        border-right: 0;
        border-bottom: 1px solid rgba(111, 53, 200, .1);
        padding: 14px;
    }

    .course-week-strip {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .course-week-strip button {
        min-height: 48px;
        grid-template-columns: 42px 1fr auto;
        justify-items: start;
        text-align: left;
        padding: 8px 12px;
    }

    .course-week-strip button small {
        display: block;
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 12px;
    }

    .course-week-strip button > span,
    .course-week-strip button > strong {
        grid-column: 1;
        justify-self: center;
    }

    .course-week-strip em {
        position: static;
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .course-agenda__days {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .course-agenda__days::-webkit-scrollbar {
        display: none;
    }

    .course-agenda__days button {
        min-width: 118px;
    }

    .course-agenda__list,
    .course-practice-panel,
    .course-compact-panel {
        padding: 14px;
        border-radius: 22px;
    }

    .course-live-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .course-live-row img {
        display: none;
    }

    .course-live-row__body {
        min-width: 0;
    }

    .course-live-row .course-card__pills {
        gap: 6px;
    }

    .course-live-row .pill {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .course-live-row h3,
    .course-live-row p,
    .course-live-row .meta {
        min-width: 0;
    }

    .course-live-row__actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
        min-width: 0;
    }

    .course-live-row__actions .btn,
    .course-live-row .card-cta {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    .course-live-row .card-cta {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .course-live-day-title {
        display: grid;
        align-items: start;
        gap: 2px;
    }

    .course-live-row__date {
        min-height: 64px;
        border-radius: 16px;
    }

    .course-live-row__date span {
        font-size: 17px;
    }

    .course-practice-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 2px 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .course-practice-grid::-webkit-scrollbar {
        display: none;
    }

    .course-practice-card {
        flex: 0 0 72%;
        min-height: 286px;
        scroll-snap-align: start;
    }

    .course-modal-shell__dialog {
        width: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .course-modal-shell__close {
        top: calc(8px + env(safe-area-inset-top));
        min-width: 42px;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        margin: calc(8px + env(safe-area-inset-top)) 10px -52px auto;
        border-radius: 999px;
        font-size: 0;
    }

    .course-modal-shell__close-icon {
        display: none;
    }

    .course-modal-shell__close-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .course-modal-shell__content {
        padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
    }

    .course-compact-row {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .course-compact-row .pill {
        grid-column: 2;
        width: fit-content;
    }

    .messages-app--thread-open .messages-sidebar {
        display: none;
    }

    .messages-app--list .message-room {
        display: none;
    }

    .messages-app--thread-open {
        width: 100%;
        min-height: calc(100svh - 76px);
        margin: 0 0 calc(76px + env(safe-area-inset-bottom));
    }

    .messages-app--thread-open .message-room {
        border-radius: 0;
        border-inline: 0;
        min-height: calc(100svh - 76px);
    }

    .message-room__close {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .app-more-drawer .app-more-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .app-more-drawer .app-more-grid a {
        min-width: 0;
        min-height: 78px;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 7px;
        padding: 10px 6px;
        overflow: hidden;
    }

    .app-more-drawer .app-more-icon {
        width: 38px;
        height: 38px;
    }

    .app-more-drawer .app-more-grid strong {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.08;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .courses-app-shell {
        padding-inline: 4px;
    }

    .course-agenda.course-agenda--week {
        padding: 10px;
        border-radius: 20px;
    }

    .course-live-agenda__head h2 {
        font-size: 24px;
    }

    .course-live-week-toolbar {
        gap: 7px;
    }

    .course-live-week-nav {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 6px;
    }

    .course-live-week-arrow {
        width: 30px;
        height: 30px;
    }

    .course-live-week-label {
        min-height: 30px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .course-live-all-dates {
        width: 100%;
        min-height: 31px;
        padding-inline: 10px;
    }

    .course-live-week-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-inline: 0;
        overflow: visible;
        padding: 0;
    }

    .course-live-day-card {
        min-width: 0;
        width: 100%;
        min-height: 34px;
        gap: 4px;
        padding-inline: 6px;
    }

    .course-live-day-card strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
    }

    .course-live-day-card em {
        min-width: 17px;
        height: 17px;
        font-size: 9px;
    }

    .course-agenda__list,
    .course-practice-panel,
    .course-compact-panel {
        padding: 12px;
    }

    .course-live-day-title {
        margin-top: 4px;
    }

    .course-live-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
        border-radius: 17px;
    }

    .course-live-row__date {
        min-height: 58px;
        padding: 7px 5px;
    }

    .course-live-row__date strong {
        font-size: 12px;
    }

    .course-live-row__date span {
        font-size: 18px;
    }

    .course-live-row h3 {
        margin-top: 6px;
        font-size: 18px;
    }

    .course-live-row p {
        -webkit-line-clamp: 1;
    }

    .course-live-row .meta {
        gap: 6px;
        font-size: 12px;
    }

    .course-live-row__actions {
        gap: 6px;
    }

    .course-card__actions {
        display: grid;
    }

    .member-welcome {
        align-items: center;
        padding: 18px;
    }

    .member-welcome__content {
        gap: 13px;
        padding: 24px 20px 20px;
        border-radius: 24px;
    }

    .member-welcome h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .member-welcome__content > p:not(.eyebrow) {
        font-size: 16px;
    }

    .member-welcome__gift {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 12px;
    }

    .member-welcome__actions .btn {
        width: 100%;
    }

    .dtp-fieldset {
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
    }

    .dtp-control {
        width: 100%;
        min-width: 0;
    }

    .dtp-control input {
        width: 100%;
        min-width: 0;
    }

    .dtp-open-btn {
        flex: 0 0 46px;
    }

    .quick-course-form .dtp-fieldset + label,
    .builder-form .dtp-fieldset + label {
        grid-column: 1 / -1;
    }

    .app-modal__dialog .course-form-actions--sticky {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 10px -10px -10px;
        padding: 7px;
        border-radius: 18px 18px 10px 10px;
    }

    .app-modal__dialog .course-form-actions--sticky .btn {
        min-height: 44px;
        font-size: 12px;
    }
}

.teacher-advanced-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(111, 53, 200, .055);
    border: 1px dashed rgba(111, 53, 200, .22);
}

.teacher-advanced-strip div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.teacher-advanced-strip strong {
    color: var(--ink);
}

.teacher-advanced-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.teacher-message-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    text-decoration: none;
}

.teacher-message-card span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.teacher-message-card small,
.teacher-message-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

@media (max-width: 1020px) {
    .mobile-app-nav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        width: 100dvw;
        max-width: 100dvw;
        margin: 0;
        transform: translateZ(0);
    }

    .teacher-advanced-strip {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .teacher-tabs {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 6px;
        width: 100%;
        max-width: 100%;
    }

    .teacher-tabs button,
    .teacher-tabs a {
        flex: 0 0 auto;
        min-width: 70px;
        max-width: 112px;
        padding: 0 8px;
        font-size: 12px;
    }

    .teacher-tabs button > span:last-child,
    .teacher-tabs a > span:last-child {
        max-width: 70px;
    }
}

/* Desktop sidebar cascade lock v81: keep this after the generic app shell rules. */
@media (min-width: 1021px) {
    body.is-authenticated {
        display: grid;
        grid-template-columns: var(--desktop-sidebar-width, 252px) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        align-items: start;
        padding-left: 0;
    }

    body.is-authenticated.route-member-welcome {
        display: block;
        padding-left: 0;
    }

    body.is-authenticated .app-member-header {
        position: relative;
        top: auto;
        left: 0;
        grid-column: 1;
        grid-row: 1 / span 999;
        align-self: start;
        z-index: 90;
        width: var(--desktop-sidebar-width, 252px);
        height: auto;
        min-height: 100dvh;
        max-height: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding: 18px 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 245, 255, .94));
        border-right: 1px solid rgba(111, 53, 200, .12);
        border-bottom: 0;
        box-shadow: 18px 0 42px rgba(42, 18, 75, .08);
    }

    body.is-authenticated .app-member-identity {
        order: 1;
        width: 100%;
    }

    body.is-authenticated .app-member-actions {
        display: none;
    }

    body.is-authenticated .desktop-app-topbar {
        position: sticky;
        top: 0;
        grid-column: 2;
        grid-row: 1;
        z-index: 110;
        width: 100%;
        box-sizing: border-box;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 0 0 18px;
        padding: 10px clamp(18px, 2vw, 32px);
        border: 0;
        border-bottom: 1px solid rgba(111, 53, 200, .12);
        border-radius: 0;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 14px 38px rgba(53, 19, 93, .07);
        backdrop-filter: blur(18px);
    }

    body.is-authenticated.route-member-welcome .desktop-app-topbar {
        display: none;
    }

    .desktop-app-topbar__title,
    .desktop-app-topbar__actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .desktop-app-topbar__title {
        min-width: 0;
        gap: 14px;
    }

    .desktop-app-topbar__logo {
        width: clamp(142px, 11vw, 190px);
        height: auto;
        max-height: 34px;
        object-fit: contain;
        object-position: left center;
        filter: drop-shadow(0 8px 16px rgba(53, 19, 93, .08));
    }

    .desktop-app-topbar__title strong {
        max-width: min(42vw, 620px);
        padding-left: 14px;
        border-left: 1px solid rgba(111, 53, 200, .14);
        overflow: hidden;
        color: var(--ink);
        font-size: 22px;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-app-topbar__actions {
        position: relative;
    }

    .desktop-app-topbar .app-header-icon {
        width: 44px;
        min-height: 44px;
        border-radius: 16px;
    }

    .desktop-app-topbar .app-header-icon--messages svg {
        width: 26px;
        height: 26px;
    }

    body.is-authenticated .app-sidebar-profile-link {
        display: none;
    }

    .desktop-app-topbar .app-header-icon--logout {
        color: #8f3428;
        background: rgba(143, 52, 40, .08);
    }

    body.is-authenticated .app-member-nav {
        order: 3;
        flex: 0 0 auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow: visible;
        overflow-x: hidden;
        padding: 2px 0 0;
    }

    body.is-authenticated #app-main {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
    }

    body.is-authenticated .app-sidebar-bottom {
        margin-top: 12px;
    }

    body.is-authenticated .app-member-nav a {
        width: 100%;
        justify-content: flex-start;
    }

    body.is-authenticated .notification-popover {
        top: calc(100% + 8px);
        right: 0;
        left: auto;
    }
}

.desktop-app-topbar {
    display: none;
}

@media (min-width: 1021px) {
    body.is-authenticated .desktop-app-topbar {
        display: flex;
    }
}

.link-button {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--violet-dark);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.link-button:hover,
.link-button:focus {
    color: var(--magenta);
    text-decoration: underline;
}

.auth-help-link {
    justify-self: center;
    margin-top: -4px;
    font-size: 13px;
}

.course-edit-shortcut {
    width: 100%;
    margin-bottom: 12px;
}

.course-description {
    line-height: 1.65;
}

.profile-modal__close,
.post-modal__close,
.wallet-modal__close,
.course-modal-shell__close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
}

.course-modal-shell__close {
    display: inline-grid;
    place-items: center;
}

.course-modal-shell__close-icon,
.course-modal-shell__close-label {
    display: none;
}

@media (max-width: 760px) {
    .course-modal-shell__close {
        top: calc(10px + env(safe-area-inset-top));
        margin: calc(10px + env(safe-area-inset-top)) 10px -52px auto;
    }

    .activity-row-actions {
        align-items: center;
        gap: 8px;
    }
}

.course-unlock-box--side {
    display: none;
}

.course-unlock-box--side .course-action-row,
.course-unlock-box--main .course-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.message-delete-btn {
    border: 0;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, .18);
    color: currentColor;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    opacity: .72;
}

.message-delete-btn:hover,
.message-delete-btn:focus {
    opacity: 1;
    background: rgba(255, 255, 255, .28);
}

.message-bubble:not(.message-bubble--own) .message-delete-btn {
    background: rgba(111, 53, 200, .08);
}

.message-bubble--deleted .message-bubble__body {
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    box-shadow: none;
}

.message-deleted {
    font-size: 13px;
    font-style: italic;
}

.mobile-app-nav a.active .app-nav-icon img,
.mobile-app-nav a[aria-current="page"] .app-nav-icon img,
.mobile-app-nav button.active .app-nav-icon img,
.mobile-app-nav button[aria-current="page"] .app-nav-icon img {
    filter: brightness(0) invert(1);
}

@media (min-width: 900px) {
    .course-unlock-box--main {
        display: none;
    }

    .course-unlock-box--side {
        display: block;
        margin-top: 0;
        margin-bottom: 16px;
    }

    .course-unlock-box--side .course-action-row .btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}
