:root {
    color-scheme: light;
    --ink: #1c1d1f;
    --muted: #6a6f73;
    --line: #d1d7dc;
    --brand: #a435f0;
    --brand-dark: #8710d8;
    --paper: #ffffff;
    --wash: #f7f9fa;
    --soft: #f5f5f5;
    --gold: #b4690e;
    --dark: #1c1d1f;
    --shadow: 0 18px 48px rgba(28, 29, 31, 0.12);
    --shadow-soft: 0 10px 28px rgba(28, 29, 31, 0.08);
    --shadow-strong: 0 24px 70px rgba(28, 29, 31, 0.16);
}

/* Product polish layer: cohesive marketplace/app UI across public, learning and admin surfaces. */
:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #6d28d9;
    --brand-dark: #4c1d95;
    --brand-soft: #f3e8ff;
    --accent: #0f766e;
    --accent-soft: #e6fffb;
    --warn: #b45309;
    --danger: #b91c1c;
    --paper: #ffffff;
    --wash: #f6f8fb;
    --soft: #f1f5f9;
    --dark: #111827;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.16);
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    text-rendering: geometricPrecision;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0, #f8fafc 240px, #f5f7fb 100%),
        var(--wash);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

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

:focus-visible {
    outline: 3px solid rgba(109, 40, 217, 0.28);
    outline-offset: 3px;
}

.topbar {
    min-height: 72px;
    padding: 12px max(20px, calc((100vw - 1280px) / 2));
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: 0;
}

.brand span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0f766e, #2563eb 52%, #6d28d9);
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.top-search {
    flex: 1 1 420px;
    max-width: 600px;
}

.top-search input,
input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.top-search input {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f8fafc;
}

input,
select {
    min-height: 44px;
    padding: 0 14px;
}

textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.top-search input:focus {
    border-color: rgba(109, 40, 217, 0.62);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
    outline: 0;
}

.nav {
    gap: 8px;
}

.nav a,
.nav-dropdown summary,
.link-button {
    min-height: 40px;
    border-radius: var(--radius);
    padding: 0 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover,
.nav-dropdown summary:hover,
.link-button:hover {
    background: #f1f5f9;
    color: var(--brand-dark);
}

.nav-pill,
.nav-cta,
.button,
.ghost-button,
.mini-button,
.danger-button {
    border-radius: var(--radius);
}

.nav-pill {
    border-color: #dbe3ef;
    background: #ffffff;
}

.nav-cta {
    padding: 0 16px;
    background: #111827;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
}

.nav-dropdown div {
    overflow: hidden;
    min-width: 230px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.shell {
    width: min(1280px, calc(100% - 40px));
    padding: 28px 0 72px;
}

h1,
h2,
h3 {
    color: #0f172a;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.04;
}

h2 {
    font-size: clamp(24px, 2.4vw, 32px);
}

p {
    color: var(--muted);
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    letter-spacing: 0.11em;
    font-weight: 950;
}

.button,
.ghost-button,
.mini-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button {
    background: linear-gradient(135deg, var(--brand), #2563eb);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.24);
}

.button:hover {
    background: linear-gradient(135deg, var(--brand-dark), #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(109, 40, 217, 0.3);
}

.ghost-button,
.mini-button {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
}

.ghost-button:hover,
.mini-button:hover {
    border-color: rgba(109, 40, 217, 0.28);
    background: #faf5ff;
    color: var(--brand-dark);
}

.panel,
.hero,
.course-card,
.module-card,
.sub-panel,
.question-card,
.notification-card,
.review-card,
.cart-item,
.buy-box,
.curriculum-section,
.premium-card,
.premium-kpi-card,
.admin-dashboard-head,
.admin-kpi-card,
.admin-module-card,
.support-message,
.support-help-grid div {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.panel {
    padding: clamp(20px, 3vw, 34px);
}

.page-head,
.catalog-head {
    gap: 18px;
}

.stats,
.dashboard-grid,
.course-grid,
.promo-grid,
.detail-grid,
.support-layout,
.content-layout,
.learning-grid,
.payment-layout {
    gap: 18px;
}

.stat {
    min-height: 120px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat strong {
    color: #0f172a;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 900;
}

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

tbody tr:hover {
    background: #fbfdff;
}

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

.form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 850;
}

.home-hero {
    min-height: min(680px, calc(100vh - 72px));
    align-items: flex-end;
    margin-top: -28px;
    margin-bottom: 36px;
    padding-top: 84px;
    padding-bottom: 70px;
    background-image:
        linear-gradient(90deg, rgba(10, 15, 31, 0.92), rgba(10, 15, 31, 0.64) 48%, rgba(10, 15, 31, 0.2)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1900&q=82");
}

.home-hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
}

.home-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-search {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 720px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    padding: 7px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-search input {
    min-height: 52px;
    border-radius: var(--radius);
}

.hero-dashboard {
    right: max(18px, calc((100vw - 1240px) / 2));
    bottom: 52px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.home-strip,
.live-bar,
.creator-cta,
.trust-section {
    border-radius: var(--radius);
}

.course-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.course-card {
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 40, 217, 0.28);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.13);
}

.course-cover {
    min-height: 168px;
    aspect-ratio: 16 / 10;
}

.course-cover span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.course-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.course-title {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.24;
}

.course-body p {
    min-height: 44px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.course-author,
.course-meta {
    color: #64748b;
    font-size: 13px;
}

.course-price {
    color: #0f172a;
    font-size: 18px;
}

.market-hero {
    align-items: stretch;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.82)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.market-hero h1,
.market-hero p,
.market-hero .eyebrow {
    color: #ffffff;
}

.market-search,
.filterbar {
    border-radius: var(--radius);
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.admin-surface .topbar,
.admin-sidebar,
.admin-sidebar-head,
.admin-side-nav a,
.admin-sidebar-foot,
.premium-card,
.premium-kpi-card,
.admin-new-button,
.admin-icon-button {
    border-radius: var(--radius);
}

.admin-sidebar {
    border-radius: 0;
}

.admin-surface .topbar {
    border-radius: 0;
}

.creator-surface {
    background: linear-gradient(180deg, #ffffff 0, #f8fafc 280px, #f5f7fb 100%);
}

@media (max-width: 1100px) {
    .premium-kpi-grid,
    .premium-dashboard-grid,
    .premium-bottom-grid,
    .detail-grid,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .hero-dashboard {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 28px;
        max-width: 480px;
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 28px, 1280px);
        padding-top: 18px;
    }

    .topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: auto;
        padding: 10px 14px;
    }

    .topbar .brand {
        grid-column: 1;
    }

    .top-search {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        max-width: none;
    }

    .top-search input {
        min-height: 44px;
        border-radius: var(--radius);
    }

    .nav {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

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

    .nav a,
    .nav-dropdown summary,
    .link-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-dropdown div {
        right: auto;
        left: 0;
    }

    .home-hero {
        min-height: auto;
        margin-top: -18px;
        padding: 54px 18px 38px;
    }

    .home-hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero-search,
    .market-search,
    .filterbar,
    .report-filter,
    .admin-surface .report-filter {
        grid-template-columns: 1fr;
    }

    .hero-search .button,
    .market-search .button,
    .filterbar .button {
        width: 100%;
    }

    .home-strip,
    .course-grid,
    .learning-grid,
    .dashboard-grid,
    .stats,
    .compact,
    .promo-grid,
    .support-help-grid {
        grid-template-columns: 1fr;
    }

    .course-cover {
        min-height: 190px;
    }

    .panel {
        padding: 20px;
    }

    .page-head,
    .catalog-head,
    .support-message-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-message {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px;
    }

    .support-avatar {
        width: 38px;
        height: 38px;
    }

    .admin-surface .topbar {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .admin-top-actions {
        justify-content: flex-end;
    }

    .admin-new-button {
        display: none;
    }
}

/* Public home final polish. Keep this block at the end so it wins over older passes. */
body:not(.admin-surface):not(.creator-surface) {
    overflow-x: hidden;
    background: #f6f8fc;
}

body:not(.admin-surface):not(.creator-surface) .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(280px, 520px) auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    padding: 0 max(22px, calc((100vw - 1280px) / 2));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
}

body:not(.admin-surface):not(.creator-surface) .shell {
    width: min(100%, 1280px);
    padding-top: 0;
}

body:not(.admin-surface):not(.creator-surface) .brand {
    white-space: nowrap;
}

body:not(.admin-surface):not(.creator-surface) .nav {
    justify-content: flex-end;
}

body:not(.admin-surface):not(.creator-surface) .nav a,
body:not(.admin-surface):not(.creator-surface) .nav-cta {
    min-height: 42px;
    border-radius: 8px;
    padding: 0 14px;
}

body:not(.admin-surface):not(.creator-surface) .nav-cta {
    background: #0f172a;
    color: #ffffff;
}

.home-hero.home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 64px;
    align-items: center;
    width: 100vw;
    min-height: 688px;
    margin-left: calc(50% - 50vw);
    margin-bottom: 34px;
    padding: 92px max(24px, calc((100vw - 1280px) / 2)) 76px;
    background-color: #101827;
    background-image:
        linear-gradient(90deg, rgba(8, 13, 29, 0.96), rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.28)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2100&q=84");
    background-position: center;
    background-size: cover;
}

.home-hero-v2 .home-hero-content {
    max-width: 760px;
}

.home-hero-v2 .eyebrow {
    color: #7dd3fc;
}

.home-hero-v2 h1 {
    max-width: 820px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 68px;
    line-height: 1;
}

.home-hero-v2 p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.7;
}

.home-hero-v2 .hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 740px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.home-hero-v2 .hero-search input {
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    background: #ffffff;
}

.home-hero-v2 .hero-search .button {
    min-height: 52px;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.home-hero-v2 .button,
.home-hero-v2 .ghost-button {
    min-height: 48px;
    border-radius: 8px;
    padding: 0 20px;
}

.ghost-button.light {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.ghost-button.light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
}

.hero-proof strong {
    color: #ffffff;
}

.hero-showcase {
    display: grid;
    gap: 14px;
    justify-self: end;
    width: min(100%, 430px);
}

.hero-course-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.hero-course-image {
    display: block;
    min-height: 232px;
    background-position: center;
    background-size: cover;
}

.hero-course-body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.hero-course-body small,
.hero-course-body em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-weight: 800;
}

.hero-course-body strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.hero-course-body b {
    color: #ffffff;
    font-size: 20px;
}

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

.hero-mini-grid div {
    display: grid;
    gap: 4px;
    min-height: 88px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.hero-mini-grid span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.home-logo-strip,
.home-section {
    width: min(100% - 40px, 1280px);
    margin-right: auto;
    margin-left: auto;
}

.home-logo-strip {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, auto);
    gap: 14px;
    align-items: center;
    margin-bottom: 50px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    padding: 18px 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.home-logo-strip span {
    color: #475569;
    font-weight: 850;
}

.home-logo-strip strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.home-section {
    margin-bottom: 58px;
}

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

.catalog-head h2,
.home-split-feature h2,
.creator-cta-v2 h2 {
    margin: 0;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.08;
}

.catalog-head span,
.home-split-feature p,
.creator-cta-v2 p {
    color: #64748b;
}

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

.learning-path-grid a,
.steps-grid div,
.premium-course-card,
.learning-preview-card,
.home-split-feature,
.trust-section-v2 div {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.learning-path-grid a {
    display: grid;
    gap: 10px;
    min-height: 168px;
    padding: 20px;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.learning-path-grid a:hover,
.premium-course-card:hover,
.steps-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 26px 62px rgba(15, 23, 42, 0.13);
}

.learning-path-grid strong {
    font-size: 20px;
    line-height: 1.2;
}

.learning-path-grid span {
    color: #64748b;
}

.rail-wrap {
    position: relative;
}

.course-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, 300px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 26px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.course-rail .course-card {
    scroll-snap-align: start;
}

.course-card.premium-course-card {
    min-height: 100%;
}

.premium-course-card .course-cover {
    min-height: 190px;
}

.course-card .course-cover {
    border-radius: 0;
}

.course-card .course-body {
    padding: 16px;
}

.course-card .course-title {
    font-size: 17px;
    line-height: 1.26;
}

.course-meta {
    color: #64748b;
    font-size: 13px;
}

.course-price {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.course-price del {
    margin-left: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.rail-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.rail-wrap > .rail-controls {
    margin-top: 10px;
}

.rail-controls button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.rail-controls button:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
    transform: translateY(-1px);
}

.home-split-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.8fr);
    gap: 56px;
    align-items: center;
    padding: 46px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1500&q=82");
    background-position: center;
    background-size: cover;
}

.home-split-feature > div:first-child {
    max-width: 650px;
}

.feature-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.feature-checks span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 850;
}

.feature-checks span::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0f766e;
}

.learning-preview-card {
    overflow: hidden;
}

.preview-video {
    display: grid;
    place-items: center;
    min-height: 264px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.72)),
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1100&q=82");
    background-position: center;
    background-size: cover;
}

.preview-video span {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
    clip-path: none;
    transform: none;
}

.preview-video span::before {
    content: "";
    margin-left: 5px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #2563eb;
}

.preview-lessons {
    display: grid;
    gap: 9px;
    padding: 20px;
}

.preview-lessons strong {
    color: #0f172a;
    font-size: 14px;
}

.preview-lessons span {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.preview-lessons span::before {
    content: "";
    display: block;
    width: inherit;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0f766e);
}

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

.steps-grid div {
    display: grid;
    gap: 10px;
    min-height: 186px;
    padding: 20px;
}

.steps-grid i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 36px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-style: normal;
    font-weight: 950;
}

.steps-grid strong {
    color: #0f172a;
    font-size: 19px;
}

.steps-grid span {
    color: #64748b;
}

.creator-cta.creator-cta-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    width: min(100% - 40px, 1280px);
    margin: 0 auto 58px;
    border: 0;
    border-radius: 8px;
    padding: 44px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.84)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.creator-cta-v2 h2,
