/* OwnersPath Member Dashboard — Business Success System */

:root {
    --mb-olive: #8a9a5b;
    --mb-olive-dark: #6f7d49;
    --mb-olive-light: #a3b06e;
    --mb-olive-bg: #f0f2e8;
    --mb-olive-100: #eef1e5;
    --mb-green: #53ae00;
    --mb-green-dark: #469300;
    --mb-green-light: #e8f5e0;
    --mb-dark: #2b2b2b;
    --mb-darker: #1e1e1e;
    --mb-body: #f4f4f0;
    --mb-white: #ffffff;
    --mb-gray-100: #f5f5f3;
    --mb-gray-200: #e8e8e4;
    --mb-gray-300: #d5d5d0;
    --mb-gray-500: #8a8a85;
    --mb-gray-700: #4a4a48;
    --mb-gray-900: #1f1f1e;
    --mb-orange: #e8861e;
    --mb-orange-light: #fff4e8;
    --mb-red: #d9534f;
    --mb-red-light: #fde8e8;
    --mb-yellow: #d4a82b;
    --mb-yellow-light: #fdf7e4;
    --mb-radius: 8px;
    --mb-radius-lg: 12px;
    --mb-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --mb-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --mb-transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--mb-body);
    color: var(--mb-gray-900);
    margin: 0;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.mb-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    overflow: visible;
    background: var(--mb-olive);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--mb-transition);
    box-shadow: none;
}
.mb-sidebar-brand {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    flex-shrink: 0;
    width: 100%;
    box-shadow: none;
    border: none;
}
.mb-sidebar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.mb-sidebar-logo-fallback {
    color: var(--mb-gray-900);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mb-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mb-sidebar-nav::-webkit-scrollbar {
    width: 0 !important;
    display: none;
}
.mb-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.82rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--mb-transition);
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mb-sidebar-link:hover {
    color: var(--mb-white);
    background: rgba(255,255,255,0.1);
}
.mb-sidebar-link.active {
    color: var(--mb-white);
    background: rgba(255,255,255,0.15);
    border-left-color: var(--mb-white);
    font-weight: 600;
}
.mb-sidebar-link i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}
.mb-menu-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.mb-sidebar-link:hover .mb-menu-icon,
.mb-sidebar-link.active .mb-menu-icon {
    opacity: 1;
}
.mb-sidebar-link .sidebar-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    width: auto;
}
.mb-sidebar-link:not(.collapsed) .sidebar-chevron {
    transform: rotate(-180deg);
}
.mb-sidebar-sub.sidebar-in::after {
    content: "\f00c";
    font-family: "FontAwesome";
    float: right;
    font-size: 14px;
    color: #7edf06;
    margin-right: 4px;
}
.mb-sidebar-sub.sidebar-out::after {
    content: "\f00d";
    font-family: "FontAwesome";
    float: right;
    font-size: 14px;
    color: #ff4444;
    margin-right: 4px;
}
.mb-sidebar-sub {
    display: block;
    padding: 0.38rem 1rem 0.38rem 2.2rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.3;
    border-left: 3px solid transparent;
    transition: var(--mb-transition);
    white-space: normal;
    word-break: break-word;
}
.mb-sidebar-sub:hover {
    color: var(--mb-white);
    background: rgba(255,255,255,0.08);
}
.mb-sidebar-sub.active {
    color: var(--mb-white);
    background: rgba(255,255,255,0.12);
    border-left-color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.mb-sidebar-sub strong {
    font-weight: 700;
    color: var(--mb-white);
    display: block;
    margin-top: 0.15rem;
}
/* ── Funding program nav icons (OP-049A) — matches old FontAwesome rules exactly */
.mb-sidebar-nav a.Qualified:after        { content:"\f067"; font-family:"FontAwesome"; float:right; font-size:12px; color:#7edf06; }
.mb-sidebar-nav a.QualifiedSubmitted:after { content:"\f19c"; font-family:FontAwesome;  float:right; color:#edc937; }
.mb-sidebar-nav a.Unqualified:after      { content:"\f068"; font-family:"FontAwesome"; float:right; font-size:12px; color:red; }

.mb-sidebar-divider {
    height: 0;
    background: transparent;
    margin: 0;
}
.mb-sidebar-footer {
    padding: 0.6rem 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.mb-sidebar-logout {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0.6rem;
    border-radius: var(--mb-radius);
    font-size: 0.78rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--mb-transition);
}
.mb-sidebar-logout:hover {
    background: rgba(255,255,255,0.1);
    color: var(--mb-white);
}

/* ===== SIDEBAR SEARCH ===== */
.mb-sidebar-search {
    padding: 1rem 0.8rem 0.4rem;
    position: relative;
}
.mb-search-box {
    position: relative;
}
.mb-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mb-gray-500);
    font-size: 0.8rem;
    pointer-events: none;
}
.mb-search-input {
    width: 100%;
    padding: 0.45rem 0.7rem 0.45rem 2rem;
    border: none;
    border-radius: 20px;
    background: var(--mb-gray-100);
    font-size: 0.78rem;
    color: var(--mb-gray-900);
    transition: var(--mb-transition);
}
.mb-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.mb-search-input:focus-visible {
    box-shadow: 0 0 0 2px var(--mb-olive-light, rgba(255,255,255,0.4));
}
.mb-search-results {
    position: absolute;
    top: 100%;
    left: 0.8rem;
    right: 0.8rem;
    margin-top: 0.25rem;
    z-index: 5;
    background: var(--mb-olive-100, var(--mb-white));
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow-md);
}
.mb-search-result-item {
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    color: var(--mb-gray-900);
    border-bottom: 1px solid var(--mb-gray-100);
    text-decoration: none;
}
.mb-search-result-item:last-child {
    border-bottom: none;
}
.mb-search-result-item:hover,
.mb-search-result-item:focus {
    background: var(--mb-white);
    color: var(--mb-olive-dark, var(--mb-gray-900));
}
.mb-search-no-results {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    color: var(--mb-gray-500);
}

