/* ╔══════════════════════════════════════════════════════════════════╗
   ║  MSpace Business Portal – Ultra-Premium Design System          ║
   ║  Glassmorphism · Apple-grade · MSpace Brand                    ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ─────────────────────────── Design Tokens ─────────────────────────── */
:root {
    /* MSpace Brand */
    --ms-navy:   #00008B;
    --ms-blue:   #1a1aff;
    --ms-indigo: #3b5bdb;
    --ms-mid:    #4361ee;
    --ms-red:    #b70000;
    --ms-red-lt: #ef4444;

    /* Light Theme (Default) */
    --bp-bg:               #f4f6fc;
    --bp-bg2:              #ffffff;
    --bp-surface:          rgba(0,0,0,0.03);
    --bp-surface-solid:    rgba(255,255,255,0.96);
    --bp-surface-hover:    rgba(0,0,0,0.05);

    /* Glass */
    --bp-glass:            rgba(0,0,0,0.03);
    --bp-glass-md:         rgba(0,0,0,0.06);
    --bp-glass-border:     rgba(0,0,0,0.08);
    --bp-glass-border-hi:  rgba(0,0,0,0.16);

    /* Text */
    --bp-text:        #334155;
    --bp-text-muted:  #64748b;
    --bp-text-active: #0f172a;

    /* Gradients */
    --g-brand:    linear-gradient(135deg, #00008B 0%, #3b5bdb 100%);
    --g-surface:  linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.6) 100%);
    --g-heading:  linear-gradient(135deg, #00008B 0%, #3b5bdb 100%);
    --g-kpi1:     linear-gradient(135deg, #00008B 0%, #3b5bdb 100%);
    --g-kpi2:     linear-gradient(135deg, #059669 0%, #10b981 100%);
    --g-kpi3:     linear-gradient(135deg, #b70000 0%, #ef4444 100%);
    --g-kpi4:     linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    --g-kpi5:     linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);

    /* Semantic */
    --bp-success: #10b981;
    --bp-warning: #f59e0b;
    --bp-info:    #3b82f6;
    --bp-danger:  #ef4444;

    /* Shape */
    --bp-radius:    16px;
    --bp-radius-sm: 10px;
    --bp-radius-xs: 6px;

    /* Shadows */
    --bp-shadow:     0 8px 32px rgba(148, 163, 184, 0.15);
    --bp-shadow-lg:  0 16px 48px rgba(148, 163, 184, 0.25);
    --bp-shadow-glow: 0 0 40px rgba(59,91,219,0.08);
    --bp-neumorphic-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
    --bp-neumorphic-shadow-inset: inset 6px 6px 12px #d1d9e6, inset -6px -6px 12px #ffffff;

    /* Input */
    --bp-input-bg:     #ffffff;
    --bp-input-border: rgba(0,0,0,0.15);

    /* Transitions */
    --bp-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic Themeable Parameters */
    --bp-body-bg: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(59,91,219,0.08) 0%, transparent 70%),
                  radial-gradient(ellipse 60% 60% at 90% 100%, rgba(139,92,246,0.06) 0%, transparent 70%),
                  radial-gradient(ellipse 50% 40% at 50% 50%, rgba(244,246,252,0.95) 0%, transparent 100%),
                  #f4f6fc;
    --bp-sidebar-bg: rgba(255,255,255,0.98);
    --bp-sidebar-border: rgba(0,0,0,0.06);
    --bp-panel-bg: rgba(255,255,255,0.98);
    --bp-modal-bg: linear-gradient(165deg, #ffffff, #f1f5f9);

    /* Dynamic Badge Colors (Light Theme) */
    --badge-new-bg: rgba(59,130,246,0.10);         --badge-new-color: #1d4ed8;
    --badge-contacted-bg: rgba(245,158,11,0.10);   --badge-contacted-color: #b45309;
    --badge-qualified-bg: rgba(139,92,246,0.10);   --badge-qualified-color: #6d28d9;
    --badge-converted-bg: rgba(16,185,129,0.10);   --badge-converted-color: #047857;
    --badge-archived-bg: rgba(100,116,139,0.10);    --badge-archived-color: #475569;
    --badge-requirements-bg: rgba(59,130,246,0.10);--badge-requirements-color: #1d4ed8;
    --badge-demo-bg: rgba(245,158,11,0.10);        --badge-demo-color: #b45309;
    --badge-signup-bg: rgba(16,185,129,0.10);      --badge-signup-color: #047857;
    --badge-general-bg: rgba(139,92,246,0.10);     --badge-general-color: #6d28d9;

    /* Code styling variables */
    --code-bg: rgba(0,0,0,0.03);
    --code-border: rgba(0,0,0,0.08);
    --code-color: #c2410c;
}

/* Dark Theme overrides */
:root[data-theme="dark"] {
    --bp-bg:               #070b18;
    --bp-bg2:              #0c1228;
    --bp-surface:          rgba(255,255,255,0.042);
    --bp-surface-solid:    rgba(12,18,40,0.92);
    --bp-surface-hover:    rgba(255,255,255,0.07);

    --bp-glass:            rgba(255,255,255,0.05);
    --bp-glass-md:         rgba(255,255,255,0.09);
    --bp-glass-border:     rgba(255,255,255,0.10);
    --bp-glass-border-hi:  rgba(255,255,255,0.22);

    --bp-text:        #e2e8f5;
    --bp-text-muted:  #8892a8;
    --bp-text-active: #ffffff;

    --g-surface:  linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    --g-heading:  linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);

    --bp-shadow:     0 4px 24px rgba(0,0,0,0.4);
    --bp-shadow-lg:  0 12px 60px rgba(0,0,0,0.55);
    --bp-shadow-glow: 0 0 40px rgba(59,91,219,0.2);
    --bp-neumorphic-shadow: 6px 6px 12px #04060d, -6px -6px 12px #0c1228;
    --bp-neumorphic-shadow-inset: inset 6px 6px 12px #04060d, inset -6px -6px 12px #0c1228;

    --bp-input-bg:     rgba(255,255,255,0.06);
    --bp-input-border: rgba(255,255,255,0.14);

    --bp-body-bg: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,0,139,0.35) 0%, transparent 70%),
                  radial-gradient(ellipse 60% 60% at 90% 100%, rgba(59,91,219,0.18) 0%, transparent 70%),
                  radial-gradient(ellipse 50% 40% at 50% 50%, rgba(7,30,80,0.6) 0%, transparent 100%),
                  #070b18;
    --bp-sidebar-bg: rgba(8,12,30,0.88);
    --bp-sidebar-border: rgba(255,255,255,0.07);
    --bp-panel-bg: rgba(10,14,32,0.96);
    --bp-modal-bg: linear-gradient(165deg,#0f172a,#1e293b);

    /* Dynamic Badge Colors (Dark Theme) */
    --badge-new-bg: rgba(59,130,246,0.18);         --badge-new-color: #93c5fd;
    --badge-contacted-bg: rgba(245,158,11,0.18);   --badge-contacted-color: #fcd34d;
    --badge-qualified-bg: rgba(139,92,246,0.18);   --badge-qualified-color: #c4b5fd;
    --badge-converted-bg: rgba(16,185,129,0.18);   --badge-converted-color: #6ee7b7;
    --badge-archived-bg: rgba(100,116,139,0.18);    --badge-archived-color: #8892a8;
    --badge-requirements-bg: rgba(59,130,246,0.18);--badge-requirements-color: #93c5fd;
    --badge-demo-bg: rgba(245,158,11,0.18);        --badge-demo-color: #fcd34d;
    --badge-signup-bg: rgba(16,185,129,0.18);      --badge-signup-color: #6ee7b7;
    --badge-general-bg: rgba(139,92,246,0.18);     --badge-general-color: #c4b5fd;

    /* Code styling variables */
    --code-bg: rgba(255,255,255,0.06);
    --code-border: rgba(255,255,255,0.14);
    --code-color: #f59e0b;
}

