:root {
    --vb-bg: #fafafa;
    --vb-bg-elevated: #ffffff;
    --vb-bg-subtle: #f4f4f5;
    --vb-bg-muted: #ececee;
    --vb-border: #e4e4e7;
    --vb-border-strong: #d4d4d8;
    --vb-text: #18181b;
    --vb-text-secondary: #52525b;
    --vb-text-muted: #a1a1aa;
    --vb-primary: #6366f1;
    --vb-primary-hover: #4f46e5;
    --vb-primary-subtle: rgba(99, 102, 241, 0.08);
    --vb-sidebar-width: 260px;
    --vb-sidebar-collapsed: 72px;
    --vb-topbar-height: 64px;
    --vb-radius: 12px;
    --vb-radius-sm: 8px;
    --vb-radius-lg: 16px;
    --vb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --vb-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --vb-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.06);
    --vb-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --vb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --vb-accent-emerald: #10b981;
    --vb-accent-violet: #8b5cf6;
    --vb-accent-amber: #f59e0b;
    --vb-accent-rose: #f43f5e;
    --vb-accent-sky: #0ea5e9;
    --vb-accent-orange: #f97316;
}

[data-theme="dark"] {
    --vb-bg: #09090b;
    --vb-bg-elevated: #18181b;
    --vb-bg-subtle: #27272a;
    --vb-bg-muted: #3f3f46;
    --vb-border: #27272a;
    --vb-border-strong: #3f3f46;
    --vb-text: #fafafa;
    --vb-text-secondary: #a1a1aa;
    --vb-text-muted: #71717a;
    --vb-primary-subtle: rgba(99, 102, 241, 0.15);
    --vb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --vb-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --vb-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--vb-font);
    background: var(--vb-bg);
    color: var(--vb-text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── Auth ─── */
.vb-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.vb-auth-brand {
    background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #312e81 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.vb-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
}

.vb-auth-brand-content { position: relative; z-index: 1; }

.vb-auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.vb-auth-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.vb-auth-logo-icon svg {
    width: 22px;
    height: 22px;
}

.vb-auth-headline {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-top: 3.5rem;
    max-width: 440px;
}

.vb-auth-headline-line {
    display: block;
}

.vb-auth-headline-accent {
    margin-top: 0.35rem;
    font-weight: 600;
    color: #c7d2fe;
}

.vb-auth-subheadline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.0625rem;
    margin-top: 1.25rem;
    max-width: 400px;
    line-height: 1.65;
}

.vb-auth-footer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    margin: 0;
}

.vb-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(165deg, #fafafa 0%, #f4f4f5 45%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.vb-auth-form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.vb-auth-form-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem;
    background: var(--vb-bg-elevated);
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius-lg);
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.vb-auth-form-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--vb-primary-subtle);
    color: var(--vb-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vb-auth-form-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.vb-auth-form-badge--lab {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.vb-auth-form-brand {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.vb-auth-form-app {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vb-text);
}

.vb-auth-form-by {
    color: var(--vb-text-muted);
    font-size: 0.8125rem;
}

.vb-auth-form-lab {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #7c3aed;
}

.vb-auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.vb-auth-form-title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.375rem;
    line-height: 1.2;
}

.vb-auth-form-subtitle {
    color: var(--vb-text-secondary);
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.vb-auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--vb-radius-sm);
    font-size: 0.875rem;
    color: #b91c1c;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.vb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.vb-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vb-auth-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vb-text-secondary);
    letter-spacing: 0.01em;
}

.vb-auth-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--vb-text-muted);
}

.vb-auth-form .vb-input {
    padding: 0.8125rem 1rem;
    border-radius: 10px;
    background: var(--vb-bg-subtle);
    border: 1px solid transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.vb-auth-form .vb-input:focus {
    background: var(--vb-bg-elevated);
    border-color: var(--vb-primary);
    box-shadow: 0 0 0 3px var(--vb-primary-subtle);
}

.vb-input-secret {
    -webkit-text-security: disc;
    text-security: disc;
    font-family: inherit;
}

.vb-btn-auth {
    margin-top: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: transform var(--vb-transition), box-shadow var(--vb-transition);
}

.vb-btn-auth:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.vb-auth-demo-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--vb-radius-sm);
    background: var(--vb-bg-subtle);
    border: 1px dashed var(--vb-border-strong);
}

.vb-auth-demo-label {
    width: 100%;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vb-text-muted);
    margin-bottom: 0.125rem;
}

.vb-auth-demo-creds {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--vb-text-secondary);
    font-variant-numeric: tabular-nums;
}

.vb-auth-demo-sep {
    color: var(--vb-text-muted);
    font-size: 0.8125rem;
}

.vb-auth-client-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    padding: 0.8125rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--vb-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vb-text-secondary);
    text-decoration: none;
    transition: all var(--vb-transition);
}

.vb-auth-client-link:hover {
    color: var(--vb-primary);
    border-color: rgba(99, 102, 241, 0.35);
    background: var(--vb-primary-subtle);
}