/* ===== MAIN WRAPPER ===== */
.mb-main-wrapper {
    margin-left: 220px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOP BAR ===== */
.mb-topbar {
    background: var(--mb-white);
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--mb-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.mb-topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
}
.mb-topbar-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.mb-topbar-welcome {
    font-size: 0.88rem;
    color: var(--mb-gray-700);
}
.mb-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.mb-topbar-meta {
    font-size: 0.95rem;
    color: var(--mb-gray-700);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.mb-sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--mb-gray-700);
    cursor: pointer;
    padding: 0.2rem;
}

/* ===== MAIN CONTENT ===== */
.mb-main-content {
    padding: 1rem 1.5rem;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #333;
    clear: both;
}

/* ===== PAGE HEADER ===== */
.mb-page-header {
    margin-bottom: 1.2rem;
}
.mb-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mb-gray-900);
    margin: 0;
}

/* ===== CARDS ===== */
.mb-card {
    background: var(--mb-white);
    border-radius: var(--mb-radius-lg);
    box-shadow: var(--mb-shadow);
    overflow: hidden;
    height: 100%;
}
.mb-card-header {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mb-white);
}
.mb-card-header-olive { background: var(--mb-olive); }
.mb-card-header-green { background: var(--mb-green); }
.mb-card-header-dark { background: var(--mb-dark); }
.mb-card-header-orange { background: var(--mb-orange); }

.mb-card-body {
    padding: 1rem;
}

