@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f1eb;
    --bg-soft: #fbf7f0;
    --surface: rgba(252, 248, 241, 0.9);
    --surface-strong: #fdf8f0;
    --text: #11161a;
    --muted: #5c6972;
    --line: rgba(17, 22, 26, 0.11);
    --brand: #163847;
    --brand-dark: #0e2230;
    --accent: #b89a5e;
    --danger: #9f3b2b;
    --warning: #8b631a;
    --success: #18613a;
    --shadow: 0 28px 80px rgba(17, 22, 26, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(184, 154, 94, 0.2), transparent 30%),
        radial-gradient(circle at 14% 12%, rgba(22, 56, 71, 0.12), transparent 24%),
        linear-gradient(180deg, #fbf8f1 0%, #efe9df 100%);
}

body.modal-open {
    overflow: hidden;
}

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

iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 24px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.utility-bar {
    border-bottom: 1px solid rgba(184, 154, 94, 0.14);
    background: linear-gradient(90deg, #0b1a25, #163847 62%, #1d4656 100%);
    color: rgba(255, 255, 255, 0.86);
}

.utility-inner,
.utility-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.utility-inner {
    justify-content: space-between;
    min-height: 40px;
    font-size: 0.77rem;
    letter-spacing: 0.03em;
}

.utility-meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    vertical-align: middle;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(14, 34, 48, 0.86);
    border-bottom: 1px solid rgba(184, 154, 94, 0.12);
}

.topbar-inner,
.session-banner-inner,
.cta-strip-inner,
.hero-actions,
.tab-row,
.demo-credentials,
.admin-header,
.section-head,
.video-card-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar-inner,
.session-banner-inner,
.cta-strip-inner,
.admin-header,
.section-head {
    justify-content: space-between;
}

.topbar-inner {
    min-height: 80px;
}

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

.brand > span:last-child {
    display: grid;
    gap: 4px;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.1;
}

.brand small {
    color: rgba(247, 243, 234, 0.7);
}

.brand-mark,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
}

.brand-image-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.brand-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 20%),
        linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 0.96rem;
}

.nav a {
    color: rgba(247, 243, 234, 0.7);
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav-cta {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(184, 154, 94, 0.18);
    color: #fdf8f0 !important;
    border: 1px solid rgba(184, 154, 94, 0.22);
    font-weight: 800;
}

.session-banner {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.session-banner-inner {
    min-height: 52px;
}

.pill {
    padding: 8px 12px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    background: rgba(15, 108, 116, 0.1);
    color: var(--brand-dark);
}

.flash-stack {
    position: fixed;
    top: 96px;
    right: 16px;
    z-index: 70;
    width: min(420px, calc(100% - 32px));
    display: grid;
    gap: 12px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-stack.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 42px rgba(11, 39, 45, 0.14);
}

.flash-success {
    border-color: rgba(24, 97, 58, 0.22);
    color: var(--success);
}

.flash-error {
    border-color: rgba(159, 59, 43, 0.22);
    color: var(--danger);
}

.flash-warning {
    border-color: rgba(139, 99, 26, 0.22);
    color: var(--warning);
}

.hero,
.content-section,
.metrics {
    padding: 52px 0;
}

.hero-grid,
.two-column,
.auth-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.12fr 0.88fr;
}

.two-column {
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(184, 154, 94, 0.12);
    border: 1px solid rgba(184, 154, 94, 0.18);
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: "Fraunces", "Georgia", serif;
    letter-spacing: -0.03em;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.02;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
}

.lead,
.premium-panel p,
.program-card p,
.info-card p,
.news-card p,
.auth-card p,
.ribbon-card p,
.resource-lead p,
.metrics-copy p,
.hero-stage-card p,
.section-note {
    color: var(--muted);
    line-height: 1.6;
}

.premium-panel,
.metric-card,
.video-card,
.info-card,
.news-card,
.auth-card,
.panel-card,
.ribbon-card,
.resource-card,
.hero-stage-main,
.hero-stage-card,
.course-panel {
    border: 1px solid rgba(184, 154, 94, 0.14);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.premium-panel,
.auth-card,
.panel-card,
.hero-stage-main,
.hero-stage-card,
.course-panel {
    border-radius: 30px;
}

.hero {
    padding-top: 68px;
}

.hero-cinematic {
    position: relative;
    padding-top: 96px;
    padding-bottom: 58px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #d8d3c8;
    overflow: hidden;
}

.hero-cinematic::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 34, 48, 0.28), rgba(14, 34, 48, 0.12)),
        radial-gradient(circle at center, rgba(251, 247, 240, 0.12), transparent 42%);
}

.hero-stack {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    align-content: center;
    gap: 18px;
}

.hero-card-shell {
    display: flex;
    justify-content: center;
}

