/* CMP Platform — Dashboard Layout (Sidebar) */

/* ── App shell ────────────────────────────────────────────────────────────── */
.admin-bar .cmp-sidebar {
    /* Push sidebar below WP admin bar */
    top: 32px !important;
    height: calc(100vh - 32px) !important;
}
@media (max-width: 782px) {
    .admin-bar .cmp-sidebar {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}

.cmp-app {
    display: flex;
    min-height: 100vh;
    background: var(--cmp-bg, #FAF8F5);
    font-family: "Inter", system-ui, sans-serif;
    color: var(--cmp-text, #0E0E1A);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.cmp-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #13111F;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 100;
    transition: transform .25s ease;
}
.cmp-sidebar::-webkit-scrollbar { display: none; }

/* Brand / logo */
.cmp-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
}
.cmp-sidebar__brand-mark {
    width: 34px;
    height: 34px;
    background: #FF4D1C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-family: "Geist", system-ui, sans-serif;
    letter-spacing: -1px;
}
.cmp-sidebar__brand-name {
    font-family: "Geist", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.cmp-sidebar__brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    font-weight: 400;
}

/* User block */
.cmp-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.cmp-sidebar__user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,77,28,.5) !important;
}
.cmp-sidebar__user-info { min-width: 0; }
.cmp-sidebar__user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cmp-sidebar__user-email {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav */
.cmp-sidebar__nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.cmp-sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.cmp-sidebar__nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
    border-left-color: rgba(255,77,28,.4);
}
.cmp-sidebar__nav-item--active {
    color: #FF4D1C;
    background: rgba(255,77,28,.08);
    border-left-color: #FF4D1C;
    font-weight: 600;
}
.cmp-sidebar__nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .7;
}
.cmp-sidebar__nav-item--active .cmp-sidebar__nav-icon,
.cmp-sidebar__nav-item:hover .cmp-sidebar__nav-icon { opacity: 1; }

/* Footer / logout */
.cmp-sidebar__footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.cmp-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .15s;
}
.cmp-sidebar__logout:hover { color: #fff; }
.cmp-sidebar__logout-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Main area ────────────────────────────────────────────────────────────── */
.cmp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--cmp-bg, #FAF8F5);
}

/* Top bar */
.cmp-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid rgba(14,14,26,.08);
    position: sticky;
    top: 0;
    z-index: 90;
    flex-shrink: 0;
}
.cmp-topbar__title {
    font-family: "Geist", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--cmp-text, #0E0E1A);
    margin: 0;
    letter-spacing: -.02em;
}
.cmp-topbar__spacer { flex: 1; }

/* Hamburger (mobile only) */
.cmp-hamburger {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(14,14,26,.12);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    color: var(--cmp-text, #0E0E1A);
}
.cmp-hamburger svg { display: block; }

/* Content */
.cmp-content {
    flex: 1;
    padding: 28px 28px 48px;
    max-width: 960px;
    width: 100%;
}

/* ── Mobile sidebar overlay ───────────────────────────────────────────────── */
.cmp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,14,26,.45);
    z-index: 99;
    backdrop-filter: blur(2px);
}

/* ── Dashboard sections ───────────────────────────────────────────────────── */
.cmp-dashboard-section { margin-bottom: 2.5rem; }

.cmp-dashboard-section__title {
    font-family: "Geist", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 1.125rem;
    color: var(--cmp-text, #0E0E1A);
    letter-spacing: -.01em;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.cmp-dashboard-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 16px;
}
.cmp-dashboard-empty__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block;
}
.cmp-dashboard-empty h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.cmp-dashboard-empty p {
    color: var(--cmp-text-muted, #64748B);
    font-size: .9375rem;
    margin: 0 0 1.25rem;
}

/* ── Enrolled list ───────────────────────────────────────────────────────── */
.cmp-enrolled-list { display: flex; flex-direction: column; gap: .875rem; }

.cmp-enrolled-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 12px;
    transition: box-shadow .2s;
}
.cmp-enrolled-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

@media (max-width: 600px) {
    .cmp-enrolled-item { grid-template-columns: 1fr auto; }
    .cmp-enrolled-item__thumb { display: none; }
}

