:root {
    --vb-green: #2fb344;
    --vb-accent: #066fd1;
    --vb-brand-green: #00d977;
    --vb-brand-green-bright: #00ff88;
    --vb-brand-green-hover: #33ffaa;
    --vb-brand-green-text: #052e16;
    --vb-brand-purple: #8b5cf6;
    --vb-brand-purple-hover: #7c3aed;
    --vb-brand-purple-text: #ffffff;
    --bs-primary: var(--vb-brand-purple);
    --bs-primary-rgb: 139, 92, 246;
    --bs-link-color: var(--vb-brand-purple);
    --bs-link-hover-color: var(--vb-brand-purple-hover);
}

html[data-bs-theme=light] {
    --bs-primary: var(--vb-brand-purple);
    --bs-primary-rgb: 139, 92, 246;
    --bs-link-color: var(--vb-brand-purple);
    --bs-link-hover-color: var(--vb-brand-purple-hover);
}

html[data-bs-theme=light] .btn-primary {
    --bs-btn-bg: var(--vb-brand-purple);
    --bs-btn-border-color: var(--vb-brand-purple);
    --bs-btn-hover-bg: var(--vb-brand-purple-hover);
    --bs-btn-hover-border-color: var(--vb-brand-purple-hover);
    --bs-btn-active-bg: var(--vb-brand-purple-hover);
    --bs-btn-active-border-color: var(--vb-brand-purple-hover);
    --bs-btn-disabled-bg: var(--vb-brand-purple);
    --bs-btn-disabled-border-color: var(--vb-brand-purple);
    color: var(--vb-brand-purple-text);
}

html[data-bs-theme=light] .btn-outline-primary {
    --bs-btn-color: var(--vb-brand-purple);
    --bs-btn-border-color: var(--vb-brand-purple);
    --bs-btn-hover-bg: var(--vb-brand-purple);
    --bs-btn-hover-border-color: var(--vb-brand-purple);
    --bs-btn-active-bg: var(--vb-brand-purple-hover);
    --bs-btn-active-border-color: var(--vb-brand-purple-hover);
}

html[data-bs-theme=light] .text-primary {
    color: var(--vb-brand-purple) !important;
}

html[data-bs-theme=light] .bg-primary {
    background-color: var(--vb-brand-purple) !important;
}

html[data-bs-theme=light] .border-primary {
    border-color: var(--vb-brand-purple) !important;
}

html[data-bs-theme=light] .badge.bg-primary,
html[data-bs-theme=light] .badge.text-bg-primary {
    background-color: var(--vb-brand-purple) !important;
    color: #fff !important;
}

/* Light mode: Tabler owns cards, colors, shadows — do not override */
html[data-bs-theme=light] .page .card {
    box-shadow: var(--tblr-card-box-shadow, var(--tblr-shadow-card));
    border-color: var(--tblr-card-border-color, var(--tblr-border-color-translucent));
    background-color: var(--tblr-card-bg, var(--tblr-bg-surface));
}

/* Dark mode: ViralBuzz brand layer on Tabler dark */
html[data-bs-theme=dark] {
    --vb-bg: #1a1a1e;
    --vb-surface: #252529;
    --vb-surface-2: #1e1e22;
    --vb-border: #3d3d45;
    --vb-text: #e8e8ed;
    --vb-muted: #9ca3af;
    --vb-purple: #4299e1;
    --vb-cyan: #4299e1;
    --vb-pink: #d63939;
    --bs-body-bg: var(--vb-bg);
    --bs-body-bg-rgb: 26, 26, 30;
    --bs-body-color: var(--vb-text);
    --bs-secondary-color: var(--vb-muted);
    --bs-border-color: var(--vb-border);
    --bs-card-bg: var(--vb-surface);
    --bs-primary: var(--vb-brand-purple);
    --bs-primary-rgb: 139, 92, 246;
}

html[data-menu-color=dark],
html[data-bs-theme=dark][data-menu-color=light] {
    --bs-main-nav-bg: #1e293b;
    --bs-main-nav-item-color: rgba(255, 255, 255, 0.72);
    --bs-main-nav-item-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-main-nav-item-hover-color: #fff;
    --bs-main-nav-border-color: rgba(255, 255, 255, 0.06);
}

html[data-topbar-color=light],
html[data-bs-theme=light][data-topbar-color=light] {
    --bs-topbar-bg: #fff;
    --bs-topbar-item-color: #626976;
    --bs-topbar-search-bg: #f6f8fb;
}

html[data-topbar-color=dark],
html[data-bs-theme=dark][data-topbar-color=light] {
    --bs-topbar-bg: var(--vb-surface);
    --bs-topbar-item-color: #d1d5db;
    --bs-topbar-search-bg: var(--vb-surface-2);
}

body {
    font-family: "Inter", var(--tblr-font-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --vb-sidebar-width: 15rem;
    --vb-sidebar-collapsed-width: 5.5rem;
}

@media (min-width: 992px) {
    body.vb-sidebar-collapsed {
        --vb-sidebar-width: var(--vb-sidebar-collapsed-width);
    }
}

.btn-primary {
    box-shadow: none;
}

.btn-vb-green,
.btn-vb-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    border-width: 1px;
    border-style: solid;
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.btn-vb-green:hover,
.btn-vb-purple:hover {
    transform: none;
}

.btn-vb-green:active,
.btn-vb-purple:active {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(27, 31, 36, 0.15);
}

.btn-vb-green {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-bright);
    border-color: rgba(5, 46, 22, 0.12);
}

.btn-vb-green:hover,
.btn-vb-green:focus-visible {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-hover);
    border-color: rgba(5, 46, 22, 0.18);
}

.btn-vb-purple {
    color: var(--vb-brand-purple-text);
    background-color: var(--vb-brand-purple);
    border-color: rgba(91, 33, 182, 0.35);
}

.btn-vb-purple:hover,
.btn-vb-purple:focus-visible {
    color: var(--vb-brand-purple-text);
    background-color: var(--vb-brand-purple-hover);
    border-color: rgba(91, 33, 182, 0.45);
}

html[data-bs-theme=light] .btn-vb-green {
    color: #fff;
    background-color: #1a7f37;
    border-color: rgba(27, 31, 36, 0.15);
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html[data-bs-theme=light] .btn-vb-green:hover,
html[data-bs-theme=light] .btn-vb-green:focus-visible {
    color: #fff;
    background-color: #2da44e;
    border-color: rgba(27, 31, 36, 0.2);
}

html[data-bs-theme=light] .btn-vb-purple {
    color: #fff;
    background-color: #7c3aed;
    border-color: rgba(91, 33, 182, 0.35);
}

html[data-bs-theme=light] .btn-vb-purple:hover,
html[data-bs-theme=light] .btn-vb-purple:focus-visible {
    color: #fff;
    background-color: var(--vb-brand-purple);
    border-color: rgba(91, 33, 182, 0.45);
}

/* Admin forms: save/submit buttons use brand green (not purple primary) */
.vb-dashboard form button[type="submit"].btn-primary,
.vb-admin-form button[type="submit"].btn-primary {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-bright);
    border-color: rgba(5, 46, 22, 0.12);
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.vb-dashboard form button[type="submit"].btn-primary:hover,
.vb-dashboard form button[type="submit"].btn-primary:focus-visible,
.vb-admin-form button[type="submit"].btn-primary:hover,
.vb-admin-form button[type="submit"].btn-primary:focus-visible {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-hover);
    border-color: rgba(5, 46, 22, 0.18);
}

html[data-bs-theme=light] .vb-dashboard form button[type="submit"].btn-primary,
html[data-bs-theme=light] .vb-admin-form button[type="submit"].btn-primary {
    color: #fff;
    background-color: #1a7f37;
    border-color: rgba(27, 31, 36, 0.15);
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html[data-bs-theme=light] .vb-dashboard form button[type="submit"].btn-primary:hover,
html[data-bs-theme=light] .vb-dashboard form button[type="submit"].btn-primary:focus-visible,
html[data-bs-theme=light] .vb-admin-form button[type="submit"].btn-primary:hover,
html[data-bs-theme=light] .vb-admin-form button[type="submit"].btn-primary:focus-visible {
    color: #fff;
    background-color: #2da44e;
    border-color: rgba(27, 31, 36, 0.2);
}

html[data-bs-theme=dark] .vb-dashboard form button[type="submit"].btn-primary,
html[data-bs-theme=dark] .vb-admin-form button[type="submit"].btn-primary {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-bright);
    border-color: rgba(5, 46, 22, 0.12);
}

html[data-bs-theme=dark] .vb-dashboard form button[type="submit"].btn-primary:hover,
html[data-bs-theme=dark] .vb-dashboard form button[type="submit"].btn-primary:focus-visible,
html[data-bs-theme=dark] .vb-admin-form button[type="submit"].btn-primary:hover,
html[data-bs-theme=dark] .vb-admin-form button[type="submit"].btn-primary:focus-visible {
    color: var(--vb-brand-green-text);
    background-color: var(--vb-brand-green-hover);
    border-color: rgba(5, 46, 22, 0.18);
}