.hero-card-centered {
    width: min(700px, 100%);
    padding: 28px 30px;
    border-radius: 32px;
    border: 1px solid rgba(184, 154, 94, 0.18);
    background: linear-gradient(180deg, rgba(251, 247, 240, 0.6) 0%, rgba(251, 247, 240, 0.52) 100%);
    box-shadow: 0 28px 80px rgba(17, 22, 26, 0.18);
    backdrop-filter: blur(16px);
    text-align: center;
    color: #142734;
    animation: reveal-up 0.85s ease 0.08s both;
}

.hero-actions-centered {
    justify-content: center;
}

.hero-brand-logo {
    display: block;
    width: clamp(240px, 30vw, 340px);
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.hero-manifesto {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.hero-manifesto-block {
    padding: 14px 15px;
    border-radius: 20px;
    background: rgba(251, 247, 240, 0.86);
    border: 1px solid rgba(184, 154, 94, 0.12);
}

.hero-manifesto-block p {
    margin-bottom: 0;
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

.hero-inline-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-inline-metrics span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(184, 154, 94, 0.14);
    background: rgba(251, 247, 240, 0.48);
    color: #142734;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy {
    padding-right: 20px;
    animation: reveal-up 0.7s ease both;
}

.hero-stage {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.15fr 0.85fr;
    animation: reveal-up 0.8s ease 0.08s both;
}

.hero-stage-main {
    min-height: 100%;
    padding: 28px;
    background:
        linear-gradient(155deg, rgba(14, 34, 48, 0.98), rgba(22, 56, 71, 0.94)),
        linear-gradient(180deg, rgba(184, 154, 94, 0.08), transparent);
    color: #f4faf9;
}

.hero-stage-main strong,
.hero-stage-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.hero-stage-main p,
.hero-stage-card small,
.hero-stage-card p {
    color: rgba(240, 248, 247, 0.8);
}

.hero-stage-main .eyebrow,
.hero-stage-card.media .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbfa;
}

.hero-stage-side {
    display: grid;
    gap: 18px;
}

.hero-stage-card {
    padding: 22px;
    border-radius: 24px;
    animation: reveal-up 0.9s ease both;
}

.hero-stage-card.accent {
    background:
        linear-gradient(145deg, rgba(184, 154, 94, 0.24), rgba(253, 248, 240, 0.88));
}

.hero-stage-card.accent span {
    display: block;
    font-family: "Fraunces", "Georgia", serif;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--brand-dark);
}

.hero-stage-card.accent small {
    color: var(--muted);
}

.mock-media {
    position: relative;
    min-height: 132px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(14, 34, 48, 0.96), rgba(22, 56, 71, 0.88)),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 16%);
    overflow: hidden;
    animation: cinematic-float 9s ease-in-out infinite;
}

.hero-media {
    display: block;
    width: 100%;
    min-height: 188px;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(14, 34, 48, 0.96), rgba(22, 56, 71, 0.88));
}

.hero-media-poster {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-stage-card.cinematic {
    overflow: hidden;
    grid-row: span 2;
}

.mock-media::before,
.mock-media::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mock-media::before {
    width: 180px;
    height: 180px;
    right: -48px;
    top: -46px;
}

.mock-media::after {
    width: 112px;
    height: 112px;
    left: -28px;
    bottom: -28px;
}

.play-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    box-shadow: 0 14px 34px rgba(14, 34, 48, 0.26);
}

.btn-secondary,
.btn-google {
    background: rgba(253, 248, 240, 0.72);
    color: var(--brand-dark);
    border-color: rgba(184, 154, 94, 0.18);
}

.btn-google {
    width: 100%;
}

.hero-actions {
    margin: 28px 0 18px;
    flex-wrap: wrap;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.soft-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(251, 247, 240, 0.8);
    border: 1px solid rgba(184, 154, 94, 0.16);
    color: #142734;
    font-size: 0.84rem;
    font-weight: 700;
}

.intro-ribbon {
    padding: 0 0 30px;
}

.intro-ribbon-inner,
.metrics-shell,
.resources-layout,
.news-layout {
    display: grid;
    gap: 20px;
}

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

.ribbon-card {
    padding: 24px;
    border-radius: 24px;
    animation: reveal-up 0.85s ease both;
}

.ribbon-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.metrics-shell {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.metrics-copy {
    padding-top: 12px;
}

.hero-contact {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.metric-card,
.info-card,
.news-card,
.resource-card {
    border-radius: 24px;
    padding: 24px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.metric-card:hover,
.info-card:hover,
.news-card:hover,
.resource-card:hover,
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 82px rgba(11, 39, 45, 0.14);
}

.metric-card strong,
.info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    color: var(--brand-dark);
}

.metric-card span,
.info-card span,
.news-card small {
    color: var(--muted);
}

.soft {
    background: rgba(255, 250, 244, 0.52);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.course-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.course-meta-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.course-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.course-feature-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.08);
    border: 1px solid rgba(16, 34, 40, 0.08);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 34, 40, 0.08);
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.chapter-nav-shell {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 70px rgba(11, 39, 45, 0.08);
}