.cmp-enrolled-item__thumb {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.cmp-enrolled-item__meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .25rem;
    flex-wrap: wrap;
}
.cmp-enrolled-item__expires {
    font-size: .8125rem;
    color: var(--cmp-text-muted, #64748B);
}
.cmp-enrolled-item__title {
    font-size: .9375rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}
.cmp-enrolled-item__title a {
    color: var(--cmp-text, #0E0E1A);
    text-decoration: none;
}
.cmp-enrolled-item__title a:hover { color: #FF4D1C; }
.cmp-enrolled-item__progress {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.cmp-enrolled-item__progress .cmp-progress-bar {
    flex: 1;
    min-width: 80px;
}
.cmp-enrolled-item__pct {
    font-size: .8125rem;
    color: var(--cmp-text-muted, #64748B);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.cmp-enrolled-item__actions { flex-shrink: 0; }

/* ── Catalog filters ─────────────────────────────────────────────────────── */
.cmp-catalog-header { margin-bottom: 1.5rem; }

.cmp-catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .875rem;
    align-items: center;
}
.cmp-catalog-filters__search {
    flex: 1 1 220px;
    min-width: 160px;
    padding: .5rem .875rem;
    border: 1px solid rgba(14,14,26,.12);
    border-radius: 8px;
    font-size: .9375rem;
    background: #fff;
    color: var(--cmp-text, #0E0E1A);
    transition: border-color .15s;
}
.cmp-catalog-filters__search:focus {
    outline: none;
    border-color: #FF4D1C;
    box-shadow: 0 0 0 3px rgba(255,77,28,.1);
}
.cmp-catalog-filters__select {
    padding: .5rem .875rem;
    border: 1px solid rgba(14,14,26,.12);
    border-radius: 8px;
    font-size: .9375rem;
    background: #fff;
    cursor: pointer;
    color: var(--cmp-text, #0E0E1A);
}
.cmp-catalog-pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
}
.cmp-btn--active {
    background: #FF4D1C !important;
    color: #fff !important;
    border-color: #FF4D1C !important;
}

/* ── Webinar cards ───────────────────────────────────────────────────────── */
.cmp-webinar-list { display: flex; flex-direction: column; gap: .875rem; }

.cmp-webinar-card {
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow .2s, transform .15s;
}
.cmp-webinar-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    transform: translateY(-1px);
}
.cmp-webinar-card__date-block {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    background: rgba(255,77,28,.07);
    border-radius: 8px;
    padding: 6px 4px;
}
.cmp-webinar-card__date-day {
    font-family: "Geist", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #FF4D1C;
    line-height: 1;
}
.cmp-webinar-card__date-mon {
    font-size: 11px;
    font-weight: 600;
    color: var(--cmp-text-muted, #64748B);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.cmp-webinar-card__body { flex: 1; min-width: 0; }
.cmp-webinar-card__time {
    font-size: .8125rem;
    color: #FF4D1C;
    font-weight: 600;
    margin: 0 0 .25rem;
    letter-spacing: .02em;
}
.cmp-webinar-card__title {
    font-size: .9375rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}
.cmp-webinar-card__title a {
    color: var(--cmp-text, #0E0E1A);
    text-decoration: none;
}
.cmp-webinar-card__title a:hover { color: #FF4D1C; }
.cmp-webinar-card__meta {
    font-size: .8125rem;
    color: var(--cmp-text-muted, #64748B);
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.cmp-calendar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.cmp-calendar-layout .cmp-calendar-upcoming { margin-top: 0; }
@media (max-width: 900px) { .cmp-calendar-layout { grid-template-columns: 1fr; } }

#cmp-fullcalendar {
    min-height: 500px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(14,14,26,.08);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    --fc-button-bg-color: #FF4D1C;
    --fc-button-border-color: #FF4D1C;
    --fc-button-hover-bg-color: #E83A0D;
    --fc-today-bg-color: rgba(255,77,28,.07);
}
#cmp-fullcalendar .fc-button { border-radius: 8px !important; font-size: 13px !important; }

/* ── Account ─────────────────────────────────────────────────────────────── */
.cmp-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .cmp-account-grid { grid-template-columns: 1fr; }
}
.cmp-account-section {
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 12px;
    padding: 1.5rem;
}
.cmp-account-section__title {
    font-family: "Geist", system-ui, sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--cmp-text, #0E0E1A);
    letter-spacing: -.01em;
}
.cmp-account-subsection {
    font-size: .875rem;
    font-weight: 700;
    margin: 1.5rem 0 .75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(14,14,26,.08);
    color: var(--cmp-text, #0E0E1A);
}
.cmp-form-row { margin-bottom: 1rem; }
.cmp-form-row label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .375rem;
    color: var(--cmp-text, #0E0E1A);
}
.cmp-form-input {
    width: 100%;
    padding: .5rem .875rem;
    border: 1px solid rgba(14,14,26,.12);
    border-radius: 8px;
    font-size: .9375rem;
    line-height: 1.4;
    box-sizing: border-box;
    background: #fff;
    color: var(--cmp-text, #0E0E1A);
    transition: border-color .15s;
}
.cmp-form-input:focus {
    outline: none;
    border-color: #FF4D1C;
    box-shadow: 0 0 0 3px rgba(255,77,28,.1);
}
.cmp-form-input:disabled {
    background: var(--cmp-bg-alt, #F5F2EE);
    color: var(--cmp-text-muted, #64748B);
}
.cmp-form-hint {
    font-size: .8125rem;
    color: var(--cmp-text-muted, #64748B);
    margin: .25rem 0 0;
}
.cmp-account-orders {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.cmp-account-orders th,
.cmp-account-orders td {
    text-align: left;
    padding: .5rem .625rem;
    border-bottom: 1px solid rgba(14,14,26,.08);
}
.cmp-account-orders th {
    font-weight: 700;
    color: var(--cmp-text-muted, #64748B);
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cmp-account-orders a {
    color: #FF4D1C;
    text-decoration: none;
}

/* ── Notices in dashboard context ────────────────────────────────────────── */
.cmp-notice--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}
.cmp-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

/* ── Theme container escape ──────────────────────────────────────────────── */
/* When the dashboard is inside the theme's kca-main/kca-container, strip
   all their padding so the .cmp-app can fill the full viewport width. */
.kca-main:has(.cmp-app),
.kca-main:has(.cmp-login-page) {
    padding: 0 !important;
    background: transparent !important;
}
.kca-container:has(.cmp-app),
.kca-container:has(.cmp-login-page) {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cmp-sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 110;
    }
    .cmp-sidebar--open {
        transform: translateX(0);
    }
    .cmp-sidebar--open + .cmp-sidebar-overlay {
        display: block;
    }
    .cmp-hamburger {
        display: inline-flex;
    }
    .cmp-content {
        padding: 20px 16px 40px;
    }
    .cmp-topbar {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .cmp-account-grid { grid-template-columns: 1fr; }
    .cmp-course-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BENTO GRID (Dashboard Home)
═══════════════════════════════════════════════════════════════════════════ */
.cmp-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    grid-template-areas:
        "welcome  welcome  welcome"
        "continue continue webinar"
        "progress quicklinks webinar";
    gap: 16px;
    padding: 24px;
}
.cmp-bento__welcome      { grid-area: welcome; }
.cmp-bento__continue     { grid-area: continue; }
.cmp-bento__webinar      { grid-area: webinar; }
.cmp-bento__progress-list { grid-area: progress; }
.cmp-bento__quicklinks   { grid-area: quicklinks; }

@media (max-width: 1100px) {
    .cmp-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "welcome welcome"
            "continue continue"
            "webinar webinar"
            "progress quicklinks";
    }
}
@media (max-width: 640px) {
    .cmp-bento {
        grid-template-columns: 1fr;
        grid-template-areas: "welcome" "continue" "webinar" "progress" "quicklinks";
        padding: 16px;
        gap: 12px;
    }
}

/* Welcome banner */
.cmp-bento-welcome {
    background: linear-gradient(135deg, #13111F 0%, #1D1A2F 100%);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cmp-bento-welcome__greeting {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin: 0;
    letter-spacing: .03em;
}
.cmp-bento-welcome__name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 0;
    font-family: "Geist", system-ui, sans-serif;
    letter-spacing: -.02em;
}
.cmp-bento-welcome__stats { display: flex; gap: 10px; flex-shrink: 0; }
.cmp-stat-chip {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 10px 18px;
    text-align: center;
    min-width: 60px;
}
.cmp-stat-chip__num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: "Geist", system-ui, sans-serif;
}
.cmp-stat-chip__label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
    letter-spacing: .03em;
}

/* Bento cards */
.cmp-bento-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(14,14,26,.07);
    height: 100%;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cmp-bento-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}
.cmp-bento-card__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--cmp-text-muted, #64748B);
}
.cmp-bento-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--cmp-text, #0E0E1A);
    font-family: "Geist", system-ui, sans-serif;
}
.cmp-bento-card__title a { color: inherit; text-decoration: none; }
.cmp-bento-card__title a:hover { color: var(--cmp-primary, #FF4D1C); }
.cmp-bento-card__sub { font-size: 13px; color: var(--cmp-text-muted, #64748B); margin: 0; }

/* Continue learning card */
.cmp-bento-card--continue .cmp-bento-card--continue__inner {
    display: flex;
    height: 100%;
    min-height: 160px;
}
.cmp-bento-card--continue .cmp-bento-card--continue__thumb {
    width: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.cmp-bento-card--continue .cmp-bento-card__body { flex: 1; }
@media (max-width: 768px) {
    .cmp-bento-card--continue .cmp-bento-card--continue__thumb { width: 120px; }
}
@media (max-width: 500px) {
    .cmp-bento-card--continue .cmp-bento-card--continue__inner { flex-direction: column; }
    .cmp-bento-card--continue .cmp-bento-card--continue__thumb { width: 100%; height: 120px; flex-shrink: 0; }
}

/* Webinar card */
.cmp-bento-card--webinar {
    background: var(--cmp-primary, #FF4D1C);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255,77,28,.2);
}
.cmp-bento-card--webinar .cmp-bento-card__label { color: rgba(255,255,255,.6); }
.cmp-bento-card--webinar .cmp-bento-card__title,
.cmp-bento-card--webinar .cmp-bento-card__sub { color: #fff; }
.cmp-bento-card--webinar .cmp-bento-card__title a { color: #fff; }
.cmp-bento-wb-btn {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    margin-top: auto;
}
.cmp-bento-wb-btn:hover {
    background: rgba(255,255,255,.25) !important;
}

/* Bento progress bar */
.cmp-bento-progress { margin-top: 4px; }
.cmp-bento-progress__bar {
    height: 6px;
    background: rgba(14,14,26,.08);
    border-radius: 3px;
    overflow: hidden;
}
.cmp-bento-progress__fill {
    height: 100%;
    background: var(--cmp-primary, #FF4D1C);
    border-radius: 3px;
    transition: width .4s ease;
}
.cmp-bento-progress__label {
    font-size: 12px;
    color: var(--cmp-text-muted, #64748B);
    margin-top: 5px;
}

/* Progress rows */
.cmp-progress-row { margin-bottom: 14px; }
.cmp-progress-row:last-child { margin-bottom: 0; }
.cmp-progress-row__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}
.cmp-progress-row__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--cmp-text, #0E0E1A);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cmp-progress-row__title:hover { color: var(--cmp-primary, #FF4D1C); }
.cmp-progress-row__pct { font-size: 13px; font-weight: 700; color: var(--cmp-primary, #FF4D1C); flex-shrink: 0; }
.cmp-progress-row__sub { font-size: 11px; color: var(--cmp-text-muted, #64748B); margin: 4px 0 0; }

/* Quick links */
.cmp-quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cmp-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--cmp-bg-alt, #F5F2EE);
    border-radius: 12px;
    text-decoration: none;
    transition: background .15s, transform .15s;
    text-align: center;
}
.cmp-quicklink:hover { background: var(--cmp-primary-light, #FFF1EB); transform: translateY(-2px); }
.cmp-quicklink__icon { font-size: 22px; line-height: 1; }
.cmp-quicklink__text { font-size: 12px; font-weight: 500; color: var(--cmp-text, #0E0E1A); }

/* Bento countdown */
.cmp-countdown { display: flex; align-items: baseline; gap: 2px; margin: 2px 0; }
.cmp-countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 34px; }
.cmp-countdown__num { font-size: 26px; font-weight: 700; color: #fff; font-family: "Geist", system-ui, sans-serif; line-height: 1; }
.cmp-countdown__label { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 2px; }
.cmp-countdown__sep { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.4); align-self: flex-start; margin-top: 1px; padding: 0 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   WEBINAR — Registration card enhancements
═══════════════════════════════════════════════════════════════════════════ */
.cmp-reg-card__countdown { margin: 4px 0 8px; }
.cmp-reg-card__countdown-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cmp-text-muted, #64748B); margin: 0 0 4px; }
.cmp-reg-countdown {
    font-size: 18px;
    font-weight: 700;
    color: var(--cmp-primary, #FF4D1C);
    font-family: "Geist", system-ui, sans-serif;
    letter-spacing: .01em;
}
.cmp-reg-countdown span { font-size: 11px; font-weight: 400; color: var(--cmp-text-muted, #64748B); margin-left: 1px; margin-right: 4px; }

.cmp-spots-bar {
    height: 6px;
    background: rgba(14,14,26,.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}
.cmp-spots-bar__fill {
    height: 100%;
    background: var(--cmp-primary, #FF4D1C);
    border-radius: 3px;
    transition: width .4s ease;
}
.cmp-reg-card__spots-left { font-size: 12px; color: var(--cmp-text-muted, #64748B); }

/* Checkout drawer */
.cmp-checkout-drawer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.cmp-checkout-drawer.cmp-drawer--open { pointer-events: auto; }
.cmp-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14,14,26,.45);
    opacity: 0;
    transition: opacity .25s;
}
.cmp-drawer--open .cmp-drawer-backdrop { opacity: 1; }
.cmp-drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.15);
}
.cmp-drawer--open .cmp-drawer-panel { transform: translateY(0); }
.cmp-drawer-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cmp-drawer-panel__title { font-size: 18px; font-weight: 700; margin: 0; font-family: "Geist", system-ui, sans-serif; }
.cmp-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cmp-text-muted, #64748B);
}
.cmp-drawer-close:hover { background: var(--cmp-bg-alt, #F5F2EE); }
.cmp-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}
.cmp-drawer-divider { height: 1px; background: rgba(14,14,26,.08); margin: 4px 0; }
.cmp-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 600;
}
.cmp-drawer-panel__footer { margin-top: 20px; }
.cmp-drawer-panel__note { font-size: 12px; color: var(--cmp-text-muted, #64748B); text-align: center; margin: 10px 0 0; }

/* Spinner */
.cmp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cmp-spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes cmp-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   LESSON — Step counter, progress strip, sidebar
═══════════════════════════════════════════════════════════════════════════ */
.cmp-lesson-step-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,77,28,.08);
    color: var(--cmp-primary, #FF4D1C);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 4px;
}
.cmp-lesson-progress-strip {
    height: 3px;
    background: rgba(14,14,26,.07);
    overflow: hidden;
}
.cmp-lesson-progress-strip__fill {
    height: 100%;
    background: var(--cmp-primary, #FF4D1C);
    transition: width .4s ease;
}

/* Sidebar header + progress */
.cmp-lesson-sidebar__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.cmp-lesson-sidebar__title { font-size: 14px; font-weight: 700; margin: 0; }
.cmp-lesson-sidebar__progress { font-size: 13px; font-weight: 700; color: var(--cmp-primary, #FF4D1C); flex-shrink: 0; }
.cmp-lesson-sidebar__prog-bar {
    height: 4px;
    background: rgba(14,14,26,.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}
.cmp-lesson-sidebar__prog-fill {
    height: 100%;
    background: var(--cmp-primary, #FF4D1C);
    border-radius: 2px;
}

/* Sidebar lesson rows */
.cmp-sidebar-lesson__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--cmp-text, #0E0E1A);
    transition: background .12s;
    font-size: 13px;
}
.cmp-sidebar-lesson__inner:hover { background: rgba(14,14,26,.05); }
.cmp-sidebar-lesson--current .cmp-sidebar-lesson__inner {
    background: rgba(255,77,28,.08);
    color: var(--cmp-primary, #FF4D1C);
    font-weight: 600;
}
.cmp-sidebar-lesson--done .cmp-sidebar-lesson__check { color: var(--cmp-success, #1CB47A); }
.cmp-sidebar-lesson--locked .cmp-sidebar-lesson__inner {
    color: var(--cmp-text-muted, #64748B);
    cursor: default;
}
.cmp-sidebar-lesson__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-sidebar-lesson__dur { font-size: 11px; color: var(--cmp-text-muted, #64748B); flex-shrink: 0; }
.cmp-sidebar-lesson__check { flex-shrink: 0; width: 16px; text-align: center; font-size: 13px; }

/* Auto-next countdown */
.cmp-autonext {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cmp-bg-alt, #F5F2EE);
    border: 1px solid rgba(14,14,26,.1);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--cmp-text, #0E0E1A);
    flex-wrap: wrap;
}
.cmp-autonext__count {
    font-size: 20px;
    font-weight: 700;
    color: var(--cmp-primary, #FF4D1C);
    min-width: 24px;
    display: inline-block;
    text-align: center;
    font-family: "Geist", system-ui, sans-serif;
}
.cmp-autonext__cancel { margin-left: auto; }

/* Sidebar legend */
.cmp-sidebar-legend {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--cmp-text-muted, #64748B);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT — Sub-tabs
═══════════════════════════════════════════════════════════════════════════ */
.cmp-account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.cmp-account-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255,77,28,.2);
}
.cmp-account-header__name { font-size: 18px; font-weight: 700; margin: 0 0 4px; font-family: "Geist", system-ui, sans-serif; }
.cmp-account-header__email { font-size: 13px; color: var(--cmp-text-muted, #64748B); margin: 0; }

.cmp-account-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(14,14,26,.08);
    margin-bottom: 20px;
}
.cmp-account-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cmp-text-muted, #64748B);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    border-radius: 8px 8px 0 0;
}
.cmp-account-tab:hover { color: var(--cmp-text, #0E0E1A); }
.cmp-account-tab--active { color: var(--cmp-primary, #FF4D1C); border-bottom-color: var(--cmp-primary, #FF4D1C); }

.cmp-account-section {
    background: #fff;
    border: 1px solid rgba(14,14,26,.08);
    border-radius: 12px;
    padding: 0;
}
.cmp-account-section .cmp-card__body { padding: 24px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CALENDAR — Upcoming events list
═══════════════════════════════════════════════════════════════════════════ */
.cmp-calendar-upcoming { margin-top: 32px; }
.cmp-calendar-upcoming__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    font-family: "Geist", system-ui, sans-serif;
    color: var(--cmp-text, #0E0E1A);
}
.cmp-calendar-event-list { display: flex; flex-direction: column; gap: 10px; }
.cmp-calendar-event {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(14,14,26,.07);
    border-radius: 12px;
    padding: 14px 16px;
    transition: box-shadow .15s, transform .12s;
}
.cmp-calendar-event:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-1px); }
.cmp-calendar-event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,77,28,.08);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 52px;
    flex-shrink: 0;
}
.cmp-calendar-event__day { font-size: 22px; font-weight: 800; color: #FF4D1C; line-height: 1; font-family: "Geist", system-ui, sans-serif; }
.cmp-calendar-event__mon { font-size: 11px; font-weight: 600; color: var(--cmp-text-muted, #64748B); text-transform: uppercase; letter-spacing: .05em; }
.cmp-calendar-event__info { flex: 1; min-width: 0; }
.cmp-calendar-event__title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.cmp-calendar-event__title a { color: var(--cmp-text, #0E0E1A); text-decoration: none; }
.cmp-calendar-event__title a:hover { color: #FF4D1C; }
.cmp-calendar-event__meta { font-size: 12px; color: var(--cmp-text-muted, #64748B); margin: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   CATALOG — course card meta row
═══════════════════════════════════════════════════════════════════════════ */
.cmp-course-card__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--cmp-text-muted, #64748B);
}
.cmp-course-card__meta-item { color: var(--cmp-text-muted, #64748B); }
.cmp-badge--success {
    background: #d1fae5;
    color: #065f46;
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
