/* Capital Fleet Dashboard v2.0 — Refined Futuristic */

:root {
    /* Neon Accent Palette */
    --neon-cyan: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-green: #00ff88;
    --neon-blue: #4d7cff;
    --neon-yellow: #ffd000;
    --neon-red: #ff3366;

    /* Primary Colors (mapped to neon-cyan) */
    --primary: var(--neon-cyan);
    --primary-dark: #00c4cc;
    --primary-light: #66f9ff;

    /* Stage Colors */
    --stage-early: var(--neon-blue);
    --stage-growth: var(--neon-yellow);
    --stage-mature: var(--neon-green);
    --stage-flagged: var(--neon-red);

    /* Semantic Colors */
    --success: var(--neon-green);
    --warning: var(--neon-yellow);
    --danger: var(--neon-red);
    --info: var(--neon-blue);

    /* Neutrals */
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(30, 41, 59, 0.8);
    --bg-tertiary: rgba(51, 65, 85, 0.6);
    --bg-hover: rgba(71, 85, 105, 0.7);
    --border: rgba(51, 65, 85, 0.5);
    --border-light: rgba(71, 85, 105, 0.6);

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(10px);

    /* Text */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-disabled: #475569;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);

    /* Neon Glows */
    --glow-cyan: 0 0 12px rgba(0, 245, 255, 0.3), 0 0 4px rgba(0, 245, 255, 0.15);
    --glow-green: 0 0 12px rgba(0, 255, 136, 0.3), 0 0 4px rgba(0, 255, 136, 0.15);
    --glow-purple: 0 0 12px rgba(191, 0, 255, 0.3), 0 0 4px rgba(191, 0, 255, 0.15);
    --glow-red: 0 0 12px rgba(255, 51, 102, 0.3), 0 0 4px rgba(255, 51, 102, 0.15);
    --glow-yellow: 0 0 12px rgba(255, 208, 0, 0.3), 0 0 4px rgba(255, 208, 0, 0.15);
    --glow-blue: 0 0 12px rgba(77, 124, 255, 0.3), 0 0 4px rgba(77, 124, 255, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Spacing */
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 245, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(191, 0, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.3), 0 0 4px rgba(191, 0, 255, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Sections */
.nav-section {
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    position: relative;
    margin-bottom: 4px;
}

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

.nav-item.active {
    background: rgba(0, 245, 255, 0.08);
    color: var(--neon-cyan);
    border-bottom: none;
    box-shadow: inset 0 -2px 0 var(--neon-cyan), 0 2px 8px rgba(0, 245, 255, 0.1);
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--neon-cyan);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: var(--transition-fast);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.nav-item.active .nav-indicator {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.nav-badge.read-only {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 12px;
    color: var(--text-muted);
}

.status-value {
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
}

.status-value.online .status-dot {
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.version-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

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

/* Top Bar */
.top-bar {
    height: var(--topbar-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-disabled);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 240px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.15);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.alert-dropdown {
    position: relative;
}

.alert-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.alert-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: none;
}

.alert-panel.active {
    display: block;
}

.alert-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-header span {
    font-weight: 600;
}

.clear-alerts {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
}

.alert-list {
    max-height: 300px;
    overflow-y: auto;
}

.alert-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.metric-card:hover {
    border-color: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 245, 255, 0.07);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.metric-card.treasury::before { background: var(--neon-green); box-shadow: 0 0 10px rgba(0, 255, 136, 0.4); }
.metric-card.states::before { background: var(--neon-blue); box-shadow: 0 0 10px rgba(77, 124, 255, 0.4); }
.metric-card.queue::before { background: var(--neon-yellow); box-shadow: 0 0 10px rgba(255, 208, 0, 0.4); }
.metric-card.votes::before { background: var(--neon-purple); box-shadow: 0 0 10px rgba(191, 0, 255, 0.4); }

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-card.treasury .metric-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.metric-card.states .metric-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.metric-card.queue .metric-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.metric-card.votes .metric-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive { color: var(--success); }
.metric-change.negative { color: var(--danger); }

.metric-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.metric-sparkline {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 40px;
    opacity: 0.5;
}

/* Stage Badges */
.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.stage-badge.early {
    background: rgba(59, 130, 246, 0.15);
    color: var(--stage-early);
}

.stage-badge.growth {
    background: rgba(245, 158, 11, 0.15);
    color: var(--stage-growth);
}

.stage-badge.mature {
    background: rgba(16, 185, 129, 0.15);
    color: var(--stage-mature);
}

.stage-badge.flagged {
    background: rgba(239, 68, 68, 0.15);
    color: var(--stage-flagged);
}

.stage-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stage-indicator.early { background: var(--stage-early); }
.stage-indicator.growth { background: var(--stage-growth); }
.stage-indicator.mature { background: var(--stage-mature); }
.stage-indicator.flagged { background: var(--stage-flagged); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Panels */
.panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.panel.wide {
    grid-column: span 2;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 i {
    color: var(--primary);
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.panel-body {
    padding: 20px;
}

/* Status Badge */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.15);
}

.status-badge.warning {
    background: rgba(255, 208, 0, 0.1);
    color: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(255, 208, 0, 0.15);
}

.status-badge.danger {
    background: rgba(255, 51, 102, 0.1);
    color: var(--neon-red);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.15);
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.agent-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.25);
    transition: box-shadow var(--transition-normal);
}

.agent-avatar:hover {
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.4), 0 0 6px rgba(191, 0, 255, 0.3);
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-size: 13px;
    font-weight: 600;
}

.agent-role {
    font-size: 11px;
    color: var(--text-muted);
}

.agent-status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.15);
    animation: neonPulseGreen 2s ease-in-out infinite;
}