.vb-input {
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: var(--vb-bg-elevated);
    color: var(--vb-text);
    transition: border-color var(--vb-transition), box-shadow var(--vb-transition);
    width: 100%;
}

.vb-input:focus {
    outline: none;
    border-color: var(--vb-primary);
    box-shadow: 0 0 0 3px var(--vb-primary-subtle);
}

.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--vb-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--vb-transition);
    white-space: nowrap;
}

.vb-btn-primary {
    background: var(--vb-primary);
    color: #fff;
}

.vb-btn-primary:hover {
    background: var(--vb-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--vb-shadow);
}

.vb-btn-ghost {
    background: transparent;
    color: var(--vb-text-secondary);
    border: 1px solid var(--vb-border);
}

.vb-btn-ghost:hover {
    background: var(--vb-bg-subtle);
    color: var(--vb-text);
}

.vb-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

/* ─── App Shell ─── */
.vb-app {
    display: flex;
    min-height: 100vh;
}

.vb-sidebar {
    width: var(--vb-sidebar-width);
    background: var(--vb-bg-elevated);
    border-right: 1px solid var(--vb-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width var(--vb-transition), transform var(--vb-transition);
}

.vb-sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--vb-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vb-sidebar-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.vb-sidebar-logo-icon svg {
    width: 18px;
    height: 18px;
}

.vb-sidebar-logo-text {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

.vb-sidebar-logo-text small {
    display: block;
    font-size: 0.6875rem;
    color: var(--vb-text-muted);
    font-weight: 400;
}

.vb-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.625rem;
}

.vb-nav-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vb-text-muted);
    padding: 0.75rem 0.625rem 0.375rem;
}

.vb-nav-section--lab {
    margin: 0 0.375rem 0.5rem;
    padding: 0.375rem 0.25rem 0.5rem;
    border-radius: var(--vb-radius-sm);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(124, 58, 237, 0.14);
}

.vb-nav-section-label--lab {
    color: #7c3aed;
    padding-top: 0.5rem;
}

.vb-nav-item--lab.active,
.vb-nav-item--lab:hover {
    color: #6d28d9;
}

.vb-nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--vb-radius-sm);
    color: var(--vb-text-secondary);
    font-size: 0.875rem;
    font-weight: 450;
    transition: all var(--vb-transition);
    margin-bottom: 1px;
}

.vb-nav-item:hover {
    background: var(--vb-bg-subtle);
    color: var(--vb-text);
}

.vb-nav-item.active {
    background: var(--vb-primary-subtle);
    color: var(--vb-primary);
    font-weight: 500;
}

.vb-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.vb-nav-item.active svg { opacity: 1; }

.vb-nav-badge {
    margin-left: auto;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    background: var(--vb-bg-muted);
    color: var(--vb-text-muted);
    border-radius: 4px;
    font-weight: 500;
}

.vb-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--vb-border);
}

.vb-tenant-switcher {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--vb-radius-sm);
    cursor: pointer;
    transition: background var(--vb-transition);
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: var(--vb-text);
}

.vb-tenant-switcher:hover { background: var(--vb-bg-subtle); }

.vb-tenant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--vb-primary-subtle);
    color: var(--vb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.vb-tenant-info { flex: 1; min-width: 0; }
.vb-tenant-name {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vb-tenant-plan {
    font-size: 0.6875rem;
    color: var(--vb-text-muted);
}

/* ─── Main ─── */
.vb-main {
    flex: 1;
    margin-left: var(--vb-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--vb-transition);
}

.vb-topbar {
    height: var(--vb-topbar-height);
    background: var(--vb-bg-elevated);
    border-bottom: 1px solid var(--vb-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .vb-topbar {
    background: rgba(24, 24, 27, 0.85);
}

.vb-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.vb-search-input {
    width: 100%;
    padding: 0.5rem 0.875rem 0.5rem 2.25rem;
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius-sm);
    background: var(--vb-bg-subtle);
    font-size: 0.875rem;
    color: var(--vb-text);
    transition: all var(--vb-transition);
}

.vb-search-input:focus {
    outline: none;
    border-color: var(--vb-primary);
    background: var(--vb-bg-elevated);
    box-shadow: 0 0 0 3px var(--vb-primary-subtle);
}

.vb-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vb-text-muted);
    pointer-events: none;
}

.vb-search-kbd {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    background: var(--vb-bg-elevated);
    border: 1px solid var(--vb-border);
    border-radius: 4px;
    color: var(--vb-text-muted);
    font-family: inherit;
}

.vb-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.vb-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--vb-radius-sm);
    color: var(--vb-text-secondary);
    cursor: pointer;
    transition: all var(--vb-transition);
}

.vb-icon-btn:hover {
    background: var(--vb-bg-subtle);
    color: var(--vb-text);
}

.vb-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: var(--vb-radius-sm);
    cursor: pointer;
    transition: background var(--vb-transition);
    border: none;
    background: transparent;
    color: var(--vb-text);
}

.vb-user-menu:hover { background: var(--vb-bg-subtle); }

.vb-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ─── Content ─── */
.vb-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1440px;
    width: 100%;
}