/* ===== SCORE RING (53%) ===== */
.mb-card-score {
    text-align: center;
    padding: 0.75rem 0.5rem 0.6rem;
}
.score-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    display: inline-block;
}
.tag-progress {
    background: var(--mb-olive-bg, #fff3e0);
    color: var(--mb-olive-dark, #e65100);
}

/* ── Virtual Coach card ─────────────────────────────────────────────────────── */
.coach-card { transform: translateZ(0); overflow: hidden; min-height: 320px; padding: 0; }

/* responsive:true — JS embeds player inside #wthvideo in the DOM */

/* ===== NEXT STEP ===== */
.next-step-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.next-step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--mb-radius);
    background: var(--mb-olive-bg);
    color: var(--mb-olive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.next-step-info h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mb-gray-900);
    margin-bottom: 0.3rem;
}
.next-step-info p {
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn-olive {
    background: var(--mb-olive);
    color: var(--mb-white);
    border: none;
    border-radius: var(--mb-radius);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--mb-transition);
}
.btn-olive:hover {
    background: var(--mb-olive-dark);
    color: var(--mb-white);
}
.btn-green {
    background: var(--mb-green);
    color: var(--mb-white);
    border: none;
    border-radius: var(--mb-radius);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--mb-transition);
}
.btn-green:hover {
    background: var(--mb-green-dark);
    color: var(--mb-white);
}

/* ===== FUNDING STATS ===== */
.funding-stat {
    padding: 0.6rem 0.4rem;
    background: var(--mb-gray-100);
    border-radius: var(--mb-radius);
}
.funding-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mb-gray-900);
    line-height: 1.2;
}
.funding-stat-label {
    font-size: 0.7rem;
    color: var(--mb-gray-500);
    font-weight: 500;
}

/* ===== BANKABLE HEADER ===== */
.bankable-header {
    background: var(--mb-olive-100);
    border: 1px solid var(--mb-olive-bg);
    border-radius: var(--mb-radius-lg);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bankable-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mb-olive-dark);
    margin: 0;
}
.bankable-sub {
    font-size: 0.8rem;
    color: var(--mb-gray-500);
    margin: 0;
}
.bankable-link {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mb-olive);
    text-decoration: none;
    transition: var(--mb-transition);
}
.bankable-link:hover {
    color: var(--mb-olive-dark);
}

/* ===== SECTION CARDS (6 bankable sections) ===== */
.section-card {
    border: 1px solid var(--mb-gray-200);
    transition: var(--mb-transition);
}
.section-card:hover {
    box-shadow: var(--mb-shadow-md);
    border-color: var(--mb-olive-light);
}
.section-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem 0.2rem;
}
.section-card-header i {
    font-size: 1.1rem;
    color: var(--mb-olive);
}
.section-card-header h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mb-gray-900);
    margin: 0;
}
.section-card-body {
    padding: 0.2rem 1rem 0.8rem;
}
.section-card-desc {
    font-size: 0.82rem;
    color: var(--mb-gray-500);
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress-row {
    margin-bottom: 0.6rem;
}
.progress-bar-custom {
    height: 10px;
    background: var(--mb-gray-200);
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}
.progress-fill-red { background: linear-gradient(90deg, var(--mb-red), var(--mb-orange)); }
.progress-fill-yellow { background: linear-gradient(90deg, var(--mb-orange), var(--mb-yellow)); }
.progress-fill-olive { background: linear-gradient(90deg, var(--mb-olive-light), var(--mb-olive)); }
.progress-fill-green { background: linear-gradient(90deg, var(--mb-green), #3dbd00); }

.progress-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.pstat {
    font-size: 0.75rem;
    color: var(--mb-gray-700);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pstat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pstat-dot-green { background: var(--mb-green); }
.pstat-dot-yellow { background: var(--mb-yellow); }
.pstat-dot-red { background: var(--mb-red); }

.section-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mb-olive);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--mb-transition);
}
.section-card-link:hover {
    color: var(--mb-olive-dark);
}

/* ===== REPORT LINKS ===== */
.report-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.report-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--mb-radius);
    background: var(--mb-gray-100);
    text-decoration: none;
    color: var(--mb-gray-700);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--mb-transition);
}
.report-link:hover {
    background: var(--mb-olive-bg);
    color: var(--mb-olive-dark);
}
.report-link i:first-child {
    font-size: 1.1rem;
}