.creator-cta-v2 p,
.creator-cta-v2 .eyebrow {
    color: #ffffff;
}

.creator-cta-v2 p {
    opacity: 0.82;
}

.creator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.trust-section.trust-section-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100% - 40px, 1280px);
    margin-right: auto;
    margin-left: auto;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.trust-section-v2 div {
    padding: 22px;
}

.trust-section-v2 strong {
    color: #0f172a;
    font-size: 20px;
}

.trust-section-v2 span {
    color: #64748b;
}

.site-footer {
    width: 100vw;
    margin: 70px 0 0 calc(50% - 50vw);
    padding: 58px max(22px, calc((100vw - 1280px) / 2)) 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
    gap: 72px;
    align-items: start;
}

.footer-brand .brand {
    color: #ffffff;
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.footer-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.footer-payment-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 850;
}

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

.footer-links div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 6px;
    color: #ffffff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

@media (max-width: 1080px) {
    body:not(.admin-surface):not(.creator-surface) .topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 20px;
    }

    body:not(.admin-surface):not(.creator-surface) .top-search {
        width: 100%;
        max-width: none;
    }

    body:not(.admin-surface):not(.creator-surface) .nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .home-hero.home-hero-v2,
    .home-split-feature,
    .creator-cta.creator-cta-v2,
    .site-footer-main {
        grid-template-columns: 1fr;
    }

    .home-hero.home-hero-v2 {
        min-height: auto;
        gap: 32px;
        padding-top: 64px;
    }

    .home-hero-v2 h1 {
        font-size: 52px;
    }

    .hero-showcase {
        justify-self: start;
    }

    .learning-path-grid,
    .steps-grid,
    .trust-section.trust-section-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .creator-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 780px) {
    .home-hero.home-hero-v2 {
        padding: 44px 18px 40px;
    }

    .home-hero-v2 h1 {
        font-size: 40px;
    }

    .home-hero-v2 p {
        font-size: 16px;
    }

    .home-hero-v2 .hero-search,
    .hero-actions,
    .hero-proof,
    .hero-mini-grid,
    .home-logo-strip,
    .learning-path-grid,
    .feature-checks,
    .steps-grid,
    .trust-section.trust-section-v2,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .home-hero-v2 .hero-search {
        display: grid;
    }

    .hero-actions,
    .creator-actions,
    .site-footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-actions .ghost-button,
    .creator-actions .button,
    .creator-actions .ghost-button,
    .home-hero-v2 .hero-search .button {
        width: 100%;
    }

    .home-logo-strip,
    .home-section,
    .creator-cta.creator-cta-v2,
    .trust-section.trust-section-v2 {
        width: min(100% - 28px, 1280px);
    }

    .catalog-head {
        display: grid;
        align-items: start;
    }

    .catalog-head h2,
    .home-split-feature h2,
    .creator-cta-v2 h2 {
        font-size: 30px;
    }

    .course-rail {
        grid-auto-columns: minmax(246px, 84vw);
    }

    .home-split-feature,
    .creator-cta.creator-cta-v2 {
        padding: 24px;
    }

    .hero-course-image,
    .preview-video {
        min-height: 210px;
    }

    .site-footer {
        padding-top: 42px;
    }
}

/* Fold tuning for a marketplace-style first screen. */
.home-hero.home-hero-v2 {
    min-height: 600px;
    gap: 50px;
    margin-bottom: 20px;
    padding-top: 58px;
    padding-bottom: 46px;
}

.home-hero-v2 h1 {
    max-width: 700px;
    font-size: 54px;
    line-height: 1.04;
}

.home-hero-v2 p {
    font-size: 17px;
}

.home-hero-v2 .hero-search {
    margin-top: 22px;
}

.hero-proof {
    margin-top: 18px;
}

.hero-course-image {
    min-height: 188px;
}

.hero-mini-grid div {
    min-height: 76px;
    padding: 12px;
}

@media (max-width: 1080px) {
    .home-hero.home-hero-v2 {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 38px;
    }

    .home-hero-v2 h1 {
        font-size: 46px;
    }
}

@media (max-width: 780px) {
    .home-hero.home-hero-v2 {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .home-hero-v2 h1 {
        font-size: 36px;
    }

    .hero-showcase {
        display: none;
    }
}

/* Public home redesign and footer. */
.home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.7fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    min-height: min(760px, calc(100vh - 72px));
    padding-top: 92px;
    padding-bottom: 76px;
    background-image:
        linear-gradient(90deg, rgba(7, 12, 28, 0.94), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.18)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2100&q=84");
}

.home-hero-v2 .home-hero-content {
    max-width: 780px;
}

.home-hero-v2 h1 {
    margin-bottom: 18px;
    max-width: 820px;
    font-size: clamp(44px, 6.4vw, 84px);
}

.home-hero-v2 .hero-search {
    margin-top: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.ghost-button.light {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.ghost-button.light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero-proof strong {
    color: #ffffff;
}

.hero-showcase {
    display: grid;
    gap: 16px;
    justify-self: end;
    width: min(100%, 430px);
}

.hero-course-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.hero-course-image {
    display: block;
    min-height: 230px;
    background-position: center;
    background-size: cover;
}

.hero-course-body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.hero-course-body small,
.hero-course-body em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-weight: 800;
}

.hero-course-body strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.hero-course-body b {
    color: #ffffff;
    font-size: 20px;
}

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

.hero-mini-grid div {
    display: grid;
    gap: 4px;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.hero-mini-grid span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.home-logo-strip {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, auto);
    gap: 14px;
    align-items: center;
    margin: -14px 0 34px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    padding: 18px 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.home-logo-strip span {
    color: #475569;
    font-weight: 850;
}

.home-logo-strip strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.home-category-feature {
    padding-top: 10px;
}

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

.learning-path-grid a {
    display: grid;
    gap: 10px;
    min-height: 170px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    padding: 20px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.learning-path-grid a:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 40, 217, 0.24);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.learning-path-grid strong {
    font-size: 20px;
    line-height: 1.2;
}

.learning-path-grid span {
    color: #64748b;
}

.premium-course-card .course-cover {
    min-height: 190px;
}

.home-split-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 52px);
    background:
        radial-gradient(circle at 88% 16%, rgba(109, 40, 217, 0.12), transparent 32%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.home-split-feature h2 {
    max-width: 680px;
    font-size: clamp(30px, 4vw, 50px);
}

.feature-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.feature-checks span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: var(--radius);
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 850;
}

.feature-checks span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.learning-preview-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.preview-video {
    display: grid;
    place-items: center;
    min-height: 260px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72)),
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1100&q=82");
    background-position: center;
    background-size: cover;
}

.preview-video span {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: scale(0.42);
}

.preview-lessons {
    display: grid;
    gap: 9px;
    padding: 20px;
}

.preview-lessons strong {
    color: #0f172a;
    font-size: 14px;
}

