:root {
    /* Public site — cream/ink/coral, matches the approved design reference */
    --lms-bg: #FFF8EF;
    --lms-bg-deep: #FFEEDA;
    --lms-card: #ffffff;
    --lms-ink: #211D3B;
    --lms-muted: #615C82;
    --lms-faint: #8B87A6;
    --lms-primary: #EA6A3D;
    --lms-primary-dark: #C24F26;
    --lms-soft: #FDE6D8;
    --lms-line: #EFE6D9;

    /* Admin / workspace — neutral gray, same accent */
    --adm-bg: #FAFAFA;
    --adm-card: #ffffff;
    --adm-line: #E5E5E5;
    --adm-ink: #171717;
    --adm-muted: #737373;
    --adm-faint: #A3A3A3;
    --adm-hover: #F5F5F5;

    /* Semantic (shared) */
    --lms-success: #16A34A;
    --lms-success-soft: #DCFCE7;
    --lms-info: #0EA5E9;
    --lms-info-soft: #E0F2FE;
    --lms-warning: #D97706;
    --lms-warning-soft: #FEF3C7;
    --lms-danger: #DC2626;
    --lms-danger-soft: #FEE2E2;
}

body {
    background: var(--lms-bg);
    color: var(--lms-ink);
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

/* Sticky footer for public pages — on short pages (login, forgot password,
   etc.) main grows to fill the viewport so the footer sits at the true
   bottom instead of floating mid-page with a gap of body background below it. */
body:not(.workspace-body) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:not(.workspace-body) main {
    flex: 1 0 auto;
}

a { text-decoration: none; }
.fw-black { font-weight: 800; }
.text-muted-2 { color: var(--lms-muted); }

/* Bootstrap's default yellow text-warning is used across views as the
   brand accent link color — repoint it at the new accent instead of
   editing every view. */
.text-warning {
    color: var(--lms-primary-dark) !important;
}

.eyebrow,
.section-eyebrow {
    color: var(--lms-primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ld-h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.16;
    margin: 0;
}

.ld-h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.ld-body {
    color: var(--lms-muted);
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767.98px) {
    .ld-h1 { font-size: 26px; line-height: 1.22; }
    .ld-h2 { font-size: 21px; line-height: 1.28; }
    .ld-body { font-size: 14px; line-height: 1.6; }
}

/* ---- Layout shell: exact side padding from the design reference —
   72px desktop, 20px mobile — instead of Bootstrap's .container, whose
   fixed max-widths/gutters don't match and read as "too zoomed". ---- */
.ld-shell {
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 72px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .ld-shell {
        padding: 0 20px;
    }
}

/* ---- Buttons — 48px tall, 10px radius, 15px/600, per reference ---- */
.btn {
    --bs-btn-padding-y: .6875rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: .9375rem;
    --bs-btn-border-radius: .625rem;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--lms-primary);
    --bs-btn-border-color: var(--lms-primary);
    --bs-btn-hover-bg: var(--lms-primary-dark);
    --bs-btn-hover-border-color: var(--lms-primary-dark);
    --bs-btn-active-bg: var(--lms-primary-dark);
    --bs-btn-active-border-color: var(--lms-primary-dark);
    /* Bootstrap reads a separate --bs-btn-disabled-* set for :disabled/
       .disabled — without this override it falls back to Bootstrap's own
       blue instead of the theme accent. */
    --bs-btn-disabled-bg: var(--lms-primary);
    --bs-btn-disabled-border-color: var(--lms-primary);
    --bs-btn-disabled-opacity: .55;
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--lms-ink);
    --bs-btn-border-color: var(--lms-line);
    --bs-btn-hover-bg: var(--lms-bg-deep);
    --bs-btn-hover-border-color: var(--lms-bg-deep);
    --bs-btn-hover-color: var(--lms-ink);
    --bs-btn-disabled-color: var(--lms-ink);
    --bs-btn-disabled-border-color: var(--lms-line);
}