/* ===== STATUS ROWS ===== */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mb-gray-100);
    font-size: 0.84rem;
}
.status-row:last-child { border-bottom: none; }
.status-label {
    color: var(--mb-gray-500);
    font-weight: 500;
}
.status-value {
    font-weight: 700;
    color: var(--mb-gray-900);
}
.status-value-progress {
    color: var(--mb-orange);
}

/* ===== DOC UPLOAD LIST ===== */
.doc-upload-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.doc-upload-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.84rem;
    font-weight: 500;
    border-bottom: 1px solid var(--mb-gray-100);
}
.doc-upload-item:last-child { border-bottom: none; }
.doc-upload-item i { font-size: 0.95rem; }

/* ===== FOOTER ===== */
.mb-footer {
    padding: 0.8rem 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--mb-gray-500);
    border-top: 1px solid var(--mb-gray-200);
    margin-top: auto;
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.mb-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .mb-sidebar {
        transform: translateX(-100%);
    }
    .mb-sidebar.open {
        transform: translateX(0);
    }
    .mb-sidebar.open ~ .mb-sidebar-overlay {
        display: block;
    }
    .mb-main-wrapper {
        margin-left: 0;
    }
}
@media (max-width: 767px) {
    .mb-main-content {
        padding: 1rem;
    }
    .bankable-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .bankable-link {
        margin-left: 0;
    }
    .next-step-content {
        flex-direction: column;
    }
    .score-ring {
        width: 100px;
        height: 100px;
    }
    .score-percent {
        font-size: 1.4rem;
    }
}

