:root {
  --vx-ink: #0f172a;
  --vx-muted: #64748b;
  --vx-brand: #5b3df5;
  --vx-brand-dark: #4328d9;
  --vx-surface: #f7f7fb;
  --vx-border: #e5e7eb;
  --bs-primary: var(--vx-brand);
  --bs-primary-rgb: 91, 61, 245;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--vx-ink);
}
body { background: var(--vx-surface); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.btn-primary { --bs-btn-bg: var(--vx-brand); --bs-btn-border-color: var(--vx-brand); --bs-btn-hover-bg: var(--vx-brand-dark); --bs-btn-hover-border-color: var(--vx-brand-dark); --bs-btn-active-bg: var(--vx-brand-dark); }
.vx-nav { background: #fff; border-bottom: 1px solid var(--vx-border); }
.vx-brand { font-weight: 700; color: var(--vx-brand) !important; letter-spacing: -0.02em; }
.vx-nav .nav-link.active { color: var(--vx-brand); font-weight: 600; }
.vx-footer { color: var(--vx-muted); padding: 2rem 0; }
.vx-card { background: #fff; border: 1px solid var(--vx-border); border-radius: 14px; padding: 1.5rem; }
.vx-stat { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.vx-muted { color: var(--vx-muted); }
.vx-number { font-variant-numeric: tabular-nums; font-weight: 600; }
.vx-hero { padding: 5rem 0 3rem; }
.vx-hero h1 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2rem, 5vw, 3.25rem); }
.vx-price { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
.vx-feature i { font-size: 1.5rem; color: var(--vx-brand); }
.vx-section-title { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.badge-outcome-ANSWERED { background: #dcfce7; color: #166534; }
.badge-outcome-VOICEMAIL { background: #e0e7ff; color: #3730a3; }
.badge-outcome-MISSED, .badge-outcome-REJECTED { background: #fee2e2; color: #991b1b; }
.badge-outcome-CLOSED { background: #f1f5f9; color: #475569; }
.badge-outcome-IN_PROGRESS { background: #fef9c3; color: #854d0e; }
textarea.font-monospace { font-size: .875rem; }
.vx-staff-bar { background: #1e1b4b; color: #e0e7ff; padding: .4rem 0; }
.vx-table th { font-weight: 500; white-space: nowrap; }
.vx-table td, .vx-table th { padding-top: .55rem; padding-bottom: .55rem; }
.vx-kpi { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.vx-kpi-label { font-size: .8rem; color: var(--vx-muted); }
.vx-bar { height: 6px; border-radius: 3px; background: var(--vx-brand); opacity: .75; }
.text-margin-neg { color: #b91c1c; }

/* ── App shell: left sidebar ─────────────────────────── */
:root { --vx-sidebar-w: 256px; }
.vx-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--vx-ink); text-decoration: none; }
.vx-brand:hover { color: var(--vx-ink); }
.vx-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 1rem; background: linear-gradient(135deg, #6d4aff, #ff6bb5); }
.min-w-0 { min-width: 0; }

.vx-shell { min-height: 100vh; }
.vx-main { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.vx-main > main { flex: 1; }
.vx-main .container { max-width: 1240px; }

.vx-sidebar { background: #fff; border-right: 1px solid var(--vx-border); }
.vx-sidebar-inner { display: flex; flex-direction: column; height: 100%; }
@media (min-width: 992px) {
  .vx-shell { display: grid; grid-template-columns: var(--vx-sidebar-w) 1fr; }
  .vx-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .vx-sidebar { --bs-offcanvas-width: 280px; }
}

.vx-ws-switch { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .6rem; border: 1px solid var(--vx-border); border-radius: 12px; background: var(--vx-surface); text-align: left; }
.vx-ws-switch:hover { border-color: #d4d4e0; }
.vx-ws-switch::after { margin-left: auto; }
.vx-ws-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--vx-ink); color: #fff; font-weight: 700; font-size: .85rem; }
.vx-ws-name { display: block; font-weight: 600; font-size: .9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-ws-role { display: block; font-size: .72rem; color: var(--vx-muted); }

.vx-side-nav { padding: .5rem .75rem 1rem; overflow-y: auto; }
.vx-side-label { padding: .75rem .6rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a9ab0; }
.vx-side-link { display: flex; align-items: center; gap: .7rem; padding: .48rem .6rem; border-radius: 9px; color: #3f3f55; font-weight: 500; font-size: .92rem; text-decoration: none; }
.vx-side-link i { font-size: 1.05rem; color: #8a8aa3; width: 1.1rem; text-align: center; }
.vx-side-link:hover { background: var(--vx-surface); color: var(--vx-ink); }
.vx-side-link.active { background: #efeaff; color: var(--vx-brand); font-weight: 600; }
.vx-side-link.active i { color: var(--vx-brand); }

.vx-side-user { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-top: 1px solid var(--vx-border); }
.vx-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ece9fb; color: var(--vx-brand); font-weight: 700; font-size: .8rem; }

.vx-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .6rem 16px; background: #fff; border-bottom: 1px solid var(--vx-border); }
.vx-menu-btn { font-size: 1.4rem; line-height: 1; padding: .15rem .45rem; border: 1px solid var(--vx-border); border-radius: 8px; }
@media (max-width: 575.98px) { .vx-main .container { padding-left: 16px; padding-right: 16px; } }
.nav-tabs .nav-link { color: var(--vx-muted); font-weight: 500; }
.nav-tabs .nav-link:hover { color: var(--vx-ink); }
.nav-tabs .nav-link.active { color: var(--vx-brand); font-weight: 600; }

/* ── Brand form controls ─────────────────────────────── */
.form-check-input:checked { background-color: var(--vx-brand); border-color: var(--vx-brand); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: #b7a8fb; box-shadow: 0 0 0 .2rem rgba(91, 61, 245, .15); }

/* ── Number settings page ────────────────────────────── */
.vx-flow-summary { background: linear-gradient(180deg, #fbfaff, #fff); border-color: #e2dcfd; }
.vx-flow-steps { list-style: none; counter-reset: flow; padding: 0; margin: 0; }
.vx-flow-steps li { position: relative; display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0 .35rem 0; }
.vx-flow-steps li i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #efeaff; color: var(--vx-brand); font-size: .9rem; }
.vx-flow-steps li span { padding-top: .2rem; font-size: .93rem; }
.vx-flow-steps li + li::before { content: ""; position: absolute; left: 13px; top: -6px; height: 10px; border-left: 2px solid #e2dcfd; }

.vx-step-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.vx-step-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vx-ink); color: #fff; font-weight: 700; font-size: .85rem; }
.vx-step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .15rem; letter-spacing: -.01em; }
.vx-step-head p { margin: 0; font-size: .88rem; color: var(--vx-muted); }

.vx-seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .2rem; border-radius: 10px; background: var(--vx-surface); border: 1px solid var(--vx-border); }
.vx-seg .btn { border: 0; border-radius: 8px; color: var(--vx-muted); font-weight: 500; }
.vx-seg .btn-check:checked + .btn { background: #fff; color: var(--vx-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.vx-group { padding: 1rem; border: 1px solid var(--vx-border); border-radius: 12px; background: #fcfcfe; }
.vx-person { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) auto; gap: .5rem; align-items: start; }
@media (max-width: 575.98px) {
  .vx-person { grid-template-columns: 1fr auto; padding-bottom: .5rem; border-bottom: 1px dashed var(--vx-border); }
  .vx-person > input { grid-column: 1 / -1; }
}

.vx-choice { display: block; height: 100%; padding: .7rem .85rem; border: 1px solid var(--vx-border); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vx-choice:hover { border-color: #c9bffc; }
.btn-check:checked + .vx-choice { border-color: var(--vx-brand); box-shadow: 0 0 0 2px rgba(91, 61, 245, .15); }
.btn-check:focus-visible + .vx-choice { outline: 2px solid var(--vx-brand); outline-offset: 2px; }
.vx-choice-title { display: block; font-weight: 600; font-size: .9rem; }
.btn-check:checked + .vx-choice .vx-choice-title { color: var(--vx-brand); }
.vx-choice-text { display: block; font-size: .8rem; color: var(--vx-muted); margin-top: .15rem; }

.vx-hours { border: 1px solid var(--vx-border); border-radius: 12px; overflow: hidden; }
.vx-hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .55rem .85rem; min-height: 50px; }
.vx-hours-row + .vx-hours-row { border-top: 1px solid var(--vx-border); }
.vx-hours-day { width: 130px; font-weight: 500; }
.vx-hours-times { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.vx-hours-times input[type="time"] { width: 110px; }
.vx-hours-break { display: inline-flex; align-items: center; gap: .4rem; }

.vx-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .4rem .2rem .2rem; border: 1px solid var(--vx-border); border-radius: 10px; background: #fff; }
.vx-chip input { width: 150px; border: 0; }

.vx-menu-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.vx-menu-row select:first-of-type { width: 72px; }
.vx-menu-row select:last-of-type { width: auto; min-width: 180px; }

.vx-savebar { position: sticky; bottom: 0; z-index: 1010; margin: 1rem -12px 0; padding: .7rem 0; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--vx-border); box-shadow: 0 -6px 18px -12px rgba(15, 23, 42, .3); backdrop-filter: blur(6px); }
.form-control::placeholder { color: #a3a6b8; opacity: 1; }