/* ─────────────────────────── Page Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─────────────────────────── Page Layout ─────────────────────────── */
.bp-body {
    background: var(--bp-body-bg) !important;
    color: var(--bp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.bp-body .navbar, .bp-body nav { display: none !important; }

.bp-wrapper { display: flex; min-height: 100vh; }

/* ─────────────────────────── Sidebar ─────────────────────────── */
.bp-sidebar {
    width: 268px;
    background: var(--bp-sidebar-bg);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border-right: 1px solid var(--bp-sidebar-border);
    padding: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(0,0,0,0.15);
}

/* Sidebar accent ribbon */
.bp-sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--g-brand);
    opacity: 0.9;
}

.bp-sidebar-header {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--bp-sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-sidebar-header img {
    height: 32px;
    filter: brightness(1) drop-shadow(0 0 8px rgba(59,91,219,0.25));
}

.bp-sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    background: var(--g-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.bp-nav { list-style: none; padding: 16px 12px; margin: 0; flex: 1; overflow-y: auto; }
.bp-nav li { margin-bottom: 2px; }
.bp-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--bp-radius-sm);
    color: var(--bp-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--bp-transition);
    position: relative;
}
.bp-nav a:hover {
    background: rgba(59,91,219,0.12);
    color: var(--bp-text-active);
}
.bp-nav a.active {
    background: rgba(59,91,219,0.18);
    color: var(--bp-text-active);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--ms-indigo);
}
.bp-nav a i { width: 20px; text-align: center; font-size: 1rem; opacity: 0.8; }
.bp-nav a.active i, .bp-nav a:hover i { opacity: 1; color: var(--ms-indigo); }

.bp-nav-header {
    padding: 14px 16px 6px;
    font-size: 0.68rem;
    color: var(--bp-text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}
.bp-nav-header i {
    font-size: 0.85rem;
}

.bp-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--bp-sidebar-border);
}
.bp-sidebar-footer a {
    color: var(--bp-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--bp-transition);
}
.bp-sidebar-footer a:hover { color: var(--bp-text-active); }

/* ─────────────────────────── Main Content ─────────────────────────── */
.bp-main {
    flex: 1;
    margin-left: 268px;
    padding: 28px 32px;
    min-height: 100vh;
}

/* ─────────────────────────── Topbar ─────────────────────────── */
.bp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.bp-topbar h1 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
    background: var(--g-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.bp-topbar-right { display: flex; align-items: center; gap: 14px; }

.bp-time-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--bp-glass-border);
    backdrop-filter: blur(10px);
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 0.78rem;
    color: var(--bp-text-muted);
}

.bp-menu-toggle {
    display: none;
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: 10px;
    color: var(--bp-text);
    width: 44px; height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--bp-transition);
}
.bp-menu-toggle:hover { background: var(--bp-glass-md); }

/* ─────────────────────────── Sections ─────────────────────────── */
.bp-section { display: none; animation: bpFadeIn 0.4s ease; }
.bp-section.active { display: block; }

@keyframes bpFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ─────────────────────────── KPI Cards ─────────────────────────── */
.bp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.bp-kpi-card {
    background: var(--g-surface);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    transition: var(--bp-transition);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    cursor: pointer;
}

.bp-kpi-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--bp-radius);
    background: radial-gradient(ellipse 80% 80% at 80% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.bp-kpi-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--bp-glass-border-hi);
    box-shadow: var(--bp-shadow-lg), var(--bp-shadow-glow);
}

.bp-kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--g-brand);
    opacity: 0;
    transition: opacity 0.3s;
}
.bp-kpi-card:hover::before { opacity: 1; }

.bp-kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.bp-kpi-icon.blue   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }
.bp-kpi-icon.green  { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
.bp-kpi-icon.red    { background: linear-gradient(135deg, #b91c1c, #f87171); color: #fff; }
.bp-kpi-icon.yellow { background: linear-gradient(135deg, #b45309, #fbbf24); color: #fff; }
.bp-kpi-icon.purple { background: linear-gradient(135deg, #5b21b6, #a78bfa); color: #fff; }

.bp-kpi-value, .bp-kpi-val {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--bp-text-active);
    letter-spacing: -0.03em;
}
.bp-kpi-label, .bp-kpi-lbl {
    font-size: 0.72rem;
    color: var(--bp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 600;
}

/* ─────────────────────────── Glass Card ─────────────────────────── */
.bp-card {
    background: var(--g-surface);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    padding: 26px;
    margin-bottom: 22px;
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: var(--bp-shadow);
    position: relative;
    overflow: hidden;
}
.bp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
    border-radius: var(--bp-radius);
}

.neumorphic-card {
    background: var(--bp-bg2) !important;
    box-shadow: var(--bp-neumorphic-shadow) !important;
    border: 1px solid var(--bp-glass-border) !important;
    transition: var(--bp-transition) !important;
}
.neumorphic-card:hover {
    box-shadow: var(--bp-neumorphic-shadow-inset) !important;
    transform: translateY(1px);
}

.bp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bp-text-active);
}
.bp-card-title > i {
    width: 34px; height: 34px;
    background: rgba(59,91,219,0.18);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ms-indigo);
    font-size: 0.9rem;
}
.bp-card-title .float-right,
.bp-card-title button.float-right,
.bp-card-title a.float-right {
    margin-left: auto !important;
    float: none !important;
}


/* ─────────────────────────── Charts ─────────────────────────── */
.bp-chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}
.bp-chart-container { position: relative; height: 300px; }

/* ─────────────────────────── Live Visitors ─────────────────────────── */
.bp-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.bp-visitor-card {
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius-sm);
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--bp-transition);
    backdrop-filter: blur(16px);
}
.bp-visitor-card:hover {
    background: var(--bp-surface-hover);
    transform: translateY(-3px);
    border-color: var(--bp-glass-border-hi);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.bp-visitor-card .bp-live-dot {
    width: 8px; height: 8px;
    background: var(--bp-success);
    border-radius: 50%;
    display: inline-block;
    animation: bpPulse 2s ease-in-out infinite;
    margin-right: 8px;
}
@keyframes bpPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.bp-visitor-info { font-size: 0.82rem; }
.bp-visitor-info strong { color: var(--bp-text-active); font-weight: 600; }
.bp-visitor-info .bp-visitor-meta { color: var(--bp-text-muted); font-size: 0.75rem; margin-top: 4px; }

/* ─────────────────────────── History Slide Panel ─────────────────────────── */
.bp-history-panel {
    position: fixed;
    top: 0; right: -440px; bottom: 0;
    width: 420px; max-width: 92vw;
    background: var(--bp-panel-bg);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-left: 1px solid var(--bp-sidebar-border);
    z-index: 200;
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -12px 0 60px rgba(0,0,0,0.15);
}
.bp-history-panel.open { right: 0; }

.bp-history-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--bp-sidebar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bp-history-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--bp-text-active); }