.vb-page-header {
    margin-bottom: 1.5rem;
}

.vb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vb-text-secondary);
    text-decoration: none;
}

.vb-back-link:hover {
    color: var(--vb-primary);
}

.vb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--vb-text-muted);
    margin-bottom: 0.5rem;
}

.vb-breadcrumb a:hover { color: var(--vb-text-secondary); }
.vb-breadcrumb-sep { opacity: 0.4; }

.vb-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.vb-page-subtitle {
    color: var(--vb-text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* ─── Cards ─── */
.vb-card {
    background: var(--vb-bg-elevated);
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius);
    box-shadow: var(--vb-shadow-sm);
    transition: box-shadow var(--vb-transition);
}

.vb-card:hover { box-shadow: var(--vb-shadow); }

.vb-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.vb-card-body { padding: 1.25rem; }

/* ─── KPI Grid ─── */
.vb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vb-kpi-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vb-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vb-kpi-label {
    font-size: 0.8125rem;
    color: var(--vb-text-secondary);
    font-weight: 450;
}

.vb-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-kpi-icon.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.vb-kpi-icon.emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.vb-kpi-icon.violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.vb-kpi-icon.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.vb-kpi-icon.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.vb-kpi-icon.sky { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.vb-kpi-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.vb-kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.vb-kpi-change {
    font-size: 0.8125rem;
    font-weight: 500;
}

.vb-kpi-change.positive { color: var(--vb-accent-emerald); }
.vb-kpi-change.neutral { color: var(--vb-text-muted); }

.vb-mobile-meta { display: none; }

/* ─── Dashboard Grid ─── */
.vb-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vb-chart-container {
    position: relative;
    height: 280px;
}

/* ─── Appointments List ─── */
.vb-appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--vb-border);
}

.vb-appointment-item:last-child { border-bottom: none; }

.vb-appointment-time {
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
    color: var(--vb-text);
}

.vb-appointment-time.available { color: var(--vb-text-muted); }

.vb-appointment-info { flex: 1; min-width: 0; }

.vb-appointment-client {
    font-size: 0.875rem;
    font-weight: 500;
}

.vb-appointment-service {
    font-size: 0.8125rem;
    color: var(--vb-text-secondary);
}

.vb-status-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    text-transform: capitalize;
}

