/* ============================================================================
   LAYOUT - Sidebar + Topbar (2026)
   ============================================================================ */

/* ========== APP SHELL ========== */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    transition: grid-template-columns var(--duration-normal) var(--ease-out);
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: var(--z-sticky);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.brand:hover { color: var(--text-primary); }

.brand-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.brand-name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
}

.sidebar-collapse-btn {
    background: transparent;
    border: none;
    padding: var(--space-2);
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-collapse-btn i {
    width: 18px;
    height: 18px;
}

/* ========== SIDEBAR NAV ========== */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.nav-section { display: flex; flex-direction: column; gap: var(--space-1); }

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-1);
    transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    min-height: 40px;
}

.nav-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-item span {
    transition: opacity var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ─── Live-count badges on nav items ───────────────────────── */
.nav-badge {
    flex-shrink: 0;
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 99px;
    line-height: 1.4;
    min-width: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: opacity var(--duration-fast);
}
.nav-badge-danger {
    background: var(--danger-500, #ef4444);
    color: white;
    animation: nav-badge-pulse 2s ease-in-out infinite;
}
.nav-badge-warn {
    background: var(--warning-100, #fef3c7);
    color: var(--warning-700, #b45309);
}
.nav-badge-info {
    background: var(--primary-100, #e0e7ff);
    color: var(--primary-700, #4338ca);
}
.nav-badge-muted {
    background: var(--bg-subtle, #f3f4f6);
    color: var(--text-tertiary, #6b7280);
}
@keyframes nav-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.05); }
}

/* Hide badges when sidebar collapsed */
body.sidebar-collapsed .nav-badge { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Command Palette (Ctrl+K)
   ═══════════════════════════════════════════════════════════════════ */
#cmd-palette {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
#cmd-palette.is-open { display: flex; animation: cmd-fade 0.15s ease-out; }
@keyframes cmd-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cmd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.cmd-box {
    position: relative;
    width: 92%;
    max-width: 640px;
    background: var(--card-bg, white);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: cmd-pop 0.18s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}
@keyframes cmd-pop {
    from { transform: translateY(-16px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.cmd-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.cmd-search-icon {
    flex-shrink: 0;
    color: var(--text-tertiary, #6b7280);
}
.cmd-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary, #111827);
    font-family: inherit;
}
.cmd-input::placeholder { color: var(--text-tertiary, #9ca3af); }
.cmd-kbd, .cmd-footer kbd {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--bg-subtle, #f3f4f6);
    color: var(--text-tertiary, #6b7280);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 4px;
    border-bottom-width: 2px;
    line-height: 1.4;
}
.cmd-results {
    max-height: 55vh;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.cmd-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary, #6b7280);
    padding: 0.65rem 1rem 0.3rem 1rem;
}
.cmd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: background 0.08s;
}
.cmd-item.is-selected {
    background: var(--primary-50, #eef2ff);
}
.cmd-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle, #f3f4f6);
    border-radius: 8px;
    color: var(--text-secondary, #4b5563);
}
.cmd-item.is-selected .cmd-item-icon {
    background: var(--primary-100, #e0e7ff);
    color: var(--primary-700, #4338ca);
}
.cmd-item-icon i { width: 16px; height: 16px; }
.cmd-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cmd-item-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cmd-item-hint {
    font-size: 11px;
    color: var(--text-tertiary, #9ca3af);
}
.cmd-item-enter {
    opacity: 0;
    color: var(--text-tertiary, #9ca3af);
    font-size: 14px;
    transition: opacity 0.1s;
}
.cmd-item.is-selected .cmd-item-enter { opacity: 1; }
.cmd-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-tertiary, #6b7280);
    font-size: 14px;
}
.cmd-footer {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--border, #e5e7eb);
    background: var(--bg-subtle, #f9fafb);
    font-size: 11px;
    color: var(--text-tertiary, #6b7280);
}
.cmd-footer kbd { margin-right: 0.25rem; }

/* Dark mode tweaks */
[data-theme="dark"] .cmd-box {
    background: #1f2937;
    border-color: #374151;
}
[data-theme="dark"] .cmd-search { border-color: #374151; }
[data-theme="dark"] .cmd-footer {
    background: #111827;
    border-color: #374151;
}

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

.nav-item:hover i { transform: scale(1.1); }

.nav-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-300);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 20px;
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

.nav-external-icon {
    width: 12px !important;
    height: 12px !important;
    margin-left: auto;
    color: var(--text-tertiary);
}

/* ========== SIDEBAR FOOTER (User Card) ========== */
.sidebar-footer {
    flex-shrink: 0;
    padding: var(--space-3);
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: background var(--duration-fast) var(--ease-out);
}

.user-card:hover { background: var(--bg-hover); }

.user-card .avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.logout-form { margin: 0; }

.logout-btn {
    background: transparent;
    border: none;
    padding: var(--space-2);
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.logout-btn i { width: 16px; height: 16px; }

.logout-btn:hover {
    background: var(--danger-100);
    color: var(--danger-600);
}

[data-theme="dark"] .logout-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
}

/* ========== COLLAPSED SIDEBAR ========== */
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .nav-external-icon,
body.sidebar-collapsed .user-info,
body.sidebar-collapsed .logout-form {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-collapse-btn,
body.sidebar-collapsed .brand {
    justify-content: center;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: var(--space-2);
}

body.sidebar-collapsed .user-card {
    justify-content: center;
}

/* ========== TOPBAR ========== */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
}

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

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-spring);
    position: relative;
}

.icon-btn i {
    width: 20px;
    height: 20px;
}

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

.sidebar-mobile-btn { display: none; }

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

.notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger-500);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

.live-time {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    padding: 0 var(--space-3);
    font-variant-numeric: tabular-nums;
}

/* ========== SEARCH BOX ========== */
.search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-box i {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: var(--space-2) var(--space-10) var(--space-2) 2.25rem;
    font-size: var(--text-sm);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.search-box input:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.search-kbd {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: var(--font-semibold);
    color: var(--text-tertiary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-body);
}

.page-main {
    flex: 1;
    padding: var(--space-6);
    max-width: var(--max-content-width);
    width: 100%;
    margin: 0 auto;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.page-title-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.page-title .icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-100);
    color: var(--primary-700);
}

[data-theme="dark"] .page-title .icon-wrap {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-300);
}

.page-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-normal);
    margin-left: 3.25rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.breadcrumbs a {
    color: var(--text-tertiary);
    transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumbs a:hover { color: var(--text-primary); }

.breadcrumbs .separator {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

/* ========== BACKDROP (Mobile sidebar) ========== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sticky) - 1);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

body.sidebar-mobile-open .sidebar-backdrop {
    display: block;
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform var(--duration-normal) var(--ease-out);
        box-shadow: var(--shadow-xl);
    }

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

    .sidebar-mobile-btn { display: flex; }
    .sidebar-desktop-btn { display: none; }
    .sidebar-collapse-btn { display: none; }

    .search-box { width: auto; flex: 1; max-width: 240px; }
    .live-time { display: none; }
}

@media (max-width: 640px) {
    .page-main { padding: var(--space-4); }
    .search-box { display: none; }
    .topbar { padding: 0 var(--space-4); }
    .page-title { font-size: var(--text-2xl); }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-actions { flex-wrap: wrap; }
}

/* ========== STAT CARDS (Bento) ========== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.stat-card-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.stat-card:hover .stat-card-gradient { opacity: 0.06; }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.stat-icon.primary { background: var(--primary-100); color: var(--primary-700); }
.stat-icon.success { background: var(--success-100); color: var(--success-700); }
.stat-icon.warning { background: var(--warning-100); color: var(--warning-700); }
.stat-icon.danger { background: var(--danger-100); color: var(--danger-700); }
.stat-icon.info { background: var(--info-100); color: var(--info-700); }
.stat-icon.ai { background: var(--ai-100); color: var(--ai-700); }

[data-theme="dark"] .stat-icon.primary { background: rgba(99, 102, 241, 0.15); color: var(--primary-300); }
[data-theme="dark"] .stat-icon.success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
[data-theme="dark"] .stat-icon.warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
[data-theme="dark"] .stat-icon.danger { background: rgba(244, 63, 94, 0.15); color: #fda4af; }
[data-theme="dark"] .stat-icon.info { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; }
[data-theme="dark"] .stat-icon.ai { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; }

.stat-icon i { width: 22px; height: 22px; }

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-top: var(--space-3);
    padding: 3px var(--space-2);
    border-radius: var(--radius-full);
}

.stat-trend.up { background: var(--success-100); color: var(--success-700); }
.stat-trend.down { background: var(--danger-100); color: var(--danger-700); }

/* ========== EMPTY STATES ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-6);
    text-align: center;
    gap: var(--space-3);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-sunken);
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.empty-state-icon i { width: 36px; height: 36px; }

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.empty-state-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: 400px;
}

/* ========== FORM WIZARD ========== */
.wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
}

.wizard-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--text-tertiary);
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all var(--duration-normal) var(--ease-spring);
}

.wizard-step.active .wizard-step-number {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-100);
}

.wizard-step.completed .wizard-step-number {
    background: var(--success-500);
    color: white;
}

.wizard-step-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-step.active .wizard-step-label {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    min-width: 20px;
}

.wizard-step.completed ~ .wizard-step .wizard-step-connector,
.wizard-step.completed .wizard-step-connector {
    background: var(--success-500);
}

/* ========== UTILITIES ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.ml-auto { margin-left: auto; }
.relative { position: relative; }
.hidden { display: none; }