/* ===== COACH PAGE ===== */
.coach-page-title {
    font-size: 0.78rem;
    color: var(--mb-gray-500);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Section header bar */
.coach-section-header {
    display: flex;
    align-items: stretch;
    background: #1a3a5c;
    border-radius: var(--mb-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 64px;
}
.coach-section-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    min-width: 130px;
    flex-shrink: 0;
    text-align: center;
    gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.coach-section-icon {
    font-size: 1.5rem;
    color: #fff;
}
.coach-section-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}
.coach-section-quote {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
}

/* Virtual coach card */
.coach-panel-col { width: 200px; flex-shrink: 0; }
.coach-panel {
    background: var(--mb-white);
    border: 1px solid var(--mb-gray-200);
    border-radius: var(--mb-radius);
    overflow: hidden;
    box-shadow: var(--mb-shadow);
}
.coach-poster {
    position: relative;
    cursor: pointer;
    height: 185px;
    background: #e8e8e8;
    overflow: hidden;
}
.coach-poster-img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}
.coach-play-btn {
    position: absolute;
    /*bottom: 10px;*/
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.92);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.coach-play-icon {
    width: 22px;
    height: 22px;
    background: var(--mb-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.coach-play-icon i { font-size: 10px; color: #fff; margin-left: 1px; }
.coach-play-text { font-size: 0.72rem; font-weight: 700; color: #333; }
.coach-video { width: 100%; height: 185px; object-fit: contain; display: block; background: #e8e8e8; }
.coach-no-video { height: 185px; display: flex; align-items: center; justify-content: center; background: var(--mb-gray-100); }
.coach-panel-label {
    font-size: 0.68rem;
    color: var(--mb-olive);
    text-align: center;
    padding: 5px 8px 6px;
    font-weight: 600;
    background: var(--mb-olive-bg);
    border-top: 1px solid var(--mb-olive-light);
}

/* Body content card */
.coach-body-card {
    background: var(--mb-white);
    border: 1px solid var(--mb-gray-200);
    border-radius: var(--mb-radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--mb-shadow);
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--mb-gray-900);
}
.coach-body-card h1,.coach-body-card h2 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 0.4rem; color: var(--mb-gray-900); }
.coach-body-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0.8rem 0 0.3rem; color: var(--mb-gray-900); }
.coach-body-card h4 { font-size: 0.88rem; font-weight: 700; }
.coach-body-card p { margin-bottom: 0.6rem; }
.coach-body-card strong { font-weight: 700; }
.coach-body-card ol, .coach-body-card ul { padding-left: 1.4rem; margin-bottom: 0.6rem; }
.coach-body-card li { margin-bottom: 0.25rem; }

/* Compliance panels inside body */
.coach-body-card .compliance-panel,
.compliance-panel {
    border: 1px solid #dce8f5;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}
.coach-body-card .compliance-header,
.compliance-header {
    background: #1565c0;
    color: #fff;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 0.8rem;
}
.coach-body-card .caution-header,
.caution-header {
    background: #c0392b;
    color: #fff;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 0.8rem;
}
.coach-body-card .compliance-body,
.compliance-body {
    padding: 10px 14px;
    background: #fff;
}

/* Step form card */
.coach-form-card {
    background: var(--mb-white);
    border: 1px solid var(--mb-gray-200);
    border-radius: var(--mb-radius);
    padding: 1.2rem;
    box-shadow: var(--mb-shadow);
    margin-top: 1rem;
}
.coach-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mb-gray-700);
    margin-bottom: 4px;
    display: block;
}

/* Navigation bar */
.coach-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mb-gray-200);
    flex-wrap: wrap;
}
.btn-coach-back {
    background: var(--mb-white);
    border: 1px solid var(--mb-gray-300);
    color: var(--mb-gray-700);
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-coach-back:hover { background: var(--mb-gray-100); color: var(--mb-gray-900); }
.btn-coach-dashboard {
    background: var(--mb-white);
    border: 1px solid var(--mb-olive);
    color: var(--mb-olive);
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--mb-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-coach-dashboard:hover { background: var(--mb-olive-bg); color: var(--mb-olive-dark); }
.btn-download-pdf, .btn-theme-outline {
    background: var(--mb-white);
    border: 1px solid var(--mb-olive);
    color: var(--mb-olive-dark);
    transition: var(--mb-transition);
}
.btn-download-pdf:hover, .btn-theme-outline:hover { background: var(--mb-olive); color: var(--mb-white); border-color: var(--mb-olive); }

.mb-account-dropdown .dropdown-item:hover,
.mb-account-dropdown .dropdown-item:focus {
    background: var(--mb-olive-bg, var(--mb-gray-100));
    color: var(--mb-olive-dark, var(--mb-gray-900));
}
.btn-coach-next {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 0.45rem 1.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--mb-transition);
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-coach-next:hover { background: #1b5e20; color: #fff; }

/* ===== COACH CONTENT (classes from _ContentItems.BodyText) ===== */

/* Wrapper */
.coach-wrapper {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #333;
}

/* Section header banner */
.small-banner {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    min-height: 80px;
}
.small-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    /* --mb-banner-left/-right let a theme give this banner its own two-tone
       contrast without changing --mb-olive/-dark themselves (those also drive
       the sidebar etc.) — most themes don't define them, so this falls back
       to the normal olive pair unchanged. */
    background: var(--mb-banner-left, var(--mb-olive));
    padding: 14px 24px;
    flex-shrink: 0;
    min-width: 220px;
}
.small-banner-left img {
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.small-left-banner-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
    line-height: 1.2;
}
.small-banner-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    flex: 1;
    background: var(--mb-banner-right, var(--mb-olive-dark));
}
.small-right-banner-text,
.small-banner-right h4,
.small-banner-right h3,
.small-banner-right p {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
    line-height: 1.55;
    text-align: center;
    width: 100%;
}

/* Virtual Coach video */
/*.videoposition {
    float: left;
    width: 220px;
    margin: 0 20px 16px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}*/

/* transform: translateZ(0) makes this a containing block for position:fixed children.
   Sized to match the reference layout: a wide ~330x225 video area with the caption
   sitting in its own strip below it (not overlaid on the video like before). */
.videoposition {
    width: 330px;
    height: 229px; /* 195px video area + 34px caption strip below it */
    float: right;
    background: #e8e8e8;
    margin: 0 0 8px 15px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* JS sets position:fixed — the transform above re-roots it to .videoposition.
   Scoped to .videoposition specifically — these were leaking unscoped and corrupting
   the sizing of the SAME widget IDs used elsewhere (e.g. the PreQualification page's
   #wthvideo2 sidebar), causing its player control bar to overlap the caption below it.
   The widget's own inline sizing (a 320px-wide native frame, scaled by its own JS
   calculation) is not reliable at this box size, so every element it creates is
   pinned to the video area's exact 195px — same reasoning as the dashboard's
   coach-video-wrap (see wwwroot/css/members/home-index.css). Both #wthvideo and
   #wthvideo1 are covered since different step pages use differently-numbered
   talkinghead scripts, and those two mount-id conventions are the only ones used.
   Capped to 195px (not 100%) so the caption strip below is left uncovered. */
.videoposition #wthvideo-wrapper,
.videoposition #wthvideo,
.videoposition #wthvideo1,
.videoposition #controls {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 195px !important;
    max-width: 100% !important;
    max-height: 195px !important;
    transform: none !important;
    overflow: hidden !important;
    background: transparent !important;
}
.videoposition video { display: none !important; }
.videoposition #bufferCanvas { display: none !important; }
.videoposition canvas {
    display: block !important;
    position: absolute !important;
}
/* The widget's own poster image is unstyled/unconstrained at its native pixel size
   (it was overflowing this box) — hidden in favor of the .vp-poster overlay that
   /js/frontend.js injects into every .videoposition block. Its control bar
   (play/restart/mute/close) is kept, just resized/centered for this box. */
.videoposition #poster { display: none !important; }
.videoposition #playerBar {
    left: 50% !important;
    right: auto !important;
    bottom: 4px !important;
    transform: translateX(-50%) !important;
    padding: 1px !important;
}
.videoposition #playerBar img {
    width: 22px !important;
    height: auto !important;
    max-width: 22px !important;
}