/* Health Grid */
.health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.health-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.health-value {
    font-size: 12px;
    font-weight: 600;
}

.health-value.success { color: var(--success); }
.health-value.warning { color: var(--warning); }
.health-value.danger { color: var(--danger); }

/* Chart Container */
.chart-container {
    position: relative;
    height: 250px;
}

.chart-period {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.activity-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.activity-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Governance Layout */
.governance-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quorum-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quorum-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
}

.quorum-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.quorum-info {
    flex: 1;
}

.quorum-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.quorum-role {
    font-size: 11px;
    color: var(--text-muted);
}

.quorum-vote {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Data Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--bg-tertiary);
    cursor: pointer;
    user-select: none;
}

.data-table th:hover {
    color: var(--text-primary);
}

.data-table th i {
    margin-left: 4px;
    font-size: 10px;
}

.data-table td {
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-muted);
}

.filter-chips {
    display: flex;
    gap: 8px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.state-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.state-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.state-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.state-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.state-body {
    padding: 16px;
}

.state-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.state-metric {
    text-align: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.state-metric-value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.state-metric-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.state-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Hierarchy Tree */
.hierarchy-tree {
    padding: 16px;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
}

.tree-node.capital {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.tree-children {
    margin-left: 32px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

.tree-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.tree-badge.early {
    background: rgba(59, 130, 246, 0.2);
    color: var(--stage-early);
}

/* Treasury Header */
.treasury-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.treasury-balance {
    text-align: left;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.balance-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.balance-change {
    font-size: 12px;
    color: var(--text-muted);
}

.treasury-breakdown {
    display: flex;
    gap: 32px;
}

.breakdown-item {
    text-align: center;
}

.breakdown-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 600;
}

.treasury-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Workflow Stats */
.workflow-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.workflow-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

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

.workflow-stat.pending .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.workflow-stat.processing .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.workflow-stat.completed .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.workflow-stat.failed .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.workflow-stat .stat-value {
    font-size: 32px;
    font-weight: 700;
}

.workflow-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
}

.flow-node {
    text-align: center;
    padding: 24px 32px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.flow-node .node-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.flow-node.intake .node-icon { color: var(--warning); }
.flow-node.process .node-icon { color: var(--info); }
.flow-node.complete .node-icon { color: var(--success); }

.flow-node .node-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.flow-node .node-count {
    font-size: 28px;
    font-weight: 700;
}

.flow-arrow {
    font-size: 24px;
    color: var(--text-muted);
}

.workflow-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.agent-card-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(191, 0, 255, 0.15) 100%);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.agent-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 14px rgba(0, 245, 255, 0.2);
    animation: neonPulseCyan 3s ease-in-out infinite;
}

.agent-header-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.agent-header-info p {
    font-size: 13px;
    opacity: 0.8;
}

.agent-details {
    padding: 20px;
}

.agent-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.agent-detail-row:last-child {
    border-bottom: none;
}

.agent-detail-label {
    color: var(--text-muted);
    font-size: 13px;
}

.agent-detail-value {
    font-size: 13px;
    font-weight: 500;
}

/* Audit Tab */
.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.audit-info {
    display: flex;
    gap: 16px;
}

.read-only-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.hash-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 12px;
}

.audit-controls {
    display: flex;
    gap: 12px;
}

.audit-log-viewer {
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.audit-entry {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 150px 80px 1fr;
    gap: 12px;
}

.audit-timestamp {
    color: var(--text-muted);
}

.audit-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.audit-type.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.audit-type.warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.audit-type.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.audit-message {
    color: var(--text-primary);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: var(--text-muted);
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
}

.form-group input:read-only {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn-sm {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-sm:hover {
    background: var(--bg-hover);
}

/* Log Viewer */
.log-viewer {
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.log-timestamp {
    color: var(--text-muted);
}

.log-type {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.log-type.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.log-type.warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.log-type.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.log-message {
    color: var(--text-primary);
    flex: 1;
}

/* Responsive */
@media (max-width: 1400px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .governance-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .dashboard-grid,
    .treasury-grid,
    .workflow-panels,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .panel.wide {
        grid-column: span 1;
    }
    
    .workflow-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .workflow-stats {
        grid-template-columns: 1fr;
    }
    
    .treasury-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* === ENHANCED HOVER EFFECTS & TRANSITIONS === */

/* Panel hover lift */
.panel {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.panel:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* State card hover */
.state-card {
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.state-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Agent card hover */
.agent-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.agent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Agent mini card hover */
.agent-card-mini {
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.agent-card-mini:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

/* Quorum member hover */
.quorum-member {
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.quorum-member:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Workflow stat hover */
.workflow-stat {
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.workflow-stat:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Flow node hover */
.flow-node {
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.flow-node:hover {
    transform: scale(1.05);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Health item hover */
.health-item {
    transition: background var(--transition-fast);
}
.health-item:hover {
    background: var(--bg-hover);
}

/* Activity item hover */
.activity-item {
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.activity-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

/* Tree node hover */
.tree-node {
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.tree-node:hover {
    transform: translateX(4px);
}
.tree-node.state:hover {
    background: var(--bg-hover);
}

/* Button press effect */
.btn-sm:active,
.action-btn:active,
.alert-btn:active {
    transform: scale(0.96);
}

/* Refresh button spin */
.action-btn.spinning i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === SORTABLE TABLE INDICATORS === */
.data-table.sortable th {
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.data-table.sortable th:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.data-table.sortable th.asc i::before {
    content: "\f0de";
}
.data-table.sortable th.desc i::before {
    content: "\f0dd";
}
.data-table.sortable th.asc,
.data-table.sortable th.desc {
    color: var(--primary);
}

/* Table row transition */
.data-table tbody tr {
    transition: background var(--transition-fast);
}

/* === VOTE SUMMARY & DECISION BADGES === */
.vote-summary {
    display: flex;
    gap: 8px;
}
.vote-summary .approved {
    color: var(--success);
}
.vote-summary .denied {
    color: var(--danger);
}

.stage-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.stage-badge.denied {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}
.stage-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* === AUDIT CONTROLS SELECT === */
.audit-controls select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}
.audit-controls select:focus {
    outline: none;
    border-color: var(--primary);
}

/* === TASK & BLOCKED ITEM STYLES === */
.task-item,
.blocked-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    transition: background var(--transition-fast);
}
.task-item:hover,
.blocked-item:hover {
    background: var(--bg-hover);
}
.task-item i {
    color: var(--warning);
}
.blocked-item i {
    color: var(--danger);
}

/* === TOAST NOTIFICATION === */
.toast-notification {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* === PULSING STATUS DOT === */
.status-value.online .status-dot {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px var(--success); }
    50% { box-shadow: 0 0 12px var(--success); }
}

/* === METRIC SPARKLINE CANVAS FIX === */
.metric-sparkline canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ============================================= */
/* === GOVERNANCE ARCHITECTURE DIAGRAM       === */
/* ============================================= */

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 10px;
}

.arch-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    width: 100%;
}

.arch-tier-label {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0 8px;
}

.tier-command { background: rgba(99, 102, 241, 0.05); border: 1px solid rgba(99, 102, 241, 0.15); }
.tier-governance { background: rgba(59, 130, 246, 0.05); border: 1px solid rgba(59, 130, 246, 0.15); }
.tier-execution { background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.15); }
.tier-fleet { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.15); }

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    min-width: 110px;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.arch-node:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.arch-node:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    width: 260px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.arch-node-icon {
    font-size: 24px;
    color: var(--primary);
}

.arch-node.axon .arch-node-icon { color: #a78bfa; }
.arch-node.senator .arch-node-icon { color: #6366f1; }
.arch-node.economist .arch-node-icon { color: #3b82f6; }
.arch-node.verifier .arch-node-icon { color: #06b6d4; }
.arch-node.executor .arch-node-icon { color: #f59e0b; }
.arch-node.capital-prime .arch-node-icon { color: #10b981; }
.arch-node.sentinel .arch-node-icon { color: #ef4444; }
.arch-node.athena .arch-node-icon { color: #8b5cf6; }
.arch-node.origin .arch-node-icon { color: #22c55e; }
.arch-node.aegis .arch-node-icon { color: #64748b; }
.arch-node.vector .arch-node-icon { color: #f97316; }

.arch-node-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.arch-node-role {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arch-node-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-weight: 600;
}

.arch-flow-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

.arch-connector.vertical {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.arch-connector.vertical svg {
    width: 40px;
    height: 40px;
}

/* Quorum Voting Flow */
.arch-quorum-flow {
    margin-top: 24px;
    padding: 16px 24px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius);
    width: 100%;
}

.quorum-flow-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.quorum-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qf-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    color: var(--text-primary);
}

.qf-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.qf-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================= */
/* === CONSTITUTION TAB                      === */
/* ============================================= */

.constitution-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.const-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.const-title-row h2 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.const-title-row h2 i {
    color: var(--primary);
}

.const-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.const-version {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.const-version-badge {
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.const-date {
    font-size: 11px;
    color: var(--text-muted);
}

.const-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.const-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.const-section-header:hover {
    background: var(--bg-tertiary);
}

.const-section-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    white-space: nowrap;
}

.const-section-header h3 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.const-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.const-section.expanded .const-chevron {
    transform: rotate(180deg);
}

.const-section-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.const-section.expanded .const-section-body {
    display: block;
}

.const-rule {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.const-rule:last-of-type {
    border-bottom: none;
}

.const-rule-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    min-width: 32px;
    padding-top: 2px;
}

.const-rule-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.const-rule-text strong {
    color: var(--text-primary);
}

.const-audit-link {
    padding-top: 14px;
}

.const-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.const-link:hover {
    text-decoration: underline;
}

/* ============================================= */
/* === COMPLIANCE INDICATOR (Audit Tab)      === */
/* ============================================= */

.compliance-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.compliance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--success);
}

.compliance-info {
    flex: 1;
}

.compliance-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.compliance-status {
    font-size: 12px;
    color: var(--success);
}

.compliance-score {
    display: flex;
    align-items: center;
}

.compliance-ring {
    position: relative;
    width: 52px;
    height: 52px;
}

.compliance-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.compliance-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

/* ============================================= */
/* === ENHANCED HIERARCHY TREE               === */
/* ============================================= */

.hierarchy-tree.enhanced .tree-node {
    position: relative;
    user-select: none;
}

.hierarchy-tree.enhanced .tree-node.has-children {
    cursor: pointer;
}

.hierarchy-tree.enhanced .tree-node .tree-toggle {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.hierarchy-tree.enhanced .tree-node.collapsed .tree-toggle {
    transform: rotate(-90deg);
}

.hierarchy-tree.enhanced .tree-children {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hierarchy-tree.enhanced .tree-children.collapsed {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

.hierarchy-tree.enhanced .tree-node-details {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.hierarchy-tree.enhanced .tree-node-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hierarchy-tree.enhanced .tree-node-detail .detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================= */
/* === SANKEY-STYLE WORKFLOW DIAGRAM          === */
/* ============================================= */

.sankey-diagram {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    min-height: 180px;
}

.sankey-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 160px;
}

.sankey-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sankey-node {
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: default;
}

.sankey-node:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.sankey-source {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.sankey-process {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.sankey-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sankey-fail {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.sankey-retry {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.sankey-flows {
    flex: 1;
    min-width: 80px;
    position: relative;
}

.sankey-flows svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================= */
/* === AGENT HOVER DETAIL CARD               === */
/* ============================================= */

.agent-hover-card {
    position: fixed;
    z-index: 500;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

.ahc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.ahc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ahc-name {
    font-size: 15px;
    font-weight: 600;
}

.ahc-role {
    font-size: 11px;
    opacity: 0.8;
}

.ahc-stats {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ahc-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahc-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ahc-stat-value {
    font-size: 13px;
    font-weight: 600;
}

.ahc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
}

.ahc-status {
    color: var(--success);
    font-weight: 600;
}

.ahc-last-action {
    color: var(--text-muted);
}

/* ============================================= */
/* === HISTORICAL DATA BADGE & NOTE          === */
/* ============================================= */

.historical-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.chart-historical-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-historical-note i {
    color: var(--primary-light);
}

/* ============================================= */
/* === RESPONSIVE ADDITIONS                  === */
/* ============================================= */

@media (max-width: 1024px) {
    .arch-tier {
        flex-wrap: wrap;
        gap: 10px;
    }
    .sankey-diagram {
        flex-direction: column;
        align-items: center;
    }
    .sankey-flows {
        min-height: 40px;
        width: 100%;
    }
    .sankey-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .const-title-row {
        flex-direction: column;
        gap: 12px;
    }
    .const-version {
        align-items: flex-start;
    }
    .compliance-indicator {
        flex-wrap: wrap;
    }
}

/* ──────────────────────────────────────────────
   Governance Proposal System
   ────────────────────────────────────────────── */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 16px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}
.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #f1f5f9);
}
.modal-header h3 i {
    margin-right: 8px;
    color: var(--neon-cyan);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary, #f1f5f9);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.1));
    margin-top: 16px;
}

/* Form styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-primary, #0a0e1a);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary, #f1f5f9);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.1);
}
.form-group textarea {
    resize: vertical;
}
.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #0a0e1a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary, #f1f5f9);
}

/* Proposals Grid */
.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.proposal-card {
    background: var(--bg-primary, #0a0e1a);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s;
}
.proposal-card:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.proposal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.proposal-card-id code {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}
.proposal-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.proposal-card-subject {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 8px;
}
.proposal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}
.proposal-card-meta i {
    margin-right: 4px;
    opacity: 0.7;
}
.proposal-card-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary, #64748b);
    margin-bottom: 12px;
    line-height: 1.5;
}
.proposal-card-quorum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}
.quorum-label {
    color: var(--neon-purple);
    font-weight: 600;
}
.vote-tally {
    color: var(--text-secondary, #94a3b8);
}
.proposal-card-votes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.vote-chip {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
}
.vote-chip.approve {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}
.vote-chip.reject {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.vote-chip.pending {
    background: rgba(148,163,184,0.1);
    color: #94a3b8;
}
.proposal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.btn-vote {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-vote.approve {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}
.btn-vote.approve:hover {
    background: rgba(34,197,94,0.3);
}
.btn-vote.reject {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.btn-vote.reject:hover {
    background: rgba(239,68,68,0.3);
}
.btn-execute {
    background: linear-gradient(135deg, var(--neon-green), #10b981);
    color: #0a0e1a;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-execute:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}
.proposal-card-decision {
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 6px;
}
.proposal-card-decision code {
    color: var(--neon-cyan);
}
.proposal-card-time {
    font-size: 0.75rem;
    color: var(--text-tertiary, #64748b);
}
.proposal-count-badge {
    background: rgba(168,85,247,0.15);
    color: #a855f7;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Toast notification styles */
.toast-notification {
    background: var(--bg-secondary, #111827);
    color: var(--text-primary, #f1f5f9);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-left: 3px solid var(--neon-cyan);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* STATE-002 Crypto Detail Panel */
.state-002-detail {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(246, 195, 67, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.state-002-detail .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.state-002-detail .data-table th {
    text-align: left;
    padding: 8px 10px;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #1e293b;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.state-002-detail .data-table td {
    padding: 8px 10px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

/* STATE-003 Alt Trading Detail Panel */
.state-003-detail {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(191, 0, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

.state-003-detail .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.state-003-detail .data-table th {
    text-align: left;
    padding: 8px 10px;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #1e293b;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.state-003-detail .data-table td {
    padding: 8px 10px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

/* --- Agent Reasoning & Evaluation Styles --- */
.vote-chip.abstain {
    background: rgba(234,179,8,0.15);
    color: #eab308;
}
.btn-vote.evaluate {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    padding: 6px 14px;
}
.btn-vote.evaluate:hover {
    background: rgba(99,102,241,0.3);
}
.proposal-reasoning-section {
    margin-top: 10px;
    border-top: 1px solid rgba(148,163,184,0.1);
    padding-top: 8px;
}
.btn-reasoning-toggle {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-reasoning-toggle:hover {
    background: rgba(99,102,241,0.2);
}
.reasoning-content {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reasoning-agent-card {
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 8px;
    padding: 10px 12px;
}
.reasoning-agent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.reasoning-agent-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.85rem;
}
.reasoning-decision {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.reasoning-decision.approve {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}
.reasoning-decision.reject {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.reasoning-decision.abstain {
    background: rgba(234,179,8,0.15);
    color: #eab308;
}
.reasoning-text {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 6px;
}
.reasoning-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.factor-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: rgba(99,102,241,0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.2);
}
.factor-badge.warning {
    background: rgba(234,179,8,0.12);
    color: #fbbf24;
    border-color: rgba(234,179,8,0.25);
}
.factor-badge.danger {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border-color: rgba(239,68,68,0.25);
}

/* STATE-002 Market Cards */
.market-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.market-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(191, 0, 255, 0.05) 100%);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.market-card:hover {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.market-card-header .symbol {
    font-size: 18px;
    font-weight: 600;
    color: #00f5ff;
}

.market-card-header .change {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}

.market-card-header .change.positive {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.market-card-header .change.negative {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

.market-price {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.market-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.market-details .label {
    color: rgba(255, 255, 255, 0.4);
}

.market-signal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.signal-badge.buy {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.signal-badge.sell {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

.signal-badge.hold {
    background: rgba(255, 208, 0, 0.2);
    color: #ffd000;
}

/* Wallet Summary */
.wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.wallet-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.wallet-card .wallet-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.wallet-card .wallet-value {
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
}

.wallet-card .wallet-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.section-title i {
    color: #00f5ff;
}

/* Holdings Breakdown */
.holdings-breakdown table {
    width: 100%;
}

.holdings-breakdown .asset-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
}

.holdings-breakdown .asset-icon.btc { background: #f7931a; color: white; }
.holdings-breakdown .asset-icon.eth { background: #627eea; color: white; }
.holdings-breakdown .asset-icon.sol { background: #9945ff; color: white; }
.holdings-breakdown .asset-icon.usdc { background: #2775ca; color: white; }
.holdings-breakdown .asset-icon.usdt { background: #26a17b; color: white; }

/* State Detail Panel */
.state-detail-panel {
    margin-top: 24px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}