.vb-quick-action-btn {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
}

.vb-quick-action-btn .ti {
    font-size: 1.125rem;
    line-height: 1;
}

html[data-bs-theme=dark] .card,
html[data-bs-theme=dark] .dropdown-menu,
html[data-bs-theme=dark] .modal-content {
    background-color: var(--vb-surface);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme=dark] .card-header,
html[data-bs-theme=dark] .card-footer,
html[data-bs-theme=dark] .modal-header,
html[data-bs-theme=dark] .modal-footer {
    background-color: var(--vb-surface-2);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme=dark] .form-control,
html[data-bs-theme=dark] .form-select,
html[data-bs-theme=dark] .input-group-text {
    background-color: var(--vb-surface-2);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--vb-text);
}

html[data-bs-theme=dark] .form-control:focus,
html[data-bs-theme=dark] .form-select:focus {
    background-color: #181820;
    border-color: var(--vb-purple);
    color: var(--vb-text);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.18);
}

html[data-bs-theme=dark] .form-control::placeholder {
    color: #6b7280;
}

html[data-bs-theme=dark] .form-control-plaintext,
html[data-bs-theme=dark] code,
html[data-bs-theme=dark] pre {
    color: var(--vb-text);
}

html[data-bs-theme=dark] .text-muted,
html[data-bs-theme=dark] .form-text {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .bg-light,
html[data-bs-theme=dark] .bg-light-subtle {
    background-color: var(--vb-surface-2) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .border,
html[data-bs-theme=dark] .border-top,
html[data-bs-theme=dark] .border-bottom,
html[data-bs-theme=dark] .border-start,
html[data-bs-theme=dark] .border-end {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme=dark] .settings-section,
html[data-bs-theme=dark] .action-filters,
html[data-bs-theme=dark] .api-key-display {
    background: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text);
}

html[data-bs-theme=dark] .settings-section-title {
    color: var(--vb-text);
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme=dark] .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme=dark] .nav-tabs .nav-link {
    color: var(--vb-muted) !important;
    border-color: transparent;
}

html[data-bs-theme=dark] .nav-tabs .nav-link:hover,
html[data-bs-theme=dark] .nav-tabs .nav-link:focus {
    color: var(--vb-cyan) !important;
    border-color: rgba(0, 255, 255, 0.2);
}

html[data-bs-theme=dark] .nav-tabs .nav-link.active {
    background-color: var(--vb-surface) !important;
    border-color: rgba(139, 92, 246, 0.45) rgba(139, 92, 246, 0.45) var(--vb-surface) !important;
    color: var(--vb-green) !important;
}