/* Poster overlay injected by /js/frontend.js (enhanceVideoposition) — the DB-stored
   page content only provides the bare talkinghead widget markup, so the actor photo
   + "Play Coach" button are added at runtime instead of being part of that markup.
   Covers only the 195px video area, not the caption strip below it. */
.vp-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 195px;
    cursor: pointer;
    background: #e8e8e8;
    z-index: 10000; /* above the widget holder's own z-index:9999, below .videotitle */
}
.vp-poster-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.92);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.vp-play-icon {
    width: 22px;
    height: 22px;
    background: var(--mb-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vp-play-icon i { font-size: 10px; color: #fff; margin-left: 1px; }
.vp-play-label { font-size: 0.78rem; font-weight: 700; color: #333; }

.videotitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--mb-olive);
    text-align: center;
    font-weight: 700;
    background: #fff;
    letter-spacing: 0.02em;
    /* Above the .vp-poster overlay and the video widget holder itself (the talkinghead
       JS sets the holder's z-index inline to 9999) — must exceed both or the caption
       gets covered instead of always staying visible. */
    z-index: 10001;
}

/* step-1-0.asp "more information" image — opens the Lender Compliance video modal */
.coach-more-info { float: right; display: block; width: 330px; max-width: 100%; margin: 0 0 8px 15px; cursor: pointer; }
.coach-more-info img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* Bootstrap 3 panels (used in compliance sections) */
.panel {
    border: 1px solid #c9dff5;
    border-radius: 4px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.panel-primary > .panel-heading {
    background: var(--mb-olive);
    color: #fff;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    border-radius: 0;
}
.panel-danger > .panel-heading,
.panel-warning > .panel-heading {
    background: #c0392b;
    color: #fff;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.82rem;
}
.panel-body {
    padding: 14px 16px;
}
.panel-body p { margin-bottom: 0.55rem; }
.panel-body p:last-child { margin-bottom: 0; }

/* Theme the vendor CTA buttons in compliance panels (and any other
   .btn-success — e.g. the step-page "Next" button) instead of leaving them
   on Bootstrap's default green, so they follow the same --mb-green theme
   variable the rest of the dashboard's action buttons already use. */
.btn-success {
    background-color: var(--mb-green) !important;
    border-color: var(--mb-green) !important;
}
.btn-success:hover,
.btn-success:focus {
    background-color: var(--mb-green-dark) !important;
    border-color: var(--mb-green-dark) !important;
}

/* Same theme color, outline weight — e.g. the step-page "Test It" button —
   so secondary/utility actions still follow --mb-green instead of Bootstrap's
   default blue "primary" outline. */
.btn-outline-success {
    color: var(--mb-green) !important;
    border-color: var(--mb-green) !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: var(--mb-green) !important;
    border-color: var(--mb-green) !important;
    color: #fff !important;
}

/* Content headings */
.coach-wrapper h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.2rem 0 0.5rem;
    clear: both;
}
.coach-wrapper h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.8rem 0 0.4rem;
}
.coach-wrapper p { margin-bottom: 0.5rem; }
.coach-wrapper table { font-size: 0.84rem; }
.coach-wrapper::after { content: ''; display: table; clear: both; }

/* Step form card */
.coach-form-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-top: 1rem;
    clear: both;
}
.coach-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

