html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f7fb;
    color: #1f2937;
}

.sidebar {
    width: 260px;
    height: 100vh;
    top: 0;
    bottom: auto;
    background: #111827;
    color: white;
    padding: 18px 22px 220px 22px;
    position: fixed;
    left: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.sidebar h2 {
    color: white;
}

.sidebar a {
    display: block;
    color: #dbeafe;
    text-decoration: none;
    padding: 7px 0;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    word-break: normal;
}

.sidebar a:hover {
    color: white;
}

.main {
    margin-left: 305px;
}

.header {
    background: white;
    padding: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.container {
    padding: 25px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card h2 {
    margin-top: 0;
}

.card a {
    display: block;
    margin: 8px 0;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #e5e7eb; padding: 8px; text-align: left; vertical-align: top; }
button { background: #2563eb; color: white; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: bold; cursor: pointer; }
button:hover { background: #1d4ed8; }

/* TEST 117 Executive Dashboard Upgrade */
.dashboard-hero {
    background: linear-gradient(135deg, #ffffff, #eef4ff);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.dashboard-hero h2 {
    margin: 4px 0 8px 0;
    font-size: 30px;
    color: #0f172a;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    margin: 0;
}
.muted {
    color: #64748b;
    margin: 0;
}
.hero-actions a,
.alert-panel a {
    display: block;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 10px;
    padding: 11px 14px;
    margin: 8px 0;
    text-align: center;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.kpi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.kpi-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.kpi-card strong {
    display: block;
    color: #0f172a;
    font-size: 28px;
    margin: 10px 0 6px 0;
}
.kpi-card small {
    color: #64748b;
}
.dashboard-two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}
.executive-panel,
.alert-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.briefing-list {
    padding-left: 20px;
    line-height: 1.7;
}
.dashboard-three-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
@media (max-width: 900px) {
    .dashboard-hero,
    .dashboard-two-column {
        display: block;
    }
    .hero-actions {
        margin-top: 16px;
    }
}

/* TEST 119 User Management + Client Isolation */
.stacked-form label { display:block; font-weight:700; margin:12px 0 6px; }
.stacked-form input, .stacked-form select { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid #d8dbe7; border-radius:10px; }
.stacked-form button, .small-btn { padding:9px 12px; border:0; border-radius:9px; background:#0f172a; color:white; font-weight:800; cursor:pointer; }
.stacked-form button { margin-top:16px; width:100%; padding:13px; }
.success-box { background:#ecfdf3; border:1px solid #abefc6; color:#067647; border-radius:12px; padding:12px 14px; margin-bottom:18px; font-weight:700; }
.data-table { width:100%; border-collapse:collapse; font-size:14px; }
.data-table th, .data-table td { text-align:left; border-bottom:1px solid #e8eaf3; padding:10px; vertical-align:top; }
.data-table th { color:#344054; background:#f8fafc; }
.data-table small { color:#667085; }


/* TEST 122 Velorium Plans + Branding */
.plan-pill { display:inline-block; background:#0f172a; color:#fff; border-radius:999px; padding:10px 13px; font-weight:800; margin:4px; }
.plan-pill.soft { background:#f4efe7; color:#7a4d19; border:1px solid #e9dcc8; }
.velorium-footer { margin:28px 0 6px; padding-top:18px; border-top:1px solid #ece7df; color:#9a7b59; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; text-align:right; }


/* TEST 124.1 Premium Med Spa UI Refresh - Velorium luxury SaaS styling */
:root {
    --velorium-ink: #1c2430;
    --velorium-navy: #101828;
    --velorium-sidebar: #111827;
    --velorium-muted: #6b7280;
    --velorium-line: #e7dfd3;
    --velorium-cream: #fbf8f4;
    --velorium-champagne: #c9a46a;
    --velorium-gold-soft: #f3eadb;
    --velorium-blush: #f7eeeb;
    --velorium-card: rgba(255,255,255,0.94);
    --velorium-shadow: 0 18px 45px rgba(31, 36, 48, 0.08);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(243, 234, 219, 0.95), transparent 34%),
        linear-gradient(135deg, #fbf8f4 0%, #f7f4ef 45%, #f4f7fb 100%);
    color: var(--velorium-ink);
}

.sidebar {
    background: linear-gradient(180deg, #111827 0%, #182033 58%, #0f172a 100%);
    border-right: 1px solid rgba(201,164,106,0.18);
    box-shadow: 10px 0 35px rgba(15,23,42,0.12);
}

.sidebar h2 {
    letter-spacing: -0.03em;
    font-size: 26px;
    margin-bottom: 24px;
}

.sidebar h2::after {
    content: "Powered by Velorium™";
    display: block;
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d6b77f;
    font-weight: 800;
}

.sidebar a {
    border-radius: 10px;
    padding: 8px 10px;
    margin: 2px 0;
    color: #e8edf7;
    transition: all .18s ease;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar .logout-link,
.logout-link {
    color: #f7d8d0 !important;
}

.main {
    min-height: 100vh;
}

.header {
    background: rgba(255,255,255,0.76);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231,223,211,0.8);
    padding: 24px 30px;
}

.header h1 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.04em;
    font-size: 32px;
}

.container {
    padding: 28px 34px 38px;
}

.card,
.kpi-card,
.executive-panel,
.alert-panel {
    background: var(--velorium-card);
    border: 1px solid rgba(231,223,211,0.95);
    box-shadow: var(--velorium-shadow);
}

.card,
.executive-panel,
.alert-panel {
    border-radius: 22px;
}

.card h2,
.executive-panel h2,
.alert-panel h2 {
    color: #111827;
    letter-spacing: -0.035em;
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(251,248,244,0.94)),
        radial-gradient(circle at top right, rgba(201,164,106,0.22), transparent 34%);
    border: 1px solid rgba(231,223,211,0.95);
    border-radius: 26px;
    padding: 30px;
    box-shadow: var(--velorium-shadow);
}

.dashboard-hero h2 {
    font-size: 36px;
    letter-spacing: -0.055em;
    color: #101828;
}

.eyebrow {
    color: #9a6a2f;
    letter-spacing: .14em;
}

.muted {
    color: #667085;
}

.hero-actions a,
.alert-panel a,
.card a {
    border-radius: 14px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #111827, #263044);
    color: #fff;
    box-shadow: 0 10px 22px rgba(17,24,39,0.13);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-actions a:hover,
.alert-panel a:hover,
.card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17,24,39,0.18);
}

.plan-pill {
    background: linear-gradient(135deg, #111827, #283347);
    border: 1px solid rgba(201,164,106,0.36);
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.plan-pill.soft {
    background: #fbf5ea;
    color: #7c5725;
    border: 1px solid #ead7b8;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 18px;
}

.kpi-card {
    border-radius: 22px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d9b36f, #f1dfbd, transparent);
}

.kpi-card span {
    color: #8a6a42;
    letter-spacing: .08em;
}

.kpi-card strong {
    font-size: 30px;
    letter-spacing: -0.045em;
}

.kpi-card small {
    line-height: 1.45;
}

.dashboard-two-column,
.dashboard-three-column {
    gap: 22px;
}

.briefing-list {
    line-height: 1.78;
}

.briefing-list li {
    margin-bottom: 7px;
}

.alert-panel {
    background: linear-gradient(180deg, #ffffff, #fbf8f4);
}

.table,
.data-table {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(31,36,48,0.06);
}

.table th,
.data-table th {
    background: #fbf6ee;
    color: #6f4f24;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .06em;
}

button,
.small-btn,
.stacked-form button {
    background: linear-gradient(135deg, #111827, #273247);
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(17,24,39,0.16);
}

button:hover,
.small-btn:hover,
.stacked-form button:hover {
    background: linear-gradient(135deg, #1d2939, #111827);
}

.stacked-form input,
.stacked-form select,
textarea {
    border: 1px solid #dfd4c3 !important;
    border-radius: 12px !important;
    background: #fffdf9;
}

.success-box {
    background: #f1fbf5;
    border-color: #b9dec7;
    color: #24613d;
}

.velorium-footer {
    text-align: center;
    color: #9b7447;
    border-top: 1px solid rgba(231,223,211,0.95);
    font-size: 11px;
    padding-top: 20px;
    margin-top: 34px;
}

@media (max-width: 900px) {
    .main { margin-left: 0; }
    .sidebar { position: relative; width: auto; height: auto; padding-bottom: 20px; }
    .container { padding: 20px; }
}

/* TEST 127.1 Real Data Audit source badges */
.source-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,.08);
}
.source-badge.live { background: #edf9f0; color: #1f6b3a; }
.source-badge.estimated { background: #fff8e8; color: #8a5d13; }
.source-badge.manual { background: #eef4ff; color: #264c8a; }
.source-badge.placeholder { background: #fff0f0; color: #923a3a; }
.source-disclosure-card {
    border-left: 4px solid #d9b36f;
}
.compact-hero {
    padding-top: 26px;
    padding-bottom: 26px;
}

/* TEST 131.1 Connector Intelligence Command Center */
.connector-category-card { margin-bottom: 22px; }
.connector-list { display: grid; gap: 14px; }
.connector-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(151, 118, 76, 0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
}
.connector-row h3 { margin: 0 0 6px 0; font-size: 18px; }
.connector-row p { margin: 0 0 6px 0; color: #5f6b82; }
.connector-row small { color: #8a6b3f; font-weight: 700; }
.connector-status-stack { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 260px; }
.mini-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
}
@media (max-width: 900px) {
    .connector-row { grid-template-columns: 1fr; }
    .connector-status-stack { justify-content: flex-start; min-width: 0; }
}

/* TEST 132 Security Center */
.two-column-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:22px; margin:22px 0; }
.action-list { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.action-list a { display:inline-block; padding:12px 16px; border-radius:14px; background:#111827; color:#fff; text-decoration:none; font-weight:800; box-shadow:0 10px 25px rgba(17,24,39,.14); }
@media (max-width: 900px) { .two-column-grid { grid-template-columns:1fr; } }


/* TEST 138 CRM & Booking Activation Center */
.page-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a7a50;margin-bottom:10px;font-weight:700}
.hero-card{border-left:5px solid #d9b982}
.metric{font-size:28px;font-weight:800;color:#2f2a27;margin:8px 0}
.connector-badge,.source-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.connector-badge.framework{background:#efe2cf;color:#6d4d26}
.connector-badge.connected{background:#dff0e1;color:#285d31}
.connector-badge.needs-auth{background:#fff1d6;color:#8a5b00}
.connector-badge.disconnected{background:#f4dada;color:#8a2424}
.source-badge.placeholder{background:#f3eeee;color:#8a5d58}
.source-badge.estimated{background:#fff1d6;color:#8a5b00}
.source-badge.live{background:#dff0e1;color:#285d31}
.source-badge.manual{background:#e8e4f5;color:#514285}


/* TEST 140.2 Revenue Attribution Activation Center */
.page-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a7a50;margin-bottom:10px;font-weight:700}
.hero-card{border-left:5px solid #d9b982}
.metric{font-size:28px;font-weight:800;color:#2f2a27;margin:8px 0}
.connector-badge,.source-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.connector-badge.framework{background:#efe2cf;color:#6d4d26}
.connector-badge.connected{background:#dff0e1;color:#285d31}
.connector-badge.needs-auth{background:#fff1d6;color:#8a5b00}
.connector-badge.disconnected{background:#f4dada;color:#8a2424}
.source-badge.placeholder{background:#f3eeee;color:#8a5d58}
.source-badge.estimated{background:#fff1d6;color:#8a5b00}
.source-badge.live{background:#dff0e1;color:#285d31}
.source-badge.manual{background:#e8e4f5;color:#514285}


/* TEST 141 AI Office Manager Activation Center */
.page-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a7a50;margin-bottom:10px;font-weight:700}
.hero-card{border-left:5px solid #d9b982}
.metric{font-size:28px;font-weight:800;color:#2f2a27;margin:8px 0}
.connector-badge,.source-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.connector-badge.framework{background:#efe2cf;color:#6d4d26}
.connector-badge.connected{background:#dff0e1;color:#285d31}
.connector-badge.needs-auth{background:#fff1d6;color:#8a5b00}
.connector-badge.disconnected{background:#f4dada;color:#8a2424}
.source-badge.placeholder{background:#f3eeee;color:#8a5d58}
.source-badge.estimated{background:#fff1d6;color:#8a5b00}
.source-badge.live{background:#dff0e1;color:#285d31}
.source-badge.manual{background:#e8e4f5;color:#514285}


/* TEST 142.4 Review Intelligence Activation Center */
.page-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a7a50;margin-bottom:10px;font-weight:700}
.hero-card{border-left:5px solid #d9b982}
.metric{font-size:28px;font-weight:800;color:#2f2a27;margin:8px 0}
.connector-badge,.source-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.connector-badge.framework{background:#efe2cf;color:#6d4d26}
.connector-badge.connected{background:#dff0e1;color:#285d31}
.connector-badge.needs-auth{background:#fff1d6;color:#8a5b00}
.connector-badge.disconnected{background:#f4dada;color:#8a2424}
.source-badge.placeholder{background:#f3eeee;color:#8a5d58}
.source-badge.estimated{background:#fff1d6;color:#8a5b00}
.source-badge.live{background:#dff0e1;color:#285d31}
.source-badge.manual{background:#e8e4f5;color:#514285}


/* TEST 143 Receptionist Intelligence Activation Center */
.page-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a7a50;margin-bottom:10px;font-weight:700}
.hero-card{border-left:5px solid #d9b982}
.metric{font-size:28px;font-weight:800;color:#2f2a27;margin:8px 0}
.connector-badge,.source-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.connector-badge.framework{background:#efe2cf;color:#6d4d26}
.connector-badge.connected{background:#dff0e1;color:#285d31}
.connector-badge.needs-auth{background:#fff1d6;color:#8a5b00}
.connector-badge.disconnected{background:#f4dada;color:#8a2424}
.source-badge.placeholder{background:#f3eeee;color:#8a5d58}
.source-badge.estimated{background:#fff1d6;color:#8a5b00}
.source-badge.live{background:#dff0e1;color:#285d31}
.source-badge.manual{background:#e8e4f5;color:#514285}

/* TEST 144.1 Voice Profiles & Call Simulation Activation Center */

/* TEST 145.1 Booking Intelligence Activation Center */