/* Bootstrap's pagination (used by ->links()) defaults to its own blue —
   same class of bug as the disabled-button fix above. */
.pagination {
    --bs-pagination-color: var(--adm-ink);
    --bs-pagination-hover-color: var(--lms-primary-dark);
    --bs-pagination-focus-color: var(--lms-primary-dark);
    --bs-pagination-active-bg: var(--lms-primary);
    --bs-pagination-active-border-color: var(--lms-primary);
}

/* ---- Brand / public nav ---- */
.brand-mark {
    align-items: center;
    background: var(--lms-primary);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    font-size: 19px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.brand-subtitle {
    color: var(--lms-faint);
    font-size: 11px;
    font-weight: 500;
    margin-top: -.1rem;
}

.brand-logo {
    height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.public-navbar {
    background: var(--lms-bg);
    border-bottom: 1px solid var(--lms-line);
    min-height: 72px;
}

.public-navbar .navbar-nav {
    gap: 4px;
}

.public-navbar .nav-link {
    color: var(--lms-ink);
    font-size: 14.5px;
    font-weight: 500;
    padding: .5rem .7rem;
}

.public-navbar .nav-link.active,
.public-navbar .nav-link:hover {
    color: var(--lms-primary-dark);
}

/* Base (mobile) layout — defined here instead of Bootstrap's .d-flex /
   .justify-content-between utilities, because those carry !important and
   silently beat the display:grid below, which is what broke centering. */
.nav-shell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* True-center the menu on the bar's own midpoint via absolute positioning
   — a grid/flex "center column" still centers on the leftover space
   between logo and buttons, which visibly skews whenever those two
   differ in width (logo w/ tagline vs. a single Dashboard button). */
@media (min-width: 992px) {
    .nav-shell {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    .nav-shell .navbar-collapse {
        display: contents;
    }

    .nav-shell .navbar-nav {
        left: 50%;
        margin: 0 !important;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.nav-search,
.workspace-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--lms-line);
    border-radius: .625rem;
    display: flex;
    gap: .65rem;
    min-width: 230px;
    padding: .55rem .9rem;
}

.nav-search {
    min-width: 240px;
}

.nav-search input,
.workspace-search input {
    border: 0;
    font-size: .88rem;
    outline: 0;
    width: 100%;
}

/* ---- Landing sections — full-bleed background, .ld-shell insets the
   content, exact vertical rhythm from the design reference ---- */
.ld-hero { padding: 60px 0 68px; }
.ld-features, .ld-courses { padding: 16px 0 68px; }
.ld-split { padding: 68px 0; background: var(--lms-bg-deep); }
.ld-pricing { padding: 68px 0; }
.ld-footer { padding: 52px 0 28px; }

@media (max-width: 767.98px) {
    .ld-hero { padding: 36px 0 40px; }
    .ld-features, .ld-courses { padding: 8px 0 40px; }
    .ld-split, .ld-pricing { padding: 40px 0; }
    .ld-footer { padding: 36px 0 28px; }
}

/* ---- Hero (product-mockup card, not a cropped photo) ---- */
.hero-panel {
    padding-top: .5rem;
}

/* Bootstrap's percentage-width grid columns don't leave room for a real
   CSS `gap` (50% + 50% + gap overflows and forces an unwanted wrap) —
   use Bootstrap's own gutter variable instead, which shifts columns via
   padding/negative-margin rather than shrinking them. */
.hero-row {
    --bs-gutter-x: 64px;
    --bs-gutter-y: 24px;
}

.hero-stats {
    display: flex;
    gap: 1.75rem;
}

.hero-stats > div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.hero-stats span {
    color: var(--lms-faint);
    font-size: .8rem;
}

.hero-stats .divider {
    align-self: stretch;
    background: var(--lms-line);
    width: 1px;
}

.announcement-bar {
    background: var(--lms-ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .55rem 0;
}

.announcement-bar a {
    color: var(--lms-soft);
    text-decoration: underline;
}

.ld-partners { padding: 32px 0; }

.partner-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.partner-strip img {
    filter: grayscale(1);
    height: 34px;
    object-fit: contain;
    opacity: .6;
    transition: opacity .15s, filter .15s;
}

.partner-strip img:hover {
    filter: none;
    opacity: 1;
}

.ld-satisfaction { padding: 24px 0; }

.satisfaction-card {
    align-items: center;
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: 1.25rem;
    display: flex;
    gap: 2rem;
    padding: 1.75rem 2rem;
}

.satisfaction-rating {
    border-right: 1px solid var(--lms-line);
    padding-right: 2rem;
    text-align: center;
}

.satisfaction-rating strong { display: block; font-size: 2.25rem; font-weight: 800; }
.satisfaction-rating .stars { color: #F59E0B; font-size: .85rem; }

@media (max-width: 767.98px) {
    .satisfaction-card { flex-direction: column; text-align: center; }
    .satisfaction-rating { border-right: 0; padding-right: 0; }
}

.hero-mock-wrap {
    position: relative;
    min-height: 380px;
}

.hero-mock-backdrop {
    background: var(--lms-soft);
    border-radius: 1.75rem;
    inset: 0;
    position: absolute;
    transform: rotate(-3deg);
}

.hero-banner-image {
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px -20px rgba(33, 29, 59, .25);
    height: 100%;
    object-fit: cover;
    position: relative;
    width: 100%;
}

.hero-mock-card {
    background: var(--lms-card);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px -20px rgba(33, 29, 59, .25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.75rem;
    position: relative;
}

.hero-mock-progress {
    background: var(--lms-bg-deep);
    border-radius: 999px;
    height: .5rem;
    overflow: hidden;
}

.hero-mock-progress > span {
    background: var(--lms-primary);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.hero-mock-icon {
    align-items: center;
    background: var(--lms-bg-deep);
    border-radius: .75rem;
    color: var(--lms-primary-dark);
    display: flex;
    flex: none;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

/* ---- Filter chips ---- */
.chip {
    align-items: center;
    border: 1.5px solid var(--lms-line);
    border-radius: 999px;
    color: var(--lms-muted);
    display: inline-flex;
    font-size: 13.5px;
    font-weight: 600;
    height: 44px;
    padding: 0 18px;
}

.chip.active,
.chip:hover {
    background: var(--lms-ink);
    border-color: var(--lms-ink);
    color: #fff;
}

/* ---- Course card (flat color + icon banner, no stock photos —
   matches the design reference's product-card language) ---- */
.course-card {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: .875rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-banner {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    height: 140px;
    justify-content: center;
    position: relative;
}

.course-banner.bg-accent { background: var(--lms-primary); }
.course-banner.bg-accent i { color: #fff; }
.course-banner.bg-ink { background: var(--lms-ink); }
.course-banner.bg-ink i { color: #fff; }
.course-banner.bg-soft { background: var(--lms-soft); }
.course-banner.bg-soft i { color: var(--lms-primary-dark); }

.course-banner i {
    font-size: 2.2rem;
}

.course-banner-tag {
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    color: var(--lms-primary-dark);
    font-size: 11px;
    font-weight: 700;
    left: 14px;
    padding: 4px 10px;
    position: absolute;
    top: 14px;
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.course-card-body .title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    overflow: hidden;
}

.course-card-body .by {
    color: var(--lms-faint);
    font-size: 12.5px;
}

/* Truncate with an ellipsis instead of letting description length push
   cards to different heights — "..." reads clearer than a jagged grid. */
.clamp-2 {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
}

.course-card-body .btn,
.course-card .btn {
    margin-top: auto;
}

/* ---- Course detail ---- */
.course-hero-banner {
    align-items: center;
    background: var(--lms-primary);
    background-position: center;
    background-size: cover;
    border-radius: 1.25rem;
    display: flex;
    height: 280px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.course-hero-banner i {
    color: #fff;
    font-size: 4.5rem;
}

.course-hero-banner .course-banner-tag {
    font-size: 12px;
    left: 18px;
    padding: 5px 12px;
    top: 18px;
}

.breadcrumb-trail {
    color: var(--lms-faint);
    font-size: 13px;
}

.breadcrumb-trail .current {
    color: var(--lms-ink);
    font-weight: 600;
}

.curriculum-item {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: .875rem;
    padding: 18px 20px;
}

.curriculum-item summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 14px;
    list-style: none;
}

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

.curriculum-num {
    align-items: center;
    background: var(--lms-soft);
    border-radius: 999px;
    color: var(--lms-primary-dark);
    display: flex;
    flex: none;
    font-size: 13px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.curriculum-item summary .title {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
}

.curriculum-item summary i {
    color: var(--lms-faint);
    transition: transform .15s;
}

.curriculum-item[open] summary i {
    transform: rotate(180deg);
}

.curriculum-lessons {
    margin-top: 10px;
    padding-left: 48px;
}

.curriculum-lessons > div + div {
    border-top: 1px solid var(--lms-line);
}

/* ---- Form fields (checkout, etc.) ---- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    color: var(--lms-muted);
    font-size: 13px;
    font-weight: 600;
}

.field .hint {
    color: var(--lms-faint);
    font-size: 11.5px;
}

.field .form-select,
.field .form-control {
    border: 1.5px solid var(--lms-line);
    border-radius: .625rem;
    font-size: 14px;
    height: 46px;
}

.checkout-summary-row {
    border-bottom: 1px solid var(--lms-line);
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
}

/* ---- Product cards / catalog ---- */
.course-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.card {
    border: 1px solid var(--lms-line);
    border-radius: .875rem;
}

.badge-soft {
    background: var(--lms-soft);
    color: var(--lms-primary-dark);
}

.price {
    color: var(--lms-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.strike {
    color: var(--lms-faint);
    font-size: .85rem;
    text-decoration: line-through;
}

.video {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: .75rem;
    width: 100%;
}

/* ---- Feature tiles ---- */
.feature-card {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: .875rem;
    height: 100%;
    padding: 1.35rem;
}

.feature-icon {
    align-items: center;
    background: var(--lms-soft);
    border-radius: .75rem;
    color: var(--lms-primary-dark);
    display: inline-flex;
    height: 2.9rem;
    justify-content: center;
    margin-bottom: .75rem;
    width: 2.9rem;
}

/* ---- Split / dark panels ---- */
.split-panel-dark {
    background: var(--lms-ink);
    border-radius: 1.25rem;
    color: #fff;
    padding: 2rem;
}

.split-panel-dark .text-muted-2 { color: #C9C5DE; }
.split-panel-dark .eyebrow { color: #F4B79A; }

.split-panel-light {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: 1.25rem;
    padding: 2rem;
}

.split-media {
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
}

.split-media img {
    width: 100%;
}

/* Bold price total — base size matches checkout/detail summary panels;
   .pricing-card bumps it up further below. This was previously scoped to
   only `.pricing-card .price-amount`, so every other panel using the same
   class (checkout, course/bootcamp detail, mahasiswa pending) silently
   fell back to the browser's regular weight instead of bold. */
.price-amount {
    color: var(--lms-ink);
    font-size: 1.375rem;
    font-weight: 800;
}

/* ---- Pricing ---- */
.pricing-card {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.pricing-card.is-recommended {
    background: var(--lms-ink);
    color: #fff;
    position: relative;
}

.pricing-card.is-recommended .text-muted-2 { color: #C9C5DE; }
.pricing-card.is-recommended .price-amount { color: #fff; }

.pricing-card .price-amount {
    font-size: 1.75rem;
    font-weight: 800;
}

.pricing-badge {
    background: var(--lms-primary);
    border-radius: 999px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .75rem;
    position: absolute;
    right: 1.75rem;
    top: 1.75rem;
}

.pricing-feature {
    align-items: flex-start;
    display: flex;
    font-size: .86rem;
    gap: .6rem;
}

.cta-panel {
    background: var(--lms-ink);
    border-radius: 1.25rem;
    color: #fff;
}

.cta-panel .text-muted-2 {
    color: #C9C5DE;
}

/* ---- Footer (4-col on desktop, stacked on mobile) ---- */
.ld-footer {
    background: var(--lms-ink);
    color: #C9C5DE;
}

.ld-footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.ld-footer-grid h6 {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ld-footer-grid a,
.ld-footer-grid span {
    color: inherit;
    display: block;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.ld-footer-divider {
    background: #3A3660;
    height: 1px;
    margin: 32px 0 20px;
}

@media (max-width: 767.98px) {
    .ld-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Workspace / admin shell ---- */
.workspace-body {
    background: var(--adm-bg);
    /* inapp's own base size (.875rem) — the public site runs a size up */
    font-size: 14px;
    overflow-x: hidden;
}

/* Admin pages still use raw Bootstrap heading utilities (h1..h6/.h1..h6)
   at Bootstrap's own default sizes (24-40px) — nowhere close to the
   reference's compact scale (13-20px). Capped once here so every admin
   view is tight and consistent, not just the ones rewritten by hand. */
.workspace-body h1, .workspace-body .h1 { font-size: 20px; }
.workspace-body h2, .workspace-body .h2 { font-size: 17px; }
.workspace-body h3, .workspace-body .h3 { font-size: 15.5px; }
.workspace-body h4, .workspace-body .h4 { font-size: 14.5px; }
.workspace-body h5, .workspace-body .h5 { font-size: 14px; }
.workspace-body h6, .workspace-body .h6 { font-size: 13.5px; }

.workspace {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.workspace-sidebar {
    background: var(--adm-card);
    border-right: 1px solid var(--adm-line);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1rem .65rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.workspace-sidebar-backdrop {
    display: none;
}

.workspace-brand {
    align-items: center;
    color: var(--adm-ink);
    display: flex;
    gap: .75rem;
    padding: 0 .5rem;
}

.workspace-brand small {
    color: var(--adm-faint);
    display: block;
    font-size: .76rem;
    font-weight: 500;
}

.profile-card {
    background: var(--adm-hover);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    padding: .9rem;
}

.avatar {
    align-items: center;
    background: var(--lms-primary);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-weight: 700;
    height: 2.6rem;
    justify-content: center;
    margin-bottom: .6rem;
    width: 2.6rem;
}

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

.profile-card span {
    color: var(--adm-muted);
    font-size: .82rem;
    margin-top: .15rem;
}

.workspace-menu {
    display: grid;
    gap: .1rem;
    overflow-y: auto;
    padding-right: .15rem;
}

.workspace-section-label {
    color: var(--adm-faint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin: .5rem .6rem .1rem;
    text-transform: uppercase;
}

.workspace-menu a {
    align-items: center;
    border-radius: 8px;
    color: var(--adm-ink);
    display: flex;
    font-size: 14px;
    font-weight: 400;
    gap: 12px;
    padding: 8px 10px;
}

.workspace-menu a i {
    align-items: center;
    display: inline-flex;
    font-size: 1.05rem;
    height: 1.15rem;
    justify-content: center;
    width: 1.15rem;
}

/* inapp's own hover/active is a barely-there tint (rgba primary, .095),
   not a solid fill — reads as a cleaner, more "SaaS admin" affordance. */
.workspace-menu a.active,
.workspace-menu a.active-soft,
.workspace-menu a:hover {
    background: rgba(234, 106, 61, .095);
    color: var(--lms-primary);
}

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

.workspace-topbar {
    align-items: center;
    background: var(--adm-card);
    border-bottom: 1px solid var(--adm-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.workspace-search {
    background: var(--adm-hover);
    border-color: transparent;
    min-width: min(420px, 40vw);
}

/* Icon-only row actions (edit/view/delete/toggle) — matches inapp's own
   .btn-icon component instead of full text buttons cluttering tables. */
.btn-icon-sm {
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--adm-line);
    border-radius: .5rem;
    color: var(--adm-muted);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.btn-icon-sm:hover {
    background: var(--adm-hover);
    color: var(--adm-ink);
}

.btn-icon-sm.text-danger:hover {
    background: var(--lms-danger-soft);
    border-color: var(--lms-danger);
    color: var(--lms-danger);
}

.btn-icon-sm.text-primary:hover {
    background: var(--lms-soft);
    border-color: var(--lms-primary);
    color: var(--lms-primary-dark);
}

/* Hero Banner CMS — live preview mockup, roughly the real hero's shape
   at a smaller scale so admins see what they're publishing. */
.hero-preview {
    align-items: flex-start;
    background: var(--lms-bg) linear-gradient(135deg, rgba(234, 106, 61, .15), transparent 60%);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    justify-content: center;
    min-height: 220px;
    padding: 1.5rem;
    position: relative;
}

.hero-preview::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .85));
    border-radius: inherit;
    content: "";
    inset: 0;
    position: absolute;
}

.hero-preview > * {
    position: relative;
}

.hero-preview .hp-eyebrow {
    color: var(--lms-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-preview .hp-title {
    color: var(--lms-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-preview .hp-subtitle {
    color: var(--lms-muted);
    font-size: 12.5px;
}

.hero-preview .hp-actions {
    display: flex;
    gap: .5rem;
    margin-top: .25rem;
}

.hero-preview .hp-btn {
    border-radius: .5rem;
    font-size: 11.5px;
    font-weight: 600;
    padding: .4rem .8rem;
}

.hero-preview .hp-btn.primary {
    background: var(--lms-primary);
    color: #fff;
}

.hero-preview .hp-btn.secondary {
    background: #fff;
    border: 1px solid var(--adm-line);
    color: var(--lms-ink);
}

.top-icon {
    align-items: center;
    background: var(--adm-hover);
    border: 0;
    border-radius: 999px;
    color: var(--adm-muted);
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.sidebar-badge {
    background: var(--lms-danger);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    margin-left: auto;
    min-width: 18px;
    padding: 0 5px;
    text-align: center;
}

.workspace-sidebar nav a {
    display: flex;
    align-items: center;
}

.notification-dot {
    align-items: center;
    background: var(--lms-primary);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .64rem;
    font-weight: 700;
    height: 1.1rem;
    justify-content: center;
    position: absolute;
    right: -.2rem;
    top: -.2rem;
    width: 1.1rem;
}

.notification-menu {
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    min-width: 320px;
    overflow: hidden;
}

.notification-item {
    white-space: normal;
}

.notification-item strong,
.notification-item span {
    display: block;
}

.notification-item span {
    color: var(--adm-muted);
    font-size: .82rem;
}

.notification-item.unread {
    background: var(--lms-soft);
}

.notification-row {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    display: grid;
    gap: .35rem;
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.notification-row.unread {
    background: var(--lms-soft);
    border-color: var(--lms-primary);
}

.notification-row span:not(.badge),
.notification-row small {
    color: var(--adm-muted);
}

.active-lesson {
    background: var(--lms-soft);
    border-radius: .625rem;
}

.learning-assets {
    background: var(--adm-hover);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    padding: 1rem;
}

.refund-box {
    background: var(--adm-hover);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    padding: 1rem;
}

.workspace-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Only vertical margin is neutralized — .row still needs its own
   negative left/right margin for the Bootstrap gutter math to work. */
.workspace-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.workspace-footer {
    border-top: 1px solid var(--adm-line);
    color: var(--adm-faint);
    font-size: 12.5px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.workspace-panel {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    padding: 1.35rem;
}

/* Every admin form still uses raw Bootstrap .form-label/.form-control —
   sized once here so labels and fields read consistently across every
   panel, not just the ones rewritten by hand. */
.workspace-body .form-label {
    color: var(--adm-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: .35rem;
}

.workspace-body .form-control,
.workspace-body .form-select {
    font-size: 13.5px;
}

.workspace-subnav {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .625rem;
    display: flex;
    gap: .25rem;
    max-width: 100%;
    overflow-x: auto;
    padding: .25rem;
}

.workspace-subnav a {
    border-radius: .5rem;
    color: var(--adm-muted);
    flex-shrink: 0;
    font-size: .87rem;
    font-weight: 600;
    padding: .5rem .85rem;
    white-space: nowrap;
}

.workspace-subnav a.active,
.workspace-subnav a:hover {
    background: var(--lms-soft);
    color: var(--lms-primary-dark);
}

/* ---- Stat cards (tinted, like the admin reference) ---- */
.metric-card {
    align-items: flex-start;
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    display: flex;
    gap: .85rem;
    padding: 1.1rem;
}

.metric-card .metric-icon {
    align-items: center;
    border-radius: .5rem;
    color: #fff;
    display: flex;
    flex: none;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.metric-card .metric-value {
    color: var(--adm-ink);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.metric-card.tint-accent { background: var(--lms-soft); border-color: #F7CBB0; }
.metric-card.tint-accent .metric-icon { background: var(--lms-primary); }
.metric-card.tint-success { background: var(--lms-success-soft); border-color: #B7E9C6; }
.metric-card.tint-success .metric-icon { background: var(--lms-success); }
.metric-card.tint-info { background: var(--lms-info-soft); border-color: #BAE6FD; }
.metric-card.tint-info .metric-icon { background: var(--lms-info); }
.metric-card.tint-warning { background: var(--lms-warning-soft); border-color: #FDE68A; }
.metric-card.tint-warning .metric-icon { background: var(--lms-warning); }

.chart-box {
    min-height: 220px;
    position: relative;
}

.chart-grid {
    display: none;
}

.chart-line,
.chart-dot {
    display: none;
}

.clean-chart {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.clean-chart-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 120px minmax(120px, 1fr) 92px;
}

.clean-chart-row span,
.clean-chart-row strong {
    font-size: .86rem;
}

.clean-chart-row strong {
    text-align: right;
}

.clean-chart-track {
    background: var(--adm-hover);
    border-radius: 999px;
    height: .7rem;
    overflow: hidden;
}

.clean-chart-bar {
    background: var(--lms-primary);
    border-radius: inherit;
    height: 100%;
}

.manager-table th {
    color: var(--adm-muted);
    font-size: .74rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.manager-table td {
    font-size: 13px;
}

/* Bootstrap badges default to .75em of the parent's font-size, which
   next to bold 13-14px table text reads as broken/too-tiny rather than
   an intentional tag. Plus text-bg-light's near-white fill was
   invisible against the panel's own white/off-white background. */
.workspace-body .badge {
    font-size: .74rem;
    font-weight: 600;
    padding: .32em .65em;
}

.workspace-body .badge.text-bg-light {
    background-color: var(--adm-hover) !important;
    border: 1px solid var(--adm-line);
    color: var(--adm-ink) !important;
}

.roadmap-shell {
    padding: 1rem 0;
    position: relative;
}

.roadmap-line {
    background: var(--lms-primary);
    border-radius: 999px;
    bottom: 0;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
}

.roadmap-node {
    display: flex;
    margin: 1.2rem 0;
    position: relative;
    width: 100%;
}

.roadmap-node::before {
    background: #fff;
    border: 4px solid var(--lms-primary);
    border-radius: 999px;
    content: "";
    height: 20px;
    left: 50%;
    position: absolute;
    top: 1.2rem;
    transform: translateX(-50%);
    width: 20px;
    z-index: 2;
}

.roadmap-node.left {
    justify-content: flex-start;
}

.roadmap-node.right {
    justify-content: flex-end;
}

.roadmap-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .875rem;
    padding: 1.2rem;
    width: min(44%, 520px);
}

.setting-chip {
    align-items: center;
    background: var(--lms-soft);
    border: 1px solid #F7CBB0;
    border-radius: .75rem;
    display: flex;
    justify-content: space-between;
    padding: .75rem .9rem;
}

.setting-chip span {
    color: var(--lms-primary-dark);
    font-size: .82rem;
    font-weight: 700;
}

.setting-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: .75rem;
    padding: 1rem;
}

.payment-note {
    background: var(--lms-soft);
    border: 1px solid #F7CBB0;
    border-radius: .75rem;
    padding: .9rem;
}

.payment-note strong,
.payment-note span {
    display: block;
}

.payment-note span,
.payment-note p {
    color: var(--lms-primary-dark);
    font-size: .86rem;
}

.payment-note p {
    margin: .45rem 0 0;
}

.promo-card {
    background: var(--lms-card);
    border: 1px solid var(--lms-line);
    border-radius: .875rem;
    display: grid;
    gap: .85rem;
    overflow: hidden;
    padding: .75rem;
}

.promo-card img {
    aspect-ratio: 16 / 9;
    border-radius: .625rem;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 767.98px) {
    .roadmap-line,
    .roadmap-node::before {
        left: 12px;
    }

    .roadmap-node,
    .roadmap-node.left,
    .roadmap-node.right {
        justify-content: flex-end;
    }

    .roadmap-card {
        width: calc(100% - 42px);
    }

    .hero-mock-wrap {
        min-height: 280px;
    }
}

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

    /* Off-canvas drawer instead of a static inline block — otherwise the
       full nav list dumps above the page content and buries it below a
       long scroll on every admin page. */
    .workspace-sidebar {
        bottom: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, .15);
        height: 100vh;
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform .2s ease;
        width: min(280px, 85vw);
        z-index: 1045;
    }

    .workspace-sidebar.is-open {
        transform: translateX(0);
    }

    .workspace-sidebar-backdrop {
        background: rgba(23, 20, 15, .45);
        bottom: 0;
        display: none;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1044;
    }

    .workspace-sidebar-backdrop.is-open {
        display: block;
    }

    .workspace-search {
        min-width: 0;
        width: 100%;
    }

    .workspace-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    /* Page-header row (badge/title/description + a page-level action
       button) — stack instead of squeezing the button against wrapped
       title text. Scoped to a direct child of workspace-content so it
       only catches top-level page headers, not nested card rows using
       the same utility classes. */
    .workspace-content > .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
    }

    .public-navbar .navbar-collapse {
        padding-top: 1rem;
    }

    .nav-search {
        margin-bottom: 1rem;
        min-width: 0;
        width: 100%;
    }
}

/* Clean, chrome-free receipt when printing an invoice page (window.print()
   button on transactions/show and bootcamp-transactions/show). */
@media print {
    .workspace-sidebar,
    .workspace-sidebar-backdrop,
    .workspace-topbar,
    .d-print-none {
        display: none !important;
    }

    .workspace {
        display: block;
    }

    .workspace-content {
        padding: 0;
    }

    .workspace-panel {
        border: none;
        box-shadow: none;
    }
}

/* Documentation feature — annotated image pins */
.doc-annotate-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    cursor: crosshair;
}

.doc-annotate-frame img {
    max-width: 100%;
    border-radius: .75rem;
    display: block;
    user-select: none;
}

.doc-pin {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: var(--lms-primary, #ff6a3d);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.doc-annotate-frame.is-readonly {
    cursor: default;
}

/* Featured & Urutan — drag-and-drop reorder list */
.reorder-list li[draggable="true"] {
    cursor: grab;
}

.reorder-list li.is-dragging {
    opacity: .4;
}
