@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =============================================================================
   Design Tokens
   ============================================================================= */

:root {
    /* Colors — deep blue → teal gradient palette */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(22, 30, 48, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Accent gradient */
    --accent-start: #06b6d4; /* cyan-500 */
    --accent-mid: #0891b2;   /* cyan-600 */
    --accent-end: #0d9488;   /* teal-600 */
    --accent-glow: rgba(6, 182, 212, 0.15);

    /* Semantic colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #06b6d4;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* =============================================================================
   Reset & Base
   ============================================================================= */

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

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(13, 148, 136, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================================================
   Layout
   ============================================================================= */

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* =============================================================================
   Header / Navbar
   ============================================================================= */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navbar-nav {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--text-accent);
}

/* =============================================================================
   Stats Cards
   ============================================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.accent {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: var(--space-xs);
}

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

/* =============================================================================
   Section Headers
   ============================================================================= */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================================================
   Data Tables
   ============================================================================= */

.data-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.data-table thead th {
    padding: var(--space-md);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

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

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

.data-table td {
    padding: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =============================================================================
   Badges / Tags
   ============================================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-crypto {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-start);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

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

.badge-sale {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-house {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-senate {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-alert-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-alert-medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* =============================================================================
   Search & Filters
   ============================================================================= */

.search-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.search-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--accent-start);
}

/* =============================================================================
   View containers
   ============================================================================= */

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

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

/* =============================================================================
   Loading & Empty States
   ============================================================================= */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--space-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* =============================================================================
   Pagination
   ============================================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
}

.pagination-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent-start);
    color: var(--text-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================================================
   Alert Badge (nav)
   ============================================================================= */

.alert-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--color-danger);
    border-radius: 9999px;
    margin-left: 6px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

.alert-badge.visible {
    display: inline-block;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =============================================================================
   SSE Connection Indicator
   ============================================================================= */

.sse-indicator {
    font-size: 0.6rem;
    margin-right: 4px;
    transition: color var(--transition-base);
}

.sse-indicator.connected { color: var(--color-success); }
.sse-indicator.connecting { color: var(--color-warning); }
.sse-indicator.disconnected { color: var(--color-danger); }

/* =============================================================================
   Toast Notifications
   ============================================================================= */

.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
    max-width: 420px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.toast.severity-critical::before { background: var(--color-danger); }
.toast.severity-high::before { background: #f97316; }
.toast.severity-medium::before { background: var(--color-warning); }
.toast.severity-low::before { background: var(--color-info); }

.toast:hover {
    border-color: var(--border-hover);
    transform: translateX(-4px);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-body {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toast-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

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

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    animation: toastCountdown 8s linear forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 120px;
    }
    to {
        opacity: 0;
        transform: translateX(120%);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

@keyframes toastCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* =============================================================================
   Alert Action Buttons
   ============================================================================= */

.alert-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--accent-start);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.action-btn.action-ack {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--color-info);
}

.action-btn.action-resolve {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.action-btn.action-dismiss {
    border-color: rgba(100, 116, 139, 0.3);
    color: var(--text-muted);
}

/* =============================================================================
   Alert row severity highlighting
   ============================================================================= */

.data-table tbody tr.alert-row-critical {
    border-left: 3px solid var(--color-danger);
}

.data-table tbody tr.alert-row-high {
    border-left: 3px solid #f97316;
}

.data-table tbody tr.alert-row-medium {
    border-left: 3px solid var(--color-warning);
}

.data-table tbody tr.alert-row-low {
    border-left: 3px solid var(--color-info);
}

/* =============================================================================
   Additional badge styles
   ============================================================================= */

.badge-alert-critical {
    background: rgba(239, 68, 68, 0.18);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-alert-low {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-status-open {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-status-acknowledged {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-status-resolved {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-status-dismissed {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.25);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
    .app-container {
        padding: var(--space-md);
    }

    .navbar {
        flex-direction: column;
        gap: var(--space-md);
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table-container {
        overflow-x: auto;
    }

    .search-bar {
        flex-direction: column;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

/* =============================================================================
 * Phase 6 — Wallet & Timeline Styles
 * ============================================================================= */

/* Chain badges */
.badge-chain {
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-bitcoin {
    background: rgba(247, 147, 26, 0.15);
    color: #f7931a;
    border: 1px solid rgba(247, 147, 26, 0.25);
}

.badge-ethereum {
    background: rgba(98, 126, 234, 0.15);
    color: #627eea;
    border: 1px solid rgba(98, 126, 234, 0.25);
}

.badge-base {
    background: rgba(0, 82, 255, 0.15);
    color: #0052ff;
    border: 1px solid rgba(0, 82, 255, 0.25);
}

.badge-arbitrum {
    background: rgba(40, 160, 240, 0.15);
    color: #28a0f0;
    border: 1px solid rgba(40, 160, 240, 0.25);
}

.badge-polygon {
    background: rgba(130, 71, 229, 0.15);
    color: #8247e5;
    border: 1px solid rgba(130, 71, 229, 0.25);
}

.badge-solana {
    background: rgba(153, 69, 255, 0.15);
    color: #9945ff;
    border: 1px solid rgba(153, 69, 255, 0.25);
}

/* Wallet address — truncated monospace */
.wallet-address {
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
}

/* Attribution status badges */
.badge-attr-confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-attr-high {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-attr-moderate {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-attr-low {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.badge-attr-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Attribution score bar */
.score-bar-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.score-bar-fill.score-high {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.score-bar-fill.score-medium {
    background: linear-gradient(90deg, #eab308, #facc15);
}

.score-bar-fill.score-low {
    background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.score-value {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 42px;
    text-align: right;
}

/* Publishable indicator */
.badge-publishable {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-not-publishable {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

/* =============================================================================
 * Timeline
 * ============================================================================= */

.timeline-container {
    position: relative;
    padding: var(--space-lg) 0;
    min-height: 200px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--accent) 0%,
        var(--accent-secondary) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

.timeline-event {
    position: relative;
    margin-bottom: var(--space-lg);
    animation: fadeSlideIn 0.4s ease both;
}

.timeline-event:nth-child(even) {
    animation-delay: 0.1s;
}

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

/* Timeline node (dot) */
.timeline-node {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    z-index: 2;
}

.timeline-node.node-disclosure {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.timeline-node.node-onchain {
    background: #f7931a;
    box-shadow: 0 0 8px rgba(247, 147, 26, 0.5);
}

/* Timeline card */
.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: var(--space-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.timeline-type-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.timeline-type-label.type-disclosure {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
}

.timeline-type-label.type-onchain {
    background: rgba(247, 147, 26, 0.15);
    color: #f7931a;
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-description {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.timeline-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-legend {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}

.timeline-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timeline-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.timeline-legend-dot.dot-disclosure {
    background: var(--accent);
}

.timeline-legend-dot.dot-onchain {
    background: #f7931a;
}

.timeline-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}