.chapter-nav-lead {
    margin-bottom: 18px;
}

.chapter-nav-lead strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Fraunces", "Georgia", serif;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    line-height: 1.18;
}

.chapter-nav-lead p,
.chapter-link-card p,
.program-overview-copy p,
.library-empty-state p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.chapter-nav-grid,
.program-overview-metrics,
.specialists-rail {
    display: grid;
    gap: 18px;
}

.chapter-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chapter-link-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    min-height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 56px rgba(11, 39, 45, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.chapter-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(11, 39, 45, 0.12);
}

.chapter-link-topline {
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapter-link-card strong {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 1.15rem;
    line-height: 1.2;
}

.chapter-link-meta,
.chapter-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-link-meta span,
.chapter-topic-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.08);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.chapter-topic-list {
    margin-top: 12px;
}

.library-toolbar-shell {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    align-items: start;
}

.program-overview {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
    align-items: start;
}

.program-overview-copy {
    padding-right: 20px;
}

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

.overview-stat-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 56px rgba(11, 39, 45, 0.08);
}

.overview-stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 2rem;
}

.overview-stat-card span {
    color: var(--muted);
}

.library-toolbar-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.library-toolbar-controls {
    display: grid;
    gap: 16px;
}

.library-search {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.library-search span {
    color: var(--brand-dark);
}

.library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chapter-pill {
    justify-content: center;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.chapter-pill.is-active {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #ffffff;
}

.chapter-section + .chapter-section {
    padding-top: 0;
}

.chapter-accordion {
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(11, 39, 45, 0.08);
    overflow: hidden;
}

.chapter-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    cursor: pointer;
    list-style: none;
}

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

.chapter-summary-copy strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Fraunces", "Georgia", serif;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    line-height: 1.18;
}

.chapter-summary-copy p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.chapter-summary-meta {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: start;
    flex-shrink: 0;
}

.chapter-summary-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.08);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.chapter-summary-toggle {
    background: rgba(200, 155, 76, 0.16) !important;
}

.chapter-lessons-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 24px 24px;
}

.lesson-card-premium {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 64px rgba(11, 39, 45, 0.08);
}

.lesson-thumb {
    display: block;
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 63, 71, 0.9), rgba(14, 103, 113, 0.8));
}

.lesson-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lesson-thumb-fallback {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-card-topline,
.lesson-card-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-card-topline {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lesson-card-premium strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.lesson-card-premium p {
    min-height: 72px;
    color: var(--muted);
    line-height: 1.6;
}

.lesson-topic-pill,
.lesson-card-metadata span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.lesson-topic-pill {
    background: rgba(200, 155, 76, 0.16);
    color: var(--brand-dark);
}

.lesson-card-metadata {
    margin-bottom: 16px;
}

.lesson-card-metadata span {
    background: rgba(14, 103, 113, 0.08);
    color: var(--brand-dark);
}

.lesson-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-shell {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
    align-items: start;
}

.suggestion-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.suggestion-topic-list {
    margin-top: 16px;
}

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

.suggestion-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(19, 33, 38, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

.course-panel {
    padding: 28px;
}

.program-grid,
.lesson-stack {
    display: grid;
    gap: 14px;
}

.program-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.program-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.04rem;
    line-height: 1.35;
}

.program-step {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 34, 40, 0.08);
}

.lesson-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.lesson-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.video-card {
    padding: 18px;
    border-radius: 30px;
    align-self: start;
}

.video-card.editorial iframe {
    min-height: 390px;
}

.video-card-head {
    margin-bottom: 14px;
    justify-content: space-between;
}

.video-card-head strong {
    font-size: 1rem;
}

.resources-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.why-strip {
    padding-top: 12px;
}

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

.why-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 54px rgba(11, 39, 45, 0.08);
    backdrop-filter: blur(10px);
}

.why-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.06rem;
    line-height: 1.3;
}

.why-card p {
    color: var(--muted);
    line-height: 1.6;
}

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

.resource-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 120px;
}

.resource-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

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

.resource-mark {
    width: 18px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}

.section-head {
    margin-bottom: 18px;
    align-items: end;
}

.section-note {
    max-width: 440px;
    margin: 0;
}

.inline-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.specialist-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.specialist-copy span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.specialist-copy p {
    margin: 0;
}

.specialists-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
}

.specialists-rail::-webkit-scrollbar {
    height: 10px;
}

.specialists-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.22);
}

.specialist-card {
    scroll-snap-align: start;
}

.specialist-photo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(16, 34, 40, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.avatar-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(10, 63, 71, 0.94), rgba(14, 103, 113, 0.88));
    color: #ffffff;
    font-family: "Fraunces", "Georgia", serif;
    font-size: 1.45rem;
}

.news-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
}

.news-card-lead {
    min-height: 320px;
    padding: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(248, 251, 250, 0.95)),
        radial-gradient(circle at top right, rgba(200, 155, 76, 0.16), transparent 30%);
}