.bp-history-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--bp-glass-border);
    border-radius: 8px;
    color: var(--bp-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--bp-transition);
}
.bp-history-close:hover { background: var(--bp-glass-md); color: var(--bp-text-active); }

.bp-history-list { padding: 16px 26px; }
.bp-history-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-glass-border);
    font-size: 0.82rem;
}
.bp-history-item:last-child { border-bottom: none; }
.bp-history-item .bp-hist-page { color: var(--bp-text-active); font-weight: 600; }
.bp-history-item .bp-hist-time { color: var(--bp-text-muted); font-size: 0.75rem; }

/* ─────────────────────────── Social Share Module ─────────────────────────── */
.bp-share-form { max-width: 700px; }
.bp-share-form .form-group { margin-bottom: 22px; }
.bp-share-form label {
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--bp-text);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bp-share-form .form-control {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: var(--bp-radius-sm) !important;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
    transition: var(--bp-transition) !important;
    backdrop-filter: blur(10px);
}
.bp-share-form .form-control::placeholder { color: var(--bp-text-muted); opacity: 0.6; }
.bp-share-form .form-control:focus {
    border-color: var(--ms-indigo) !important;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.2) !important;
    background: var(--bp-input-bg) !important;
}
.bp-share-form select.form-control { appearance: auto; }