.vb-status-badge.confirmed { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.vb-status-badge.checked_in { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.vb-status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.vb-status-badge.available { background: var(--vb-bg-subtle); color: var(--vb-text-muted); }

/* ─── Insights ─── */
.vb-insight {
    padding: 1rem;
    border-radius: var(--vb-radius-sm);
    border: 1px solid var(--vb-border);
    margin-bottom: 0.75rem;
    transition: border-color var(--vb-transition);
}

.vb-insight:last-child { margin-bottom: 0; }
.vb-insight:hover { border-color: var(--vb-border-strong); }

.vb-insight.warning { border-left: 3px solid #f59e0b; }
.vb-insight.info { border-left: 3px solid #6366f1; }
.vb-insight.success { border-left: 3px solid #10b981; }

.vb-insight-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.vb-insight-desc {
    font-size: 0.8125rem;
    color: var(--vb-text-secondary);
    margin-bottom: 0.5rem;
}

.vb-insight-action {
    font-size: 0.8125rem;
    color: var(--vb-primary);
    font-weight: 500;
}

.vb-insight-action:hover { text-decoration: underline; }

/* ─── Ranking ─── */
.vb-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
}

.vb-ranking-position {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vb-text-muted);
    width: 20px;
}

.vb-ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.vb-ranking-info { flex: 1; }
.vb-ranking-name { font-size: 0.875rem; font-weight: 500; }
.vb-ranking-meta { font-size: 0.75rem; color: var(--vb-text-secondary); }

.vb-ranking-value {
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ─── Progress ─── */
.vb-progress {
    height: 8px;
    background: var(--vb-bg-subtle);
    border-radius: 999px;
    overflow: hidden;
}

.vb-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 600ms ease;
}

/* ─── Alerts ─── */
.vb-alerts {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.vb-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 450;
    border: 1px solid var(--vb-border);
    background: var(--vb-bg-elevated);
}

.vb-alert-pill.warning { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.vb-alert-pill.info { border-color: rgba(99, 102, 241, 0.3); background: rgba(99, 102, 241, 0.05); }

/* ─── Placeholder ─── */
.vb-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.vb-placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--vb-bg-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-text-muted);
}

.vb-placeholder-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vb-placeholder-text {
    color: var(--vb-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ─── Skeleton ─── */
@keyframes vb-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.vb-skeleton {
    background: linear-gradient(90deg, var(--vb-bg-subtle) 25%, var(--vb-bg-muted) 50%, var(--vb-bg-subtle) 75%);
    background-size: 200% 100%;
    animation: vb-shimmer 1.5s infinite;
    border-radius: var(--vb-radius-sm);
}

/* ─── Responsive ─── */
.vb-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.45);
    z-index: 99;
}

@media (max-width: 1200px) {
    .vb-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .vb-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .vb-auth { grid-template-columns: 1fr; }
    .vb-auth-brand { display: none; }
    .vb-auth-form-panel { padding: 1.25rem; min-height: 100vh; }
    .vb-auth-form-card { padding: 2rem 1.5rem; }

    .vb-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--vb-shadow-lg);
    }
    .vb-sidebar.open { transform: translateX(0); }
    .vb-main { margin-left: 0; min-width: 0; overflow-x: clip; }

    .vb-topbar {
        padding: 0 0.75rem;
        gap: 0.5rem;
        height: auto;
        min-height: var(--vb-topbar-height);
        flex-wrap: wrap;
    }

    .vb-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-top: 0.25rem;
    }

    .vb-content { padding: 0.875rem; overflow-x: clip; min-width: 0; }

    .vb-kpi-grid,
    .vb-kpi-grid--3,
    .vb-kpi-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
        min-width: 0;
    }

    .vb-kpi-card {
        min-width: 0;
        padding: 1rem;
    }

    .vb-kpi-value {
        font-size: 1.375rem;
        overflow-wrap: anywhere;
    }

    .vb-kpi-change {
        overflow-wrap: anywhere;
    }

    .vb-card.vb-table-card,
    .vb-card-body--table,
    .vb-table-wrap {
        min-width: 0;
        max-width: 100%;
    }

    .vb-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .vb-empty-row td {
        white-space: normal;
        line-height: 1.45;
    }

    .vb-mobile-meta {
        display: block;
        color: var(--vb-text-muted);
        font-size: 0.75rem;
    }
    .vb-page-title { font-size: 1.25rem; }
    .vb-search-kbd { display: none; }

    .vb-search--toolbar {
        max-width: none;
        flex: 1;
    }

    .vb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vb-toolbar-left,
    .vb-toolbar-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .vb-toolbar-date {
        min-width: 0;
        font-size: 0.9375rem;
        flex: 1;
    }

    .vb-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .vb-card-body { padding: 1rem; }

    .vb-data-grid { grid-template-columns: 1fr; }
    .vb-client-card { padding: 0.875rem 1rem; }

    .vb-btn,
    .vb-icon-btn,
    .vb-booking-slot.is-available {
        min-height: 44px;
    }

    .vb-table { font-size: 0.8125rem; }
    .vb-table th,
    .vb-table td { padding: 0.625rem 0.75rem; }

    .vb-dropdown-menu {
        right: 0;
        left: auto;
        max-width: calc(100vw - 1.5rem);
    }

    input.form-control,
    input.vb-input,
    input.vb-search-input,
    select.form-select,
    textarea.form-control {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .vb-kpi-grid { grid-template-columns: 1fr; }
    .vb-topbar-actions { margin-left: 0; }
}

/* ─── Animations ─── */
.vb-fade-in {
    animation: vbFadeIn 400ms ease forwards;
}

@keyframes vbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vb-stagger > * {
    opacity: 0;
    animation: vbFadeIn 400ms ease forwards;
}

.vb-stagger > *:nth-child(1) { animation-delay: 0ms; }
.vb-stagger > *:nth-child(2) { animation-delay: 50ms; }
.vb-stagger > *:nth-child(3) { animation-delay: 100ms; }
.vb-stagger > *:nth-child(4) { animation-delay: 150ms; }
.vb-stagger > *:nth-child(5) { animation-delay: 200ms; }
.vb-stagger > *:nth-child(6) { animation-delay: 250ms; }
.vb-stagger > *:nth-child(7) { animation-delay: 300ms; }
.vb-stagger > *:nth-child(8) { animation-delay: 350ms; }

/* ─── Dropdown ─── */
.vb-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--vb-bg-elevated);
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius);
    box-shadow: var(--vb-shadow-lg);
    padding: 0.375rem;
    z-index: 200;
}

.vb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--vb-radius-sm);
    font-size: 0.875rem;
    color: var(--vb-text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.vb-dropdown-item:hover {
    background: var(--vb-bg-subtle);
    color: var(--vb-text);
}

.vb-dropdown-divider {
    height: 1px;
    background: var(--vb-border);
    margin: 0.375rem 0;
}

[x-cloak] { display: none !important; }

/* ─── Toolbar & Tables ─── */
.vb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.vb-toolbar-left, .vb-toolbar-right { display: flex; align-items: center; gap: 0.5rem; }
.vb-toolbar-date { font-size: 1rem; font-weight: 600; margin: 0; min-width: 200px; text-align: center; }

.vb-table-wrap { overflow-x: auto; }
.vb-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.vb-table th { text-align: left; padding: 0.75rem 1rem; color: var(--vb-text-muted); font-weight: 500; border-bottom: 1px solid var(--vb-border); font-size: 0.8125rem; }
.vb-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--vb-border); }
.vb-table tbody tr:hover { background: var(--vb-bg-subtle); }