.news-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 1.06rem;
    line-height: 1.35;
}

.news-stack {
    display: grid;
    gap: 18px;
}

.cta-strip {
    padding-bottom: 72px;
}

.cta-strip-inner {
    gap: 24px;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(200, 155, 76, 0.16), rgba(14, 103, 113, 0.12));
    border: 1px solid rgba(200, 155, 76, 0.22);
}

.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
}

.library-empty-state {
    text-align: center;
}

.library-empty-state strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.announcement-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 32, 0.58);
    backdrop-filter: blur(8px);
}

.announcement-modal {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    padding: 30px 30px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 90px rgba(7, 25, 32, 0.22);
}

.announcement-modal h2 {
    margin-bottom: 12px;
}

.announcement-modal p {
    color: var(--muted);
    line-height: 1.7;
}

.announcement-actions {
    margin-top: 18px;
}

.auth-inline-modal[hidden] {
    display: none;
}

.auth-inline-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-inline-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 30, 0.56);
    backdrop-filter: blur(8px);
}

.auth-inline-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 90px rgba(7, 25, 32, 0.24);
    overflow-y: auto;
}

.auth-inline-head,
.auth-inline-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-inline-head {
    margin-bottom: 16px;
}

.auth-inline-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.auth-inline-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 34, 40, 0.08);
    color: var(--brand-dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.auth-inline-tabs {
    justify-content: flex-start;
    margin-bottom: 18px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(14, 103, 113, 0.08);
    border: 1px solid rgba(14, 103, 113, 0.12);
}

.auth-inline-tabs .tab {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-inline-tabs .tab:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.auth-inline-tabs .tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: 0 12px 28px rgba(15, 108, 116, 0.24);
}

.auth-inline-register-fields[hidden] {
    display: none;
}

.auth-inline-note {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-inline-helpers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
}

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

.full-span {
    grid-column: 1 / -1;
}

.consent-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(14, 103, 113, 0.06);
    border: 1px solid rgba(14, 103, 113, 0.1);
}

.consent-check input[type="checkbox"] {
    margin-top: 4px;
}

.consent-check span {
    color: var(--muted);
    line-height: 1.5;
}

.footer {
    padding: 30px 0 50px;
    border-top: 1px solid var(--line);
}

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

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

.auth-shell,
.admin-shell {
    padding-top: 42px;
}

.student-shell {
    padding-top: 42px;
}

.student-hero {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    padding: clamp(28px, 4vw, 42px);
    background:
        radial-gradient(circle at top right, rgba(194, 229, 225, 0.16), transparent 32%),
        linear-gradient(165deg, rgba(11, 47, 55, 0.98), rgba(19, 73, 85, 0.95) 58%, rgba(31, 102, 114, 0.92));
    color: rgba(243, 250, 249, 0.94);
}

.student-hero .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #eef8f7;
}

.student-hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1;
}

.student-hero p {
    color: rgba(232, 245, 243, 0.84);
    line-height: 1.7;
}

.student-profile-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.student-profile-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(243, 250, 249, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
}

.student-hero-stats {
    display: grid;
    gap: 14px;
    align-content: start;
}

.student-stat-card {
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
}

.student-stat-card span {
    color: rgba(232, 245, 243, 0.78);
    font-size: 0.84rem;
}