.preview-lessons span {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.preview-lessons span::before {
    content: "";
    display: block;
    width: inherit;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #2563eb);
}

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

.steps-grid div {
    display: grid;
    gap: 10px;
    min-height: 190px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.steps-grid i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 36px;
    border-radius: 999px;
    background: #f3e8ff;
    color: var(--brand);
    font-style: normal;
    font-weight: 950;
}

.steps-grid strong {
    color: #0f172a;
    font-size: 19px;
}

.steps-grid span {
    color: #64748b;
}

.creator-cta-v2 {
    align-items: center;
    gap: 28px;
    border: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(76, 29, 149, 0.92)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.creator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.trust-section-v2 {
    background: #ffffff;
}

.site-footer {
    margin-top: 40px;
    padding: 56px max(20px, calc((100vw - 1280px) / 2)) 24px;
    background:
        radial-gradient(circle at 78% 0%, rgba(109, 40, 217, 0.22), transparent 28%),
        #0f172a;
    color: #ffffff;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.footer-brand .brand {
    color: #ffffff;
}

.footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.footer-payment-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 850;
}

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

.footer-links div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 6px;
    color: #ffffff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .home-hero-v2,
    .home-split-feature,
    .site-footer-main {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        justify-self: start;
    }

    .learning-path-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 780px) {
    .home-hero-v2 {
        gap: 28px;
        padding-top: 48px;
    }

    .hero-actions,
    .creator-actions,
    .site-footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-actions .ghost-button,
    .creator-actions .button,
    .creator-actions .ghost-button {
        width: 100%;
    }

    .hero-proof,
    .hero-mini-grid,
    .home-logo-strip,
    .learning-path-grid,
    .feature-checks,
    .steps-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-proof {
        display: grid;
    }

    .home-logo-strip {
        margin-top: 0;
    }

    .hero-course-image,
    .preview-video {
        min-height: 210px;
    }

    .site-footer {
        padding-top: 40px;
    }
}

/* Home v2 must win over older hero rules. */
.home-hero.home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.7fr);
    align-items: center;
}

@media (max-width: 1080px) {
    .home-hero.home-hero-v2 {
        grid-template-columns: 1fr;
    }
}

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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--wash);
}

.scroll-progress {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #a435f0, #ff6b2c);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px max(18px, calc((100vw - 1240px) / 2));
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 4px rgba(28, 29, 31, 0.08);
}

.brand {
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

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

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

.top-search {
    flex: 1 1 360px;
    max-width: 520px;
    margin: 0;
}

.top-search input {
    min-height: 42px;
    border-radius: 999px;
    border-color: #1c1d1f;
    padding: 0 18px;
    background: #f7f9fa;
}

.nav a,
.link-button,
.nav-dropdown summary {
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.nav a,
.nav-dropdown summary,
.link-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.nav-strong {
    color: #ffffff !important;
}

.nav-cta {
    border-radius: 0;
    padding: 0 14px;
    background: var(--ink);
}

.nav-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    background: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

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

.nav-dropdown summary::after {
    content: "v";
    margin-left: 6px;
    color: var(--brand);
    font-size: 12px;
}

.nav-dropdown div {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.nav-dropdown div a {
    min-height: 38px;
    border-radius: 6px;
    padding: 0 10px;
}

.nav-dropdown div a:hover {
    background: var(--soft);
    color: var(--brand);
}

.inline-form {
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.hero {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
    margin: -24px calc(50% - 50vw) 28px;
    padding: 48px max(18px, calc((100vw - 1240px) / 2));
    background-image:
        linear-gradient(90deg, rgba(28, 29, 31, 0.92), rgba(28, 29, 31, 0.56), rgba(28, 29, 31, 0.14)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.home-hero h1 {
    color: #ffffff;
    font-size: 54px;
    letter-spacing: -1px;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 26px;
    max-width: 620px;
}

.hero-search input {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    padding: 0 18px;
}

.hero-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-links a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orbit span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    animation: float-card 7s ease-in-out infinite;
}

.hero-orbit span:nth-child(1) {
    right: 18%;
    top: 20%;
}

.hero-orbit span:nth-child(2) {
    right: 8%;
    top: 48%;
    animation-delay: 1.4s;
}

.hero-orbit span:nth-child(3) {
    right: 25%;
    bottom: 18%;
    animation-delay: 2.3s;
}

.hero-dashboard {
    position: absolute;
    right: max(18px, calc((100vw - 1240px) / 2));
    bottom: 44px;
    z-index: 2;
    width: min(330px, calc(100% - 36px));
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.hero-dashboard span,
.hero-dashboard small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-dashboard strong {
    display: block;
    margin: 5px 0;
    font-size: 22px;
}

.hero-dashboard p {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 14px;
}

.hero-meter {
    overflow: hidden;
    height: 8px;
    margin-top: 14px;
    background: #e5e7eb;
}

.hero-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a435f0, #ff6b2c);
}

@keyframes float-card {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

.home-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.home-strip div {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 18px;
}

.home-strip strong,
.home-strip span {
    display: block;
}

.home-strip span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.live-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    margin: 18px 0 34px;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 12px 0 12px 16px;
}

.live-bar > span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-bar div {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker 22s linear infinite;
}

.live-bar strong {
    color: var(--ink);
    font-size: 14px;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-38%);
    }
}

.home-section {
    margin: 34px 0;
}

.course-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(238px, 282px);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 4px 18px;
    scroll-snap-type: inline mandatory;
}

.course-rail .course-card {
    scroll-snap-align: start;
}

.rail-wrap {
    position: relative;
}

.rail-controls {
    position: absolute;
    right: 4px;
    top: -54px;
    display: flex;
    gap: 8px;
}

.rail-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--ink);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.rail-controls button:hover {
    background: var(--ink);
    color: #ffffff;
}

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

.course-rail::-webkit-scrollbar-track {
    background: #eef1f3;
}

.course-rail::-webkit-scrollbar-thumb {
    background: #9ca3af;
}

.compact-rail {
    grid-auto-columns: minmax(220px, 250px);
}

.spotlight-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: stretch;
    padding: 30px;
    background: #f5f0ff;
    border: 1px solid #ded4f8;
}

.spotlight-copy h2 {
    font-size: 34px;
}

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

.spotlight-grid a {
    display: flex;
    align-items: flex-end;
    min-height: 132px;
    padding: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(28, 29, 31, 0.1), rgba(28, 29, 31, 0.72)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
    background-position: center;
    background-size: cover;
}

.spotlight-grid a:nth-child(2) {
    background-image:
        linear-gradient(180deg, rgba(28, 29, 31, 0.1), rgba(28, 29, 31, 0.72)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80");
}

.spotlight-grid a:nth-child(3) {
    background-image:
        linear-gradient(180deg, rgba(28, 29, 31, 0.1), rgba(28, 29, 31, 0.72)),
        url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=900&q=80");
}

.spotlight-grid a:nth-child(4) {
    background-image:
        linear-gradient(180deg, rgba(28, 29, 31, 0.1), rgba(28, 29, 31, 0.72)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=80");
}

.category-band {
    padding: 26px;
    border: 1px solid var(--line);
    background: #ffffff;
}

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

.category-grid a {
    display: flex;
    align-items: center;
    min-height: 74px;
    border: 1px solid var(--line);
    padding: 0 18px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    background: #f7f9fa;
}

.category-grid a:hover {
    border-color: var(--ink);
    background: #ffffff;
}

.creator-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 36px 0 0;
    padding: 30px;
    background: #1c1d1f;
    color: #ffffff;
}

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

.trust-section div {
    border-top: 4px solid var(--brand);
    background: #ffffff;
    padding: 20px;
}

.trust-section strong,
.trust-section span {
    display: block;
}

.trust-section span {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.outcomes-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 28px;
    background: #ffffff;
}

.outcomes-section h2 {
    font-size: 34px;
}

.outcome-flow {
    display: grid;
    gap: 10px;
}

.outcome-flow span {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-left: 5px solid var(--brand);
    padding: 0 16px;
    background: #f7f9fa;
    font-weight: 900;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.creator-cta h2,
.creator-cta p {
    color: #ffffff;
}

.creator-cta p {
    margin-bottom: 0;
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 28px;
    box-shadow: none;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.narrow {
    max-width: 640px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--brand);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--brand-dark);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.button,
.ghost-button,
.mini-button,
.danger-button {
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

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

.form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.form-note {
    max-width: 820px;
    font-size: 16px;
}

.form-section {
    display: grid;
    gap: 16px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.form-section legend {
    padding: 0 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    color: var(--ink);
    font: inherit;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(15, 118, 110, 0.14);
}

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

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

.alert {
    margin-bottom: 18px;
    border-radius: 6px;
    padding: 14px 16px;
    font-weight: 700;
}

.success {
    background: #e8f7f2;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.error {
    background: #fff0f0;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.small {
    font-size: 14px;
}

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

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

.stat {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdfc);
}

.warning {
    border-color: #ffe08a;
    background: #fff9e6;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
}

.stat small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.module-card {
    display: grid;
    gap: 8px;
    min-height: 128px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.module-card:hover {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: var(--shadow);
}

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

.module-card span {
    color: var(--muted);
    line-height: 1.45;
}

.filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    margin: 24px 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.muted {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 0;
    background: #eef2f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.badge.active {
    background: #e8f7f2;
    color: #0f5132;
}

.badge.pending {
    background: #fff9e6;
    color: #7a5300;
}

.badge.proof_submitted {
    background: #e0f2fe;
    color: #075985;
}

.badge.approved {
    background: #e8f7f2;
    color: #0f5132;
}

.badge.suspended,
.badge.rejected,
.badge.hidden {
    background: #fff0f0;
    color: #842029;
}

.badge.draft {
    background: #eef2f7;
    color: #334155;
}

.badge.submitted {
    background: #fff9e6;
    color: #7a5300;
}

.badge.published {
    background: #e8f7f2;
    color: #0f5132;
}

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

.row-actions form {
    margin: 0;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.mini-button.good {
    border-color: #badbcc;
    color: #0f5132;
}

.mini-button.danger,
.danger-button {
    border-color: #f5c2c7;
    color: #842029;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-list div,
.bio-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.detail-list span,
.bio-box span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.detail-list strong {
    font-size: 16px;
}

.bio-box {
    margin-top: 14px;
}

.bio-box p {
    margin: 0;
}

.market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
    margin: 0 0 26px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: #ffffff;
}

.market-hero h1 {
    max-width: 760px;
    color: var(--ink);
    font-size: 38px;
}

.market-hero p {
    color: var(--muted);
}

.market-search {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 0;
    background: #f7f9fa;
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 16px 0;
}

.catalog-head h2 {
    margin-bottom: 2px;
}

.catalog-head span {
    color: var(--muted);
    font-size: 14px;
}

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

.course-card {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.course-card:hover,
.learning-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.course-cover {
    display: flex;
    align-items: flex-end;
    min-height: 142px;
    padding: 10px;
    border: 1px solid var(--line);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    background-position: center;
    background-size: cover;
}

.course-cover span,
.preview-box span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.24);
}

.course-body {
    display: grid;
    gap: 6px;
    padding: 10px 0 0;
}

.course-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.course-body p {
    min-height: 42px;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.course-author {
    color: var(--muted);
    font-size: 13px;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.course-meta.wide {
    margin-top: 18px;
}

.course-price {
    margin-top: 4px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.course-price del,
.buy-price del {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
    margin: -24px calc(50% - 50vw) 24px;
    padding: 38px max(18px, calc((100vw - 1240px) / 2));
    border-radius: 0;
    background: var(--dark);
    border: 0;
    color: #ffffff;
}

.course-detail-hero h1 {
    max-width: 820px;
    color: #ffffff;
    font-size: 42px;
}

.course-detail-hero p {
    max-width: 760px;
    color: #d1d7dc;
}

.course-detail-hero .course-meta,
.hero-author {
    color: #d1d7dc;
}

.buy-box {
    display: grid;
    gap: 14px;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 16px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}

.preview-box {
    display: flex;
    align-items: end;
    min-height: 180px;
    border-radius: 0;
    padding: 14px;
    color: #ffffff;
    font-weight: 800;
    background-position: center;
    background-size: cover;
}

.buy-price {
    font-size: 30px;
    font-weight: 900;
}

.buy-box .form {
    margin-top: 0;
}

.full {
    width: 100%;
}

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

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

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

.simple {
    grid-template-columns: minmax(220px, 1fr) 180px auto;
}

.inline-create {
    grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr) auto;
    align-items: end;
    margin-bottom: 20px;
}

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

.check-row input {
    width: auto;
}

.check-list,
.plain-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 22px;
    padding: 0;
    list-style: none;
}

.check-list li,
.plain-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink);
    line-height: 1.5;
}

.check-list li::before,
.plain-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--brand);
    font-weight: 900;
}

.check-list li::before {
    content: "+";
}

.plain-list li::before {
    content: "-";
}

.security-note {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #badbcc;
    border-radius: 8px;
    background: #e8f7f2;
    color: #0f5132;
    line-height: 1.5;
}

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

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

.sub-panel {
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 18px;
    background: #ffffff;
}

.sub-panel h2 {
    margin-top: 0;
}

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

.curriculum-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
}

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