/* Social Preview Card */
.bp-share-preview {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px) saturate(1.5);
    border-radius: 18px;
    overflow: hidden;
    max-width: 520px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    transition: box-shadow 0.3s, transform 0.3s;
}
.bp-share-preview:hover {
    box-shadow: 0 16px 60px rgba(59,91,219,0.25);
    transform: translateY(-2px);
}
.bp-share-preview-img {
    width: 100%;
    height: 280px;
    background: var(--bp-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-text-muted);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.bp-share-preview-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--bp-bg);
}
.bp-share-preview-body {
    padding: 18px 22px 22px;
    background: var(--bp-bg2);
    border-top: 1px solid var(--bp-glass-border);
}
.bp-share-preview-body h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--bp-text-active); line-height: 1.4; }
.bp-share-preview-body p { margin: 0 0 8px; font-size: 0.83rem; color: var(--bp-text-muted); line-height: 1.55; }
.bp-share-preview-body small { color: var(--ms-indigo); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.bp-share-buttons {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.bp-share-btn {
    padding: 10px 20px;
    border-radius: var(--bp-radius-sm);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: var(--bp-transition);
    letter-spacing: 0.01em;
}
.bp-share-btn:hover { transform: translateY(-3px); filter: brightness(1.15); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.bp-share-btn.facebook  { background: #1877f2; }
.bp-share-btn.x         { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.bp-share-btn.linkedin  { background: #0a66c2; }
.bp-share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.bp-share-btn.tiktok    { background: #010101; border: 1px solid #25f4ee; }
.bp-share-btn.whatsapp  { background: #25d366; }
.bp-share-btn.sms       { background: #10b981; color: #fff; gap: 5px; }
.bp-share-btn.email     { background: #475569; color: #fff; gap: 5px; }
.bp-share-btn.copy      { background: rgba(255,255,255,0.08); border: 1px solid var(--bp-glass-border); }
.bp-share-btn.auto-publish { background: var(--g-brand); }

/* ─────────────────────────── Tables ─────────────────────────── */
.bp-card table {
    width: 100%;
    color: var(--bp-text);
    font-size: 0.83rem;
    border-collapse: separate;
    border-spacing: 0;
}
.bp-card table th {
    color: var(--bp-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.68rem;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bp-glass-border);
}
.bp-card table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--bp-glass-border);
    vertical-align: middle;
}
.bp-card table tr:hover td { background: var(--bp-surface-hover); }

/* ─────────────────────────── Badges ─────────────────────────── */
.bp-badge {
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.bp-badge-new        { background: var(--badge-new-bg); color: var(--badge-new-color); }
.bp-badge-contacted  { background: var(--badge-contacted-bg); color: var(--badge-contacted-color); }
.bp-badge-qualified  { background: var(--badge-qualified-bg); color: var(--badge-qualified-color); }
.bp-badge-converted  { background: var(--badge-converted-bg); color: var(--badge-converted-color); }
.bp-badge-archived   { background: var(--badge-archived-bg); color: var(--badge-archived-color); }
.bp-badge-requirements { background: var(--badge-requirements-bg); color: var(--badge-requirements-color); }
.bp-badge-demo       { background: var(--badge-demo-bg); color: var(--badge-demo-color); }
.bp-badge-signup     { background: var(--badge-signup-bg); color: var(--badge-signup-color); }
.bp-badge-general    { background: var(--badge-general-bg); color: var(--badge-general-color); }

/* Monospace Code tag styling for site-wide high contrast uniformity */
code, .table code, .bp-table code {
    font-family: var(--font-family-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace);
    font-size: 0.78rem !important;
    padding: 2px 6px !important;
    background: var(--code-bg) !important;
    border: 1px solid var(--code-border) !important;
    border-radius: 4px !important;
    color: var(--code-color) !important;
    font-weight: 600 !important;
    word-break: break-word !important;
}

/* ─────────────────────────── Settings ─────────────────────────── */
.bp-settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--bp-glass-border);
    padding-bottom: 0;
}
.bp-settings-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--bp-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--bp-transition);
}
.bp-settings-tab:hover { color: var(--bp-text-active); }
.bp-settings-tab.active {
    color: var(--bp-text-active);
    border-bottom-color: var(--ms-indigo);
}

.bp-settings-panel { display: none; }
.bp-settings-panel.active { display: block; animation: bpFadeIn 0.3s ease; }

.bp-settings-group { margin-bottom: 22px; }
.bp-settings-group h5 {
    font-size: 0.9rem;
    margin: 0 0 14px;
    color: var(--bp-text);
    font-weight: 700;
}
.bp-input-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}
.bp-input-row .form-group { flex: 1; margin: 0; }

/* ─────────────────────────── AI Panel ─────────────────────────── */
.bp-ai-output {
    background: var(--bp-surface);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius-sm);
    padding: 18px;
    margin-top: 18px;
    min-height: 110px;
    white-space: pre-wrap;
    font-size: 0.85rem;
    color: var(--bp-text);
    line-height: 1.55;
}

/* ─────────────────────────── Global Inputs ─────────────────────────── */
.bp-body .form-control,
.bp-landing-body .form-control,
.bp-share-form .form-control {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: var(--bp-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    transition: var(--bp-transition) !important;
}
.bp-body .form-control::placeholder,
.bp-landing-body .form-control::placeholder,
.bp-share-form .form-control::placeholder { color: var(--bp-text-muted) !important; opacity: 0.7; }

.bp-body .form-control:focus,
.bp-landing-body .form-control:focus,
.bp-share-form .form-control:focus {
    border-color: var(--ms-indigo) !important;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.2) !important;
    background: var(--bp-input-bg) !important;
    outline: none;
}
/* Ensure dropdown options are readable regardless of OS dark mode overriding */
.bp-body select.form-control option, .bp-body select option,
.bp-landing-body select.form-control option, .bp-landing-body select option {
    background-color: var(--bp-bg2) !important;
    color: var(--bp-text-active) !important;
}

/* Fix select and form-control-sm text cutting off */
.bp-body select.form-control,
.bp-landing-body select.form-control,
.bp-share-form select.form-control,
.bp-body .form-control-sm,
.bp-landing-body .form-control-sm,
.bp-share-form .form-control-sm {
    padding: 6px 12px !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.5 !important;
}


/* ─────────────────────────── Buttons ─────────────────────────── */
.bp-btn {
    padding: 10px 24px;
    border-radius: var(--bp-radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--bp-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.bp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.bp-btn:hover::after { opacity: 1; }
.bp-btn:active { transform: scale(0.98); }

.bp-btn-primary {
    background: var(--g-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,139,0.35);
}
.bp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59,91,219,0.45);
}

.bp-btn-danger {
    background: linear-gradient(135deg, #7f1d1d, #ef4444);
    color: #fff;
    box-shadow: 0 4px 16px rgba(183,0,0,0.3);
}
.bp-btn-danger:hover { transform: translateY(-2px); }

.bp-btn-ghost {
    background: var(--bp-surface);
    border: 1px solid var(--bp-glass-border);
    color: var(--bp-text);
    backdrop-filter: blur(8px);
}
.bp-btn-ghost:hover {
    background: var(--bp-surface-hover);
    border-color: var(--bp-glass-border-hi);
    color: var(--bp-text-active);
}

.bp-btn-sm { padding: 5px 14px; font-size: 0.75rem; border-radius: var(--bp-radius-xs); }

/* ─────────────────────────── Leaderboard ─────────────────────────── */
.bp-lb-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius-sm);
    transition: var(--bp-transition);
    backdrop-filter: blur(16px);
}
.bp-lb-row:hover {
    background: var(--bp-surface-hover);
    transform: translateX(5px);
    border-color: var(--bp-glass-border-hi);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.bp-lb-top {
    background: rgba(59,91,219,0.1);
    border-color: rgba(59,91,219,0.25);
    box-shadow: inset 0 0 0 1px rgba(59,91,219,0.15);
}
.bp-lb-rank  { min-width: 42px; text-align: center; font-size: 1.3rem; }
.bp-medal    { font-size: 1.5rem; }
.bp-medal:not(.gold):not(.silver):not(.bronze) { font-size: 0.9rem; color: var(--bp-text-muted); font-weight: 700; }

.bp-lb-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(59,91,219,0.2);
}
.bp-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bp-lb-info  { flex: 1; min-width: 0; }
.bp-lb-name  { font-weight: 700; font-size: 0.95rem; color: var(--bp-text-active); }
.bp-lb-expertise { font-size: 0.75rem; color: var(--bp-text-muted); }

.bp-lb-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-lb-badge {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
}

.bp-lb-stats { text-align: right; min-width: 90px; }
.bp-lb-score { font-size: 1.35rem; font-weight: 800; color: var(--bp-text-active); letter-spacing: -0.02em; }
.bp-lb-score small { font-size: 0.65rem; color: var(--bp-text-muted); font-weight: 600; }
.bp-lb-detail { font-size: 0.72rem; color: var(--bp-text-muted); }

/* ─────────────────────────── Badges Grid ─────────────────────────── */
.bp-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.bp-badge-card {
    background: var(--bp-glass);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    padding: 22px;
    text-align: center;
    transition: var(--bp-transition);
    backdrop-filter: blur(16px);
}
.bp-badge-card:hover { transform: translateY(-5px); border-color: var(--bp-glass-border-hi); box-shadow: var(--bp-shadow-lg); }

.bp-badge-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    width: 60px; height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.bp-badge-name { font-weight: 700; font-size: 0.9rem; color: var(--bp-text-active); margin-bottom: 4px; }
.bp-badge-desc { font-size: 0.72rem; color: var(--bp-text-muted); margin-bottom: 8px; line-height: 1.5; }
.bp-badge-earned-tag  { font-size: 0.72rem; font-weight: 700; color: var(--bp-success); }
.bp-badge-threshold   { font-size: 0.72rem; color: var(--bp-text-muted); font-style: italic; }
.bp-badge-locked      { opacity: 0.35; filter: grayscale(0.9); }
.bp-badge-locked:hover{ opacity: 0.55; }
.bp-badge-earned      { background: rgba(59,91,219,0.06); }

/* Tier colors */
.bp-tier-bronze .bp-badge-icon, .bp-tier-bronze.bp-lb-badge { background: rgba(205,127,50,0.2); color: #cd7f32; }
.bp-tier-silver .bp-badge-icon, .bp-tier-silver.bp-lb-badge { background: rgba(192,192,192,0.2); color: #d0d0d0; }
.bp-tier-gold   .bp-badge-icon, .bp-tier-gold.bp-lb-badge   { background: rgba(255,215,0,0.18); color: #ffd700; }
.bp-tier-platinum .bp-badge-icon, .bp-tier-platinum.bp-lb-badge { background: rgba(180,217,255,0.18); color: #b4d9ff; }

.bp-badge-earned.bp-tier-bronze  { box-shadow: 0 0 24px rgba(205,127,50,0.2); }
.bp-badge-earned.bp-tier-silver  { box-shadow: 0 0 24px rgba(192,192,192,0.15); }
.bp-badge-earned.bp-tier-gold    { box-shadow: 0 0 30px rgba(255,215,0,0.2); }
.bp-badge-earned.bp-tier-platinum{ box-shadow: 0 0 30px rgba(180,217,255,0.2); }

/* ─────────────────────────── Gamified Animations ─────────────────────────── */
.bp-badge-floating {
    animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.bp-badge-glow {
    position: relative;
    z-index: 1;
}
.bp-badge-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 50%;
    animation: badgeGlowPulse 2.5s infinite alternate;
}
@keyframes badgeGlowPulse {
    0%   { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 15px currentColor; }
}

/* ─────────────────────────── Avatar / Profile ─────────────────────────── */
.bp-avatar-wrapper { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.bp-avatar-img {
    width: 130px; height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(59,91,219,0.4);
    box-shadow: 0 0 0 4px rgba(59,91,219,0.12);
}
.bp-avatar-upload-btn {
    position: absolute; bottom: 4px; right: 4px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--g-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    border: 2px solid var(--bp-bg);
    transition: var(--bp-transition);
    box-shadow: 0 4px 12px rgba(59,91,219,0.4);
}
.bp-avatar-upload-btn:hover { transform: scale(1.15); }

/* ─────────────────────────── Customer Support Stats ─────────────────────────── */
.bp-stats-grid {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bp-stat-card {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--g-surface);
    border: 1px solid var(--bp-glass-border);
    border-radius: var(--bp-radius);
    padding: 20px 24px;
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: var(--bp-shadow);
    transition: var(--bp-transition);
    position: relative;
    overflow: hidden;
}

.bp-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--bp-radius);
    background: radial-gradient(ellipse 80% 80% at 80% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.bp-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--bp-glass-border-hi);
    box-shadow: var(--bp-shadow-lg);
}

.bp-stat-card > i {
    font-size: 1.6rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.bp-stat-info h4 {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bp-text-muted);
}

.bp-stat-info h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bp-text-active);
    line-height: 1.1;
}

/* ─────────────────────────── Status select ─────────────────────────── */
.bp-status-select {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: var(--bp-radius-xs) !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
}

/* ─────────────────────────── Referral Share Row ─────────────────────────── */
.bp-ref-share-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bp-ref-share-row .bp-share-btn { padding: 5px 9px; font-size: 0.73rem; border-radius: 6px; min-width: unset; }

/* ─────────────────────────── Analytics Bar ─────────────────────────── */
.bp-bar-track {
    background: var(--bp-surface);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}
.bp-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--ms-navy), var(--ms-indigo));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────── Landing Page ─────────────────────────── */
.bp-landing-body {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,0,139,0.5) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 90% 100%, rgba(59,91,219,0.25) 0%, transparent 70%),
        #07091a;
    min-height: 100vh;
}
.bp-landing-section { padding: 60px 0 80px; }
.bp-landing-card {
    background: var(--bp-surface-solid);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border: 1px solid var(--bp-glass-border);
    border-radius: 22px;
    box-shadow: var(--bp-shadow-lg);
    overflow: hidden;
}
.bp-landing-header {
    background: var(--g-brand);
    color: #fff;
    padding: 38px 34px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bp-landing-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.bp-landing-header h2 { margin: 14px 0 8px; font-size: 1.65rem; font-weight: 800; position: relative; }
.bp-landing-header p  { margin: 0 auto; opacity: 0.85; font-size: 0.9rem; max-width: 520px; position: relative; }

.bp-landing-form { padding: 34px; max-height: 72vh; overflow-y: auto; }
.bp-landing-form label {
    font-weight: 600; font-size: 0.82rem;
    color: var(--bp-text); margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.bp-landing-form label i { color: var(--ms-indigo); }
.bp-landing-form .form-control {
    border: 1px solid var(--bp-input-border) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
}

.bp-submit-btn {
    background: var(--g-brand) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s !important;
    box-shadow: 0 6px 24px rgba(0,0,139,0.4) !important;
}
.bp-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 32px rgba(59,91,219,0.5) !important;
}
.bp-back-btn {
    background: rgba(255,255,255,0.06) !important;
    color: var(--bp-text) !important;
    border: 1px solid var(--bp-glass-border) !important;
    border-radius: 10px !important;
    padding: 13px !important;
    font-weight: 600 !important;
}

/* Multi-step form */
.bp-steps { display: flex; justify-content: center; gap: 8px; padding: 20px 32px 0; flex-wrap: wrap; }
.bp-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding: 8px 16px; border-radius: 20px; transition: all 0.3s;
}
.bp-step span {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: var(--bp-text-muted);
    font-size: 0.75rem; font-weight: 800;
}
.bp-step.active { color: #fff; }
.bp-step.active span { background: var(--g-brand); color: #fff; box-shadow: 0 0 14px rgba(59,91,219,0.5); }
.bp-step.done span  { background: var(--bp-success); color: #fff; }

/* ── Landing card (white surface): override step colours so text is readable ── */
.bp-landing-card .bp-step {
    color: rgba(0,0,0,0.35);
}
.bp-landing-card .bp-step span {
    background: rgba(0,0,0,0.07);
    color: #64748b;
}
.bp-landing-card .bp-step.active {
    color: #00008B;
}
.bp-landing-card .bp-step.done span {
    background: #10b981;
    color: #fff;
}

.bp-form-step { display: none; }
.bp-form-step.active { display: block; animation: bpFadeIn 0.3s ease; }


.bp-confirm-summary { margin-bottom: 26px; }
.bp-summary-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem; color: var(--bp-text);
}

/* ─────────────────────────── DataTables Override ─────────────────────────── */
.bp-card .dataTables_wrapper { color: var(--bp-text) !important; }
.bp-card .dataTables_wrapper .dataTables_filter input,
.bp-card .dataTables_wrapper .dataTables_length select {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
}
.bp-card .dataTables_info, .bp-card .dataTables_paginate { color: var(--bp-text-muted) !important; font-size: 0.82rem !important; }
.bp-card .paginate_button { color: var(--bp-text) !important; border-radius: 6px !important; }
.bp-card .paginate_button:hover { background: var(--bp-glass-md) !important; border-color: transparent !important; color: var(--bp-text-active) !important; }
.bp-card .paginate_button.current {
    background: var(--g-brand) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(59,91,219,0.4) !important;
}
.bp-card .buttons-excel { background: #166534 !important; color: #fff !important; border: none !important; border-radius: 6px !important; }
.bp-card .buttons-pdf   { background: #7f1d1d !important; color: #fff !important; border: none !important; border-radius: 6px !important; }
.bp-card .buttons-csv   { background: #1e3a5f !important; color: #fff !important; border: none !important; border-radius: 6px !important; }
.bp-card .buttons-print { background: rgba(255,255,255,0.08) !important; color: var(--bp-text) !important; border: 1px solid var(--bp-glass-border) !important; border-radius: 6px !important; }
.bp-card .dt-buttons { margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.bp-card .dt-button { padding: 6px 14px !important; font-size: 0.78rem !important; font-weight: 600 !important; cursor: pointer; transition: all 0.2s !important; }
.bp-card .dt-button:hover { filter: brightness(1.2) !important; transform: translateY(-1px); }

/* ─────────────────────────── Shares section ─────────────────────────── */
.bp-shares-list { margin-top: 22px; }

/* ─────────────────────────── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bp-surface); }
::-webkit-scrollbar-thumb { background: var(--bp-glass-md); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--bp-glass-border-hi); }

/* ─────────────────────────── Overlay ─────────────────────────── */
.bp-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 99; backdrop-filter: blur(4px); overflow-y: auto; }
.bp-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

/* ─────────────────────────── Modals ─────────────────────────── */
.bp-modal {
    background: var(--bp-modal-bg);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--bp-glass-border-hi);
    border-radius: var(--bp-radius);
    width: 600px;
    max-width: 90vw;
    margin: 60px auto;
    position: relative;
    box-shadow: var(--bp-shadow-lg);
    animation: bpModalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
}
@keyframes bpModalIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.bp-modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--bp-glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bp-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bp-text-active);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-modal-close {
    background: transparent;
    border: none;
    color: var(--bp-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--bp-transition);
}
.bp-modal-close:hover { color: var(--bp-danger); transform: scale(1.1); }
.bp-modal-body { padding: 26px; max-height: 72vh; overflow-y: auto; color: var(--bp-text); }

/* ─────────────────────────── Details Modal Table Fix ─────────────────────────── */
/* Force readable text in the JS-generated details modal regardless of Bootstrap */
#bp-details-modal .bp-modal-body {
    background: var(--bp-bg2) !important;
    color: var(--bp-text) !important;
}
#bp-details-modal .bp-modal {
    border: 1px solid var(--bp-glass-border-hi) !important;
    box-shadow: var(--bp-shadow-lg) !important;
}
#bp-details-modal .bp-modal-header {
    background: var(--g-surface);
    border-bottom: 2px solid var(--bp-glass-border-hi) !important;
}
#bp-details-modal .bp-modal-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bp-text-active) !important;
    background: var(--g-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Table: reset Bootstrap's default dark coloring */
#bp-details-modal table,
#bp-details-modal .table {
    color: var(--bp-text) !important;
    background: transparent !important;
    font-size: 0.875rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
#bp-details-modal table thead tr,
#bp-details-modal .table thead tr {
    background: rgba(59,91,219,0.1) !important;
}
#bp-details-modal table th,
#bp-details-modal .table th {
    color: var(--bp-text-active) !important;
    background: rgba(59,91,219,0.12) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid rgba(59,91,219,0.25) !important;
    border-top: none !important;
    white-space: nowrap;
}
#bp-details-modal table td,
#bp-details-modal .table td {
    color: var(--bp-text) !important;
    background: transparent !important;
    padding: 11px 16px !important;
    border-top: 1px solid var(--bp-glass-border) !important;
    border-bottom: none !important;
    vertical-align: middle !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}