html[data-bs-theme=dark] .drag-drop-area {
    background: var(--vb-surface-2) !important;
    border-color: rgba(0, 255, 255, 0.35) !important;
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .drag-drop-area i {
    color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .drag-drop-area p {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .image-preview,
html[data-bs-theme=dark] .icon-preview {
    background-color: var(--vb-surface-2);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme=dark] .audit-action {
    background-color: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--vb-cyan);
}

html[data-bs-theme=dark] .audit-entity {
    color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .audit-timestamp,
html[data-bs-theme=dark] .ip-address {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .timeline-item {
    border-left-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme=dark] .stats-card:not(.bg-primary) {
    background-color: var(--vb-surface) !important;
}

html[data-bs-theme=dark] .gridjs-wrapper,
html[data-bs-theme=dark] .gridjs-container,
html[data-bs-theme=dark] .gridjs-table,
html[data-bs-theme=dark] .gridjs-thead,
html[data-bs-theme=dark] .gridjs-th,
html[data-bs-theme=dark] .gridjs-td,
html[data-bs-theme=dark] .gridjs-footer,
html[data-bs-theme=dark] .gridjs-pagination {
    background-color: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .gridjs-th {
    background-color: var(--vb-surface-2) !important;
}

html[data-bs-theme=dark] .gridjs-tr:hover .gridjs-td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-bs-theme=dark] .gridjs-search-input,
html[data-bs-theme=dark] .gridjs-input {
    background-color: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .gridjs-pagination .gridjs-pages button {
    background-color: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .gridjs-pagination .gridjs-pages button:hover,
html[data-bs-theme=dark] .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    background-color: var(--vb-purple) !important;
    color: #fff !important;
}

html[data-bs-theme=dark] .permission-card,
html[data-bs-theme=dark] .stat-card,
html[data-bs-theme=dark] .search-box,
html[data-bs-theme=dark] .permission-search,
html[data-bs-theme=dark] .matrix-container,
html[data-bs-theme=dark] .matrix-controls,
html[data-bs-theme=dark] .stats-summary {
    background: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text);
}

html[data-bs-theme=dark] .permission-card:hover,
html[data-bs-theme=dark] .stat-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme=dark] .permission-name,
html[data-bs-theme=dark] .stat-number,
html[data-bs-theme=dark] .matrix-table td:first-child {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .permission-description,
html[data-bs-theme=dark] .permission-meta,
html[data-bs-theme=dark] .stat-label {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .permission-item {
    background: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text);
}

html[data-bs-theme=dark] .permission-item.assigned {
    background: rgba(0, 255, 136, 0.12) !important;
    border-left-color: var(--vb-green) !important;
}

html[data-bs-theme=dark] .permission-item.available {
    background: var(--vb-surface-2) !important;
    border-left-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-bs-theme=dark] .permission-item strong:not(.text-success) {
    color: var(--vb-text);
}

html[data-bs-theme=dark] .table-borderless,
html[data-bs-theme=dark] .table-borderless td,
html[data-bs-theme=dark] .table-borderless th {
    color: var(--vb-text);
    background-color: transparent;
}

html[data-bs-theme=dark] .filter-chip,
html[data-bs-theme=dark] .section-toggle {
    background: var(--vb-surface-2) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .filter-chip:hover,
html[data-bs-theme=dark] .section-toggle:hover {
    color: var(--vb-cyan) !important;
    border-color: rgba(0, 255, 255, 0.35) !important;
}

html[data-bs-theme=dark] .filter-chip.active,
html[data-bs-theme=dark] .section-toggle.active {
    background: var(--vb-purple) !important;
    border-color: var(--vb-purple) !important;
    color: #fff !important;
}

html[data-bs-theme=dark] .matrix-table {
    color: var(--vb-text);
}

html[data-bs-theme=dark] .matrix-table td {
    background-color: var(--vb-surface);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme=dark] .matrix-table th {
    background: #4c1d95 !important;
    color: #fff !important;
}

html[data-bs-theme=dark] .matrix-table th:first-child,
html[data-bs-theme=dark] .matrix-table td:first-child {
    background: var(--vb-surface-2) !important;
    border-right-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-bs-theme=dark] .matrix-table .permission-section {
    background: #111827 !important;
    color: var(--vb-green) !important;
}

html[data-bs-theme=dark] .permission-cell:not(.permission-granted):not(.permission-denied):hover {
    background: rgba(139, 92, 246, 0.12) !important;
}

html[data-bs-theme=dark] .permission-granted {
    background: rgba(0, 255, 136, 0.18) !important;
    color: var(--vb-green) !important;
}

html[data-bs-theme=dark] .permission-denied {
    background: rgba(255, 0, 255, 0.14) !important;
    color: #ff8dfd !important;
}

html[data-bs-theme=dark] .permission-granted:hover {
    background: rgba(0, 255, 136, 0.28) !important;
}

html[data-bs-theme=dark] .permission-denied:hover {
    background: rgba(255, 0, 255, 0.24) !important;
}

html[data-bs-theme=dark] .legend-box {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-bs-theme=dark] .list-group-item {
    background-color: var(--vb-surface-2);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--vb-text);
}

html[data-bs-theme=dark] .swal2-popup {
    background: var(--vb-surface) !important;
    color: var(--vb-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-bs-theme=dark] .swal2-title,
html[data-bs-theme=dark] .swal2-html-container {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container,
html[data-bs-theme=dark] .modal-media-library {
    background: var(--vb-bg) !important;
    color: var(--vb-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
}

html[data-bs-theme=dark] .media-library-container .stats-bar,
html[data-bs-theme=dark] .media-library-container .media-controls,
html[data-bs-theme=dark] .media-library-container .folder-breadcrumb,
html[data-bs-theme=dark] .media-library-container .pagination,
html[data-bs-theme=dark] .modal-media-library .stats-bar,
html[data-bs-theme=dark] .modal-media-library .media-controls,
html[data-bs-theme=dark] .modal-media-library .folder-breadcrumb,
html[data-bs-theme=dark] .modal-media-library .pagination {
    background: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .media-library-container .media-content,
html[data-bs-theme=dark] .modal-media-library .media-content {
    background: var(--vb-bg) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .search-box,
html[data-bs-theme=dark] .modal-media-library .search-box {
    background: transparent !important;
}

html[data-bs-theme=dark] .media-library-container .search-box input,
html[data-bs-theme=dark] .media-library-container .filter-select,
html[data-bs-theme=dark] .modal-media-library .search-box input,
html[data-bs-theme=dark] .modal-media-library .filter-select {
    background: #101018 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .search-box input::placeholder,
html[data-bs-theme=dark] .modal-media-library .search-box input::placeholder {
    color: #6b7280 !important;
}

html[data-bs-theme=dark] .media-library-container .search-box i,
html[data-bs-theme=dark] .modal-media-library .search-box i {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .media-library-container .view-toggle,
html[data-bs-theme=dark] .modal-media-library .view-toggle {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-bs-theme=dark] .media-library-container .view-toggle button,
html[data-bs-theme=dark] .media-library-container .pagination button,
html[data-bs-theme=dark] .modal-media-library .view-toggle button,
html[data-bs-theme=dark] .modal-media-library .pagination button,
html[data-bs-theme=dark] .modal-media-library .refresh-btn {
    background: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .media-library-container .view-toggle button:hover:not(.active),
html[data-bs-theme=dark] .media-library-container .pagination button:hover:not(:disabled),
html[data-bs-theme=dark] .modal-media-library .view-toggle button:hover:not(.active),
html[data-bs-theme=dark] .modal-media-library .pagination button:hover:not(:disabled),
html[data-bs-theme=dark] .modal-media-library .refresh-btn:hover {
    background: rgba(139, 92, 246, 0.16) !important;
    border-color: rgba(0, 255, 255, 0.35) !important;
    color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .media-library-container .view-toggle button.active,
html[data-bs-theme=dark] .media-library-container .pagination .current-page,
html[data-bs-theme=dark] .modal-media-library .view-toggle button.active,
html[data-bs-theme=dark] .modal-media-library .pagination button.current-page {
    background: var(--vb-purple) !important;
    border-color: var(--vb-purple) !important;
    color: #fff !important;
}

html[data-bs-theme=dark] .media-library-container .media-item,
html[data-bs-theme=dark] .modal-media-library .media-item {
    background: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .media-item:hover,
html[data-bs-theme=dark] .modal-media-library .media-item:hover {
    border-color: rgba(0, 255, 255, 0.45) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34) !important;
}

html[data-bs-theme=dark] .media-library-container .media-preview,
html[data-bs-theme=dark] .media-library-container .file-icon,
html[data-bs-theme=dark] .media-library-container .list-file-icon,
html[data-bs-theme=dark] .modal-media-library .media-preview,
html[data-bs-theme=dark] .modal-media-library .file-icon,
html[data-bs-theme=dark] .modal-media-library .list-file-icon {
    background: var(--vb-surface-2) !important;
    color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .media-library-container .media-title,
html[data-bs-theme=dark] .media-library-container .folder-name,
html[data-bs-theme=dark] .modal-media-library .media-title,
html[data-bs-theme=dark] .modal-media-library .folder-name {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .media-meta,
html[data-bs-theme=dark] .media-library-container .folder-count,
html[data-bs-theme=dark] .media-library-container .stat-item,
html[data-bs-theme=dark] .media-library-container .breadcrumb-separator,
html[data-bs-theme=dark] .modal-media-library .media-meta,
html[data-bs-theme=dark] .modal-media-library .stat-item,
html[data-bs-theme=dark] .modal-media-library .breadcrumb-separator {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .media-library-container .breadcrumb-item,
html[data-bs-theme=dark] .modal-media-library .breadcrumb-item {
    color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .media-library-container .breadcrumb-item:hover,
html[data-bs-theme=dark] .modal-media-library .breadcrumb-item:hover {
    background: rgba(0, 255, 255, 0.12) !important;
    color: var(--vb-green) !important;
}

html[data-bs-theme=dark] .media-library-container .loading,
html[data-bs-theme=dark] .media-library-container .empty-state,
html[data-bs-theme=dark] .modal-media-library .loading,
html[data-bs-theme=dark] .modal-media-library .empty-state {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .media-library-container .empty-state h3,
html[data-bs-theme=dark] .modal-media-library .empty-state h3 {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .loading .spinner,
html[data-bs-theme=dark] .modal-media-library .loading .spinner {
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-top-color: var(--vb-cyan) !important;
}

html[data-bs-theme=dark] .media-library-container .media-table,
html[data-bs-theme=dark] .modal-media-library .media-table {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .media-table th,
html[data-bs-theme=dark] .modal-media-library .media-table th {
    background: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .media-table td,
html[data-bs-theme=dark] .modal-media-library .media-table td {
    background: var(--vb-surface) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .media-library-container .media-table tr:hover,
html[data-bs-theme=dark] .modal-media-library .media-table tr:hover {
    background: rgba(139, 92, 246, 0.12) !important;
}

html[data-bs-theme=dark] .media-library-container .file-details,
html[data-bs-theme=dark] .media-library-container .file-details strong {
    color: var(--vb-text) !important;
}

.viralbuzz-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: var(--vb-text);
    text-decoration: none;
}

.logo-box .viralbuzz-brand {
    width: 100%;
    min-height: var(--bs-topbar-height);
    padding: 0 18px;
}

.viralbuzz-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    color: #101018;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #206bc4, #4299e1);
    box-shadow: none;
}

.viralbuzz-brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

html[data-menu-size=condensed] .main-nav .viralbuzz-brand-text,
html[data-menu-size=sm-hover] .main-nav:not(:hover) .viralbuzz-brand-text,
html[data-menu-size=hidden] .main-nav .viralbuzz-brand-text {
    display: none;
}

html[data-menu-size=condensed] .main-nav .logo-box,
html[data-menu-size=sm-hover] .main-nav:not(:hover) .logo-box {
    display: flex;
    justify-content: center;
    padding: 0;
}

html[data-menu-size=condensed] .main-nav {
    position: fixed;
}

html[data-menu-size=condensed] .main-nav .logo-box .viralbuzz-brand,
html[data-menu-size=sm-hover] .main-nav:not(:hover) .logo-box .viralbuzz-brand {
    width: var(--bs-main-nav-width-sm);
    justify-content: center;
    gap: 0;
    padding: 0;
}

html[data-menu-size=condensed] .main-nav .navbar-nav .nav-link .nav-text,
html[data-menu-size=condensed] .main-nav .navbar-nav .nav-link .badge,
html[data-menu-size=sm-hover] .main-nav:not(:hover) .navbar-nav .nav-link .nav-text,
html[data-menu-size=sm-hover] .main-nav:not(:hover) .navbar-nav .nav-link .badge {
    display: none !important;
}

html[data-menu-size=sm-hover] .topbar .topbar-item .button-toggle-menu,
html[data-menu-size=sm-hover-active] .topbar .topbar-item .button-toggle-menu {
    display: inline-flex;
}

html[data-menu-size=condensed] .topbar > .container-xxl,
html[data-menu-size=sm-hover] .topbar > .container-xxl {
    max-width: none;
    margin-left: 0;
    padding-left: 12px;
}

html[data-menu-size=condensed] .topbar .navbar-header,
html[data-menu-size=sm-hover] .topbar .navbar-header {
    margin-left: 0;
}

.footer {
    color: var(--vb-muted);
}

/* ── Auth pages (Login, Forgot/Reset Password, Access Denied) ── */

.vb-auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--tblr-body-bg, var(--vb-bg, #1a1a1e));
}

.vb-auth-page-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(32, 107, 196, 0.1), transparent 50%);
}

html[data-bs-theme=light] .vb-auth-page-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(32, 107, 196, 0.06), transparent 50%);
}

.vb-auth-header {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

.vb-auth-alert {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: min(100% - 2rem, 28rem);
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.vb-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 56rem;
}

.vb-auth-card {
    overflow: hidden;
    border: 1px solid var(--tblr-border-color-translucent, rgba(255, 255, 255, 0.08));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

html[data-bs-theme=light] .vb-auth-card {
    box-shadow: var(--tblr-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.vb-auth-aside {
    background: #1e293b;
    color: #e2e8f0;
}

html[data-bs-theme=light] .vb-auth-aside {
    background: linear-gradient(160deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
}

.vb-auth-aside-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 2.75rem 2.5rem;
}

.vb-auth-aside .viralbuzz-brand-text {
    color: #fff;
}

.vb-auth-aside-copy {
    margin-top: 2.5rem;
}

.vb-auth-aside-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
}

.vb-auth-aside-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.82);
}

.vb-auth-aside-features {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.vb-auth-aside-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.9);
}

.vb-auth-aside-features .ti {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--vb-brand-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.16);
}

.vb-auth-main {
    display: flex;
    align-items: center;
}

.vb-auth-main-inner {
    width: 100%;
    padding: 2.5rem 2.75rem;
}

@media (max-width: 575.98px) {
    .vb-auth-main-inner {
        padding: 1.75rem 1.25rem;
    }
}

.vb-auth-mobile-brand {
    margin-bottom: 1.75rem;
}

.vb-auth-mobile-brand .viralbuzz-brand-text {
    color: var(--tblr-body-color, var(--vb-text));
}

.vb-auth-heading {
    margin-bottom: 1.75rem;
}

.vb-auth-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 1.375rem;
    color: var(--vb-brand-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.12);
}

html[data-bs-theme=light] .vb-auth-heading-icon {
    background: rgba(139, 92, 246, 0.1);
}

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

.vb-auth-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.vb-auth-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.vb-auth-form .input-icon .form-control {
    padding-left: 2.5rem;
}

.vb-auth-form .input-icon-addon {
    color: var(--tblr-secondary, var(--vb-muted));
}

.vb-auth-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tblr-border-color-translucent, rgba(255, 255, 255, 0.08));
    text-align: center;
    font-size: 0.875rem;
}

.vb-auth-links a {
    text-decoration: none;
    transition: color 0.15s ease;
}

.vb-auth-links a:hover {
    color: var(--vb-brand-purple, #8b5cf6) !important;
}

.vb-auth-footer-note {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
}

.vb-auth-status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid var(--tblr-border-color-translucent);
}

.vb-auth-status-danger {
    background: rgba(var(--tblr-danger-rgb, 214, 57, 57), 0.08);
    border-color: rgba(var(--tblr-danger-rgb, 214, 57, 57), 0.2);
}

.vb-auth-status-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    font-size: 1.375rem;
    color: var(--tblr-danger, #d63939);
    background: rgba(var(--tblr-danger-rgb, 214, 57, 57), 0.12);
}

.vb-auth-page .btn-primary {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-weight: 600;
}

html[data-bs-theme=dark] .vb-auth-page .btn-primary {
    --bs-btn-bg: var(--vb-brand-purple);
    --bs-btn-border-color: var(--vb-brand-purple);
    --bs-btn-hover-bg: var(--vb-brand-purple-hover);
    --bs-btn-hover-border-color: var(--vb-brand-purple-hover);
    --bs-btn-active-bg: var(--vb-brand-purple-hover);
    --bs-btn-active-border-color: var(--vb-brand-purple-hover);
}

html[data-bs-theme=dark] .vb-auth-page .btn-outline-primary {
    --bs-btn-color: var(--vb-brand-purple);
    --bs-btn-border-color: rgba(139, 92, 246, 0.55);
    --bs-btn-hover-bg: rgba(139, 92, 246, 0.16);
    --bs-btn-hover-border-color: var(--vb-brand-purple);
    --bs-btn-active-bg: rgba(139, 92, 246, 0.24);
    --bs-btn-active-border-color: var(--vb-brand-purple);
}

html[data-bs-theme=dark] .vb-auth-form .form-control {
    background-color: var(--vb-surface-2, #1e1e22);
    border-color: var(--vb-border, #3d3d45);
    color: var(--vb-text, #e8e8ed);
}

html[data-bs-theme=dark] .vb-auth-form .form-control:focus {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15);
}


/* Role Management — Edit / Create / Details dark mode */
html[data-bs-theme=dark] .form-header,
html[data-bs-theme=dark] .form-header h4,
html[data-bs-theme=dark] .form-header p,
html[data-bs-theme=dark] .form-header .opacity-75 {
    color: #111827 !important;
}

html[data-bs-theme=dark] .form-header .btn-light {
    background-color: rgba(17, 24, 39, 0.12) !important;
    border-color: rgba(17, 24, 39, 0.2) !important;
    color: #111827 !important;
}

html[data-bs-theme=dark] .form-header .btn-light:hover {
    background-color: rgba(17, 24, 39, 0.22) !important;
    color: #000 !important;
}

html[data-bs-theme=dark] .role-info-card {
    background-color: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .role-info-card h6,
html[data-bs-theme=dark] .role-info-card .fw-medium,
html[data-bs-theme=dark] .role-info-card small.text-muted {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .role-info-card small.text-muted {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .form-card .form-label {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .validation-summary {
    background-color: rgba(220, 53, 69, 0.14) !important;
    border-color: rgba(220, 53, 69, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-bs-theme=dark] .validation-summary .text-danger,
html[data-bs-theme=dark] .validation-summary ul {
    color: #fca5a5 !important;
}

html[data-bs-theme=dark] .card.bg-light .card-title,
html[data-bs-theme=dark] .card.bg-light .fw-medium,
html[data-bs-theme=dark] .card.bg-light #previewDescription {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .card.border-danger .card-header.bg-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

html[data-bs-theme=dark] .card.border-danger .card-header.bg-danger .card-title {
    color: #fff !important;
}

html[data-bs-theme=dark] .card.border-danger .card-body .text-danger {
    color: #f87171 !important;
}

html[data-bs-theme=dark] .role-stats {
    color: #fff !important;
}

html[data-bs-theme=dark] .role-stats .stat-number,
html[data-bs-theme=dark] .role-stats .stat-label {
    color: #fff !important;
}

html[data-bs-theme=dark] .permission-search {
    background-color: var(--vb-surface-2) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme=dark] .permission-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .permission-item.assigned {
    background-color: rgba(25, 135, 84, 0.18) !important;
    border-left-color: #22c55e !important;
}

html[data-bs-theme=dark] .permission-item.available {
    background-color: var(--vb-surface-2) !important;
    border-left-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-bs-theme=dark] .permission-item strong,
html[data-bs-theme=dark] .permission-item .text-success {
    color: #86efac !important;
}

html[data-bs-theme=dark] .permission-card {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme=dark] .table-borderless td {
    color: var(--vb-text) !important;
}

html[data-bs-theme=dark] .table-borderless .fw-semibold {
    color: var(--vb-muted) !important;
}

html[data-bs-theme=dark] .btn-warning {
    color: #111827 !important;
}

html[data-bs-theme=dark] .btn-warning:hover,
html[data-bs-theme=dark] .btn-warning:focus {
    color: #000 !important;
}

/* Password change notice banner */
.password-change-notice {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 0.5rem;
    color: #fef3c7;
    margin: 0 0 1rem;
    transition: all 0.3s ease-in-out;
}

.password-change-notice .container-xxl {
    max-width: 100%;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.password-change-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.password-change-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

.password-change-notice-icon {
    font-size: 1.35rem;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.password-change-notice-link {
    color: #fde68a;
    font-weight: 600;
    text-decoration: underline;
}

.password-change-notice-link:hover {
    color: #fff;
}

.password-change-notice-dismiss {
    border: 1px solid rgba(253, 230, 138, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fde68a;
    padding: 0.25rem 0.75rem;
    line-height: 1.4;
    border-radius: 0.375rem;
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

.password-change-notice-dismiss:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(253, 230, 138, 0.65);
}

html[data-bs-theme=light] .password-change-notice {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

html[data-bs-theme=light] .password-change-notice-icon {
    color: #ea580c;
}

html[data-bs-theme=light] .password-change-notice-link {
    color: #c2410c;
}

html[data-bs-theme=light] .password-change-notice-dismiss {
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.35);
    background: rgba(234, 88, 12, 0.08);
}

html[data-bs-theme=light] .password-change-notice-dismiss:hover {
    color: #9a3412;
    background: rgba(234, 88, 12, 0.14);
    border-color: rgba(194, 65, 12, 0.5);
}

@media (max-width: 575.98px) {
    .password-change-notice-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .password-change-notice-dismiss {
        align-self: flex-end;
    }
}

/* ===== Tabler shell (Phase 1) ===== */
:root {
    --vb-shell-border: rgba(255, 255, 255, 0.08);
    --vb-shell-bg: #1e293b;
    --vb-shell-header-h: 3.75rem;
}

/* Tabler sets :root { margin-left: calc(100vw - 100%) } for scrollbar compensation —
   that shifts the whole shell and causes left/right gaps after page navigation. */
@media (min-width: 992px) {
    :root,
    :host {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

html {
    scrollbar-gutter: stable;
}

body.layout-fluid {
    background-color: var(--tblr-bg-surface-secondary, #f6f8fb);
}

html[data-bs-theme=dark] body.layout-fluid {
    background-color: var(--bs-body-bg);
}

.page {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: var(--tblr-bg-surface-secondary, #f6f8fb);
}

html[data-bs-theme=dark] .page {
    background-color: var(--bs-body-bg);
}

/*
 * Shell layout (desktop): CSS grid — sidebar col 1, main col 2.
 * No fixed+margin (causes gaps), no .page padding (causes gaps).
 */
@media (min-width: 992px) {
    .page {
        display: grid !important;
        grid-template-columns: var(--vb-sidebar-width) minmax(0, 1fr);
        grid-template-rows: minmax(100vh, auto);
        align-items: start;
        column-gap: 0;
        min-height: 100vh;
    }

    .viralbuzz-sidebar.navbar-vertical.navbar-expand-lg {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        bottom: auto !important;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1040;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        transition: width 0.25s ease;
        box-sizing: border-box;
        border-right: 1px solid var(--vb-shell-border) !important;
        box-shadow: none !important;
        isolation: isolate;
    }

    .page > .page-wrapper,
    .navbar-vertical ~ .page-wrapper,
    .navbar-expand.navbar-vertical ~ .page-wrapper,
    .navbar-expand-sm.navbar-vertical ~ .page-wrapper,
    .navbar-expand-md.navbar-vertical ~ .page-wrapper,
    .navbar-expand-lg.navbar-vertical ~ .page-wrapper,
    .navbar-expand-xl.navbar-vertical ~ .page-wrapper,
    .navbar-expand-xxl.navbar-vertical ~ .page-wrapper {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        flex-direction: column !important;
        flex: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        min-height: 100vh;
        box-sizing: border-box;
    }

    /* Full-width rule under logo + header row */
    .page::after {
        content: "";
        position: fixed;
        top: var(--vb-shell-header-h);
        left: 0;
        right: 0;
        height: 1px;
        background: var(--vb-shell-border);
        z-index: 1050;
        pointer-events: none;
    }
}

.viralbuzz-sidebar.navbar-vertical {
    --tblr-navbar-bg: var(--vb-shell-bg);
    background: var(--vb-shell-bg) !important;
    box-shadow: none !important;
}

.viralbuzz-sidebar.navbar-dark {
    --tblr-navbar-bg: var(--vb-shell-bg);
    background-color: var(--vb-shell-bg) !important;
}

@media (min-width: 992px) {
    .viralbuzz-sidebar.navbar-vertical.navbar-expand-lg::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 100%;
        width: 100vw;
        background: var(--vb-shell-bg);
        pointer-events: none;
    }
}

.viralbuzz-sidebar > .container-fluid,
.viralbuzz-sidebar .sidebar-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: var(--vb-shell-bg) !important;
}

.viralbuzz-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    padding: 0 1rem;
    border-bottom: none;
    min-height: var(--vb-shell-header-h);
    height: var(--vb-shell-header-h);
    background: var(--vb-shell-bg) !important;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .sidebar-brand {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.viralbuzz-sidebar #sidebar-navbar {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    background: var(--vb-shell-bg) !important;
}

@media (min-width: 992px) {
    .viralbuzz-sidebar.navbar-vertical.navbar-expand-lg .navbar-collapse {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

.viralbuzz-sidebar #sidebar-navbar.navbar-collapse {
    display: flex !important;
    flex-direction: column;
}

.viralbuzz-sidebar #sidebar-navbar::-webkit-scrollbar {
    width: 6px;
}

.viralbuzz-sidebar #sidebar-navbar::-webkit-scrollbar-track {
    background: transparent;
}

.viralbuzz-sidebar #sidebar-navbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.page-wrapper {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--tblr-bg-surface-secondary, #f6f8fb);
}

html[data-bs-theme=dark] .page-wrapper {
    background: var(--bs-body-bg);
}

/* Admin shell: full-width content (no container-xl max-width cap) */
body.layout-fluid .page-wrapper .container-fluid,
body.layout-fluid .page-wrapper .container-xl {
    max-width: none !important;
    width: 100%;
}

.page-body {
    flex: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: var(--tblr-page-padding-y, 1.5rem);
    width: 100%;
    background: var(--tblr-bg-surface-secondary, #f6f8fb);
}

html[data-bs-theme=dark] .page-body {
    background: var(--bs-body-bg);
}

.vb-page-content {
    width: 100%;
}

.viralbuzz-topbar {
    --tblr-navbar-bg: var(--vb-shell-bg);
    background-color: var(--vb-shell-bg) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: 1035;
    min-height: var(--vb-shell-header-h);
    height: var(--vb-shell-header-h);
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border-radius: 0 !important;
}

.viralbuzz-topbar > .container-fluid {
    min-height: var(--vb-shell-header-h);
    height: var(--vb-shell-header-h);
    max-width: none !important;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.viralbuzz-topbar .btn-ghost-secondary {
    color: rgba(255, 255, 255, 0.78);
}

.viralbuzz-topbar .btn-ghost-secondary:hover,
.viralbuzz-topbar .btn-ghost-secondary:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.viralbuzz-topbar .ti {
    color: inherit;
}

.viralbuzz-topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: var(--vb-shell-header-h);
    height: var(--vb-shell-header-h);
    flex-wrap: nowrap;
}

.viralbuzz-topbar .topbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.viralbuzz-topbar .topbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.viralbuzz-topbar .btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-bs-theme=dark] .viralbuzz-topbar .btn-ghost-secondary {
    color: rgba(255, 255, 255, 0.78);
}

html[data-bs-theme=dark] .viralbuzz-topbar .btn-ghost-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.viralbuzz-sidebar .menu-title {
    padding: 0.75rem 0.75rem 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    list-style: none;
}

.viralbuzz-sidebar {
    --vb-nav-indicator-w: 3px;
    --vb-nav-indicator-gap: 0.35rem;
    --vb-nav-link-inset: calc(var(--vb-nav-indicator-w) + var(--vb-nav-indicator-gap));
    --vb-nav-chevron-right: 0.75rem;
    --vb-nav-chevron-size: 1rem;
}

.viralbuzz-sidebar.navbar-vertical .navbar-nav .nav-link,
.viralbuzz-sidebar.navbar-vertical .navbar-nav .sub-nav-link {
    border-radius: 0 !important;
}

.viralbuzz-sidebar .nav-link {
    border-radius: 0;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.625rem 0.75rem;
    margin-left: var(--vb-nav-link-inset);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.viralbuzz-sidebar .nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viralbuzz-sidebar .nav-icon .ti {
    font-size: 1.375rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .nav-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .nav-icon .ti {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .viralbuzz-brand {
    justify-content: center;
    width: 100%;
}

.viralbuzz-sidebar .nav-link.menu-arrow {
    position: relative;
    padding-right: calc(var(--vb-nav-chevron-right) + var(--vb-nav-chevron-size) + 0.25rem);
}

.viralbuzz-sidebar .nav-link.menu-arrow .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-sidebar-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #d63939;
    color: #fff !important;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.viralbuzz-sidebar .nav-link.menu-arrow::after {
    content: "\ea61";
    font-family: "tabler-icons";
    position: absolute;
    right: var(--vb-nav-chevron-right);
    top: 50%;
    width: var(--vb-nav-chevron-size);
    height: var(--vb-nav-chevron-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.55;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center center;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.viralbuzz-sidebar .nav-link.menu-arrow:hover::after,
.viralbuzz-sidebar .nav-link.menu-arrow:focus::after {
    opacity: 0.85;
    color: #fff;
}

.viralbuzz-sidebar .nav-link.menu-arrow[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(90deg);
    opacity: 0.85;
    color: #fff;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .menu-arrow::after {
    display: none !important;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar #navbar-nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.viralbuzz-sidebar .nav-link:hover,
.viralbuzz-sidebar .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.viralbuzz-sidebar .nav-link.active,
.viralbuzz-sidebar .nav-item.active > .nav-link,
.viralbuzz-sidebar .nav-item:has(.sub-nav-link.active) > .nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.viralbuzz-sidebar .sub-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.viralbuzz-sidebar .sub-nav-link.active {
    color: #fff;
    background: rgba(66, 153, 225, 0.24);
    border-left-color: var(--vb-green);
    font-weight: 500;
}

.viralbuzz-sidebar .nav-item {
    position: relative;
}

.viralbuzz-sidebar .nav-item.active::before,
.viralbuzz-sidebar .nav-item:has(.sub-nav-link.active)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: var(--vb-nav-indicator-w);
    border-radius: 999px;
    background: #4299e1;
    z-index: 2;
    pointer-events: none;
}

/* Tabler also draws a left border on .nav-item.active::after — disable to avoid double bar */
.viralbuzz-sidebar.navbar-vertical .nav-item.active::after,
.viralbuzz-sidebar.navbar-vertical .nav-item:has(.sub-nav-link.active)::after {
    content: none !important;
    display: none !important;
    border: none !important;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .nav-item.active > .nav-link,
body.vb-sidebar-collapsed .viralbuzz-sidebar .nav-item:has(.sub-nav-link.active) > .nav-link {
    background: rgba(255, 255, 255, 0.12);
}

.viralbuzz-sidebar .nav-item > .collapse {
    margin-top: 0.25rem;
}

.viralbuzz-sidebar .sub-navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    padding-left: 0.5rem;
    margin: 0 0 0.25rem;
}

.viralbuzz-sidebar .sub-nav-link {
    display: block;
    padding: 0.4rem 0.75rem 0.4rem 1.65rem;
    margin-left: var(--vb-nav-link-inset);
    border-radius: 0;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.92rem;
}

.viralbuzz-sidebar #navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem 2.75rem;
    margin: 0;
    width: 100%;
    min-height: 100%;
}

.viralbuzz-sidebar #navbar-nav > li.sidebar-help-start {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.viralbuzz-sidebar .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--vb-shell-bg) !important;
    font-size: 0.72rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.viralbuzz-sidebar .sidebar-footer-label {
    font-weight: 500;
}

.viralbuzz-sidebar .sidebar-footer-version {
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .sidebar-footer {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.62rem;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .sidebar-footer-label {
    display: none;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .viralbuzz-brand-text,
body.vb-sidebar-collapsed .viralbuzz-sidebar .nav-text,
body.vb-sidebar-collapsed .viralbuzz-sidebar .menu-title,
body.vb-sidebar-collapsed .viralbuzz-sidebar .badge {
    display: none !important;
}

body.vb-sidebar-collapsed .viralbuzz-sidebar .sub-navbar-nav {
    display: none !important;
}

.viralbuzz-topbar .app-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 36rem;
}

.viralbuzz-topbar .app-search .form-control {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding-left: 2.25rem;
}

.viralbuzz-topbar .app-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.viralbuzz-topbar .app-search .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
}

html[data-bs-theme=dark] .viralbuzz-topbar .app-search .form-control {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }
}

.viralbuzz-topbar .search-widget-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

.viralbuzz-topbar .topbar-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.12rem;
    transform: none !important;
    color: #fff !important;
    font-weight: 600;
    line-height: 1;
    min-width: 1.125rem;
    padding: 0.2em 0.45em;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .page {
        display: flex !important;
        padding-left: 0 !important;
    }

    .viralbuzz-sidebar.navbar-vertical {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 1040;
        width: var(--vb-sidebar-width) !important;
        transform: translateX(-100%);
        transition: transform 0.25s ease-in-out;
    }

    .page > .page-wrapper,
    .navbar-expand-lg.viralbuzz-sidebar.navbar-vertical ~ .page-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.vb-sidebar-open .viralbuzz-sidebar {
        transform: translateX(0);
    }

    body.vb-sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1035;
    }

    .viralbuzz-topbar {
        border-bottom: 1px solid var(--vb-shell-border) !important;
    }

    .viralbuzz-sidebar .sidebar-brand {
        border-bottom: 1px solid var(--vb-shell-border);
    }
}

/* Dashboard spacing + icon sizing */
.vb-dashboard .vb-dash-section {
    margin-bottom: 2rem;
}

.vb-dashboard .vb-dash-section-ai {
    margin-bottom: 2.5rem !important;
    padding-bottom: 0.5rem;
}

.vb-dashboard .vb-dash-section-ai #aiStatsContainer {
    margin-bottom: 1.5rem !important;
}

.vb-dashboard .vb-dash-section-ai + .row {
    margin-top: 0 !important;
}

.vb-dashboard .vb-dash-section .row.row-cards {
    --tblr-gutter-y: 1rem;
}

.vb-dashboard .card .avatar .ti {
    font-size: 1.25rem;
    line-height: 1;
}

/* Topbar dropdowns */
.viralbuzz-topbar .vb-topbar-dropdown {
    min-width: 20rem;
    max-width: 22rem;
    padding: 0;
    margin-top: 0.5rem !important;
    border: 0;
    box-shadow: var(--tblr-box-shadow-dropdown, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
}

.viralbuzz-topbar .vb-topbar-dropdown .card {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.viralbuzz-topbar .vb-topbar-dropdown .card-header {
    padding: 0.75rem 1rem;
    min-height: auto;
}

.viralbuzz-topbar .vb-topbar-dropdown .card-title {
    font-size: 0.9375rem;
    margin: 0;
}

.viralbuzz-topbar .vb-topbar-dropdown .card-footer {
    padding: 0.75rem 1rem;
}

.viralbuzz-topbar .vb-user-dropdown {
    min-width: 13rem;
    max-width: 16rem;
    padding: 0.35rem 0;
}

.viralbuzz-topbar .vb-user-dropdown .dropdown-header {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    max-width: 15rem;
}

.viralbuzz-topbar .vb-user-dropdown .dropdown-item {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
}

.viralbuzz-topbar .dropdown-menu .list-group-item {
    border-left: 0;
    border-right: 0;
}

/* ApexCharts — readable labels/tooltips in dark mode */
html[data-bs-theme=dark] .apexcharts-text,
html[data-bs-theme=dark] .apexcharts-title-text,
html[data-bs-theme=dark] .apexcharts-legend-text,
html[data-bs-theme=dark] .apexcharts-datalabel,
html[data-bs-theme=dark] .apexcharts-datalabel-label,
html[data-bs-theme=dark] .apexcharts-datalabel-value {
    fill: #e8e8ed !important;
}

html[data-bs-theme=light] .apexcharts-text,
html[data-bs-theme=light] .apexcharts-title-text,
html[data-bs-theme=light] .apexcharts-legend-text,
html[data-bs-theme=light] .apexcharts-datalabel,
html[data-bs-theme=light] .apexcharts-datalabel-label,
html[data-bs-theme=light] .apexcharts-datalabel-value {
    fill: #1f2937 !important;
}

html[data-bs-theme=light] .vb-dashboard .apexcharts-datalabels rect {
    fill: transparent !important;
    stroke: none !important;
}

html[data-bs-theme=dark] .apexcharts-tooltip.apexcharts-theme-light,
html[data-bs-theme=dark] .apexcharts-tooltip.apexcharts-theme-dark {
    background: #252529 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e8e8ed !important;
}

html[data-bs-theme=dark] .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
html[data-bs-theme=dark] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
    background: #1e1e22 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e8e8ed !important;
}

html[data-bs-theme=dark] .apexcharts-tooltip-series-group,
html[data-bs-theme=dark] .apexcharts-tooltip-text,
html[data-bs-theme=dark] .apexcharts-tooltip-y-group {
    color: #e8e8ed !important;
}

.vb-chart-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.vb-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--tblr-body-color, #626976);
}

.vb-chart-legend-item-muted {
    opacity: 0.55;
}

.vb-chart-legend-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.vb-chart-legend-label {
    flex: 1 1 auto;
    min-width: 0;
}

.vb-chart-legend-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* System analytics */
.vb-dashboard .vb-system-metrics .card-body {
    min-height: 6.5rem;
}

.vb-dashboard .vb-system-panel .card-body {
    min-height: 18rem;
}

.vb-dashboard .vb-system-panel .table {
    margin-bottom: 0;
}

.vb-dashboard .vb-system-panel .table th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vb-dashboard .vb-system-panel .vb-service-type {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.vb-status-pill-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: currentColor;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent);
}

.vb-status-pill-success {
    color: var(--tblr-green, #2fb344);
    background: color-mix(in srgb, var(--tblr-green, #2fb344) 14%, transparent);
    border-color: color-mix(in srgb, var(--tblr-green, #2fb344) 28%, transparent);
}

.vb-status-pill-danger {
    color: var(--tblr-red, #d63939);
    background: color-mix(in srgb, var(--tblr-red, #d63939) 14%, transparent);
    border-color: color-mix(in srgb, var(--tblr-red, #d63939) 28%, transparent);
}

.vb-status-pill-warning {
    color: var(--tblr-yellow, #f59f00);
    background: color-mix(in srgb, var(--tblr-yellow, #f59f00) 16%, transparent);
    border-color: color-mix(in srgb, var(--tblr-yellow, #f59f00) 30%, transparent);
}

html[data-bs-theme=dark] .vb-status-pill-success {
    color: #4ade80;
    background: color-mix(in srgb, #4ade80 16%, transparent);
    border-color: color-mix(in srgb, #4ade80 32%, transparent);
}

html[data-bs-theme=dark] .vb-status-pill-danger {
    color: #f87171;
    background: color-mix(in srgb, #f87171 16%, transparent);
    border-color: color-mix(in srgb, #f87171 32%, transparent);
}

html[data-bs-theme=dark] .vb-status-pill-warning {
    color: #fbbf24;
    background: color-mix(in srgb, #fbbf24 16%, transparent);
    border-color: color-mix(in srgb, #fbbf24 32%, transparent);
}

/* Admin table toolbar (grid styles live in viralbuzz-gridjs.css) */
.vb-table-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.vb-table-search-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.vb-table-search-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: var(--tblr-font-weight-normal, 400);
    color: var(--tblr-secondary);
    white-space: nowrap;
    line-height: 1;
}

.vb-table-toolbar-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vb-table-toolbar-btn,
.vb-table-toolbar-row input.gridjs-input {
    height: 2.375rem !important;
    min-height: 2.375rem !important;
    padding: 0 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--tblr-border-radius, 0.375rem) !important;
}

.vb-table-toolbar-btn {
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.vb-table-toolbar-btn:active {
    box-shadow: inset 0 1px 0 rgba(27, 31, 36, 0.15) !important;
}

.vb-table-toolbar-btn.btn-vb-green {
    color: var(--vb-brand-green-text) !important;
    background-color: var(--vb-brand-green-bright) !important;
    border-color: rgba(5, 46, 22, 0.14) !important;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-bs-theme=light] .vb-table-toolbar-btn.btn-vb-green {
    color: #fff !important;
    background-color: #1a7f37 !important;
    border-color: rgba(27, 31, 36, 0.15) !important;
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.vb-table-toolbar-btn.btn-vb-green:hover,
.vb-table-toolbar-btn.btn-vb-green:focus-visible {
    color: var(--vb-brand-green-text) !important;
    background-color: var(--vb-brand-green-hover) !important;
    border-color: rgba(5, 46, 22, 0.2) !important;
}

html[data-bs-theme=light] .vb-table-toolbar-btn.btn-vb-green:hover,
html[data-bs-theme=light] .vb-table-toolbar-btn.btn-vb-green:focus-visible {
    color: #fff !important;
    background-color: #2da44e !important;
    border-color: rgba(27, 31, 36, 0.2) !important;
}

.vb-table-toolbar-btn.btn-outline-secondary,
.vb-table-toolbar-row .btn-outline-secondary {
    color: var(--tblr-body-color) !important;
    border-color: var(--tblr-border-color) !important;
    background-color: transparent !important;
}

.vb-table-toolbar-btn.btn-outline-secondary:hover,
.vb-table-toolbar-btn.btn-outline-secondary:focus-visible,
.vb-table-toolbar-row .btn-outline-secondary:hover,
.vb-table-toolbar-row .btn-outline-secondary:focus-visible {
    color: var(--tblr-body-color) !important;
    background-color: var(--tblr-hover-bg, rgba(0, 0, 0, 0.04)) !important;
    border-color: var(--tblr-border-color) !important;
}

html[data-bs-theme=light] .vb-table-toolbar-btn.btn-outline-secondary,
html[data-bs-theme=light] .vb-table-toolbar-row .btn-outline-secondary {
    color: #24292f !important;
    background-color: #f6f8fa !important;
    border-color: rgba(27, 31, 36, 0.15) !important;
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-bs-theme=light] .vb-table-toolbar-btn.btn-outline-secondary:hover,
html[data-bs-theme=light] .vb-table-toolbar-btn.btn-outline-secondary:focus-visible,
html[data-bs-theme=light] .vb-table-toolbar-row .btn-outline-secondary:hover,
html[data-bs-theme=light] .vb-table-toolbar-row .btn-outline-secondary:focus-visible {
    color: #24292f !important;
    background-color: #f3f4f6 !important;
    border-color: rgba(27, 31, 36, 0.2) !important;
}

html[data-bs-theme=dark] .vb-table-toolbar-btn.btn-outline-secondary,
html[data-bs-theme=dark] .vb-table-toolbar-row .btn-outline-secondary {
    color: var(--tblr-body-color) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-bs-theme=dark] .vb-table-toolbar-btn.btn-outline-secondary:hover,
html[data-bs-theme=dark] .vb-table-toolbar-btn.btn-outline-secondary:focus-visible,
html[data-bs-theme=dark] .vb-table-toolbar-row .btn-outline-secondary:hover,
html[data-bs-theme=dark] .vb-table-toolbar-row .btn-outline-secondary:focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Audit log + Comments filters — unified toolbar chips + form controls */
.vb-audit-log-page .vb-audit-filters,
.vb-comments-admin-page .vb-audit-filters {
    padding: 0;
}

.vb-audit-log-page .vb-audit-filter-label,
.vb-comments-admin-page .vb-audit-filter-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    margin-bottom: 0.5rem;
}

.vb-audit-log-page .vb-audit-filter-btn,
.vb-comments-admin-page .vb-audit-filter-btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    min-height: 2.125rem;
}

.vb-audit-log-page .vb-audit-filter-btn.is-active,
.vb-comments-admin-page .vb-audit-filter-btn.is-active {
    background-color: var(--tblr-bg-surface-secondary) !important;
    border-color: var(--vb-brand-purple) !important;
    color: var(--tblr-body-color) !important;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

html[data-bs-theme=light] .vb-audit-log-page .vb-audit-filter-btn.is-active,
html[data-bs-theme=light] .vb-comments-admin-page .vb-audit-filter-btn.is-active {
    background-color: #f3f4f6 !important;
    border-color: #7c3aed !important;
    color: #24292f !important;
}

.vb-audit-log-page .vb-audit-filter-control {
    min-height: 2.125rem;
    font-size: 0.875rem;
}

.vb-audit-log-page .audit-user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.vb-audit-log-page .audit-user-cell .min-w-0 {
    min-width: 0;
}

.vb-audit-log-page .audit-entity-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tblr-body-color);
}

.vb-audit-log-page .audit-timestamp {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    white-space: nowrap;
}

.vb-audit-log-page .audit-stat-card .subheader {
    font-size: 0.6875rem;
}

.vb-audit-log-page .audit-stat-card .h1 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.vb-audit-log-page .audit-stat-card .avatar {
    width: 2.25rem;
    height: 2.25rem;
}

.vb-audit-log-page .audit-stat-card .avatar .ti {
    font-size: 1.125rem;
}

.vb-entity-logs-page .vb-entity-header-card .entity-breadcrumb {
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
}

.vb-table-toolbar-search .gridjs-search::before {
    content: none !important;
    display: none !important;
}

.vb-entity-logs-page .vb-entity-activity-timeline {
    max-height: 22rem;
    overflow-y: auto;
    overflow-x: visible;
    padding-left: 0.625rem;
    margin-left: 0.125rem;
}

.vb-entity-logs-page .vb-entity-timeline-item {
    border-left: 2px solid var(--tblr-border-color, rgba(0, 0, 0, 0.08));
    padding-left: 1.125rem;
    position: relative;
    margin-bottom: 1.25rem;
}

.vb-entity-logs-page .vb-entity-timeline-item::before {
    content: '';
    position: absolute;
    left: -0.3125rem;
    top: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--tblr-secondary, #6c757d);
    box-shadow: 0 0 0 2px var(--tblr-bg-surface, var(--tblr-card-bg, #fff));
}

.vb-entity-logs-page .vb-entity-distribution-bar {
    height: 6px;
}

#bulkActions .btn-danger.vb-table-toolbar-btn {
    color: #fff !important;
    background-color: var(--tblr-danger, #d63939) !important;
    border: 1px solid rgba(214, 57, 57, 0.35) !important;
    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

#bulkActions .btn-danger.vb-table-toolbar-btn:hover,
#bulkActions .btn-danger.vb-table-toolbar-btn:focus-visible {
    color: #fff !important;
    background-color: #c53030 !important;
    border-color: rgba(214, 57, 57, 0.45) !important;
}

.vb-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.vb-table-toolbar-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vb-table-toolbar-search {
    flex: 0 1 14rem;
    width: 14rem;
    max-width: 14rem;
    margin-left: 0;
}

/* Static admin tables (non-Grid.js pages) */
.vb-admin-static-table {
    min-height: 12rem;
    overflow: visible;
    padding-bottom: 2rem;
}

.vb-admin-static-table .table-responsive {
    overflow: visible;
}

.vb-dashboard .card:has(.vb-admin-table),
.vb-dashboard .card:has(.vb-admin-static-table) {
    overflow: visible;
}

.vb-admin-static-table .vb-col-actions {
    width: 8.75rem;
    min-width: 8.75rem;
    max-width: 8.75rem;
    text-align: center;
    white-space: nowrap;
}

.vb-admin-static-table .vb-col-actions .vb-table-actions-dropdown {
    display: inline-flex;
    justify-content: center;
}

.vb-admin-static-table .vb-col-actions .dropdown-toggle.vb-table-toolbar-btn {
    width: auto;
    min-width: 7.75rem;
    max-width: 7.75rem;
}

.vb-admin-static-table .table.table-mobile-lg td[data-label]:before {
    display: block;
    margin-bottom: 0.4375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

@media (max-width: 991.98px) {
    .vb-admin-static-table .table-mobile-lg tbody tr {
        padding: 0.25rem 0;
    }

    .vb-admin-static-table .table-mobile-lg td {
        padding: 0.625rem 1rem !important;
    }
}

.vb-table-select-group .btn {
    font-size: 0.875rem;
}

.vb-table-bulk-actions {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--tblr-border-color, rgba(98, 105, 118, 0.16));
    border-radius: var(--tblr-border-radius, 0.375rem);
    background: var(--tblr-bg-surface-secondary, #f8fafc);
}

.vb-table-bulk-actions.show {
    display: flex;
}

html[data-bs-theme=dark] .vb-table-bulk-actions {
    background: var(--vb-surface-2);
    border-color: rgba(255, 255, 255, 0.1);
}

.vb-table-bulk-actions .selected-count {
    font-weight: 600;
    font-size: 0.875rem;
}

html[data-bs-theme=light] .vb-table-toolbar .btn-soft-primary {
    color: #066fd1;
    background-color: rgba(6, 111, 209, 0.08);
    border: 1px solid rgba(6, 111, 209, 0.14);
}

html[data-bs-theme=light] .vb-table-toolbar .btn-soft-primary:hover,
html[data-bs-theme=light] .vb-table-toolbar .btn-soft-primary:focus-visible {
    color: #0559a8;
    background-color: rgba(6, 111, 209, 0.14);
    border-color: rgba(6, 111, 209, 0.22);
}

html[data-bs-theme=light] .vb-table-actions .btn-outline-secondary {
    color: #374151;
    background-color: #fff;
    border-color: #d1d5db;
}

html[data-bs-theme=light] .vb-table-actions .btn-outline-secondary:hover,
html[data-bs-theme=light] .vb-table-actions .btn-outline-secondary:focus-visible {
    color: #111827;
    background-color: #f9fafb;
    border-color: #9ca3af;
}

html[data-bs-theme=light] .vb-admin-table .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    background-color: var(--vb-brand-purple) !important;
    border-color: var(--vb-brand-purple) !important;
    color: #fff !important;
}

html[data-bs-theme=light] .spinner-border.text-primary {
    color: var(--vb-brand-purple) !important;
}

html[data-bs-theme=light] .progress-bar.bg-primary {
    background-color: var(--vb-brand-purple) !important;
}

html[data-bs-theme=light] .vb-table-toolbar-search input.gridjs-input {
    background-color: #fff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
    font-size: 0.875rem;
}

/* ── User admin pages & modals ── */
.vb-form-section {
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
}

.vb-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tblr-body-color, #1f2937);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}

.vb-form-section-title .ti {
    font-size: 1rem;
    opacity: 0.75;
}

.vb-form-section-title small,
.vb-form-section-title .text-muted {
    font-size: 0.8125rem;
    font-weight: 400;
}

.vb-form-section .form-check-label {
    font-size: 0.875rem;
}

.vb-user-admin-page .form-label,
.vb-user-admin-page .card .form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.vb-user-admin-page .card-title {
    font-size: 1rem;
    font-weight: 600;
}

.vb-user-profile-card {
    margin-bottom: 1.5rem;
}

.vb-user-profile-card .card-body {
    padding: 1.5rem;
}

.vb-user-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tblr-border-color, #e6e7e9);
}

.vb-user-profile-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border: 3px solid var(--tblr-border-color, #e6e7e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
}

.vb-user-detail-block {
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    height: 100%;
}

.vb-user-detail-block h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.vb-user-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tblr-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.125rem;
}

.vb-user-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.vb-user-admin-page .badge.bg-secondary-lt,
.vb-user-admin-page .role-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.vb-user-admin-page .permission-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.vb-audit-log-item {
    border-left: 3px solid var(--tblr-success, #2fb344);
    padding: 0.75rem 0 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 0.375rem 0.375rem 0;
    background: rgba(47, 179, 68, 0.05);
}

.vb-audit-log-item.warning {
    border-left-color: var(--tblr-warning, #f59f00);
    background: rgba(245, 159, 0, 0.05);
}

.vb-audit-log-item.danger {
    border-left-color: var(--tblr-danger, #d63939);
    background: rgba(214, 57, 57, 0.05);
}

.vb-role-card {
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
}

.vb-role-card.assigned {
    border-color: rgba(47, 179, 68, 0.45);
    background: rgba(47, 179, 68, 0.04);
}

.vb-role-card.available {
    cursor: pointer;
}

.vb-role-card.available:hover {
    border-color: var(--tblr-primary, #206bc4);
    box-shadow: 0 2px 8px rgba(32, 107, 196, 0.1);
}

.vb-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.vb-ban-warning-card {
    border: 1px solid rgba(245, 159, 0, 0.45);
    background: rgba(245, 159, 0, 0.06);
}

.vb-ban-form-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}

.vb-quick-reason {
    cursor: pointer;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    padding: 0.875rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: var(--tblr-bg-surface, #fff);
}

.vb-quick-reason:hover {
    border-color: var(--tblr-primary, #206bc4);
    background: rgba(32, 107, 196, 0.04);
}

.vb-quick-reason.selected {
    border-color: var(--tblr-success, #2fb344);
    background: rgba(47, 179, 68, 0.06);
}

.vb-quick-reason .fw-medium {
    font-size: 0.875rem;
}

.vb-quick-reason small {
    font-size: 0.8125rem;
}

/* ── Role details page ── */
.vb-permission-list {
    max-height: 400px;
    overflow-y: auto;
}

.vb-permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.375rem;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.375rem;
    background: var(--tblr-bg-surface, #fff);
    font-size: 0.875rem;
}

.vb-permission-item:last-child {
    margin-bottom: 0;
}

.vb-permission-item.assigned {
    border-color: rgba(47, 179, 68, 0.35);
    background: rgba(47, 179, 68, 0.05);
}

.vb-permission-item .permission-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.vb-permission-item .permission-desc {
    font-size: 0.8125rem;
    color: var(--tblr-secondary, #6c757d);
}

/* ── Profile pages (/Profile/*) ── */
.vb-profile-page .vb-profile-settings-nav .nav-link {
    border-radius: 0;
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
    color: var(--tblr-body-color, #1f2937);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.875rem 1.25rem;
}

.vb-profile-page .vb-profile-settings-nav .nav-link:last-child {
    border-bottom: 0;
}

.vb-profile-page .vb-profile-settings-nav .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--tblr-primary, #206bc4);
    border-left: 3px solid var(--tblr-primary, #206bc4);
}

.vb-profile-page .vb-profile-settings-nav .nav-link:hover:not(.active) {
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
}

.vb-profile-page .vb-profile-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}

.vb-profile-page .vb-profile-stat-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vb-profile-page .vb-profile-stat-row:first-child {
    padding-top: 0;
}

.vb-profile-page .vb-profile-skill-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.vb-profile-page .vb-profile-article-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 5.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease;
    height: 100%;
}

.vb-profile-page .vb-profile-article-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.vb-profile-page .vb-profile-article-thumb {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
}

.vb-profile-page .vb-profile-article-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    color: var(--tblr-secondary, #6c757d);
}

.vb-profile-page .vb-profile-article-thumb-placeholder .ti {
    font-size: 1.25rem;
}

.vb-profile-page .vb-profile-article-body {
    flex: 1;
    min-width: 0;
}

.vb-profile-page .vb-profile-article-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tblr-body-color, #1f2937);
    margin-bottom: 0.375rem;
}

.vb-profile-page .vb-profile-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.vb-profile-page .vb-profile-article-date {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--tblr-secondary, #6c757d);
    white-space: nowrap;
}

.vb-profile-page .vb-profile-article-badge {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.vb-profile-page .badge.badge-soft-primary,
.vb-profile-page .badge.badge-soft-success,
.vb-profile-page .badge.badge-soft-info,
.vb-profile-page .badge.badge-soft-warning,
.vb-profile-page .badge.badge-soft-danger,
.vb-profile-page .badge.badge-soft-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.vb-profile-page .text-secondary,
.vb-profile-page .card-subtitle,
.vb-profile-page .text-muted {
    font-size: 0.875rem;
}

.vb-profile-page small,
.vb-profile-page .form-text {
    font-size: 0.8125rem;
}

.vb-profile-page .vb-user-detail-value {
    font-size: 0.875rem;
    line-height: 1.45;
}

.vb-profile-page .vb-user-detail-label {
    font-size: 0.75rem;
}

.vb-profile-page .card .small,
.vb-profile-page .card-body .small {
    font-size: 0.8125rem !important;
}

.vb-profile-page .h3.mb-0 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.vb-profile-page .vb-profile-picture-card .vb-user-profile-avatar,
.vb-profile-page .vb-profile-picture-card .vb-user-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.vb-profile-page .card-header .card-subtitle {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.vb-shape-preview {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--tblr-secondary, #6b728d);
}

.vb-shape-preview svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
}

.vb-shape-preview svg[width],
.vb-shape-preview svg[height] {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.vb-shape-preview > * {
    max-width: 1.25rem;
    max-height: 1.25rem;
}

.vb-shape-preview .ti,
.vb-shape-preview i {
    font-size: 1.25rem !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vb-shape-preview img {
    max-width: 1.25rem;
    max-height: 1.25rem;
    object-fit: contain;
}

.vb-meme-card-thumb {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.vb-watermark-preview-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
    border: 1px dashed var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
}

.vb-watermark-preview-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.vb-meme-settings-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vb-meme-settings-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}

.vb-profile-page .vb-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vb-log-bulk-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
    border-radius: 0.5rem;
}

.vb-log-viewer-content {
    max-height: 60vh;
    overflow: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.vb-log-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: flex-start;
}

.vb-log-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

.vb-log-line.vb-log-line-new {
    animation: vb-log-highlight 2s ease-out;
    box-shadow: inset 3px 0 0 #4ec9b0;
}

@keyframes vb-log-highlight {
    0% {
        background: rgba(78, 201, 176, 0.28);
    }
    100% {
        background: transparent;
    }
}

.vb-log-live-pulse {
    animation: vb-log-live-badge 0.7s ease-out;
}

@keyframes vb-log-live-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 179, 68, 0.45);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(47, 179, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

.vb-log-meta {
    color: #c586c0;
    font-size: 0.75rem;
    white-space: nowrap;
    min-width: 4.5rem;
}

.vb-log-line-hidden {
    display: none !important;
}

.vb-log-line-no {
    color: #858585;
    min-width: 3rem;
    text-align: right;
    user-select: none;
}

.vb-log-ts {
    color: #9cdcfe;
    white-space: nowrap;
}

.vb-log-level {
    font-weight: 700;
    min-width: 2.5rem;
}

.vb-log-level-info { color: #4ec9b0; }
.vb-log-level-warn { color: #dcdcaa; }
.vb-log-level-error { color: #f48771; }
.vb-log-level-debug { color: #858585; }
.vb-log-level-default { color: #c586c0; }

.vb-log-message {
    flex: 1;
    word-break: break-word;
}

.vb-log-viewer-modal .modal-body {
    background: #1e1e1e;
}

.vb-log-viewer-toolbar {
    background: var(--tblr-bg-surface, #fff);
}