.curriculum-actions form {
    margin: 0;
}

.curriculum-edit {
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    background: #ffffff;
}

.curriculum-edit summary {
    width: max-content;
    cursor: pointer;
    color: var(--brand-dark);
    font-weight: 900;
}

.curriculum-edit .actions {
    margin-top: 0;
}

.lesson-edit {
    margin-left: 22px;
    border-left: 3px solid rgba(164, 53, 240, 0.16);
}

.section-head span,
.lesson-row span,
.lesson-row small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.secure-player {
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
}

.secure-player video {
    display: block;
    width: 100%;
    max-height: 68vh;
}

.pdf-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.lesson-text {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    color: var(--ink);
    line-height: 1.7;
    background: #ffffff;
}

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

.material-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

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

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

.learning-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.progress-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.progress-bar {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.learn-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.learn-sidebar,
.learn-main {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.learn-sidebar {
    position: sticky;
    top: 18px;
}

.muted-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.learn-curriculum {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.learn-curriculum details {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.learn-curriculum summary {
    cursor: pointer;
    padding: 12px;
    font-weight: 800;
    background: #f8fafc;
}

.learn-curriculum a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.learn-curriculum a.active {
    background: #e8f7f2;
    color: #0f5132;
    font-weight: 800;
}

.learn-curriculum a.completed {
    background: #f0fdf4;
}

.learn-curriculum a.completed small {
    color: #0f5132;
    font-weight: 900;
}

.learn-curriculum small {
    color: var(--muted);
}

.resume-note {
    margin: 10px 0 0;
    border: 1px solid rgba(164, 53, 240, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fbf7ff;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

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

.learn-actions form {
    margin: 0;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-methods div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.cart-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.cart-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.cart-thumb {
    min-height: 84px;
    border-radius: 14px;
    background-position: center;
    background-size: cover;
}

.cart-item strong,
.cart-item span,
.cart-price strong,
.cart-price del {
    display: block;
}

.cart-item span,
.cart-price del {
    color: var(--muted);
    font-size: 13px;
}

.cart-price {
    text-align: right;
}

.cart-summary {
    margin: 18px 0;
}

.payment-methods span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.invoice-page {
    max-width: 900px;
    margin: 0 auto;
}

.invoice-document {
    display: grid;
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: #ffffff;
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.invoice-head h1 {
    font-size: 30px;
}

.invoice-table {
    min-width: 0;
}

.invoice-table tfoot td {
    border-bottom: 0;
    font-size: 18px;
}

.certificate-page {
    display: grid;
    gap: 18px;
}

.certificate-document {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.certificate-border {
    min-height: 560px;
    border: 6px solid var(--brand);
    border-radius: 8px;
    padding: 44px;
    text-align: center;
}

.certificate-border h1 {
    margin-top: 20px;
    font-size: 46px;
}

.certificate-border h2 {
    margin: 14px auto;
    max-width: 780px;
    color: var(--brand);
    font-size: 32px;
}

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

.certificate-meta div,
.validation-box,
.validation-result {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.certificate-meta span,
.validation-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.validation-box {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 560px;
    margin: 30px auto 0;
    text-align: left;
}

.validation-box small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    word-break: break-all;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border: 8px solid var(--ink);
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.success-box {
    background: #e8f7f2;
}

.error-box {
    background: #fff0f0;
}

.course-body form {
    margin: 0;
}

/* Visual polish layer: richer marketplace feel for 2026-style cards and actions. */
.topbar {
    backdrop-filter: blur(18px);
}

.nav-cta,
.nav-pill {
    border-radius: 999px;
}

.nav-cta {
    box-shadow: 0 10px 24px rgba(28, 29, 31, 0.18);
}

.shell {
    padding-bottom: 78px;
}

.home-hero {
    margin-bottom: 38px;
}

.hero-search input {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-dashboard,
.hero-meter,
.home-strip div,
.live-bar,
.spotlight-section,
.spotlight-grid a,
.category-band,
.category-grid a,
.creator-cta,
.trust-section div,
.outcomes-section,
.outcome-flow span,
.panel,
.market-hero,
.market-search,
.course-card,
.course-cover,
.buy-box,
.preview-box,
.curriculum-section,
.section-head {
    border-radius: 18px;
}

.home-strip {
    gap: 18px;
    margin-bottom: 40px;
}

.home-strip div {
    position: relative;
    min-height: 118px;
    border-color: rgba(209, 215, 220, 0.72);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-strip div:hover {
    transform: translateY(-4px);
    border-color: rgba(164, 53, 240, 0.42);
    box-shadow: var(--shadow);
}

.home-strip strong {
    font-size: 22px;
    line-height: 1.1;
}

.live-bar {
    margin: 22px 0 46px;
    border-color: rgba(164, 53, 240, 0.2);
    box-shadow: var(--shadow-soft);
}

.home-section {
    margin: 54px 0;
}

.section-head {
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.course-rail {
    grid-auto-columns: minmax(260px, 304px);
    gap: 24px;
    padding: 12px 6px 26px;
}

.compact-rail {
    grid-auto-columns: minmax(238px, 276px);
}

.rail-controls {
    right: 10px;
    top: -62px;
    gap: 10px;
}

.rail-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(28, 29, 31, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    font-size: 18px;
}

.rail-controls button:hover {
    background: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.course-rail::-webkit-scrollbar {
    height: 8px;
}

.course-rail::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eceff3;
}

.course-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #ff6b2c);
}

.spotlight-section,
.category-band,
.outcomes-section,
.panel,
.market-hero {
    border-color: rgba(209, 215, 220, 0.76);
    box-shadow: var(--shadow-soft);
}

.spotlight-section {
    background: linear-gradient(135deg, #fff7ed 0%, #f5f0ff 54%, #edf7ff 100%);
}

.spotlight-grid a {
    box-shadow: 0 18px 34px rgba(28, 29, 31, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-grid a:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.category-grid {
    gap: 16px;
}

.category-grid a {
    border-color: rgba(209, 215, 220, 0.76);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fa 100%);
    box-shadow: 0 8px 20px rgba(28, 29, 31, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(164, 53, 240, 0.38);
    box-shadow: var(--shadow-soft);
}

.creator-cta {
    margin-top: 50px;
    padding: 38px;
    background:
        linear-gradient(135deg, rgba(164, 53, 240, 0.94), rgba(28, 29, 31, 0.96)),
        #1c1d1f;
    box-shadow: var(--shadow-strong);
}

.trust-section {
    gap: 20px;
}

.trust-section div {
    border-top: 0;
    border: 1px solid rgba(209, 215, 220, 0.76);
    box-shadow: var(--shadow-soft);
}

.outcome-flow span {
    border-left: 0;
    background: linear-gradient(90deg, rgba(164, 53, 240, 0.1), rgba(255, 107, 44, 0.08));
}

.panel {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.button,
.ghost-button {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 850;
}

.button {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 30px rgba(164, 53, 240, 0.28);
}

.button:hover {
    background: linear-gradient(135deg, #b14cff, #7a0bc3);
    box-shadow: 0 18px 40px rgba(164, 53, 240, 0.34);
}

.ghost-button {
    border-color: rgba(28, 29, 31, 0.14);
    box-shadow: 0 8px 18px rgba(28, 29, 31, 0.06);
}

.ghost-button:hover {
    border-color: rgba(164, 53, 240, 0.34);
    color: var(--brand-dark);
    box-shadow: var(--shadow-soft);
}

input,
select,
textarea {
    border-radius: 12px;
}

input:focus,
select:focus,
textarea:focus {
    outline-color: rgba(164, 53, 240, 0.14);
}

.course-grid {
    gap: 26px;
}

.course-card {
    border: 1px solid rgba(209, 215, 220, 0.72);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(28, 29, 31, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover,
.learning-card:hover {
    transform: translateY(-6px);
    border-color: rgba(164, 53, 240, 0.34);
    box-shadow: var(--shadow-strong);
}

.course-cover {
    min-height: 176px;
    border: 0;
    border-radius: 18px 18px 0 0;
    padding: 14px;
}

.course-cover span,
.preview-box span {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

.course-body {
    gap: 8px;
    padding: 16px 18px 18px;
}

.course-title {
    font-size: 17px;
}

.course-price {
    font-size: 19px;
}

.market-hero {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.market-search {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.course-detail-hero {
    padding-top: 48px;
    padding-bottom: 48px;
}

.buy-box {
    border-color: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.preview-box {
    min-height: 212px;
}

.course-promo-player {
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    background: #020617;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    aspect-ratio: 16 / 9;
}

.course-promo-player video,
.course-promo-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #020617;
}

.course-promo-player video {
    object-fit: cover;
}

.promo-video-caption {
    display: grid;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fafc;
}

.promo-video-caption strong {
    color: #0f172a;
    font-size: 14px;
}

.promo-video-caption span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.course-promo-fallback {
    position: relative;
}

.course-promo-fallback::before {
    content: "";
    position: absolute;
    inset: auto auto 52px 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.course-promo-fallback::after {
    content: "";
    position: absolute;
    left: 40px;
    bottom: 70px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #2563eb;
}

.curriculum-section {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.curriculum-section .section-head {
    border-radius: 18px 18px 0 0;
}

/* Admin surface: same marketplace polish, tuned for dense operations. */
.admin-surface {
    background:
        radial-gradient(circle at 64% 0%, rgba(93, 95, 239, 0.18), transparent 32%),
        linear-gradient(135deg, #eef4ff 0%, #fbfcff 42%, #f6f0ff 100%);
}

.admin-surface .shell {
    width: 100%;
    margin: 0;
    padding: 0 0 78px;
}

.admin-layout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 94px 36px 36px 312px;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 18px;
    width: 286px;
    max-height: none;
    overflow: auto;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 26px 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(65, 105, 255, 0.58), transparent 34%),
        linear-gradient(180deg, #071637 0%, #0a1556 48%, #2811b6 100%);
    box-shadow: 24px 0 56px rgba(12, 24, 72, 0.24);
    color: #ffffff;
}

.admin-sidebar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    width: max-content;
    color: #ffffff;
    gap: 12px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.admin-sidebar-brand span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #12d8fa, #4364f7 48%, #a435f0);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(67, 100, 247, 0.32);
}

.admin-sidebar-head {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(164, 53, 240, 0.34), rgba(255, 107, 44, 0.12)),
        rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-sidebar-head span,
.admin-sidebar-foot span {
    color: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
}

.admin-sidebar-head strong {
    font-size: 19px;
    line-height: 1.15;
}

.admin-side-nav {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.admin-nav-group {
    display: grid;
    gap: 7px;
}

.admin-nav-label {
    display: block;
    padding: 0 8px 2px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-side-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    border-radius: 18px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-side-nav a i {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: 0;
}

.admin-side-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-side-nav a.active {
    background: linear-gradient(135deg, #2864ff, #a435f0);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(58, 84, 255, 0.34);
}

.admin-side-nav a.active i {
    color: #2864ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.admin-sidebar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-foot div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-sidebar-foot span {
    color: rgba(255, 255, 255, 0.64);
}

.admin-sidebar-foot strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-foot em {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.admin-sidebar-foot form {
    margin: 0;
}

.admin-sidebar-foot button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.admin-surface .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 286px;
    z-index: 30;
    min-height: 78px;
    border: 0;
    border-bottom: 1px solid rgba(209, 215, 220, 0.84);
    border-radius: 0;
    padding: 14px 44px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
}

.admin-menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid rgba(28, 29, 31, 0.12);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.admin-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}

.admin-sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
}

.admin-sidebar {
    transition: transform 0.22s ease;
}

.admin-sidebar-collapsed .admin-layout {
    padding-left: 32px;
}

.admin-sidebar-collapsed.admin-surface .topbar {
    left: 0;
}

.admin-surface .topbar .brand {
    display: none;
}

.admin-surface .topbar .top-search {
    max-width: 380px;
    margin-left: auto;
}

.admin-surface .topbar .top-search input {
    min-height: 54px;
    border: 1px solid rgba(130, 145, 190, 0.24);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48), 0 14px 32px rgba(69, 86, 156, 0.08);
}

.admin-surface .topbar .nav {
    margin-left: auto;
}

.admin-top-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.admin-icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 32px rgba(56, 72, 133, 0.12);
}

.admin-icon-button span {
    width: 18px;
    height: 18px;
    border: 2px solid #0b1744;
    border-radius: 999px 999px 8px 8px;
}

.admin-icon-button.mail span {
    border-radius: 4px;
}

.admin-icon-button b {
    position: absolute;
    right: 4px;
    top: 3px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #5b35ff;
    color: #ffffff;
    font-size: 11px;
}

.admin-new-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    border-radius: 18px;
    padding: 0 24px;
    background: linear-gradient(135deg, #3868ff, #9f26ef);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 20px 42px rgba(82, 68, 236, 0.34);
    white-space: nowrap;
}

.admin-new-button i {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
}

.admin-surface .topbar {
    border-bottom-color: rgba(164, 53, 240, 0.16);
    box-shadow: 0 10px 28px rgba(28, 29, 31, 0.05);
}

.admin-dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1640px;
    margin: 0 auto;
}

.admin-dashboard-head.premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 0;
    padding: 0 4px 12px;
    background: transparent;
    box-shadow: none;
}

.admin-dashboard-head.premium h1 {
    margin: 0 0 4px;
    color: #11173d;
    font-size: clamp(30px, 3vw, 38px);
    letter-spacing: 0;
}

.admin-dashboard-head.premium p {
    margin: 0;
    color: #53618a;
    font-size: 18px;
}

.admin-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.premium-kpi-card {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    min-height: 192px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 22px 58px rgba(67, 80, 126, 0.14);
    backdrop-filter: blur(18px);
}

.premium-kpi-card .kpi-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0e7ff;
}

.premium-kpi-card .kpi-icon span {
    width: 28px;
    height: 28px;
    border: 4px solid currentColor;
    border-radius: 12px;
}

.premium-kpi-card.violet { color: #6d31f5; }
.premium-kpi-card.blue { color: #2388ff; }
.premium-kpi-card.pink { color: #c72be7; }
.premium-kpi-card.cyan { color: #14a6d8; }
.premium-kpi-card.blue .kpi-icon { background: #e4f3ff; }
.premium-kpi-card.pink .kpi-icon { background: #ffe3fb; }
.premium-kpi-card.cyan .kpi-icon { background: #dcf8ff; }

.premium-kpi-card span,
.premium-kpi-card small {
    display: block;
    color: #29355f;
    font-size: 14px;
    font-weight: 850;
}

.premium-kpi-card strong {
    display: block;
    margin: 10px 0 8px;
    color: #10183f;
    font-size: 28px;
    letter-spacing: 0;
}

.premium-kpi-card small {
    color: #079b61;
    font-size: 13px;
}

.premium-kpi-card svg {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    width: calc(100% - 44px);
    height: 52px;
}

.premium-kpi-card polyline {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.premium-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.72fr) minmax(340px, 0.76fr);
    gap: 18px;
}

.premium-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 22px 58px rgba(67, 80, 126, 0.14);
    backdrop-filter: blur(18px);
}

.premium-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.premium-card-head h2 {
    margin: 0;
    color: #11173d;
    font-size: 18px;
}

.premium-card-head a {
    color: #3d35ff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.sales-card {
    min-height: 300px;
}

.sales-chart {
    width: 100%;
    height: 220px;
}

.sales-chart .chart-fill {
    fill: rgba(80, 79, 255, 0.13);
}

.sales-chart polyline {
    fill: none;
    stroke: #3838ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.sales-chart line {
    stroke: rgba(80, 79, 255, 0.2);
    stroke-width: 2;
}

.sales-chart circle {
    fill: #ffffff;
    stroke: #3838ff;
    stroke-width: 5;
}

.chart-tooltip {
    position: absolute;
    right: 20%;
    top: 98px;
    border-radius: 15px;
    padding: 14px 18px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(34, 45, 95, 0.18);
}

.chart-tooltip span,
.chart-tooltip strong {
    display: block;
}

.chart-tooltip span {
    color: #69749b;
    font-size: 13px;
    font-weight: 800;
}

.chart-tooltip strong {
    margin-top: 4px;
    color: #11173d;
}

.donut-wrap {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 210px;
}

.donut {
    display: grid;
    place-items: center;
    align-content: center;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 44%, transparent 45%),
        conic-gradient(#3f46ff 0 62%, #a435f0 62% 80%, #23b7f5 80% 92%, #f35caf 92% 100%);
    box-shadow: 0 22px 42px rgba(63, 70, 255, 0.22);
}

.donut strong {
    color: #11173d;
    font-size: 28px;
}

.donut span {
    color: #69749b;
    font-size: 13px;
    font-weight: 800;
}

.status-list,
.activity-list,
.popular-list {
    display: grid;
    gap: 13px;
}

.status-list div,
.activity-item,
.popular-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.status-list i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.status-list span,
.activity-item span,
.popular-item span {
    color: #5b668f;
    font-size: 13px;
}

.status-list strong,
.activity-item strong,
.popular-item strong {
    color: #11173d;
    font-size: 14px;
}

.activity-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.activity-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef0ff, #e4fbff);
}

.activity-item div {
    display: grid;
    gap: 3px;
}

.activity-item small {
    color: #7b86ac;
    font-size: 12px;
    white-space: nowrap;
}

.premium-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(340px, 0.82fr);
    gap: 18px;
}

.premium-table {
    display: grid;
}

.premium-table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.8fr) 130px 120px;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid rgba(137, 149, 188, 0.16);
    color: #25305b;
    font-size: 14px;
}

.premium-table-row.head {
    min-height: 40px;
    border-top: 0;
    color: #657197;
    font-size: 12px;
    font-weight: 900;
}

.premium-table-row span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.premium-table-row i,
.popular-item > i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36);
}

.premium-table-row b {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    background: #eef2ff;
    color: #3441d7;
    font-size: 12px;
}

.premium-table-row b.published {
    background: #dff8eb;
    color: #087847;
}

.premium-table-row b.draft {
    background: #fff0d8;
    color: #b95b00;
}

.popular-item {
    grid-template-columns: 48px minmax(0, 1fr) 42px;
}

.popular-item > i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.popular-item div {
    display: grid;
    gap: 4px;
}

.popular-item em {
    display: block;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #e5e9f7;
}

.popular-item em b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4364f7, #a435f0);
}

.popular-item small {
    color: #25305b;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-hero,
.admin-surface .panel {
    position: relative;
    overflow: hidden;
}

.admin-dashboard-hero,
.admin-surface .panel:first-of-type {
    border-color: rgba(164, 53, 240, 0.18);
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.96)),
        #ffffff;
    box-shadow: var(--shadow);
}

.admin-dashboard-hero::before,
.admin-surface .panel:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), #ff6b2c, #14b8a6);
}

.admin-surface .page-head {
    align-items: center;
}

.admin-surface .eyebrow {
    letter-spacing: 0.08em;
}

.admin-surface h1 {
    font-size: clamp(32px, 4vw, 46px);
}

.admin-surface .stats {
    gap: 18px;
    margin-top: 30px;
}

.admin-surface .stat {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    border-color: rgba(209, 215, 220, 0.68);
    border-radius: 20px;
    padding: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-surface .stat::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -34px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(164, 53, 240, 0.1);
}

.admin-surface .stat:hover {
    transform: translateY(-4px);
    border-color: rgba(164, 53, 240, 0.3);
    box-shadow: var(--shadow);
}

.admin-surface .stat.warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, #ffffff, #fff8e8);
}

.admin-surface .stat.warning::after {
    background: rgba(245, 158, 11, 0.13);
}

.admin-surface .stat strong {
    font-size: 32px;
    letter-spacing: -0.02em;
}

.admin-surface .dashboard-grid {
    gap: 22px;
    margin: 28px 0;
}

.admin-surface .module-card {
    min-height: 154px;
    border-color: rgba(209, 215, 220, 0.72);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-surface .module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(164, 53, 240, 0.34);
    box-shadow: var(--shadow-strong);
}

.admin-surface .module-card strong {
    font-size: 20px;
}

.admin-surface .ops-panel {
    background:
        linear-gradient(135deg, #ffffff, #f7fbff);
}

.admin-surface .filterbar {
    align-items: end;
    gap: 14px;
    margin: 30px 0 22px;
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.admin-surface .filterbar.simple {
    grid-template-columns: minmax(260px, 1fr) 220px auto;
}

.admin-surface .report-filter {
    grid-template-columns: 150px 150px 190px minmax(220px, 1fr) auto;
}

.admin-surface .table-wrap {
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.admin-surface table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-surface th {
    border-bottom-color: rgba(209, 215, 220, 0.86);
    background: #f8fafc;
    color: #475569;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.admin-surface th,
.admin-surface td {
    padding: 16px 14px;
}

.admin-surface tbody tr {
    transition: background 0.16s ease;
}

.admin-surface tbody tr:hover {
    background: #fbf7ff;
}

.admin-surface .badge {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-weight: 850;
}

.admin-surface .mini-button {
    min-height: 36px;
    border-radius: 999px;
    padding: 0 13px;
    border-color: rgba(28, 29, 31, 0.12);
    box-shadow: 0 6px 14px rgba(28, 29, 31, 0.05);
}

.admin-surface .mini-button:hover {
    border-color: rgba(164, 53, 240, 0.28);
    color: var(--brand-dark);
    box-shadow: var(--shadow-soft);
}

.admin-surface .mini-button.good {
    border-color: rgba(15, 81, 50, 0.18);
    background: #e8f7f2;
}

.admin-surface .mini-button.danger,
.admin-surface .danger-button {
    border-color: rgba(132, 32, 41, 0.18);
    background: #fff0f0;
}

.admin-surface .sub-panel {
    border-color: rgba(209, 215, 220, 0.72);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.reports-grid {
    align-items: stretch;
}

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

.report-mini-grid div {
    min-height: 104px;
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 26px rgba(28, 29, 31, 0.05);
}

.report-mini-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-mini-grid strong {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    font-size: 28px;
}

.quality-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 18px;
    align-items: center;
    margin: 22px 0;
    border: 1px solid rgba(164, 53, 240, 0.18);
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #fbf7ff);
    box-shadow: var(--shadow-soft);
}

.quality-box strong {
    display: block;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.quality-box p {
    margin: 8px 0 0;
}

.quality-meter,
.mini-quality span {
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.quality-meter {
    height: 12px;
}

.quality-meter span,
.mini-quality i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #ff6b2c);
}

.quality-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}

.quality-list div {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
}

.quality-list strong {
    width: max-content;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff0f0;
    color: #842029;
    font-size: 12px;
}

.quality-list .done strong {
    background: #e8f7f2;
    color: #0f5132;
}

.quality-list span {
    color: var(--ink);
    font-weight: 900;
}

.quality-list small {
    color: var(--muted);
    line-height: 1.4;
}

.mini-quality {
    display: grid;
    grid-template-columns: 72px auto;
    gap: 8px;
    align-items: center;
    min-width: 116px;
}

.mini-quality span {
    height: 8px;
}

.mini-quality strong {
    color: var(--muted);
    font-size: 13px;
}

.mini-quality.ready strong {
    color: #0f5132;
}

.reviews-section {
    margin-top: 24px;
}

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

.review-card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.review-card p {
    margin: 0;
    font-size: 16px;
}

.stars {
    color: #b45309;
    font-weight: 900;
}

.discussion-panel {
    margin-top: 22px;
}

.question-list,
.notification-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.question-card,
.notification-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.notification-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.notification-card.unread {
    border-color: #badbcc;
    background: #f0fdf8;
}

.question-head,
.clean-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.question-card p,
.notification-card p {
    margin: 0;
    font-size: 16px;
}

.answer-box {
    display: grid;
    gap: 6px;
    border-left: 4px solid var(--brand);
    padding: 12px 14px;
    background: #f8fafc;
}

.compact-form {
    margin-top: 6px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
    align-items: start;
}

.badge.open {
    background: #fff9e6;
    color: #7a5300;
}

.badge.answered {
    background: #e8f7f2;
    color: #0f5132;
}

.badge.in_review {
    background: #eef2ff;
    color: #3441d7;
}

.badge.closed {
    background: #f1f5f9;
    color: #475569;
}

.badge.requested {
    background: #fff9e6;
    color: #7a5300;
}

.badge.paid {
    background: #e8f7f2;
    color: #0f5132;
}

.support-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.support-help-grid div {
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.support-help-grid strong,
.support-help-grid span {
    display: block;
}

.support-help-grid strong {
    margin-bottom: 6px;
    color: var(--ink);
}

.support-help-grid span {
    color: var(--muted);
    line-height: 1.4;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.support-thread {
    display: grid;
    gap: 18px;
}

.support-message {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid rgba(209, 215, 220, 0.72);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
}

.support-message.staff {
    border-color: rgba(164, 53, 240, 0.2);
    background: linear-gradient(135deg, #ffffff, #fbf7ff);
}

.support-avatar {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #14b8a6);
    color: #ffffff;
    font-weight: 950;
}

.support-message.staff .support-avatar {
    background: linear-gradient(135deg, #1c1d1f, var(--brand));
}

.support-message-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.support-message-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.support-message p {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 16px;
}

.support-reply-form {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.support-side {
    position: sticky;
    top: 96px;
}

.support-side .ghost-button {
    width: 100%;
    margin-top: 14px;
}

@media (max-width: 1050px) {
    .course-grid,
    .learning-grid,
    .dashboard-grid,
    .promo-grid,
    .home-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .spotlight-section,
    .trust-section,
    .outcomes-section {
        grid-template-columns: 1fr;
    }

    .course-detail-hero,
    .market-hero {
        grid-template-columns: 1fr;
    }

    .buy-box {
        max-width: 460px;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown div {
        position: static;
        margin-top: 8px;
        min-width: 100%;
        box-shadow: none;
    }

    h1 {
        font-size: 32px;
    }

    .top-search {
        order: 3;
        width: 100%;
        max-width: none;
        flex-basis: auto;
    }

    .home-hero {
        min-height: 620px;
        background-image:
            linear-gradient(180deg, rgba(28, 29, 31, 0.9), rgba(28, 29, 31, 0.68)),
            url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80");
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .hero-search,
    .home-strip,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-dashboard {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 26px;
    }

    .hero-orbit {
        display: none;
    }

    .live-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .rail-controls {
        display: none;
    }

    .creator-cta {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .page-head {
        flex-direction: column;
    }

    .hero,
    .panel {
        padding: 22px;
    }

    .market-hero,
    .course-grid,
    .learning-grid,
    .dashboard-grid,
    .promo-grid,
    .course-detail-hero,
    .detail-grid,
    .support-layout,
    .content-layout,
    .learn-shell,
    .payment-layout,
    .two,
    .three,
    .stats,
    .compact,
    .filterbar,
    .simple,
    .inline-create,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .invoice-document {
        padding: 20px;
    }

    .invoice-head {
        flex-direction: column;
    }

    .certificate-border {
        min-height: auto;
        padding: 24px;
    }

    .certificate-border h1 {
        font-size: 34px;
    }

    .certificate-border h2 {
        font-size: 24px;
    }

    .certificate-meta {
        grid-template-columns: 1fr;
    }

    .validation-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-layout {
        display: block;
        width: 100%;
        margin: 0;
        padding: 16px 14px 56px;
    }

    .admin-surface .topbar {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 10px 14px;
        background: #ffffff;
    }

    .admin-surface .shell {
        width: 100%;
    }

    .admin-surface .topbar .top-search {
        order: initial;
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }

    .admin-surface .topbar .top-search input {
        min-height: 42px;
        border-radius: 8px;
    }

    .admin-top-actions {
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        gap: 6px;
    }

    .admin-top-actions a,
    .admin-top-actions .link-button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
        box-shadow: none;
    }

    .admin-top-actions a[href="/profile"] {
        display: none;
    }

    .admin-dashboard-hero,
    .admin-surface .panel:first-of-type {
        padding: 24px;
    }

    .admin-surface .filterbar,
    .admin-surface .filterbar.simple {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .admin-dashboard-head,
    .admin-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-head-actions {
        justify-content: flex-start;
    }

    .admin-kpi-grid,
    .admin-module-grid,
    .premium-kpi-grid,
    .premium-dashboard-grid,
    .premium-bottom-grid,
    .support-help-grid {
        grid-template-columns: 1fr;
    }

    .premium-kpi-card,
    .premium-card {
        border-radius: 18px;
    }

    .donut-wrap {
        grid-template-columns: 1fr;
    }

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

    .premium-table-row {
        min-width: 760px;
    }

    .admin-surface .stat {
        min-height: 112px;
    }

    .admin-surface .table-wrap {
        border-radius: 18px;
    }

    .quality-box,
    .quality-list {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 45;
        width: min(86vw, 300px);
        max-height: none;
        border-radius: 0;
        transform: translateX(0);
    }

    .admin-sidebar-collapsed .admin-sidebar {
        display: grid;
        transform: translateX(-100%);
    }

    .admin-side-nav {
        display: grid;
        gap: 18px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .admin-nav-group {
        display: grid;
        gap: 7px;
    }

    .admin-nav-label {
        display: block;
    }

    .admin-side-nav a {
        flex: initial;
    }

    .admin-sidebar-foot {
        display: flex;
    }

    .notification-card,
    .question-head,
    .clean-head,
    .cart-item {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .cart-price {
        text-align: left;
    }

    .course-body p {
        min-height: auto;
    }
}

/* Final design pass: consistent app-quality surfaces after legacy rules. */
:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #6d28d9;
    --brand-dark: #4c1d95;
    --accent: #0f766e;
    --paper: #ffffff;
    --wash: #f6f8fb;
    --soft: #f1f5f9;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.16);
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, #f8fafc 240px, #f5f7fb 100%),
        var(--wash);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    min-height: 72px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.brand {
    gap: 10px;
    color: #0f172a;
    font-size: 21px;
    letter-spacing: 0;
}

.brand span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0f766e, #2563eb 52%, #6d28d9);
    color: #ffffff;
    font-size: 13px;
}

.top-search input,
input,
select,
textarea {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.top-search input {
    min-height: 46px;
    border-radius: 999px;
    background: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(109, 40, 217, 0.62);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
    outline: 0;
}

.nav a,
.nav-dropdown summary,
.link-button {
    border-radius: var(--radius);
    color: #334155;
    font-weight: 850;
}

.nav a:hover,
.nav-dropdown summary:hover,
.link-button:hover {
    background: #f1f5f9;
    color: var(--brand-dark);
}

.button,
.ghost-button,
.mini-button,
.danger-button,
.nav-pill,
.nav-cta {
    border-radius: var(--radius);
}

.button {
    background: linear-gradient(135deg, var(--brand), #2563eb);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.24);
}

.button:hover {
    background: linear-gradient(135deg, var(--brand-dark), #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(109, 40, 217, 0.3);
}

.ghost-button,
.mini-button {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
}

.panel,
.hero,
.course-card,
.module-card,
.sub-panel,
.question-card,
.notification-card,
.review-card,
.cart-item,
.buy-box,
.curriculum-section,
.premium-card,
.premium-kpi-card,
.admin-dashboard-head,
.admin-kpi-card,
.admin-module-card,
.support-message,
.support-help-grid div {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.panel {
    padding: clamp(20px, 3vw, 34px);
}

h1,
h2,
h3 {
    color: #0f172a;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(32px, 4vw, 52px);
}

h2 {
    font-size: clamp(24px, 2.4vw, 32px);
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    letter-spacing: 0.11em;
}

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

table {
    width: 100%;
    min-width: 760px;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

th,
td {
    padding: 15px 16px;
}

.home-hero {
    min-height: min(680px, calc(100vh - 72px));
    align-items: flex-end;
    padding-top: 84px;
    padding-bottom: 70px;
    background-image:
        linear-gradient(90deg, rgba(10, 15, 31, 0.92), rgba(10, 15, 31, 0.64) 48%, rgba(10, 15, 31, 0.2)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1900&q=82");
}

.home-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.hero-search {
    max-width: 720px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    padding: 7px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-search input {
    border-radius: var(--radius);
}

.hero-dashboard,
.home-strip,
.live-bar,
.creator-cta,
.trust-section,
.market-hero,
.market-search,
.filterbar {
    border-radius: var(--radius);
}

.course-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.course-card {
    overflow: hidden;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 40, 217, 0.28);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.13);
}

.course-cover {
    min-height: 168px;
    aspect-ratio: 16 / 10;
}

.course-cover span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.course-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.course-title {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.24;
}

.course-body p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.market-hero {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.82)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
}

.market-hero h1,
.market-hero p,
.market-hero .eyebrow {
    color: #ffffff;
}

.hero-orbit span:nth-child(3) {
    display: none;
}

.admin-surface .topbar,
.admin-sidebar {
    border-radius: 0;
}

.admin-sidebar-head,
.admin-side-nav a,
.admin-sidebar-foot,
.admin-new-button,
.admin-icon-button {
    border-radius: var(--radius);
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 28px, 1280px);
        padding-top: 18px;
    }

    .topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: auto;
        padding: 10px 14px;
    }

    .top-search {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        max-width: none;
    }

    .top-search input {
        min-height: 44px;
        border-radius: var(--radius);
    }

    .nav {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

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

    .nav a,
    .nav-dropdown summary,
    .link-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .home-hero {
        min-height: auto;
        padding: 54px 18px 38px;
    }

    .home-hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero-search,
    .market-search,
    .filterbar,
    .report-filter,
    .admin-surface .report-filter {
        grid-template-columns: 1fr;
    }

    .course-grid,
    .learning-grid,
    .dashboard-grid,
    .stats,
    .compact,
    .promo-grid,
    .support-help-grid {
        grid-template-columns: 1fr;
    }

    .course-cover {
        min-height: 190px;
    }

    .panel {
        padding: 20px;
    }

    .admin-new-button {
        display: none;
    }
}

/* Public home priority overrides, appended after legacy duplicated blocks. */
body:not(.admin-surface):not(.creator-surface) {
    overflow-x: hidden;
    background: #f6f8fc;
}

body:not(.admin-surface):not(.creator-surface) .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(280px, 520px) auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    padding: 0 max(22px, calc((100vw - 1280px) / 2));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
}

body:not(.admin-surface):not(.creator-surface) .shell {
    width: min(100%, 1280px);
    padding-top: 0;
}

body:not(.admin-surface):not(.creator-surface) .nav {
    justify-content: flex-end;
}

.home-hero.home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 50px;
    align-items: center;
    width: 100vw;
    min-height: 600px;
    margin-left: calc(50% - 50vw);
    margin-bottom: 20px;
    padding: 58px max(24px, calc((100vw - 1280px) / 2)) 46px;
    background-color: #101827;
    background-image:
        linear-gradient(90deg, rgba(8, 13, 29, 0.96), rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.28)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2100&q=84");
    background-position: center;
    background-size: cover;
}

.home-hero.home-hero-v2 .home-hero-content {
    max-width: 760px;
}

.home-hero.home-hero-v2 .eyebrow {
    color: #7dd3fc;
}

.home-hero.home-hero-v2 h1 {
    max-width: 700px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 54px;
    line-height: 1.04;
}

.home-hero.home-hero-v2 p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.7;
}

.home-hero.home-hero-v2 .hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 740px;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.home-hero.home-hero-v2 .hero-search input {
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
}

.home-hero.home-hero-v2 .hero-search .button {
    min-height: 52px;
    white-space: nowrap;
}

.home-hero.home-hero-v2 .hero-proof {
    margin-top: 18px;
}

.hero-course-card,
.learning-path-grid a,
.steps-grid div,
.premium-course-card,
.learning-preview-card,
.home-split-feature,
.trust-section-v2 div,
.creator-cta.creator-cta-v2 {
    border-radius: 8px;
}

.hero-course-image {
    min-height: 188px;
}

.hero-mini-grid div {
    min-height: 76px;
    border-radius: 8px;
    padding: 12px;
}

.home-logo-strip,
.home-section,
.creator-cta.creator-cta-v2,
.trust-section.trust-section-v2 {
    width: min(100% - 40px, 1280px);
    margin-right: auto;
    margin-left: auto;
}

.catalog-head h2,
.home-split-feature h2,
.creator-cta-v2 h2 {
    font-size: 38px;
    line-height: 1.08;
}

.course-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, 300px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 26px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.rail-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.preview-video span {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    clip-path: none;
    transform: none;
}

.preview-video span::before {
    content: "";
    margin-left: 5px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #2563eb;
}

.site-footer {
    width: 100vw;
    margin: 70px 0 0 calc(50% - 50vw);
    padding: 58px max(22px, calc((100vw - 1280px) / 2)) 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
}

@media (max-width: 1080px) {
    body:not(.admin-surface):not(.creator-surface) .topbar,
    .home-hero.home-hero-v2,
    .home-split-feature,
    .creator-cta.creator-cta-v2,
    .site-footer-main {
        grid-template-columns: 1fr;
    }

    body:not(.admin-surface):not(.creator-surface) .topbar {
        gap: 10px;
        padding: 12px 20px;
    }

    body:not(.admin-surface):not(.creator-surface) .nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .home-hero.home-hero-v2 {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 38px;
    }

    .home-hero.home-hero-v2 h1 {
        font-size: 46px;
    }

    .learning-path-grid,
    .steps-grid,
    .trust-section.trust-section-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .home-hero.home-hero-v2 {
        padding: 34px 18px 30px;
    }

    .home-hero.home-hero-v2 h1 {
        font-size: 36px;
    }

    .hero-showcase {
        display: none;
    }

    .home-hero.home-hero-v2 .hero-search,
    .hero-proof,
    .home-logo-strip,
    .learning-path-grid,
    .feature-checks,
    .steps-grid,
    .trust-section.trust-section-v2,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .home-logo-strip,
    .home-section,
    .creator-cta.creator-cta-v2,
    .trust-section.trust-section-v2 {
        width: min(100% - 28px, 1280px);
    }

    .catalog-head h2,
    .home-split-feature h2,
    .creator-cta-v2 h2 {
        font-size: 30px;
    }
}

@media (max-width: 780px) {
    .home-hero.home-hero-v2 {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .home-hero.home-hero-v2 h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .home-hero.home-hero-v2 p {
        font-size: 15px;
        line-height: 1.58;
    }

    .home-hero.home-hero-v2 .hero-search {
        margin-top: 16px;
    }

    .home-hero.home-hero-v2 .hero-search input,
    .home-hero.home-hero-v2 .hero-search .button {
        min-height: 46px;
    }

    .home-hero.home-hero-v2 .hero-actions .ghost-button,
    .home-hero.home-hero-v2 .hero-proof {
        display: none;
    }
}

/* Serious marketplace home refresh. This final layer keeps older CSS intact and gives the public home a stronger product feel. */
body:not(.admin-surface):not(.creator-surface) {
    background: #f4f5f7;
    color: #171717;
}

body:not(.admin-surface):not(.creator-surface) .topbar {
    grid-template-columns: auto minmax(320px, 540px) minmax(0, 1fr);
    min-height: 78px;
    border-bottom: 1px solid #e6e8ec;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 36px rgba(23, 23, 23, 0.08);
}

body:not(.admin-surface):not(.creator-surface) .brand {
    color: #111111;
    font-size: 22px;
}

body:not(.admin-surface):not(.creator-surface) .brand span {
    background: linear-gradient(135deg, #111111, #00856f);
    box-shadow: 0 12px 28px rgba(0, 133, 111, 0.22);
}

body:not(.admin-surface):not(.creator-surface) .top-search input {
    min-height: 46px;
    border-color: #d8dde5;
    background: #f7f8fa;
}

body:not(.admin-surface):not(.creator-surface) .top-search input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

body:not(.admin-surface):not(.creator-surface) .nav {
    gap: 6px;
}

body:not(.admin-surface):not(.creator-surface) .nav a,
body:not(.admin-surface):not(.creator-surface) .nav-dropdown summary,
body:not(.admin-surface):not(.creator-surface) .link-button {
    color: #242424;
    font-size: 14px;
    letter-spacing: 0;
}

body:not(.admin-surface):not(.creator-surface) .nav a:hover,
body:not(.admin-surface):not(.creator-surface) .nav-dropdown summary:hover,
body:not(.admin-surface):not(.creator-surface) .link-button:hover {
    background: #eef7f5;
    color: #006f5d;
}

body:not(.admin-surface):not(.creator-surface) .nav-cta {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
}

.home-page {
    color: #171717;
}

.home-page .eyebrow,
.site-footer .eyebrow {
    color: #00856f;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.home-page h1,
.home-page h2,
.home-page h3 {
    color: #111111;
    letter-spacing: 0;
}

.home-page p,
.home-page span {
    letter-spacing: 0;
}

.home-page .button,
.home-page .ghost-button,
.home-page .mini-button {
    border-radius: 8px;
    letter-spacing: 0;
}

.home-page .button {
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

.home-page .button:hover {
    border-color: #00856f;
    background: #00856f;
    box-shadow: 0 18px 38px rgba(0, 133, 111, 0.22);
}

.home-page .ghost-button,
.home-page .mini-button {
    border-color: #d9dde4;
    background: #ffffff;
    color: #171717;
}

.home-page .ghost-button:hover,
.home-page .mini-button:hover {
    border-color: #00856f;
    background: #eef7f5;
    color: #006f5d;
}

.home-page .ghost-button.light {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.home-page .ghost-button.light:hover {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.home-hero.home-hero-v2.serious-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    gap: 58px;
    min-height: 602px;
    margin-bottom: 24px;
    padding-top: 58px;
    padding-bottom: 48px;
    background-color: #101010;
    background-image:
        linear-gradient(90deg, rgba(10, 10, 10, 0.97), rgba(10, 10, 10, 0.78) 52%, rgba(10, 10, 10, 0.34)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2100&q=84");
    background-position: center;
    background-size: cover;
}

.home-hero.home-hero-v2.serious-hero .home-hero-content {
    max-width: 780px;
}

.home-hero.home-hero-v2.serious-hero .eyebrow {
    color: #72e0c8;
}

.home-hero.home-hero-v2.serious-hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0;
}

.home-hero.home-hero-v2.serious-hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
}

.home-hero.home-hero-v2.serious-hero .hero-search {
    max-width: 760px;
    margin-top: 22px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.home-hero.home-hero-v2.serious-hero .hero-search input {
    color: #171717;
}

.home-hero.home-hero-v2.serious-hero .hero-search input:focus {
    box-shadow: 0 0 0 4px rgba(114, 224, 200, 0.2);
}

.home-hero.home-hero-v2.serious-hero .hero-proof span {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.serious-showcase {
    width: min(100%, 430px);
}

.hero-insight-card,
.hero-course-card,
.hero-mini-grid div {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.hero-insight-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    color: #ffffff;
}

.hero-insight-card span {
    color: #72e0c8;
    font-size: 13px;
    font-weight: 900;
}

.hero-insight-card strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
}

.hero-course-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 86px rgba(0, 0, 0, 0.34);
}

.hero-course-image {
    min-height: 190px;
}

.hero-course-body {
    gap: 9px;
}

.hero-course-body small {
    color: #72e0c8;
}

.hero-course-body strong {
    font-size: 25px;
}

.hero-course-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.hero-course-meta i {
    color: rgba(255, 255, 255, 0.74);
    font-style: normal;
    font-weight: 900;
}

.hero-mini-grid div {
    box-shadow: none;
}

.serious-strip {
    margin-top: 0;
    margin-bottom: 54px;
    border-color: #e7e9ee;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(23, 23, 23, 0.08);
}

.serious-strip span {
    color: #404650;
}

.serious-strip strong {
    color: #111111;
}

.home-page .home-section {
    margin-bottom: 64px;
}

.home-page .catalog-head {
    align-items: flex-end;
    margin-bottom: 22px;
}

.home-page .catalog-head h2,
.home-page .home-split-feature h2,
.home-page .creator-cta-v2 h2 {
    color: #111111;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: 0;
}

.home-page .catalog-head span,
.home-page .home-split-feature p,
.home-page .creator-cta-v2 p {
    color: #59616d;
}

.serious-category-grid a {
    position: relative;
    overflow: hidden;
    gap: 12px;
    min-height: 184px;
    border-color: #e5e8ee;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(23, 23, 23, 0.08);
}

.serious-category-grid a:hover {
    border-color: #00856f;
    box-shadow: 0 26px 60px rgba(0, 133, 111, 0.13);
}

.category-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.serious-category-grid strong {
    color: #111111;
    font-size: 21px;
}

.serious-category-grid span:last-child {
    color: #59616d;
}

.home-page .course-rail {
    grid-auto-columns: minmax(286px, 306px);
    gap: 20px;
    padding: 5px 2px 28px;
}

.home-page .serious-course-card {
    overflow: hidden;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
}

.home-page .serious-course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 133, 111, 0.42);
    box-shadow: 0 28px 64px rgba(23, 23, 23, 0.14);
}

.home-page .course-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 184px;
    aspect-ratio: 16 / 10;
    padding: 14px;
    background-position: center;
    background-size: cover;
}

.home-page .course-cover span {
    max-width: calc(100% - 12px);
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    font-size: 12px;
    font-weight: 950;
}

.home-page .course-cover small {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 28px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #72e0c8;
    color: #06251e;
    font-size: 12px;
    font-weight: 950;
}

.home-page .course-body {
    gap: 10px;
    padding: 17px;
}

.course-meta-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #59616d;
    font-size: 13px;
    font-weight: 850;
}

.home-page .course-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: #111111;
    font-size: 18px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-page .course-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: #59616d;
    font-size: 14px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-page .course-author {
    color: #59616d;
    font-size: 13px;
    font-weight: 800;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 3px;
}

.home-page .course-price {
    color: #111111;
    font-size: 18px;
    font-weight: 950;
}

.home-page .course-price del {
    display: block;
    margin: 1px 0 0;
}

.home-page .mini-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
}

.catalog-discovery-card {
    display: grid;
    align-content: end;
    gap: 12px;
    min-height: 100%;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0.1), rgba(17, 17, 17, 0.9)),
        url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=900&q=80");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 23, 23, 0.11);
    scroll-snap-align: start;
}

.catalog-discovery-card span {
    color: #72e0c8;
    font-size: 13px;
    font-weight: 950;
}

.catalog-discovery-card strong {
    color: #ffffff;
    font-size: 23px;
    line-height: 1.16;
}

.catalog-discovery-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.catalog-discovery-card .mini-button {
    width: fit-content;
    border-color: rgba(255, 255, 255, 0.28);
    background: #ffffff;
    color: #111111;
}

.home-empty-state {
    display: grid;
    gap: 6px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    padding: 26px;
    background: #ffffff;
    color: #59616d;
    box-shadow: 0 18px 42px rgba(23, 23, 23, 0.07);
}

.home-empty-state strong {
    color: #111111;
    font-size: 20px;
}

.serious-learning-feature {
    border-color: #e5e8ee;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(23, 23, 23, 0.09);
}

.home-page .feature-checks span {
    border-color: #e2e6ec;
    background: #f8faf9;
    color: #171717;
}

.home-page .feature-checks span::before {
    background: #00856f;
}

.home-page .learning-preview-card {
    border-color: #e5e8ee;
    box-shadow: 0 22px 58px rgba(23, 23, 23, 0.1);
}

.home-page .preview-video span::before {
    border-left-color: #00856f;
}

.home-page .preview-lessons span::before {
    background: linear-gradient(90deg, #00856f, #ff6b4a);
}

.serious-steps .steps-grid div {
    border-color: #e5e8ee;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
}

.serious-steps .steps-grid i {
    background: #111111;
    color: #ffffff;
}

.serious-steps .steps-grid strong {
    color: #111111;
}

.serious-creator-cta.creator-cta-v2 {
    border: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.78)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82");
    background-position: center;
    background-size: cover;
    box-shadow: 0 28px 70px rgba(17, 17, 17, 0.2);
}

.serious-creator-cta.creator-cta-v2 .eyebrow {
    color: #72e0c8;
}

.serious-creator-cta.creator-cta-v2 h2,
.serious-creator-cta.creator-cta-v2 p {
    color: #ffffff;
}

.serious-trust.trust-section-v2 div {
    border-color: #e5e8ee;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
}

.serious-trust.trust-section-v2 strong {
    color: #111111;
}

.serious-trust.trust-section-v2 span {
    color: #59616d;
}

body:not(.admin-surface):not(.creator-surface) .site-footer {
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.98), rgba(17, 17, 17, 0.92)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
}

body:not(.admin-surface):not(.creator-surface) .site-footer .brand span {
    background: linear-gradient(135deg, #ffffff, #72e0c8);
    color: #111111;
}

@media (max-width: 1080px) {
    body:not(.admin-surface):not(.creator-surface) .topbar,
    .home-hero.home-hero-v2.serious-hero,
    .serious-learning-feature,
    .serious-creator-cta.creator-cta-v2 {
        grid-template-columns: 1fr;
    }

    body:not(.admin-surface):not(.creator-surface) .topbar {
        gap: 12px;
        padding: 14px 20px;
    }

    .home-hero.home-hero-v2.serious-hero {
        min-height: auto;
        gap: 34px;
        padding-top: 58px;
        padding-bottom: 46px;
    }

    .home-hero.home-hero-v2.serious-hero h1 {
        font-size: 52px;
    }

    .serious-showcase {
        justify-self: start;
    }
}

@media (max-width: 780px) {
    body:not(.admin-surface):not(.creator-surface) .topbar {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 12px 14px;
    }

    body:not(.admin-surface):not(.creator-surface) .nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .home-hero.home-hero-v2.serious-hero {
        padding: 34px 18px 32px;
    }

    .home-hero.home-hero-v2.serious-hero h1 {
        font-size: 38px;
        line-height: 1.06;
    }

    .home-hero.home-hero-v2.serious-hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .home-hero.home-hero-v2.serious-hero .hero-search {
        grid-template-columns: 1fr;
    }

    .home-hero.home-hero-v2.serious-hero .hero-search .button {
        width: 100%;
    }

    .home-hero.home-hero-v2.serious-hero .hero-proof {
        display: flex;
    }

    .serious-showcase {
        display: none;
    }

    .serious-strip,
    .home-page .home-section,
    .serious-creator-cta.creator-cta-v2,
    .serious-trust.trust-section-v2 {
        width: min(100% - 28px, 1280px);
    }

    .home-page .catalog-head {
        align-items: flex-start;
    }

    .home-page .catalog-head h2,
    .home-page .home-split-feature h2,
    .home-page .creator-cta-v2 h2 {
        font-size: 30px;
    }

    .home-page .course-rail {
        grid-auto-columns: minmax(260px, 86%);
    }

    .course-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-hero.home-hero-v2.serious-hero h1 {
        font-size: 34px;
    }

    .home-hero.home-hero-v2.serious-hero .hero-proof {
        gap: 8px;
    }

    .home-hero.home-hero-v2.serious-hero .hero-proof span {
        min-height: 36px;
        font-size: 13px;
    }
}