#bp-details-modal table td strong,
#bp-details-modal .table td strong {
    color: var(--bp-text-active) !important;
    font-weight: 700 !important;
}
#bp-details-modal table td code,
#bp-details-modal .table td code {
    color: #06b6d4 !important;
    background: rgba(6,182,212,0.10) !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
#bp-details-modal table tbody tr:hover td,
#bp-details-modal .table tbody tr:hover td {
    background: rgba(59,91,219,0.08) !important;
    color: var(--bp-text-active) !important;
}
/* DataTables controls inside details modal */
#bp-details-modal .dataTables_filter label,
#bp-details-modal .dataTables_length label,
#bp-details-modal .dataTables_info {
    color: var(--bp-text-muted) !important;
    font-size: 0.82rem !important;
}
#bp-details-modal .dataTables_filter input,
#bp-details-modal .dataTables_length select {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-size: 0.82rem !important;
}
#bp-details-modal .dataTables_filter input:focus {
    border-color: var(--ms-indigo) !important;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.2) !important;
    outline: none !important;
}
:root[data-theme="light"] #bp-details-modal .bp-modal-body {
    background: #ffffff !important;
}
:root[data-theme="light"] #bp-details-modal table th,
:root[data-theme="light"] #bp-details-modal .table th {
    background: rgba(59,91,219,0.07) !important;
}