/* Navigation */
.coach-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    clear: both;
}
.btn-coach-back {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 0.42rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}
.btn-coach-back:hover { background: #f5f5f5; color: #222; }
.btn-coach-dashboard {
    background: #fff;
    border: 1px solid #8a9a5b;
    color: #6f7d49;
    padding: 0.42rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}
.btn-coach-dashboard:hover { background: #f0f2e8; color: #4a5530; }
.btn-coach-next {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 0.42rem 1.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}
.btn-coach-next:hover { background: #1b5e20; }

/* Replaces missing /images/icons/*.png in banner */
.coach-section-img-icon {
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
    margin-right: 4px;
}

/* ===== PRE-QUALIFICATION CTA BANNER ===== */
.prequal-cta-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
    border-radius: var(--mb-radius-lg);
    padding: 2.5rem 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.prequal-cta-content {
    max-width: 680px;
}

.prequal-cta-heading {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.prequal-cta-heading strong {
    font-weight: 800;
}

.prequal-cta-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.prequal-cta-btn {
    display: inline-block;
    background: #0f2540;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--mb-radius);
    border: 2px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: var(--mb-transition);
    letter-spacing: 0.01em;
}

.prequal-cta-btn:hover,
.prequal-cta-btn:focus {
    background: var(--mb-olive);
    border-color: var(--mb-olive);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .prequal-cta-banner {
        padding: 1.5rem;
    }
    .prequal-cta-heading {
        font-size: 1.2rem;
    }
    .prequal-cta-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Bootstrap icon inside small-banner-left */
.small-banner-bi {
    font-size: 2.8rem;
    color: #fff;
    flex-shrink: 0;
}

/* Credit provider selection checkboxes (_CreditProviders.cshtml) — the default
   Bootstrap .form-check-input border is too light against a white card, so
   scope a darker/larger look to just these instead of restyling every
   checkbox in the app. */
.cp-provider-checkbox {
    width: 1.3em;
    height: 1.3em;
    border: 2px solid #555;
}
.cp-provider-checkbox:checked {
    background-color: var(--mb-olive, #53ae00);
    border-color: var(--mb-olive, #53ae00);
}

.commission-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--mb-gray-500);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== WEB RATING SCORE PAGE ===== */
.wr-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.wr-info-card {
    background: #fff;
    border-radius: var(--mb-radius);
    border: 1px solid var(--mb-gray-200);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--mb-shadow);
}
.wr-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wr-info-icon.blue  { background: #e8f0fb; color: #1a6ac5; }
.wr-info-icon.green { background: #e8f5e0; color: #3a8a00; }
.wr-info-icon.amber { background: #fff4e0; color: #c87200; }
.wr-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mb-gray-500);
    margin-bottom: 0.2rem;
}
.wr-info-text {
    font-size: 0.88rem;
    color: var(--mb-gray-700);
    line-height: 1.45;
    margin: 0;
}
.wr-iframe-card {
    background: #fff;
    border-radius: var(--mb-radius-lg);
    border: 1px solid var(--mb-gray-200);
    box-shadow: var(--mb-shadow-md);
    overflow: hidden;
}
.wr-iframe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #f8f9fb;
    border-bottom: 1px solid var(--mb-gray-200);
}
.wr-iframe-toolbar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mb-gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wr-iframe-domain-badge {
    font-size: 0.78rem;
    background: #e8f0fb;
    color: #1a6ac5;
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 500;
}
.wr-iframe-wrap {
    position: relative;
    min-height: 200px;
}
.wr-iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #f8f9fb;
    z-index: 2;
}
.wr-iframe-loader p {
    font-size: 0.9rem;
    color: var(--mb-gray-500);
    margin: 0;
}
.wr-iframe-loader.hidden { display: none; }
/* NAP Validation: show only the BrightLocal report body. The report page starts with its own dark side menu
   (left), a breadcrumb bar and a logo block (top); the frame is moved up/left by those sizes and the wrapper clips
   them. Adjust --nap-crop-top / --nap-crop-left if BrightLocal changes its page layout. */
.nap-report-wrap {
    --nap-crop-top: 218px;
    --nap-crop-left: 72px;
    position: relative;
    overflow: hidden;
    height: 1600px;
}
.nap-report-frame {
    position: absolute;
    top: calc(-1 * var(--nap-crop-top));
    left: calc(-1 * var(--nap-crop-left));
    width: calc(100% + var(--nap-crop-left));
    height: calc(1600px + var(--nap-crop-top));
    border: none;
    opacity: 0;                       /* hidden until the report has finished drawing (one loader meanwhile) */
    transition: opacity .35s ease;
}
.nap-report-wrap.is-ready .nap-report-frame { opacity: 1; }
/* The report is 1600px tall, so keep the loader near the top where the member can see it */
.nap-report-wrap .wr-iframe-loader {
    z-index: 1;
    justify-content: flex-start;
    padding-top: 140px;
}

.wr-iframe-wrap iframe {
    display: block;
    width: 100%;
    border: none;
}
.wr-no-domain-card {
    background: #fff;
    border-radius: var(--mb-radius-lg);
    border: 1px solid #fde8c8;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--mb-shadow);
}
.wr-no-domain-icon {
    font-size: 3rem;
    color: #e8861e;
    margin-bottom: 1rem;
}
.wr-no-domain-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mb-gray-900);
    margin-bottom: 0.5rem;
}
.wr-no-domain-text {
    font-size: 0.92rem;
    color: var(--mb-gray-500);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .wr-info-grid { grid-template-columns: 1fr; }
    .wr-iframe-toolbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── NAP Validation ────────────────────────────────────────────────────────── */
.nap-box-orange  { background-color: #e67e22; }
.nap-box-yellow  { background-color: #f1c40f; }
.nap-box-purple  { background-color: #8e44ad; }
.nap-remaining-msg { font-size: 1.1rem; color: #27ae60; font-weight: 600; }
.nap-dir-img     { width: 60px; height: auto; }