.vb-data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.vb-client-card { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.25rem; transition: all var(--vb-transition); }
.vb-client-card:hover { border-color: var(--vb-primary); transform: translateY(-1px); }
.vb-client-card-main { display: flex; align-items: center; gap: 0.875rem; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.vb-client-card-main:hover { color: inherit; }
.vb-delete-btn { color: #b91c1c !important; padding: 0.35rem 0.5rem !important; flex-shrink: 0; }
.vb-barber-card .vb-delete-btn { margin-left: 0.25rem; }
.vb-client-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--vb-primary-subtle); color: var(--vb-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; flex-shrink: 0; }
.vb-client-name { font-weight: 500; font-size: 0.9375rem; }
.vb-client-meta { font-size: 0.8125rem; color: var(--vb-text-secondary); }
.vb-client-stats { margin-left: auto; text-align: right; font-size: 0.75rem; color: var(--vb-text-muted); display: flex; flex-direction: column; gap: 0.125rem; }

.vb-barber-card { display: flex; align-items: center; gap: 0.875rem; padding: 1.25rem; }

/* ─── Calendar / Agenda ─── */
.vb-agenda-stats { display: flex; gap: 1.5rem; font-size: 0.8125rem; color: var(--vb-text-secondary); margin-bottom: 1rem; flex-wrap: wrap; }
.vb-calendar { border: 1px solid var(--vb-border); border-radius: var(--vb-radius); overflow: hidden; background: var(--vb-bg-elevated); }
.vb-calendar-header, .vb-calendar-body { display: flex; }
.vb-calendar-time-col { width: 60px; flex-shrink: 0; border-right: 1px solid var(--vb-border); background: var(--vb-bg-subtle); }
.vb-calendar-barber-col { flex: 1; min-width: 180px; border-right: 1px solid var(--vb-border); position: relative; }
.vb-calendar-barber-col:last-child { border-right: none; }
.vb-calendar-header .vb-calendar-barber-col { padding: 0.75rem; font-weight: 500; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--vb-border); }
.vb-calendar-time { height: 48px; padding: 0.25rem 0.5rem; font-size: 0.6875rem; color: var(--vb-text-muted); border-bottom: 1px solid var(--vb-border); display: flex; align-items: flex-start; }
.vb-calendar-slot { height: 48px; border-bottom: 1px solid var(--vb-border); cursor: pointer; transition: background var(--vb-transition); }
.vb-calendar-slot:hover { background: var(--vb-primary-subtle); }

.vb-appointment-card {
    margin: 0.25rem;
    padding: 0.5rem 0.625rem;
    background: var(--vb-bg-elevated);
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius-sm);
    font-size: 0.8125rem;
    cursor: grab;
    transition: box-shadow var(--vb-transition);
}
.vb-appointment-card:hover { box-shadow: var(--vb-shadow); }
.vb-appointment-card-time { font-weight: 600; font-size: 0.75rem; }
.vb-appointment-card-client { font-weight: 500; margin-top: 0.125rem; }
.vb-appointment-card-service { color: var(--vb-text-secondary); font-size: 0.75rem; }
.vb-appointment-card-actions { display: flex; gap: 0.25rem; margin-top: 0.375rem; flex-wrap: wrap; }

.vb-week-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}

.vb-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(172px, 1fr));
    gap: 0.75rem;
    min-width: 1240px;
}

.vb-week-day {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 0;
    overflow: hidden;
}

.vb-week-day.today {
    border-color: var(--vb-primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--vb-primary) 25%, transparent);
}

.vb-week-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--vb-border);
    background: var(--vb-bg-subtle);
    text-decoration: none;
    color: inherit;
    transition: background var(--vb-transition);
}

.vb-week-day-head:hover {
    background: color-mix(in srgb, var(--vb-primary) 6%, var(--vb-bg-subtle));
}

.vb-week-day-title {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.vb-week-day-name {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vb-text-muted);
}

.vb-week-day-date {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vb-text);
}

.vb-week-day.today .vb-week-day-date {
    color: var(--vb-primary);
}

.vb-week-day-body {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    max-height: min(70vh, 640px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vb-week-appt {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.5rem;
    align-items: start;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--vb-border);
    border-left: 3px solid var(--appt-barber-color, var(--vb-border));
    border-radius: var(--vb-radius-sm);
    background: var(--vb-bg-elevated);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--vb-transition), box-shadow var(--vb-transition);
}

.vb-week-appt:hover {
    border-color: color-mix(in srgb, var(--appt-barber-color, var(--vb-primary)) 35%, var(--vb-border));
    box-shadow: var(--vb-shadow-sm);
}

.vb-week-appt-time {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vb-text);
}

.vb-week-appt-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.vb-week-appt-client {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.vb-week-appt-service {
    font-size: 0.75rem;
    color: var(--vb-text-secondary);
    line-height: 1.3;
    word-break: break-word;
}

.vb-week-appt-barber {
    font-size: 0.6875rem;
    color: var(--vb-text-muted);
}

.vb-week-empty {
    margin: 0.5rem 0 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--vb-text-muted);
    text-align: center;
}

