:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #1e40af;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #f8fafc;
    --body-bg: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --navbar-h: 64px;
    --sidebar-w: 260px;
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Login ── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--sidebar-bg);
}

.login-brand-panel {
    flex: 1;
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    padding: 3rem;
    color: #fff;
}

@media (min-width: 992px) {
    .login-brand-panel { display: flex; flex-direction: column; justify-content: center; }
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-brand-content { position: relative; z-index: 1; max-width: 420px; }

.login-brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.login-brand-panel h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.login-brand-panel p {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.7;
}

.login-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-feature i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--body-bg);
}

.login-card {
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.login-card .card-body { padding: 2.5rem !important; }

.login-mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .login-mobile-logo { display: none; }
}

.login-mobile-logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* ── App Shell ── */
.app-topbar {
    height: var(--navbar-h);
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1030;
}

.app-topbar .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.app-topbar .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-info { display: none; }

@media (min-width: 576px) {
    .user-info { display: block; }
}

.user-info .user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.2;
}

.user-info .user-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

/* ── Sidebar ── */
.app-sidebar {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--navbar-h));
    background: var(--sidebar-bg);
    z-index: 1020;
    overflow-y: auto;
    padding: 1.25rem 0.75rem;
}

.app-sidebar-mobile.offcanvas {
    background: var(--sidebar-bg);
    width: var(--sidebar-w);
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h));
    border-right: none;
}

.app-sidebar-mobile .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.app-content-wrapper {
    min-height: calc(100vh - var(--navbar-h));
}

@media (min-width: 992px) {
    .app-content-wrapper {
        margin-left: var(--sidebar-w);
    }
}

.sidebar-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 0.5rem 0.75rem 0.75rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: var(--sidebar-text);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.8;
}

.sidebar-nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.sidebar-nav-link.active i { opacity: 1; }

/* ── Main Content ── */
.app-main {
    padding: 1.5rem;
    max-width: 100%;
}

.section-panel { display: none; }
.section-panel.active { display: block; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* ── Stats Cards ── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.total { background: #dbeafe; color: #2563eb; }
.stat-icon.on { background: #d1fae5; color: #059669; }
.stat-icon.off { background: #fee2e2; color: #dc2626; }
.stat-icon.snap { background: #fef3c7; color: #d97706; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ── Filter Panel ── */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-panel .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.filter-panel .form-control,
.filter-panel .form-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── VM Cards ── */
.vm-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vm-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.vm-card.status-on { border-top: 3px solid var(--success); }
.vm-card.status-off { border-top: 3px solid var(--danger); }
.vm-card.status-suspended { border-top: 3px solid var(--warning); }
.vm-card.status-unknown { border-top: 3px solid var(--text-muted); }

.vm-card-header {
    padding: 1.15rem 1.15rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.vm-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vm-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.on { background: #d1fae5; color: #047857; }
.status-badge.on .status-dot { background: var(--success); }
.status-badge.off { background: #fee2e2; color: #b91c1c; }
.status-badge.off .status-dot { background: var(--danger); }
.status-badge.suspended { background: #fef3c7; color: #b45309; }
.status-badge.suspended .status-dot { background: var(--warning); }

.vm-card-body { padding: 0 1.15rem 1rem; flex: 1; }

.vm-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.vm-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--body-bg);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.vm-spec i { font-size: 0.7rem; opacity: 0.7; }

.metric-item { margin-bottom: 0.65rem; }

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.metric-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.metric-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-cpu { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.metric-ram { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.metric-disk { background: linear-gradient(90deg, #f59e0b, #d97706); }

.snapshot-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.snapshot-empty {
    background: var(--body-bg);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.vm-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tools-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.tools-badge i { font-size: 0.65rem; }

.tools-ok { background: #d1fae5; color: #047857; }
.tools-missing { background: #fee2e2; color: #b91c1c; }
.tools-warn { background: #fef3c7; color: #b45309; }
.tools-unknown { background: #f1f5f9; color: #64748b; }

.btn-install-tools {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-install-tools:hover {
    background: var(--primary);
    color: #fff;
}

.vm-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.75rem 1.15rem 1.15rem;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    flex-shrink: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.vm-action-slot {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.vm-power-dropdown {
    display: flex;
    width: 100%;
    min-width: 0;
}

.vm-card-header,
.vm-card-body { overflow: hidden; }

.vm-power-dropdown .dropdown-toggle::after { display: none; }

.vm-power-dropdown .dropdown-toggle,
.vm-action-slot > .vm-action-btn {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.power-menu {
    min-width: 280px;
    padding: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
}

.power-menu-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 1rem 0.35rem;
    list-style: none;
}

.power-menu-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.35rem 1rem 0.5rem;
    list-style: none;
}

.power-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--text);
    transition: var(--transition);
}

.power-menu-item:hover:not(:disabled) { background: #f8fafc; }

.power-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.power-menu-item .pm-icon {
    width: 22px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.power-menu-item .pm-text { flex: 1; }

.power-menu-item .pm-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pm-on .pm-icon { color: var(--success); }
.pm-off .pm-icon, .pm-hard .pm-icon { color: var(--danger); }
.pm-suspend .pm-icon { color: var(--warning); }
.pm-reset .pm-icon { color: var(--danger); }
.pm-guest .pm-icon { color: var(--info); }

.vm-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.25rem;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition);
}

.vm-action-btn span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-action-btn i { font-size: 0.95rem; flex-shrink: 0; }

.vm-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.vm-action-btn.action-power:hover { border-color: #f59e0b; color: #b45309; background: #fef3c7; }
.vm-action-btn.action-snapshot:hover { border-color: var(--warning); color: #b45309; background: #fef3c7; }
.vm-action-btn.action-console:hover { border-color: var(--info); color: var(--info); background: #dbeafe; }

/* ── Data Tables ── */
.data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.data-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.data-card-header i { color: var(--primary); }

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

.table-modern {
    margin: 0;
    font-size: 0.875rem;
}

.table-modern thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.85rem 1.25rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.85rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table-modern tbody tr:hover { background: #f8fafc; }

.table-modern tbody tr:last-child td { border-bottom: none; }

.badge-role-admin {
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-role-user {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-active {
    background: #d1fae5;
    color: #047857;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-inactive {
    background: #fef3c7;
    color: #b45309;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-count {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--border);
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover { background: var(--body-bg); color: var(--text); }
.btn-icon.edit:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.btn-icon.delete:hover { color: var(--danger); border-color: #fecaca; background: #fef2f2; }

/* ── Modals ── */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ── Forms ── */
.form-control, .form-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text);
}

/* ── Toast ── */
.toast-container { z-index: 9999; }

.toast {
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    font-size: 0.875rem;
}

/* ── Loading & Empty ── */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.loading-state .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.vm-count-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ── Console page ── */
.console-toolbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
}

.power-on { color: var(--success); }
.power-off { color: var(--danger); }
.power-suspended { color: var(--warning); }