/* ─────────────────────────── Notifications ─────────────────────────── */
.bp-notifications {
    position: relative;
    display: inline-block;
    margin-right: 16px;
}
.bp-bell-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--bp-glass-border);
    color: var(--bp-text);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: var(--bp-transition);
}
.bp-bell-btn:hover {
    background: var(--bp-glass-md);
    color: var(--bp-text-active);
}
.bp-bell-btn .bp-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 12px;
    border: 2px solid var(--bp-bg);
}
.bp-notifications-dropdown {
    position: absolute;
    top: 50px; right: -10px;
    width: 320px;
    background: var(--bp-panel-bg);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid var(--bp-glass-border-hi);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    display: none;
    z-index: 100;
    overflow: hidden;
    animation: bpFadeIn 0.2s ease;
}
.bp-notifications-dropdown.active { display: block; }

.bp-nd-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bp-glass-border);
    font-weight: 700; color: var(--bp-text-active);
    font-size: 0.95rem;
}
.bp-nd-list {
    max-height: 380px;
    overflow-y: auto;
}
.bp-nd-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bp-glass-border);
    transition: background 0.2s;
    font-size: 0.82rem;
    line-height: 1.5;
}
.bp-nd-item:hover { background: var(--bp-surface-hover); }
.bp-nd-item.unread { background: rgba(59,91,219,0.08); border-left: 3px solid var(--ms-indigo); }
.bp-nd-item-time { font-size: 0.7rem; color: var(--bp-text-muted); margin-top: 6px; }
.bp-nd-empty { padding: 24px; text-align: center; color: var(--bp-text-muted); font-size: 0.85rem; }

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 1024px) { .bp-chart-row { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
    .bp-sidebar { transform: translateX(-100%); }
    .bp-sidebar.open { transform: translateX(0); }
    .bp-main { margin-left: 0; padding: 16px; }
    .bp-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .bp-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bp-live-grid { grid-template-columns: 1fr; }
    .bp-topbar { flex-wrap: wrap; gap: 10px; }
    .bp-topbar h1 { font-size: 1.3rem; }
    .bp-history-panel { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
    .bp-kpi-grid { grid-template-columns: 1fr; }
    .bp-share-buttons { flex-direction: column; }
    .bp-steps { flex-direction: column; align-items: center; }
}

/* ─── Fix: overlay never blocks clicks unless explicitly shown ─── */
.bp-overlay { pointer-events: none; }
.bp-overlay.active { pointer-events: all; }

/* ─────────────────────── Premium Page Loader ─────────────────────── */
#bp-page-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
    background: radial-gradient(ellipse at center, #0d1230 0%, #060a18 100%);
    opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
#bp-page-loader.visible { opacity: 1; pointer-events: all; }
#bp-page-loader.hiding  { opacity: 0; transform: scale(1.04); pointer-events: none; }
.bp-loader-inner {
    position: relative; width: 108px; height: 108px;
    display: flex; align-items: center; justify-content: center;
}
.bp-loader-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #6c63ff; border-right-color: rgba(108,99,255,0.25);
    animation: bpSpin 1.1s cubic-bezier(0.68,-0.55,0.27,1.55) infinite;
}
.bp-loader-ring2 {
    inset: 12px; border-top-color: transparent;
    border-bottom-color: #a78bfa; border-left-color: rgba(167,139,250,0.3);
    animation: bpSpin 1.5s linear infinite reverse;
}
@keyframes bpSpin { to { transform: rotate(360deg); } }
.bp-loader-logo {
    width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
    box-shadow: 0 0 28px rgba(108,99,255,0.55), 0 0 8px rgba(108,99,255,0.3);
    animation: bpLogoPulse 2s ease-in-out infinite;
}
@keyframes bpLogoPulse {
    0%,100% { box-shadow: 0 0 28px rgba(108,99,255,0.55), 0 0 8px rgba(108,99,255,0.3); }
    50%     { box-shadow: 0 0 48px rgba(108,99,255,0.85), 0 0 18px rgba(167,139,250,0.7); }
}
.bp-loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem; font-weight: 500; margin: 0;
    color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase;
    animation: bpTextPulse 1.8s ease-in-out infinite;
}
@keyframes bpTextPulse {
    0%,100% { opacity: 0.4; } 50% { opacity: 0.85; }
}

/* ─────────────────────────── DataTable Footer Controls ─────────────────────────── */
.bp-dt-footer { padding: 12px 4px 2px; border-top: 1px solid var(--bp-glass-border); }
.bp-dt-footer .dataTables_length label,
.bp-dt-footer .dataTables_filter label {
    color: var(--bp-text-muted); font-size: 0.82rem;
    display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap;
}
.bp-dt-footer .dataTables_length select,
.bp-dt-footer .dataTables_filter input {
    background: var(--bp-input-bg) !important;
    border: 1px solid var(--bp-input-border) !important;
    color: var(--bp-text-active) !important;
    border-radius: var(--bp-radius-xs) !important;
    padding: 5px 10px !important; font-size: 0.82rem !important;
}
.bp-dt-footer .dataTables_filter input:focus {
    border-color: var(--ms-indigo) !important;
    box-shadow: 0 0 0 2px rgba(59,91,219,0.2) !important; outline: none !important;
}
.bp-dt-footer .dataTables_info { font-size: 0.78rem; color: var(--bp-text-muted); padding: 0; }
.bp-dt-footer .dataTables_paginate { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bp-dt-footer .dataTables_paginate .paginate_button {
    padding: 4px 10px; border-radius: var(--bp-radius-xs); font-size: 0.78rem;
    color: var(--bp-text-muted) !important;
    background: var(--bp-glass) !important;
    border: 1px solid var(--bp-glass-border) !important;
    cursor: pointer; transition: var(--bp-transition);
}
.bp-dt-footer .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: rgba(59,91,219,0.15) !important;
    color: var(--bp-text-active) !important;
    border-color: rgba(59,91,219,0.3) !important;
}
.bp-dt-footer .dataTables_paginate .paginate_button.current {
    background: var(--g-brand) !important; color: #fff !important; border-color: transparent !important;
}
.bp-dt-footer .dataTables_paginate .paginate_button.disabled { opacity: 0.35; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   Service Info Hero — shown before signup/demo form on referral links
   ═══════════════════════════════════════════════════════════════ */
.bp-service-hero {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a2f6e 60%, #0e2550 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}
.bp-service-hero-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.bp-service-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(13,27,62,0.2) 0%, rgba(13,27,62,0.85) 100%);
}
.bp-service-hero-body {
    padding: 28px 32px 32px;
}
.bp-service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.35);
    color: #10b981;
    border-radius: 40px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.bp-service-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}
