/* MBS MediSpa Dashboard — full-page SPA, no theme header collision */
:root {
    --mbs-navy: #0a2540;
    --mbs-blue: #1a4a7a;
    --mbs-gold: #f0c14b;
    --mbs-purple: #7c3aed;
    --mbs-purple-dark: #5b21b6;
    --mbs-purple-light: #a78bfa;
    --mbs-bg: #f1f5f9;
    --mbs-white: #ffffff;
    --mbs-text: #1e293b;
    --mbs-muted: #64748b;
    --mbs-border: #e2e8f0;
    --mbs-success: #10b981;
    --mbs-danger: #ef4444;
    --mbs-orange: #f59e0b;
    --mbs-sidebar-w: 250px;
    --mbs-radius: 14px;
    --mbs-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

/* =========================================================
   FULL PAGE TAKEOVER — hide theme header/footer/admin bar
   so the sidebar never covers site chrome
   ========================================================= */
body.mbs-dashboard-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: var(--mbs-bg) !important;
}

/* Hide WordPress admin bar on dashboard pages */
body.mbs-dashboard-page #wpadminbar {
    display: none !important;
}
body.mbs-dashboard-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
html.mbs-dashboard-page,
html {
    margin-top: 0 !important;
}

/* Hide common theme headers / footers / sidebars / page titles */
body.mbs-dashboard-page .site-header,
body.mbs-dashboard-page header.site-header,
body.mbs-dashboard-page #masthead,
body.mbs-dashboard-page .elementor-location-header,
body.mbs-dashboard-page .elementor-location-footer,
body.mbs-dashboard-page footer,
body.mbs-dashboard-page .site-footer,
body.mbs-dashboard-page #colophon,
body.mbs-dashboard-page .main-navigation,
body.mbs-dashboard-page nav.navbar,
body.mbs-dashboard-page .navbar,
body.mbs-dashboard-page .top-bar,
body.mbs-dashboard-page .header-wrapper,
body.mbs-dashboard-page #header,
body.mbs-dashboard-page .ast-header-break-point,
body.mbs-dashboard-page .ast-primary-header-bar,
body.mbs-dashboard-page .ast-mobile-header-wrap,
body.mbs-dashboard-page .fusion-header-wrapper,
body.mbs-dashboard-page .thb-header,
body.mbs-dashboard-page #page > header,
body.mbs-dashboard-page .page-header:not(.mbs-main-header),
body.mbs-dashboard-page .entry-header,
body.mbs-dashboard-page .wp-block-template-part[data-area="header"],
body.mbs-dashboard-page .wp-block-template-part[data-area="footer"],
body.mbs-dashboard-page .entry-title,
body.mbs-dashboard-page .page-title,
body.mbs-dashboard-page h1.entry-title,
body.mbs-dashboard-page h1.page-title,
body.mbs-dashboard-page .wp-block-post-title,
body.mbs-dashboard-page .ast-page-title-wrap,
body.mbs-dashboard-page .ast-archive-description,
body.mbs-dashboard-page .page-header-title,
body.mbs-dashboard-page .hero-section,
body.mbs-dashboard-page .page-banner,
body.mbs-dashboard-page .banner,
body.mbs-dashboard-page .page-title-section,
body.mbs-dashboard-page .title-bar,
body.mbs-dashboard-page .c-page-header,
body.mbs-dashboard-page .l-page-header,
body.mbs-dashboard-page header.entry-header,
body.mbs-dashboard-page .post-header,
body.mbs-dashboard-page .single-page-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Flatten page content wrappers so dashboard is edge-to-edge */
body.mbs-dashboard-page #page,
body.mbs-dashboard-page #content,
body.mbs-dashboard-page #primary,
body.mbs-dashboard-page #main,
body.mbs-dashboard-page .site-content,
body.mbs-dashboard-page .content-area,
body.mbs-dashboard-page .entry-content,
body.mbs-dashboard-page article,
body.mbs-dashboard-page .hentry,
body.mbs-dashboard-page .ast-container,
body.mbs-dashboard-page .site-main,
body.mbs-dashboard-page .elementor,
body.mbs-dashboard-page .elementor-section,
body.mbs-dashboard-page .elementor-container,
body.mbs-dashboard-page .elementor-widget-wrap,
body.mbs-dashboard-page .elementor-element {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.mbs-dashboard-page .entry-content > *:not(.mbs-dashboard):not(.mbs-auth-wrap) {
    display: none !important;
}

/* =========================================================
   DASHBOARD SHELL
   ========================================================= */
.mbs-dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--mbs-bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mbs-text);
    position: relative;
    z-index: 10;
}