/* ─── Profile ─── */
.vb-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vb-profile-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; grid-column: 1 / -1; }
.vb-profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 600; }
.vb-note-item { padding: 0.75rem 0; border-bottom: 1px solid var(--vb-border); }
.vb-note-item p { margin: 0 0 0.25rem; font-size: 0.875rem; }
.vb-note-item small { color: var(--vb-text-muted); font-size: 0.75rem; }

.vb-modal { border-radius: var(--vb-radius); border: 1px solid var(--vb-border); }
.vb-modal .modal-header { border-bottom: 1px solid var(--vb-border); }

@media (max-width: 768px) {
    .vb-week-scroll {
        overflow-x: visible;
    }

    .vb-week-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .vb-week-day {
        min-height: auto;
    }

    .vb-week-day-body {
        max-height: none;
        overflow-y: visible;
    }

    .vb-profile-grid { grid-template-columns: 1fr; }
    .vb-calendar { overflow-x: auto; }
    .vb-calendar-header, .vb-calendar-body { min-width: 600px; }
}

/* ─── Module pages (Serviços, Produtos, Estoque, Financeiro) ─── */
.vb-module-intro {
    font-size: 0.9375rem;
    color: var(--vb-text-secondary);
    margin: -0.5rem 0 1.25rem;
    max-width: 640px;
    line-height: 1.55;
}

.vb-kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vb-kpi-grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
    .vb-kpi-grid--5 { grid-template-columns: repeat(3, 1fr); }
    .vb-kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .vb-kpi-grid--5,
    .vb-kpi-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vb-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1rem;
    align-items: start;
}

.vb-panel-grid--reverse {
    grid-template-columns: 1.6fr 1fr;
}

@media (max-width: 1200px) {
    .vb-panel-grid,
    .vb-panel-grid--reverse { grid-template-columns: 1fr; }
}

.vb-card--flush .vb-card-body--table { padding: 0; }

.vb-table-card .vb-table { margin: 0; }
.vb-table-card .vb-table tbody tr:last-child td { border-bottom: none; }

.vb-table .col-num,
.vb-table .col-money,
.vb-table .col-center { text-align: right; }
.vb-table .col-center { text-align: center; }

.vb-money {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.vb-money.muted { color: var(--vb-text-secondary); font-weight: 500; }
.vb-money.positive { color: var(--vb-accent-emerald); }
.vb-money.negative { color: var(--vb-accent-rose); }

.vb-cell-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.vb-cell-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--vb-text);
}

.vb-cell-sub {
    font-size: 0.75rem;
    color: var(--vb-text-muted);
    line-height: 1.35;
}

.vb-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--vb-bg-subtle);
    color: var(--vb-text-secondary);
    white-space: nowrap;
}

.vb-tag.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.vb-tag.emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.vb-tag.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.vb-tag.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.vb-tag.sky { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.vb-tag.muted { background: var(--vb-bg-subtle); color: var(--vb-text-muted); }

.vb-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--vb-bg-subtle);
    color: var(--vb-text-secondary);
}

.vb-pay-pill.pix { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.vb-pay-pill.cash { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.vb-pay-pill.card { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.vb-form-stack .mb-3:last-of-type { margin-bottom: 1rem !important; }
.vb-form-stack .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--vb-text-secondary);
    margin-bottom: 0.375rem;
}

.vb-stat-list { display: flex; flex-direction: column; gap: 0.875rem; }

.vb-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--vb-border);
}

.vb-stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.vb-stat-item-label {
    font-size: 0.875rem;
    color: var(--vb-text-secondary);
}

.vb-stat-item-value {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vb-cash-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--vb-radius);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(99, 102, 241, 0.04));
}

.vb-cash-banner.closed {
    border-color: var(--vb-border);
    background: var(--vb-bg-elevated);
}

.vb-cash-banner-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.vb-cash-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--vb-accent-emerald);
    flex-shrink: 0;
}

.vb-cash-banner.closed .vb-cash-banner-icon {
    background: var(--vb-bg-subtle);
    color: var(--vb-text-muted);
}

.vb-cash-banner-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.vb-cash-banner-meta {
    font-size: 0.8125rem;
    color: var(--vb-text-secondary);
    margin-top: 0.125rem;
}

.vb-cash-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vb-cash-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.vb-cash-close-form {
    margin: 0;
    width: 100%;
    max-width: 220px;
}

.vb-btn-cash-close {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--vb-accent-rose);
    border: 2px solid var(--vb-accent-rose);
    box-shadow: var(--vb-shadow);
}

.vb-btn-cash-close:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #fff;
    transform: translateY(-1px);
}

.vb-btn-cash-open {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.vb-cash-closed-summary {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--vb-bg-elevated));
}

.vb-cash-closed-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.vb-cash-closed-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.vb-cash-closed-meta {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--vb-text-secondary);
}

.vb-cash-closed-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.vb-cash-closed-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vb-cash-closed-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vb-cash-closed-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--vb-text-muted);
}

.vb-cash-open-card {
    max-width: 480px;
}