.student-action-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-action-card {
    display: grid;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.student-action-card strong {
    font-size: 1.1rem;
}

.student-action-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.student-action-muted {
    opacity: 0.94;
}

.student-download-panel {
    margin-top: 24px;
}

.student-download-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.student-download-card {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(16, 34, 40, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.student-download-card p,
.student-download-card small {
    margin: 0;
    color: var(--muted);
}

.student-empty-state {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(14, 103, 113, 0.05);
    border: 1px solid rgba(14, 103, 113, 0.08);
}

.auth-login-layout {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.auth-showcase {
    padding: clamp(30px, 4vw, 48px);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(194, 229, 225, 0.12), transparent 34%),
        linear-gradient(160deg, #0b2f37, #134955 56%, #1f6672);
    color: rgba(244, 251, 250, 0.92);
    box-shadow: 0 28px 56px rgba(8, 31, 36, 0.2);
}

.auth-showcase .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #eef8f7;
}

.auth-showcase h1 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    line-height: 0.98;
    max-width: 8ch;
}

.auth-showcase p {
    margin-bottom: 0;
    max-width: 52ch;
    color: rgba(230, 244, 242, 0.84);
    line-height: 1.7;
}

.auth-benefits {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.auth-benefits li {
    position: relative;
    padding-left: 18px;
    color: rgba(244, 251, 250, 0.92);
    font-weight: 600;
}

.auth-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d0e2a8;
}

.auth-stat-strip {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-stat-card {
    padding: 16px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1;
}

.auth-stat-card span {
    color: rgba(230, 244, 242, 0.8);
    font-size: 0.84rem;
    line-height: 1.4;
}

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

.auth-form-card h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.06;
}

.auth-form-card > p {
    max-width: 48ch;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-card,
.panel-card {
    padding: 28px;
}

.auth-side {
    background:
        linear-gradient(135deg, rgba(180, 135, 70, 0.15), rgba(255, 255, 255, 0.88)),
        rgba(255, 255, 255, 0.92);
}

.tab-row {
    margin: 22px 0;
}

.auth-shell .tab-row {
    display: flex;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 18px;
    background: rgba(15, 108, 116, 0.07);
    border: 1px solid rgba(15, 108, 116, 0.1);
}

.tab {
    padding-bottom: 8px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.auth-shell .tab {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    border-bottom: 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab.active {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.auth-shell .tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: 0 14px 26px rgba(15, 108, 116, 0.16);
}

.stack-form,
.admin-form {
    display: grid;
    gap: 18px;
}

.auth-shell .stack-form {
    margin-top: 10px;
}

.auth-code-stack {
    gap: 16px;
}

.auth-code-stack > form {
    margin-top: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(17, 53, 68, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 252, 0.96) 0%, rgba(242, 247, 249, 0.92) 100%);
}

.admin-guide-card {
    margin-bottom: 20px;
}

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

.admin-widgets-panel .card-grid {
    margin-top: 18px;
}

.admin-kpi-card {
    position: relative;
    padding-left: 92px;
    background: rgba(255, 255, 255, 0.82);
}

.admin-kpi-card::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 24px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 14px 24px rgba(11, 39, 45, 0.12);
}

.admin-kpi-card.tone-teal::before {
    background: linear-gradient(135deg, #0e6771, #1494a1);
}

.admin-kpi-card.tone-green::before {
    background: linear-gradient(135deg, #3e9c43, #68c56d);
}

.admin-kpi-card.tone-amber::before {
    background: linear-gradient(135deg, #d48a17, #f3b33d);
}

.admin-kpi-card.tone-blue::before {
    background: linear-gradient(135deg, #2383d3, #44b3ff);
}

.admin-stats-grid .info-card {
    background: rgba(255, 255, 255, 0.78);
}

.admin-workspace {
    display: grid;
    gap: 22px;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(248, 251, 250, 0.96), rgba(238, 243, 242, 0.96));
}

.admin-sidebar-head h2 {
    margin-bottom: 8px;
}

.admin-main-form {
    gap: 20px;
}

.admin-section-nav {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.admin-section-nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 34, 40, 0.08);
    color: #415258;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(11, 39, 45, 0.05);
}

.admin-section {
    scroll-margin-top: 170px;
}

.admin-section-head,
.admin-submit-bar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-section-head {
    margin-bottom: 18px;
}

.admin-section-head h2 {
    margin-bottom: 8px;
}

.admin-substats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-substats span,
.admin-example,
.admin-field-hint {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.admin-substats span,
.admin-field-hint {
    background: rgba(14, 103, 113, 0.06);
    border: 1px solid rgba(14, 103, 113, 0.1);
    color: var(--brand-dark);
}

.admin-example {
    margin-top: 6px;
    background: rgba(200, 155, 76, 0.12);
    border: 1px solid rgba(200, 155, 76, 0.2);
    color: #6f5524;
}

.admin-submit-bar {
    padding: 22px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 18px;
    z-index: 12;
    backdrop-filter: blur(12px);
}

.program-builder-card {
    background:
        linear-gradient(180deg, rgba(10, 63, 71, 0.04), rgba(255, 255, 255, 0.9)),
        rgba(255, 255, 255, 0.92);
}

.program-builder-intro {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.1fr 0.9fr;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(10, 63, 71, 0.92), rgba(14, 103, 113, 0.88));
    color: #f5fbfa;
}

.program-builder-intro strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.program-builder-intro .section-note {
    color: rgba(245, 251, 250, 0.82);
}

.program-builder-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.program-builder-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.course-builder-shell {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

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

.news-builder-shell,
.topics-builder-shell,
.suggestion-analytics-shell,
.user-manager-list {
    display: grid;
    gap: 18px;
}

.course-builder-topbar,
.course-module-head,
.course-lesson-head,
.course-builder-actions,
.specialist-builder-topbar,
.specialist-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.course-module-list,
.course-lesson-list,
.specialist-list,
.news-list,
.topic-item-list {
    display: grid;
    gap: 16px;
}

.course-module-builder,
.course-lesson-builder,
.specialist-card-builder,
.suggestion-analytics-card,
.suggestion-review-card,
.user-manager-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(16, 34, 40, 0.08);
    box-shadow: 0 18px 46px rgba(11, 39, 45, 0.08);
}

.course-module-builder {
    background:
        linear-gradient(180deg, rgba(14, 103, 113, 0.04), rgba(255, 255, 255, 0.92));
}

.course-lesson-builder {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid rgba(14, 103, 113, 0.22);
}

.specialist-card-builder {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid rgba(35, 131, 211, 0.18);
}

.news-card-builder {
    border-left-color: rgba(212, 138, 23, 0.2);
}

.suggestion-analytics-card,
.suggestion-review-card,
.user-manager-card {
    background: rgba(255, 255, 255, 0.9);
}

.course-module-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.08);
    border: 1px solid rgba(14, 103, 113, 0.1);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-lesson-head strong {
    color: var(--brand-dark);
}

.course-module-head,
.course-lesson-head,
.specialist-card-head {
    margin-bottom: 14px;
}

.course-builder-topbar {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(14, 103, 113, 0.06);
    border: 1px solid rgba(14, 103, 113, 0.1);
}

.specialist-builder-topbar {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(35, 131, 211, 0.05);
    border: 1px solid rgba(35, 131, 211, 0.1);
}

.course-builder-topbar strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.specialist-builder-topbar strong,
.specialist-card-head strong {
    color: var(--brand-dark);
}

.user-manager-head strong {
    color: var(--brand-dark);
}

.course-builder-actions .btn,
.course-builder-topbar .btn,
.specialist-builder-topbar .btn {
    min-height: 42px;
    padding: 0 14px;
}

.specialist-support-grid {
    margin-top: 18px;
}

.topic-item-row {
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.suggestion-analytics-shell {
    grid-template-columns: 0.9fr 1.1fr;
    margin-top: 18px;
}

.suggestion-breakdown-list,
.suggestion-review-list {
    display: grid;
    gap: 12px;
}

.suggestion-breakdown-item,
.suggestion-review-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(16, 34, 40, 0.08);
    background: rgba(248, 251, 250, 0.72);
}

.suggestion-breakdown-head,
.suggestion-review-top,
.user-manager-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.suggestion-breakdown-head strong,
.suggestion-review-top strong {
    color: var(--brand-dark);
}

.suggestion-breakdown-head span,
.suggestion-review-top span,
.suggestion-review-meta span {
    color: var(--muted);
    font-size: 0.84rem;
}

.suggestion-breakdown-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(16, 34, 40, 0.08);
    overflow: hidden;
}

.suggestion-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #27a5b5);
}

.suggestion-review-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.user-manager-head {
    margin-bottom: 14px;
}

.user-manager-head > div {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.user-manager-toolbar {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.user-manager-collapsible {
    border: 0;
}

.user-manager-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.user-manager-summary::-webkit-details-marker {
    display: none;
}

.user-manager-summary-main,
.user-manager-summary-tags,
.user-manager-actions,
.user-manager-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.user-manager-summary-main strong {
    color: var(--brand-dark);
}

.user-manager-summary-main span,
.user-manager-pagination span {
    color: var(--muted);
}

.user-manager-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(16, 34, 40, 0.12);
}

.user-status-chip.is-danger {
    background: rgba(159, 59, 43, 0.1);
    border-color: rgba(159, 59, 43, 0.16);
    color: var(--danger);
}

.user-manager-actions {
    margin-top: 14px;
    justify-content: flex-end;
}

.user-manager-pagination {
    justify-content: center;
    margin-top: 18px;
}

.user-manager-empty {
    margin-top: 18px;
    text-align: center;
}

.course-lesson-primary-grid {
    align-items: start;
}

.course-lesson-advanced {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(16, 34, 40, 0.12);
}

.course-lesson-advanced summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 103, 113, 0.06);
    border: 1px solid rgba(14, 103, 113, 0.1);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.course-lesson-advanced summary::-webkit-details-marker {
    display: none;
}

.course-lesson-advanced[open] summary {
    margin-bottom: 14px;
}

.builder-danger {
    border-color: rgba(159, 59, 43, 0.14);
    color: var(--danger);
}

.stack-form label,
.panel-card label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(19, 33, 38, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

textarea {
    resize: vertical;
    min-height: 124px;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cinematic-float {
    0%,
    100% {
        transform: scale(1) translateY(0);
        filter: saturate(1);
    }

    50% {
        transform: scale(1.02) translateY(-4px);
        filter: saturate(1.08);
    }
}

.demo-credentials {
    margin: 20px 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    flex-direction: column;
    align-items: stretch;
}

.demo-credentials div {
    display: grid;
    gap: 4px;
}

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

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

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

@media (max-width: 980px) {
    .utility-inner,
    .utility-meta,
    .hero-grid,
    .two-column,
    .auth-grid,
    .metrics-shell,
    .resources-layout,
    .intro-ribbon-inner,
    .news-layout,
    .metric-grid,
    .card-grid,
    .footer-grid,
    .compact,
    .form-grid,
    .auth-inline-grid,
    .hero-stage,
    .admin-summary-head,
    .program-builder-intro,
    .admin-workspace,
    .suggestion-analytics-shell,
    .user-manager-toolbar,
    .resource-grid,
    .why-grid,
    .program-overview,
    .program-overview-metrics,
    .library-toolbar-shell,
    .chapter-nav-grid,
    .chapter-lessons-grid,
    .suggestion-shell {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .nav,
    .cta-strip-inner,
    .admin-header,
    .admin-header-actions,
    .admin-section-head,
    .admin-submit-bar,
    .program-builder-pills,
    .course-builder-topbar,
    .course-module-head,
    .course-lesson-head,
    .specialist-builder-topbar,
    .specialist-card-head,
    .suggestion-breakdown-head,
    .suggestion-review-top,
    .user-manager-head,
    .user-manager-summary,
    .user-manager-summary-main,
    .user-manager-summary-tags,
    .user-manager-actions,
    .user-manager-pagination,
    .course-builder-actions,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-item-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .auth-login-layout,
    .auth-stat-strip,
    .student-hero,
    .student-action-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase h1 {
        max-width: none;
    }

    .student-download-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .utility-inner,
    .utility-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 18px;
        gap: 12px;
    }

    .nav a {
        padding: 8px 0;
    }

    .session-banner-inner {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-stage-card.cinematic {
        grid-row: auto;
    }

    .lesson-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cinematic {
        padding-top: 72px;
    }

    .hero-stack {
        min-height: auto;
    }

    .hero-backdrop-copy,
    .hero-card-centered {
        padding: 22px 20px;
    }

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

    .auth-inline-head {
        align-items: flex-start;
    }

    .auth-inline-modal {
        place-items: start center;
        padding: 16px;
    }

    .auth-inline-panel {
        max-height: calc(100vh - 32px);
        padding: 22px 18px;
    }

    .chapter-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-summary-meta {
        justify-items: start;
    }

    .specialists-rail {
        grid-auto-columns: minmax(260px, 82%);
    }

    .metrics-shell {
        gap: 16px;
    }

    .metrics-copy {
        padding-top: 0;
        text-align: center;
    }

    .metrics-copy .eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .metrics-copy h2 {
        max-width: 18ch;
        margin-left: auto;
        margin-right: auto;
    }

    .metrics-copy p {
        max-width: 52ch;
        margin-left: auto;
        margin-right: auto;
    }

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

    .metric-card {
        padding: 18px 16px;
        text-align: center;
    }

    .metric-card strong {
        margin-bottom: 4px;
        font-size: 1.7rem;
    }

    .metric-card span {
        display: block;
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

@media (max-width: 760px) {
    iframe,
    .video-card.editorial iframe {
        min-height: 240px;
    }

    .hero-card-centered,
    .course-panel,
    .video-card,
    .chapter-nav-shell,
    .chapter-accordion,
    .announcement-modal,
    .auth-inline-panel {
        border-radius: 24px;
    }

    .hero-actions .btn,
    .course-actions .btn,
    .lesson-card-actions .btn {
        width: 100%;
    }

    .course-meta-item,
    .course-feature-chip,
    .hero-inline-metrics span {
        width: 100%;
        justify-content: center;
    }

    .chapter-summary,
    .chapter-lessons-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .lesson-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .flash-stack {
        top: 84px;
        right: 12px;
        width: calc(100% - 24px);
    }
}

@media (max-width: 640px) {
    .topbar {
        position: static;
    }

    .container {
        width: min(100%, calc(100% - 20px));
    }

    .topbar-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .brand {
        width: auto;
        flex: 0 0 auto;
        max-width: 104px;
    }

    .brand-image-shell {
        width: 44px;
        height: 44px;
    }

    .brand > span:last-child {
        gap: 2px;
    }

    .brand strong {
        font-size: 0.82rem;
    }

    .brand small {
        display: none;
    }

    .nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: auto;
        max-width: calc(100% - 110px);
        flex: 1 1 auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 12px;
        border-radius: 14px;
        background: rgba(251, 247, 240, 0.08);
        border: 1px solid rgba(184, 154, 94, 0.08);
        text-align: center;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .hero,
    .content-section,
    .metrics {
        padding: 30px 0;
    }

    h1 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
        line-height: 1.04;
    }

    h2 {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.1;
    }

    .hero-brand-logo {
        width: min(520px, 100%);
        margin-bottom: 14px;
    }

    .hero-card-centered {
        width: 100%;
        max-width: 560px;
        padding: 18px 16px;
    }

    .hero-manifesto {
        gap: 10px;
        margin-bottom: 12px;
    }

    .hero-manifesto-block {
        padding: 12px;
        border-radius: 18px;
    }

    .hero-manifesto-block p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .intro-ribbon {
        padding-bottom: 18px;
    }

    .hero-manifesto-block,
    .metric-card,
    .info-card,
    .news-card,
    .resource-card,
    .ribbon-card,
    .auth-card,
    .panel-card,
    .course-panel {
        padding: 20px;
    }

    .intro-ribbon-inner,
    .why-grid,
    .resources-layout,
    .news-layout,
    .program-overview,
    .program-overview-metrics,
    .chapter-nav-grid,
    .chapter-lessons-grid,
    .suggestion-shell {
        gap: 12px;
    }

    .ribbon-card,
    .why-card,
    .resource-card,
    .news-card,
    .info-card,
    .lesson-card-premium,
    .chapter-link-card,
    .overview-stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .ribbon-card,
    .why-card,
    .resource-card,
    .chapter-link-card,
    .overview-stat-card,
    .chapter-nav-lead,
    .program-overview-copy,
    .suggestion-copy,
    .video-card-head,
    .section-head,
    .footer-grid > div {
        text-align: center;
    }

    .section-head,
    .video-card-head {
        align-items: center;
    }

    .course-panel,
    .video-card {
        gap: 14px;
    }

    .stack-form label,
    .panel-card label {
        text-align: left;
    }

    .video-card {
        padding: 14px;
    }

    .video-card.editorial iframe {
        min-height: 220px;
    }

    .course-panel p,
    .ribbon-card p,
    .why-card p,
    .resource-card p,
    .section-note,
    .chapter-nav-lead p,
    .program-overview-copy p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .specialist-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .specialists-rail {
        grid-auto-columns: minmax(228px, 82%);
        gap: 12px;
    }

    .footer {
        padding: 24px 0 32px;
    }

    .hero-actions,
    .course-actions,
    .auth-inline-helpers,
    .auth-inline-tabs,
    .auth-shell .tab-row {
        width: 100%;
    }

    .hero-actions .btn,
    .course-actions .btn,
    .auth-inline-helpers .inline-link,
    .auth-inline-tabs .tab,
    .auth-shell .tab {
        width: 100%;
    }

    .auth-inline-tabs,
    .auth-shell .tab-row {
        gap: 8px;
    }

    .auth-inline-head h2 {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .hero-inline-metrics,
    .hero-pills,
    .course-meta-list,
    .course-feature-list {
        gap: 8px;
    }

    .section-head,
    .admin-section-head {
        gap: 10px;
    }

    .metrics-copy h2 {
        font-size: clamp(1.45rem, 6vw, 2rem);
        line-height: 1.12;
    }

    .metrics-copy p {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .metric-grid {
        gap: 10px;
    }

    .metric-card {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .metric-card strong {
        font-size: 1.45rem;
    }

    .metric-card span {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .topbar-inner {
        gap: 8px;
        padding: 10px 0;
    }

    .brand {
        max-width: 88px;
        gap: 8px;
    }

    .brand-image-shell {
        width: 40px;
        height: 40px;
    }

    .brand strong {
        font-size: 0.74rem;
    }

    .nav {
        max-width: calc(100% - 92px);
        gap: 6px;
    }

    .nav a {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.76rem;
        border-radius: 12px;
    }

    .hero-card-centered,
    .course-panel,
    .video-card,
    .chapter-nav-shell,
    .chapter-accordion,
    .announcement-modal,
    .auth-inline-panel,
    .auth-card,
    .panel-card {
        border-radius: 20px;
    }

    .hero-card-centered,
    .hero-backdrop-copy,
    .auth-inline-panel,
    .auth-card,
    .panel-card,
    .course-panel {
        padding: 16px 14px;
    }

    .hero-brand-logo {
        width: min(488px, 100%);
        margin-bottom: 12px;
    }

    .hero-manifesto {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-manifesto-block,
    .metric-card,
    .info-card,
    .news-card,
    .resource-card,
    .ribbon-card {
        padding: 14px 14px;
    }

    .auth-inline-modal {
        padding: 10px;
    }

    .auth-inline-panel {
        max-height: calc(100vh - 20px);
    }

    .auth-inline-head,
    .auth-inline-helpers {
        gap: 10px;
    }

    .flash-stack {
        top: 76px;
        right: 10px;
        width: calc(100% - 20px);
    }

    .hero-inline-metrics span,
    .course-meta-item,
    .course-feature-chip,
    .soft-pill {
        min-height: 36px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.74rem;
    }

    .hero,
    .content-section,
    .metrics {
        padding: 24px 0;
    }

    .eyebrow {
        margin-bottom: 10px;
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    h1 {
        font-size: clamp(1.7rem, 10vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.2rem, 8vw, 1.55rem);
    }

    .metrics-copy h2 {
        font-size: clamp(1.28rem, 7vw, 1.7rem);
    }

    .metrics-copy p {
        font-size: 0.9rem;
    }

    .metric-grid {
        gap: 8px;
    }

    .metric-card {
        padding: 14px 10px;
        border-radius: 16px;
    }

    .metric-card strong {
        font-size: 1.28rem;
    }

    .metric-card span {
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .ribbon-card,
    .why-card,
    .resource-card,
    .lesson-card-premium,
    .chapter-link-card,
    .overview-stat-card,
    .metric-card {
        border-radius: 16px;
    }

    .video-card.editorial iframe {
        min-height: 200px;
    }

    .specialists-rail {
        grid-auto-columns: minmax(208px, 84%);
    }
}