/* Sidebar */
.mbs-sidebar {
    width: var(--mbs-sidebar-w);
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}

.mbs-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mbs-sidebar-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mbs-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.mbs-brand-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mbs-purple), var(--mbs-purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.mbs-sidebar-title {
    font-weight: 600;
    font-size: 13px;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    text-align: center;
}

.mbs-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mbs-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mbs-purple), var(--mbs-purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.mbs-avatar-admin {
    background: linear-gradient(135deg, #312e81, #6366f1);
}

.mbs-user-info strong {
    display: block;
    font-size: 13px;
    color: #f1f5f9;
}

.mbs-user-info small {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

.mbs-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.mbs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mbs-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.mbs-nav-item.active {
    background: rgba(124, 58, 237, 0.22);
    color: #c4b5fd;
    border-left-color: var(--mbs-purple-light);
}

.mbs-nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

.mbs-sidebar-footer {
    padding: 10px 0 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mbs-logout {
    color: rgba(255,255,255,0.45) !important;
}

.mbs-logout:hover {
    color: #f87171 !important;
}

.mbs-sidebar-social {
    display: flex;
    gap: 10px;
    padding: 10px 20px 0;
    justify-content: center;
}

.mbs-sidebar-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.mbs-sidebar-social a:hover {
    background: var(--mbs-purple);
}

/* Main content — always clear of sidebar */
.mbs-main {
    flex: 1;
    margin-left: var(--mbs-sidebar-w);
    min-height: 100vh;
    background: var(--mbs-bg);
    width: calc(100% - var(--mbs-sidebar-w));
}

.mbs-main-header {
    background: var(--mbs-white);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.mbs-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--mbs-navy);
}

.mbs-header-brand {
    font-weight: 600;
    color: var(--mbs-navy);
    font-size: 15px;
}

.mbs-content {
    padding: 28px;
    max-width: 1100px;
}

.mbs-tab-header {
    margin-bottom: 24px;
}

.mbs-tab-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--mbs-navy);
    font-weight: 600;
}

.mbs-subtitle {
    color: var(--mbs-muted);
    margin: 0;
    font-size: 14px;
}

/* Cards */
.mbs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.mbs-card {
    background: var(--mbs-white);
    border-radius: var(--mbs-radius);
    padding: 24px;
    box-shadow: var(--mbs-shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(124, 58, 237, 0.06);
}

.mbs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(91, 33, 182, 0.12);
}

.mbs-card-purple {
    background: linear-gradient(145deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff;
    border: none;
}

.mbs-card-purple h3,
.mbs-card-purple p { color: #fff; }

.mbs-card-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
}

.mbs-circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.mbs-circle-bg {
    fill: none;
    stroke: rgba(0,0,0,0.07);
    stroke-width: 2.8;
}

.mbs-card-purple .mbs-circle-bg {
    stroke: rgba(255,255,255,0.3);
}

.mbs-circle {
    fill: none;
    stroke: var(--mbs-purple);
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: mbs-progress 1s ease-out forwards;
}

.mbs-card-purple .mbs-circle { stroke: #fff; }
.mbs-circle-blue { stroke: #6366f1; }
.mbs-circle-green { stroke: #10b981; }
.mbs-circle-orange { stroke: #f59e0b; }

.mbs-percentage {
    fill: var(--mbs-text);
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
}

.mbs-card-purple .mbs-percentage { fill: #fff; }

.mbs-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.mbs-card p {
    margin: 0;
    font-size: 13px;
    color: var(--mbs-muted);
}

.mbs-card-purple p { color: rgba(255,255,255,0.85); }

/* Buttons */
.mbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mbs-btn-primary {
    background: linear-gradient(135deg, var(--mbs-purple-dark), var(--mbs-purple));
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.mbs-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.mbs-btn-outline {
    background: transparent;
    color: var(--mbs-purple);
    border: 2px solid var(--mbs-purple);
}

.mbs-btn-outline:hover {
    background: var(--mbs-purple);
    color: #fff;
}

.mbs-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.mbs-btn-success { background: var(--mbs-success); color: #fff; }
.mbs-btn-danger { background: var(--mbs-danger); color: #fff; }
.mbs-btn-warning { background: var(--mbs-orange); color: #fff; }

.mbs-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.mbs-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.mbs-info-card {
    background: var(--mbs-white);
    border-radius: var(--mbs-radius);
    padding: 20px;
    box-shadow: var(--mbs-shadow);
}

.mbs-info-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--mbs-navy);
}

.mbs-info-card p {
    margin: 0;
    font-size: 13px;
    color: var(--mbs-muted);
    line-height: 1.55;
}

/* Tables */
.mbs-table-wrap {
    overflow-x: auto;
    background: var(--mbs-white);
    border-radius: var(--mbs-radius);
    box-shadow: var(--mbs-shadow);
}

.mbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mbs-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--mbs-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--mbs-border);
}

.mbs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--mbs-border);
    vertical-align: middle;
}

.mbs-table tr:last-child td { border-bottom: none; }
.mbs-table tr:hover td { background: #faf5ff; }

.mbs-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.mbs-status-pending { background: #fef3c7; color: #b45309; }
.mbs-status-confirmed { background: #dbeafe; color: #1d4ed8; }
.mbs-status-completed { background: #d1fae5; color: #047857; }
.mbs-status-cancelled { background: #fee2e2; color: #b91c1c; }

/* Forms */
.mbs-form {
    background: var(--mbs-white);
    border-radius: var(--mbs-radius);
    padding: 24px;
    box-shadow: var(--mbs-shadow);
    max-width: 640px;
}

.mbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mbs-form-group {
    margin-bottom: 16px;
}

.mbs-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mbs-text);
}

.mbs-form-group input,
.mbs-form-group select,
.mbs-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--mbs-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.mbs-form-group input:focus,
.mbs-form-group select:focus,
.mbs-form-group textarea:focus {
    outline: none;
    border-color: var(--mbs-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.mbs-form-message {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.mbs-form-message.success { background: #d1fae5; color: #047857; }
.mbs-form-message.error { background: #fee2e2; color: #b91c1c; }

.mbs-error { color: var(--mbs-danger); padding: 20px; }

.mbs-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--mbs-white);
    border-radius: var(--mbs-radius);
    box-shadow: var(--mbs-shadow);
}

.mbs-empty-state p {
    color: var(--mbs-muted);
    margin-bottom: 14px;
}

/* Modal */
.mbs-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mbs-modal-content {
    background: #fff;
    border-radius: var(--mbs-radius);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.mbs-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--mbs-muted);
    line-height: 1;
}

.mbs-modal-close:hover { color: var(--mbs-danger); }

.mbs-notif-list { list-style: none; margin: 0; padding: 0; }

.mbs-notif-item {
    background: var(--mbs-white);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 3px solid var(--mbs-purple);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mbs-notif-item time {
    font-size: 11px;
    color: var(--mbs-muted);
    white-space: nowrap;
}

.mbs-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbs-status-btn {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--mbs-border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

.mbs-status-btn:hover {
    border-color: var(--mbs-purple);
    color: var(--mbs-purple);
}

@keyframes mbs-progress {
    from { stroke-dasharray: 0 100; }
}

/* Mobile */
@media (max-width: 900px) {
    .mbs-sidebar {
        transform: translateX(-100%);
    }
    .mbs-sidebar.open {
        transform: translateX(0);
    }
    .mbs-main {
        margin-left: 0;
        width: 100%;
    }
    .mbs-mobile-toggle {
        display: block;
    }
    .mbs-form-row {
        grid-template-columns: 1fr;
    }
    .mbs-content {
        padding: 18px 14px;
    }
    .mbs-cards-grid {
        grid-template-columns: 1fr;
    }
}

.mbs-auth-required {
    max-width: 480px;
    margin: 60px auto;
    padding: 28px;
    background: #fff;
    border-radius: var(--mbs-radius);
    text-align: center;
    box-shadow: var(--mbs-shadow);
    font-size: 15px;
}

.mbs-auth-required a {
    color: var(--mbs-purple);
    font-weight: 600;
}

.mbs-notice {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--mbs-shadow);
}

/* Date/time under Welcome */
.mbs-datetime {
    margin: 4px 0 8px;
    font-size: 13px;
    color: var(--mbs-purple);
    font-weight: 500;
}

/* Customer detail modal */
.mbs-modal-lg {
    max-width: 720px !important;
}

.mbs-customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
    font-size: 14px;
}

.mbs-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mbs-simple-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--mbs-border);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mbs-customer-actions .mbs-btn {
    min-width: 120px;
}

/* Extra theme header kill (Elementor / common builders) */
body.mbs-dashboard-page .elementor-location-header,
body.mbs-dashboard-page header[data-elementor-type="header"],
body.mbs-dashboard-page .elementor-top-section,
body.mbs-dashboard-page #header-outer,
body.mbs-dashboard-page .l-header,
body.mbs-dashboard-page .td-header-wrap,
body.mbs-dashboard-page .mk-header,
body.mbs-dashboard-page .et-l--header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure admin bar is fully gone */
html.mbs-dashboard-page {
    margin-top: 0 !important;
}
body.mbs-dashboard-page.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.mbs-dashboard-page.admin-bar #wpadminbar {
    display: none !important;
}


/* =========================================================
   MBS dashboard visual refresh — inspired by supplied spa UI
   Applies to both administrator and customer portals.
   ========================================================= */
:root {
    --mbs-pink: #ed2d5d;
    --mbs-pink-dark: #d91f50;
    --mbs-teal: #35c5c6;
    --mbs-bg: #f5f6fc;
    --mbs-text: #292943;
    --mbs-muted: #8b8da5;
    --mbs-border: #ececf4;
    --mbs-radius: 12px;
    --mbs-shadow: 0 8px 24px rgba(41, 41, 67, .07);
}
body.mbs-dashboard-page { background: #ffffff !important; }
.mbs-dashboard {
    width: min(1440px, calc(100% - 64px));
    min-height: calc(100vh - 64px);
    margin: 32px auto;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f6fc;
    box-shadow: 0 22px 55px rgba(20, 84, 93, .18);
    color: #292943;
}
.mbs-sidebar {
    width: 220px;
    background: #ed2d5d;
    box-shadow: none;
    position: absolute;
    top: 0; left: 0; bottom: 0;
    border-radius: 20px 0 0 20px;
}
.mbs-sidebar-brand {
    min-height: 164px;
    padding: 28px 16px 22px;
    background: #ed2d5d;
    border: 0;
    border-radius: 20px 0 18px 0;
    gap: 9px;
}
.mbs-sidebar-logo {
    width: 54px; height: 54px;
    border: 0; box-shadow: none;
    background: #fff; padding: 3px;
}
.mbs-brand-circle { background: rgba(255,255,255,.2); box-shadow: none; }
.mbs-sidebar-title { color: #fff; font-size: 14px; font-weight: 600; }
.mbs-sidebar-user {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.16);
}
.mbs-avatar, .mbs-avatar-admin {
    background: rgba(255,255,255,.22);
    color: #fff; box-shadow: none;
}
.mbs-user-info strong { color: #fff; font-size: 12px; }
.mbs-user-info small { color: rgba(255,255,255,.75); }
.mbs-sidebar-nav { padding: 14px 0; }
.mbs-nav-item {
    min-height: 44px;
    margin: 3px 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 0 24px 24px 0;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 500;
}
.mbs-nav-item:hover { background: rgba(255,255,255,.13); color: #fff; }
.mbs-nav-item.active {
    margin-right: 0;
    background: #fff;
    color: #303047;
    border: 0;
    font-weight: 650;
}
.mbs-nav-icon { font-size: 14px; }
.mbs-sidebar-footer { border-top: 1px solid rgba(255,255,255,.16); padding-bottom: 16px; }
.mbs-logout { color: #fff !important; }
.mbs-sidebar-social a { background: rgba(255,255,255,.2); }
.mbs-main {
    width: calc(100% - 220px);
    margin-left: 220px;
    min-height: calc(100vh - 64px);
    background: #f5f6fc;
}
.mbs-main-header {
    min-height: 68px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid #f0f0f6;
    box-shadow: none;
    position: sticky;
    top: 0;
}
.mbs-header-brand { color: #292943; font-size: 14px; font-weight: 700; }
.mbs-header-brand small { color: #9293a8; font-size: 11px; font-weight: 500; }
.mbs-header-tools { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mbs-header-note { color: #85869c; font-size: 11px; }
.mbs-header-note i { color: var(--mbs-pink); font-style: normal; padding: 0 3px; }
.mbs-header-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fce4eb; color: var(--mbs-pink); font-size: 12px; font-weight: 700;
}
.mbs-content { max-width: none; width: 100%; padding: 28px 30px 36px; }
.mbs-tab-header { margin-bottom: 20px; }
.mbs-tab-header h2 { color: #292943; font-size: 23px; font-weight: 700; }
.mbs-subtitle { color: #9697aa; font-size: 12px; }
.mbs-datetime { color: var(--mbs-pink); font-size: 12px; }
.mbs-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; margin-bottom: 22px;
}
.mbs-card, .mbs-info-card {
    background: #fff; border: 1px solid #f0f0f6;
    border-radius: 10px; box-shadow: 0 5px 18px rgba(42,42,75,.055);
}
.mbs-card { padding: 20px 16px; }
.mbs-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(42,42,75,.09); }
.mbs-card-purple { background: #fff; color: #292943; border: 1px solid #f0f0f6; }
.mbs-card-purple h3, .mbs-card-purple p { color: inherit; }
.mbs-card-circle { width: 76px; height: 76px; }
.mbs-circle { stroke: var(--mbs-teal); }
.mbs-circle-blue { stroke: var(--mbs-pink); }
.mbs-circle-green { stroke: #35bca8; }
.mbs-circle-orange { stroke: #f4b64b; }
.mbs-card-purple .mbs-circle { stroke: var(--mbs-pink); }
.mbs-card h3 { color: #292943; font-size: 14px; }
.mbs-card p { color: #999aaf; font-size: 11px; }
.mbs-percentage { fill: #292943; }
.mbs-quick-actions { gap: 10px; }
.mbs-btn { border-radius: 24px; }
.mbs-btn-primary { background: var(--mbs-pink); color: #fff; box-shadow: 0 4px 12px rgba(237,45,93,.18); }
.mbs-btn-primary:hover { background: var(--mbs-pink-dark); color: #fff; }
.mbs-btn-outline { color: var(--mbs-pink); border-color: var(--mbs-pink); }
.mbs-btn-outline:hover { background: var(--mbs-pink); }
.mbs-info-card { padding: 20px; }
.mbs-info-card h4 { color: #292943; }
.mbs-table-wrap, .mbs-form, .mbs-empty-state, .mbs-notice {
    background: #fff; border: 1px solid #f0f0f6; border-radius: 12px;
    box-shadow: 0 5px 18px rgba(42,42,75,.05);
}
.mbs-table th { background: #fff4f7; color: #55566e; }
.mbs-table td { color: #55566e; }
.mbs-status { border-radius: 20px; }
.mbs-mobile-toggle { color: var(--mbs-pink); }
@media (max-width: 900px) {
    .mbs-dashboard {
        width: calc(100% - 24px); min-height: calc(100vh - 24px);
        margin: 12px auto; border-radius: 14px;
    }
    .mbs-sidebar { border-radius: 14px 0 0 14px; }
    .mbs-main { min-height: calc(100vh - 24px); }
    .mbs-main-header { padding: 12px 16px; }
    .mbs-header-note { display: none; }
    .mbs-content { padding: 20px 16px 28px; }
    .mbs-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 520px) {
    .mbs-dashboard { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
    .mbs-sidebar { border-radius: 0; }
    .mbs-main { min-height: 100vh; }
    .mbs-header-brand { font-size: 12px; }
    .mbs-header-brand small { display: none; }
    .mbs-cards-grid { grid-template-columns: 1fr 1fr; }
    .mbs-card { padding: 16px 10px; }
    .mbs-card-circle { width: 64px; height: 64px; }
}


/* =========================================================
   MBS NEW DASHBOARD DESIGN — rebuilt to follow supplied UI reference
   ========================================================= */
:root {
  --mbs-pink: #ed2859;
  --mbs-pink-dark: #d91f50;
  --mbs-teal: #35c3c4;
  --mbs-lavender-bg: #f5f5fc;
  --mbs-ink: #292b45;
  --mbs-sidebar-w: 220px;
  --mbs-card-shadow: 0 8px 24px rgba(38, 42, 80, .075);
}
body.mbs-dashboard-page { background: #ffffff !important; padding: 22px !important; }
body.mbs-dashboard-page #page, body.mbs-dashboard-page #content,
body.mbs-dashboard-page #primary, body.mbs-dashboard-page #main,
body.mbs-dashboard-page .site-content, body.mbs-dashboard-page .content-area,
body.mbs-dashboard-page .entry-content, body.mbs-dashboard-page article,
body.mbs-dashboard-page .hentry, body.mbs-dashboard-page .ast-container,
body.mbs-dashboard-page .site-main { min-height: 0 !important; }
.mbs-dashboard {
  width: min(1500px, 100%); min-height: calc(100vh - 44px); margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: var(--mbs-lavender-bg);
  box-shadow: 0 22px 55px rgba(13, 105, 108, .20); color: var(--mbs-ink);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.mbs-sidebar, .mbs-sidebar.mbs-sidebar-admin {
  width: var(--mbs-sidebar-w); position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--mbs-pink); color: #fff; box-shadow: none; border-radius: 0;
}
.mbs-sidebar-brand { padding: 26px 16px 22px; gap: 12px; border: 0; }
.mbs-sidebar-logo { width: 58px; height: 58px; border: 3px solid rgba(255,255,255,.8); box-shadow: 0 3px 12px rgba(80,0,25,.15); }
.mbs-brand-circle { background: rgba(255,255,255,.2); box-shadow: none; }
.mbs-sidebar-title { color: #fff; font-size: 14px; font-weight: 700; }
.mbs-sidebar-user { padding: 20px 18px; border: 0; background: rgba(255,255,255,.06); }
.mbs-avatar, .mbs-avatar-admin { background: rgba(255,255,255,.22); color: #fff; width: 40px; height: 40px; }
.mbs-user-info strong { color: #fff; font-size: 12px; }
.mbs-user-info small { color: rgba(255,255,255,.72); }
.mbs-sidebar-nav { padding: 12px 0; }
.mbs-nav-item { margin: 3px 0; padding: 13px 18px; color: rgba(255,255,255,.88); border-radius: 0 28px 28px 0; font-size: 12px; font-weight: 500; transition: .2s ease; }
.mbs-nav-item:hover { background: rgba(255,255,255,.13); color: #fff; }
.mbs-nav-item.active { background: #fff; color: #30334a; font-weight: 700; box-shadow: none; }
.mbs-nav-icon { width: 20px; font-size: 14px; }
.mbs-sidebar-footer { padding: 10px 0 18px; }
.mbs-sidebar-footer .mbs-logout { color: #fff; }
.mbs-main { margin-left: var(--mbs-sidebar-w); width: calc(100% - var(--mbs-sidebar-w)); min-height: calc(100vh - 44px); background: var(--mbs-lavender-bg); }
.mbs-main-header { min-height: 76px; padding: 14px 28px; gap: 22px; background: #fff; border-bottom: 1px solid #eeeef5; box-shadow: none; position: sticky; top: 0; }
.mbs-header-search { height: 42px; flex: 1 1 360px; max-width: 560px; border: 1px solid #e9e9f0; border-radius: 24px; display:flex; align-items:center; gap:10px; padding: 0 16px; color: var(--mbs-pink); }
.mbs-header-search input { border:0 !important; outline:0 !important; box-shadow:none !important; background:transparent !important; width:100%; font-size:12px; color:#41445b; padding:0 !important; }
.mbs-header-links { display:flex; align-items:center; gap:22px; margin-left:auto; white-space:nowrap; }
.mbs-header-links a { color:#45465c; text-decoration:none; font-size:11px; font-weight:600; }
.mbs-header-links a:hover { color:var(--mbs-pink); }
.mbs-header-tools { display:flex; align-items:center; gap:16px; }
.mbs-notification-button { border:0; background:transparent; color:#30334a; font-size:18px; cursor:pointer; }
.mbs-header-avatar { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fce5ec; color:var(--mbs-pink); font-weight:700; }
.mbs-content { max-width:none; width:100%; padding:30px 30px 38px; }
.mbs-tab-header { margin: 0 0 24px; }
.mbs-tab-header h2 { color:var(--mbs-ink); font-size:26px; font-weight:700; letter-spacing:-.5px; }
.mbs-subtitle { color:#8a8da1; font-size:12px; }
.mbs-datetime { color:var(--mbs-pink); font-size:12px; font-weight:600; margin:6px 0; }
.mbs-cards-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:22px 0; }
.mbs-card { border:0; border-radius:14px; background:#fff; box-shadow:var(--mbs-card-shadow); padding:22px 18px; min-height:178px; }
.mbs-card h3 { color:#30334a; font-size:14px; font-weight:700; margin:12px 0 4px; }
.mbs-card p { color:#9a9cad; font-size:11px; }
.mbs-card-circle { width:74px; height:74px; }
.mbs-circular-chart { width:74px; height:74px; }
.mbs-circle { stroke:var(--mbs-pink); }
.mbs-circle-blue { stroke:#35c3c4; }
.mbs-circle-green { stroke:#35c3c4; }
.mbs-circle-bg { stroke:#ececf2; }
.mbs-percentage { fill:#30334a; font-size:8px; font-weight:700; }
.mbs-quick-actions { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 28px; }
.mbs-btn { border-radius:24px; padding:12px 22px; font-size:12px; font-weight:600; box-shadow:0 5px 14px rgba(237,40,89,.12); }
.mbs-btn-primary { background:var(--mbs-pink); border-color:var(--mbs-pink); color:#fff; }
.mbs-btn-primary:hover { background:var(--mbs-pink-dark); border-color:var(--mbs-pink-dark); }
.mbs-btn-outline { border:1px solid var(--mbs-pink); color:var(--mbs-pink); background:transparent; box-shadow:none; }
.mbs-info-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.mbs-info-card { border:0; border-radius:14px; background:#fff; padding:22px; box-shadow:var(--mbs-card-shadow); }
.mbs-info-card h4 { color:#30334a; font-size:14px; }
.mbs-info-card p { color:#85889b; font-size:12px; line-height:1.7; }
.mbs-table-wrap, .mbs-empty-state, .mbs-form-card, .mbs-modal-content { border:0; border-radius:14px; background:#fff; box-shadow:var(--mbs-card-shadow); }
.mbs-table th { background:#fff5f8; color:#54566c; }
.mbs-table td { border-color:#f0f0f5; }
.mbs-status { border-radius:20px; }
@media (max-width: 900px) {
  /* True full-screen mobile: white bg, no theme chrome, only dashboard */
  html.mbs-dashboard-page,
  body.mbs-dashboard-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  body.mbs-dashboard-page #wpadminbar,
  body.mbs-dashboard-page .site-header,
  body.mbs-dashboard-page header,
  body.mbs-dashboard-page footer,
  body.mbs-dashboard-page .site-footer,
  body.mbs-dashboard-page .entry-title,
  body.mbs-dashboard-page .page-title,
  body.mbs-dashboard-page h1.entry-title,
  body.mbs-dashboard-page h1.page-title,
  body.mbs-dashboard-page .wp-block-post-title,
  body.mbs-dashboard-page .page-header,
  body.mbs-dashboard-page .entry-header,
  body.mbs-dashboard-page .ast-page-title-wrap,
  body.mbs-dashboard-page .page-title-section,
  body.mbs-dashboard-page .hero-section,
  body.mbs-dashboard-page .page-banner,
  body.mbs-dashboard-page .banner,
  body.mbs-dashboard-page .title-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  body.mbs-dashboard-page #page,
  body.mbs-dashboard-page #content,
  body.mbs-dashboard-page #primary,
  body.mbs-dashboard-page #main,
  body.mbs-dashboard-page .site-content,
  body.mbs-dashboard-page .content-area,
  body.mbs-dashboard-page .entry-content,
  body.mbs-dashboard-page article,
  body.mbs-dashboard-page .hentry,
  body.mbs-dashboard-page .ast-container,
  body.mbs-dashboard-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #ffffff !important;
  }
  body.mbs-dashboard-page .entry-content > *:not(.mbs-dashboard):not(.mbs-auth-wrap) {
    display: none !important;
  }

  .mbs-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    position: relative;
    z-index: 50;
  }
  .mbs-sidebar {
    position: fixed !important;
    width: 260px !important;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-105%);
    z-index: 1100;
    border-radius: 0 !important;
  }
  .mbs-sidebar.mbs-open,
  .mbs-sidebar.open {
    transform: translateX(0);
  }
  .mbs-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #ffffff !important;
  }
  .mbs-main-header {
    padding: 12px 16px;
    gap: 12px;
    background: #ffffff !important;
  }
  .mbs-mobile-toggle { display: block; color: var(--mbs-pink); }
  .mbs-header-search { flex: 1 1 100px; max-width: none; }
  .mbs-header-links { display: none; }
  .mbs-content {
    padding: 22px 16px 30px;
    background: #ffffff !important;
  }
}
@media (max-width: 620px) {
  .mbs-cards-grid { grid-template-columns: 1fr; }
  .mbs-info-cards { grid-template-columns: 1fr; }
  .mbs-header-search { height: 38px; }
  .mbs-header-tools { gap: 8px; }
  .mbs-tab-header h2 { font-size: 22px; }
  .mbs-quick-actions .mbs-btn { flex: 1 1 100%; }
}

/* =========================================================
   SIDEBAR STATS (admin)
   ========================================================= */
.mbs-sidebar-stats {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0,0,0,.12);
}
.mbs-sidebar-stat {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 6px;
}
.mbs-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.mbs-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.mbs-unread-badge {
  margin-left: auto;
  background: #fff;
  color: var(--mbs-pink, #ed2859);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* =========================================================
   PROMO BANNER SLIDER
   ========================================================= */
.mbs-banner-slider {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #e8eaf5;
  aspect-ratio: 21 / 7;
  max-height: 220px;
}
.mbs-banner-track { position: relative; width: 100%; height: 100%; }
.mbs-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.mbs-banner-slide.active { opacity: 1; pointer-events: auto; }
.mbs-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mbs-banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mbs-banner-prev, .mbs-banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #333;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.mbs-banner-prev { left: 10px; }
.mbs-banner-next { right: 10px; }
.mbs-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.mbs-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.mbs-banner-dot.active { background: #fff; }

/* =========================================================
   CUSTOMER SEARCH DROPDOWN (invoice)
   ========================================================= */
.mbs-search-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 4px;
}
.mbs-search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f3f3f8;
  font-size: 13px;
}
.mbs-search-item:hover { background: #fff5f8; }
.mbs-search-item strong { display: block; color: #292b45; }
.mbs-search-item small { color: #8a8da1; }

/* =========================================================
   WHATSAPP-STYLE CHAT
   ========================================================= */
.mbs-wa-wrap {
  display: flex;
  height: min(620px, calc(100vh - 180px));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  background: #efeae2;
  box-shadow: 0 8px 28px rgba(38,42,80,.08);
}
.mbs-wa-sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e8eaf0;
  display: flex;
  flex-direction: column;
}
.mbs-wa-sidebar-head {
  padding: 16px;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mbs-wa-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #25d366;
}
.mbs-wa-conv-list { flex: 1; overflow-y: auto; }
.mbs-wa-conv {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f8;
  align-items: center;
}
.mbs-wa-conv:hover, .mbs-wa-conv.active { background: #f5f6fc; }
.mbs-wa-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.mbs-wa-conv-meta strong { display: block; font-size: 13px; color: #111; }
.mbs-wa-conv-meta small { color: #667; font-size: 11px; }
.mbs-wa-empty { padding: 24px; color: #889; font-size: 13px; text-align: center; }

.mbs-wa-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #efeae2 url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 30 L42 45 L30 36 L18 45 L22 30 L10 20 L25 20 Z' fill='%23d4cfc7' fill-opacity='0.15'/%3E%3C/svg%3E");
}
.mbs-wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #075e54;
  color: #fff;
}
.mbs-wa-back {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.mbs-wa-peer { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mbs-wa-peer strong { display: block; font-size: 14px; }
.mbs-wa-peer small { font-size: 11px; opacity: .85; }
.mbs-wa-header-actions { display: flex; gap: 4px; }
.mbs-wa-icon-btn {
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  color: inherit;
}
.mbs-wa-header .mbs-wa-icon-btn { color: #fff; }

.mbs-wa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mbs-wa-day {
  align-self: center;
  background: #fff;
  color: #667;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 8px;
  margin: 8px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.mbs-wa-placeholder { text-align: center; color: #889; font-size: 13px; margin: auto; }
.mbs-wa-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.mbs-wa-bubble.mine {
  align-self: flex-end;
  background: #dcf8c6;
  border-top-right-radius: 2px;
}
.mbs-wa-bubble.theirs {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}
.mbs-wa-bubble .mbs-wa-time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #667;
  margin-top: 4px;
}
.mbs-wa-bubble img.mbs-wa-img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 4px;
}
.mbs-wa-bubble audio { width: 220px; max-width: 100%; }
.mbs-wa-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #075e54;
  text-decoration: none;
  font-weight: 600;
}

.mbs-wa-composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px;
  background: #f0f2f5;
}
.mbs-wa-input-wrap {
  flex: 1;
  background: #fff;
  border-radius: 24px;
  padding: 8px 14px;
}
.mbs-wa-input-wrap textarea {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  resize: none;
  font-size: 14px;
  max-height: 100px;
  background: transparent !important;
  padding: 0 !important;
  font-family: inherit;
}
.mbs-wa-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #25d366;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.mbs-wa-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #e8eaf0;
  max-height: 140px;
  overflow-y: auto;
}
.mbs-wa-emoji {
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.mbs-wa-recording {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e8eaf0;
  font-size: 13px;
}
.mbs-wa-rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  animation: mbs-pulse 1s infinite;
}
@keyframes mbs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.mbs-wa-recording button {
  border: 0;
  border-radius: 16px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
#mbs-wa-rec-cancel { background: #eee; }
#mbs-wa-rec-send { background: #25d366; color: #fff; margin-left: auto; }

/* Video call overlay */
.mbs-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mbs-call-box {
  position: relative;
  width: min(900px, 96vw);
  height: min(600px, 80vh);
  background: #111;
  border-radius: 16px;
  overflow: hidden;
}
#mbs-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #222;
}
#mbs-local-video {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
  background: #333;
  z-index: 2;
}
.mbs-call-info {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.mbs-call-info strong { display: block; font-size: 16px; }
.mbs-call-info span { font-size: 12px; opacity: .85; }
.mbs-call-actions {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 2;
}
.mbs-call-end, .mbs-call-reject {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: #e74c3c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mbs-call-accept {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px) {
  .mbs-wa-wrap { height: min(70vh, 560px); }
  .mbs-wa-sidebar { width: 100%; }
  .mbs-wa-main { display: none; }
  .mbs-wa-wrap.mbs-wa-chat-open .mbs-wa-sidebar { display: none; }
  .mbs-wa-wrap.mbs-wa-chat-open .mbs-wa-main { display: flex; width: 100%; }
  .mbs-wa-back { display: block; }
  .mbs-banner-slider { max-height: 140px; aspect-ratio: 16/7; }
}

.mbs-banner-area { padding: 16px 30px 0; }
@media (max-width: 900px) {
  .mbs-banner-area { padding: 12px 16px 0; }
}