.vb-cash-open-text {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--vb-text-secondary);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .vb-cash-closed-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vb-cash-banner-actions {
        align-items: stretch;
        width: 100%;
    }

    .vb-cash-close-form {
        max-width: none;
    }

    .vb-cash-metrics {
        justify-content: space-between;
        width: 100%;
    }
}

.vb-cash-metric {
    text-align: right;
}

.vb-cash-metric-label {
    font-size: 0.75rem;
    color: var(--vb-text-muted);
    display: block;
}

.vb-cash-metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vb-stock-meter {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 120px;
}

.vb-stock-meter-bar {
    flex: 1;
    height: 6px;
    background: var(--vb-bg-subtle);
    border-radius: 999px;
    overflow: hidden;
    min-width: 48px;
}

.vb-stock-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--vb-accent-emerald);
    transition: width 400ms ease;
}

.vb-stock-meter-fill.low { background: var(--vb-accent-amber); }
.vb-stock-meter-fill.critical { background: var(--vb-accent-rose); }

.vb-stock-meter-qty {
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 1.5rem;
    text-align: right;
}

.vb-empty-row td {
    text-align: center;
    padding: 2.5rem 1rem !important;
    color: var(--vb-text-muted);
    font-size: 0.875rem;
}

.vb-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.vb-breakdown-item { display: flex; flex-direction: column; gap: 0.375rem; }

.vb-breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.vb-breakdown-label { color: var(--vb-text-secondary); font-weight: 500; }
.vb-breakdown-value { font-weight: 600; font-variant-numeric: tabular-nums; }

.vb-breakdown-bar {
    height: 8px;
    background: var(--vb-bg-subtle);
    border-radius: 999px;
    overflow: hidden;
}

.vb-breakdown-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.vb-breakdown-fill.emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.vb-breakdown-fill.sky { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.vb-breakdown-fill.violet { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.vb-reports-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vb-reports-grid--bottom {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1200px) {
    .vb-reports-grid,
    .vb-reports-grid--bottom { grid-template-columns: 1fr; }
}

.vb-txn-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--vb-border);
}

.vb-txn-row:last-child { border-bottom: none; }

.vb-txn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: var(--vb-accent-emerald);
}

.vb-txn-icon.expense {
    background: rgba(244, 63, 94, 0.1);
    color: var(--vb-accent-rose);
}

.vb-txn-info { flex: 1; min-width: 0; }
.vb-txn-desc {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vb-txn-meta {
    font-size: 0.75rem;
    color: var(--vb-text-muted);
    margin-top: 0.125rem;
}

.vb-open-card {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}

.vb-open-card .vb-placeholder-icon {
    margin-bottom: 1rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--vb-primary);
}

.vb-card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vb-toggle-btn svg {
    transition: transform var(--vb-transition);
}

.vb-toggle-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.vb-collapse-summary {
    padding: 1rem 1.25rem;
}

.vb-collapse-summary p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vb-text-secondary);
    line-height: 1.5;
}

.vb-collapse-summary p + p {
    margin-top: 0.25rem;
}

.vb-collapse-summary-alert {
    color: var(--vb-accent-amber) !important;
    font-weight: 500;
}

/* ─── Modal de exclusão (plataforma) ─── */
.vb-confirm-modal-open {
    overflow: hidden;
}

.vb-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.vb-confirm-modal[hidden] {
    display: none;
}

.vb-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.vb-confirm-modal-panel {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 1.25rem 1.25rem 1rem 1rem;
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    transform: translateY(100%);
    transition: transform 0.24s ease;
}

.vb-confirm-modal.is-open .vb-confirm-modal-backdrop {
    opacity: 1;
}

.vb-confirm-modal.is-open .vb-confirm-modal-panel {
    transform: translateY(0);
}

.vb-confirm-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #dc2626;
    margin: 0 auto 1rem;
}