.bp-service-hero-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 20px;
}
.bp-service-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.bp-svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.bp-svc-pill i { color: #10b981; }
.bp-svc-pill:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}
.bp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(16,185,129,0.35);
    letter-spacing: 0.2px;
    width: 100%;
    justify-content: center;
}
.bp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16,185,129,0.45);
    background: linear-gradient(135deg, #0fca8e 0%, #048a5a 100%);
}
.bp-hero-cta:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   MSP DataTables — Universal Export/Search/Pagination Styles
   Applied to all business portal tables via mspDT() helper
   ═══════════════════════════════════════════════════════════ */

/* Top toolbar: buttons left, search right */
.msp-dt-top {
    gap: 8px;
    margin-bottom: 10px;
}
.msp-dt-bottom {
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--bp-text-muted);
}

/* Export / ColVis Buttons */
.msp-dt-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.18s ease !important;
    line-height: 1.4 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
}
.msp-dt-btn:hover, .msp-dt-btn:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28) !important;
    color: #fff !important;
}
.msp-dt-btn i { font-size: 11px; }

/* Excel — green */
.msp-dt-btn-excel { background: linear-gradient(135deg, #1a7a43 0%, #22a656 100%) !important; }
.msp-dt-btn-excel:hover { background: linear-gradient(135deg, #145e34 0%, #1d8f49 100%) !important; }

/* PDF — red */
.msp-dt-btn-pdf { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important; }
.msp-dt-btn-pdf:hover { background: linear-gradient(135deg, #991b1b 0%, #c02020 100%) !important; }

/* Print — slate */
.msp-dt-btn-print { background: linear-gradient(135deg, #475569 0%, #64748b 100%) !important; }
.msp-dt-btn-print:hover { background: linear-gradient(135deg, #334155 0%, #475569 100%) !important; }

/* ColVis — purple */
.msp-dt-btn-colvis { background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%) !important; }
.msp-dt-btn-colvis:hover { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%) !important; }

/* Guarantee the toolbar buttons (Excel/PDF/Print/Cols) never get stretched card height.
   DataTables may also add buttons-colvis / buttons-excel etc. alongside our msp-dt-btn class. */
.dt-buttons .msp-dt-btn,
button.msp-dt-btn,
a.msp-dt-btn {
    height: auto !important;
    min-height: unset !important;
    width: auto !important;
    min-width: unset !important;
    flex-direction: row !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
}
/* Also prevent the bp-card generic dt-button rule from stretching our custom buttons */
.bp-card .dt-button.msp-dt-btn {
    height: auto !important;
    min-height: unset !important;
    padding: 6px 12px !important;
}

/* ColVis dropdown — high specificity to beat CDN overrides */
div.dt-button-collection,
div.dt-button-collection.dropdown-menu {
    background: #1e2a45 !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) !important;
    padding: 6px !important;
    min-width: 160px !important;
    max-width: 220px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 9999 !important;
}

/* ── CRITICAL: strip msp-dt-btn styles from colvis child items ── */
body div.dt-button-collection button.dt-button,
body div.dt-button-collection a.dt-button,
body div.dt-button-collection div.dt-button,
body .dt-button-collection .dt-button {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #c8d6ef !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 7px 14px !important;
    margin: 1px 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
    display: block !important;
    transform: none !important;
    line-height: 1.5 !important;
}
body div.dt-button-collection button.dt-button:hover,
body div.dt-button-collection a.dt-button:hover,
body .dt-button-collection .dt-button:hover {
    background: rgba(99,102,241,0.15) !important;
    background-image: none !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}
body div.dt-button-collection button.dt-button.active,
body div.dt-button-collection a.dt-button.active,
body .dt-button-collection .dt-button.active {
    background: rgba(99,102,241,0.22) !important;
    background-image: none !important;
    color: #a5b4fc !important;
    font-weight: 600 !important;
}
/* Checkmark for active (visible) columns */
body div.dt-button-collection button.dt-button.active::before,
body .dt-button-collection .dt-button.active::before {
    content: '✓ ' !important;
    color: #818cf8 !important;
    font-weight: 700 !important;
}


/* DataTables search input */
div.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bp-text-muted, #94a3b8);
    font-size: 0.82rem;
    font-weight: 500;
}
div.dataTables_filter input {
    background: var(--bp-input-bg, rgba(255,255,255,0.06)) !important;
    border: 1px solid var(--bp-border, rgba(255,255,255,0.1)) !important;
    border-radius: 8px !important;
    color: var(--bp-text, #e2e8f0) !important;
    padding: 5px 10px !important;
    font-size: 0.82rem !important;
    outline: none !important;
    width: 200px !important;
    transition: border-color 0.2s !important;
}
div.dataTables_filter input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}

/* Pagination */
div.dataTables_paginate .paginate_button {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    color: var(--bp-text, #e2e8f0) !important;
    font-size: 0.78rem !important;
    padding: 4px 9px !important;
    margin: 0 2px !important;
    transition: all 0.15s !important;
}
div.dataTables_paginate .paginate_button:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
div.dataTables_paginate .paginate_button.current,
div.dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.4) !important;
}
div.dataTables_paginate .paginate_button.disabled,
div.dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Length menu (rows per page selector) */
div.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--bp-text-muted, #94a3b8);
}
div.dataTables_length select {
    background: var(--bp-input-bg, rgba(255,255,255,0.06)) !important;
    border: 1px solid var(--bp-border, rgba(255,255,255,0.1)) !important;
    border-radius: 6px !important;
    color: var(--bp-text, #e2e8f0) !important;
    padding: 3px 6px !important;
    font-size: 0.82rem !important;
}

/* Info text */
div.dataTables_info {
    font-size: 0.78rem;
    color: var(--bp-text-muted, #94a3b8);
    padding-top: 4px;
}

/* Processing spinner */
div.dataTables_processing {
    background: var(--bp-card-bg, #1e2535) !important;
    color: var(--bp-text, #e2e8f0) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
}

/* USSD Analytics Loading & Skeleton Shimmer Styles */
.bp-progress-bar-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
    display: none;
}
:root[data-theme="light"] .bp-progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
}

.bp-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #10b981 100%);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.bp-chart-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 40, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: var(--bp-radius);
    opacity: 0;
    visibility: hidden;
}
:root[data-theme="light"] .bp-chart-loading-overlay {
    background: rgba(244, 246, 252, 0.82);
}

.bp-chart-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Skeleton Shimmering Loader */
.bp-skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 6px;
    display: inline-block;
    min-width: 60px;
    height: 2rem;
}
:root[data-theme="light"] .bp-skeleton-shimmer {
    background: rgba(0, 0, 0, 0.04) !important;
}

.bp-skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: bpShimmerAnimation 1.6s infinite;
}
:root[data-theme="light"] .bp-skeleton-shimmer::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.02) 20%,
        rgba(0, 0, 0, 0.05) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

@keyframes bpShimmerAnimation {
    100% {
        transform: translateX(100%);
    }
}


/* ─────────────────────────── Chat Bubbles (Customer Support Hub) ─────────────────────────── */
.cp-chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bp-bg) !important;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--bp-glass-border);
}
.cp-chat-msg {
    margin-bottom: 1rem;
    max-width: 85%;
    clear: both;
}
.cp-chat-msg.customer {
    float: right;
}
.cp-chat-msg.staff {
    float: left;
}
.cp-msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.cp-chat-msg.customer .cp-msg-bubble {
    background: var(--ms-indigo, #3b5bdb);
    color: #fff;
    border-bottom-right-radius: 2px;
}
.cp-chat-msg.staff .cp-msg-bubble {
    background: var(--bp-surface, rgba(255,255,255,0.08));
    color: var(--bp-text);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--bp-glass-border);
}
.cp-chat-meta {
    font-size: 0.7rem;
    color: var(--bp-text-muted);
    margin-top: 0.25rem;
    text-align: right;
}
.cp-chat-msg.staff .cp-chat-meta { text-align: left; }