.vb-confirm-modal-title {
    margin: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.vb-confirm-modal-text {
    margin: 0.625rem 0 0;
    text-align: center;
    color: var(--vb-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.vb-confirm-modal-summary {
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: var(--vb-radius-sm);
    background: var(--vb-bg-subtle);
    display: grid;
    gap: 0.75rem;
}

.vb-confirm-modal-summary span {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vb-text-muted);
    margin-bottom: 0.125rem;
}

.vb-confirm-modal-summary strong {
    font-size: 0.9375rem;
}

.vb-confirm-modal-actions {
    display: grid;
    gap: 0.625rem;
}

.vb-confirm-danger-btn {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.vb-confirm-danger-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

@media (min-width: 480px) {
    .vb-confirm-modal {
        align-items: center;
    }

    .vb-confirm-modal-panel {
        border-radius: var(--vb-radius);
        padding: 1.75rem;
    }
}

/* ─── Mobile polish: Plataforma, Agenda, Catálogo ─── */
.vb-toolbar-date-short { display: none; }
.vb-calendar-scroll-hint { display: none; }

@media (max-width: 768px) {
    .vb-toolbar-date-long { display: none; }
    .vb-toolbar-date-short { display: inline; }

    /* Plataforma: tabela vira cards */
    .vb-table-wrap:has(.vb-table--stack-mobile) {
        overflow-x: visible;
    }

    .vb-table--stack-mobile thead { display: none; }

    .vb-table--stack-mobile tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1rem;
        border: 1px solid var(--vb-border);
        border-radius: var(--vb-radius);
        background: var(--vb-bg-elevated);
    }

    .vb-table--stack-mobile tbody tr:hover {
        background: var(--vb-bg-elevated);
    }

    .vb-table--stack-mobile tbody td {
        display: grid;
        grid-template-columns: minmax(4.75rem, 34%) 1fr;
        align-items: center;
        gap: 0.375rem 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--vb-border);
        text-align: left !important;
    }

    .vb-table--stack-mobile tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .vb-table--stack-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--vb-text-muted);
        line-height: 1.3;
    }

    .vb-table--stack-mobile .vb-empty-row td {
        display: block;
        grid-template-columns: none;
        border: none;
        padding: 2rem 0 !important;
    }

    .vb-table--stack-mobile .vb-empty-row td::before {
        display: none;
    }

    .vb-row-actions {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.375rem;
        justify-content: flex-start;
        max-width: 100%;
    }

    .vb-row-actions form {
        margin: 0;
        flex-shrink: 0;
    }

    .vb-row-actions .vb-btn-sm {
        padding: 0.4rem 0.55rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-height: 40px;
        line-height: 1.2;
    }

    .vb-row-actions .vb-delete-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 1px solid color-mix(in srgb, #b91c1c 22%, var(--vb-border));
        background: color-mix(in srgb, #b91c1c 6%, var(--vb-bg-elevated));
    }

    .vb-toolbar--search {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .vb-platform-search {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .vb-platform-search .vb-input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .vb-platform-search .vb-btn {
        flex: 1;
        justify-content: center;
    }

    /* Catálogo: menos colunas, sem estourar */
    .vb-table .vb-col-hide-mobile {
        display: none;
    }

    .vb-table-card .vb-table {
        font-size: 0.8125rem;
    }

    .vb-table-card .vb-table th,
    .vb-table-card .vb-table td {
        padding: 0.625rem 0.5rem;
    }

    .vb-table-card .vb-cell-main {
        min-width: 0;
    }

    .vb-table-card .vb-cell-sub {
        display: block;
        overflow-wrap: anywhere;
    }

    .vb-table-card .vb-delete-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vb-stock-meter {
        min-width: 0;
        max-width: 9.5rem;
    }

    .vb-module-intro {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }

    /* Agenda */
    .vb-page-agenda .vb-toolbar-left {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.35rem;
        width: 100%;
    }

    .vb-page-agenda .vb-toolbar-date {
        grid-column: 1 / -1;
        order: -1;
        min-width: 0;
        font-size: 0.9375rem;
        line-height: 1.35;
        text-align: center;
        margin: 0;
    }

    .vb-page-agenda .vb-toolbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .vb-page-agenda .vb-toolbar-right .vb-btn-primary {
        flex: 1;
        justify-content: center;
    }

    .vb-agenda-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.75rem;
        padding: 0.75rem 1rem;
        background: var(--vb-bg-subtle);
        border-radius: var(--vb-radius);
        border: 1px solid var(--vb-border);
        margin-bottom: 0.875rem;
    }

    .vb-agenda-stats span {
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .vb-calendar-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--vb-radius);
    }

    .vb-calendar-scroll-hint {
        display: block;
        font-size: 0.6875rem;
        color: var(--vb-text-muted);
        text-align: center;
        padding: 0.5rem 0 0.125rem;
    }

    .vb-calendar-scroll .vb-calendar {
        border: 1px solid var(--vb-border);
        border-radius: var(--vb-radius);
        overflow: hidden;
    }

    .vb-page-agenda .vb-calendar {
        overflow-x: visible;
    }

    .vb-page-agenda .vb-calendar-header,
    .vb-page-agenda .vb-calendar-body {
        min-width: 520px;
    }

    .vb-page-agenda .vb-calendar-barber-col {
        min-width: 128px;
    }

    .vb-page-agenda .vb-calendar-time-col {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
    }

    .vb-page-agenda .vb-calendar-header .vb-calendar-time-col {
        z-index: 3;
    }

    .vb-appointment-card {
        font-size: 0.75rem;
        padding: 0.45rem 0.5rem;
    }

    .vb-appointment-card-actions {
        gap: 0.25rem;
    }

    .vb-appointment-card-actions .vb-btn-sm {
        font-size: 0.6875rem;
        padding: 0.35rem 0.45rem;
        min-height: 36px;
    }

    .vb-week-day-head {
        padding: 0.625rem 0.75rem;
    }

    .vb-week-appt {
        padding: 0.5rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .vb-table--stack-mobile tbody td {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .vb-table--stack-mobile tbody td::before {
        margin-bottom: -0.125rem;
    }

    .vb-kpi-grid--3,
    .vb-kpi-grid--5 {
        grid-template-columns: 1fr;
    }

    .vb-toolbar > .vb-btn-primary {
        width: 100%;
        justify-content: center;
    }
}
