/* Trading Insights Page Styles */

/* Main content full width */
.main-content-full {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 40px; /* Space for status bar */
    overflow-x: hidden;
    position: relative;
}

.main-content-full .container {
    max-width: 100%;
    padding: 0 24px;
    margin: 0;
    position: relative;
}

/* Volume Flow Section - Bloomberg Terminal Style */
.volume-flow-section {
    background: #000;
    padding: 2rem;
    border: 2px solid #00ff00;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: visible;
}

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

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #00ff00;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-icon {
    width: 28px;
    height: 28px;
    color: #00ff00;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    margin-left: 1rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.flow-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.02);
}

.stat-label {
    font-size: 0.7rem;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #00ff00;
    font-family: 'IBM Plex Mono', monospace;
}

/* Terminal Stats Header - Bloomberg Style */
.terminal-stats-header {
    background: #000;
    border: 2px solid #00ff00;
    border-bottom: none;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'IBM Plex Mono', monospace;
}

.terminal-stats-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stats-title-text {
    color: #00ff00;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.stats-timestamp {
    color: #10b981;
    font-size: 0.9rem;
}

.terminal-stats-divider {
    color: #00ff00;
    opacity: 0.5;
    font-size: 0.8rem;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.terminal-stats-labels,
.terminal-stats-values {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}

.terminal-stats-labels {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.terminal-stats-values {
    color: #00ff00;
    font-size: 1.125rem;
    font-weight: 600;
}

.stat-col {
    text-align: center;
}

.terminal-stats-values .stat-col:first-child {
    text-align: left;
}

.terminal-stats-values .stat-col:last-child {
    text-align: right;
}

.status-dot {
    color: #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Network Container - Bloomberg Terminal Style - DEPRECATED */
/* Using .network-panel instead */
.network-container {
    display: none; /* Hidden - replaced by network-panel */
}

/* Vis.js Tooltip Styling */
.vis-tooltip {
    background: #000 !important;
    border: 1px solid #00ff00 !important;
    color: #00ff00 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3) !important;
    white-space: pre-line !important;
}

#volume-network {
    height: 600px;
    background: #000000;
    background-image: 
        linear-gradient(rgba(0,255,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Scanning line effect */
#volume-network::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,255,0,0.5), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanline {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Network Legend */
.network-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-circle {
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

.legend-circle.small {
    width: 12px;
    height: 12px;
}

.legend-circle.medium {
    width: 18px;
    height: 18px;
}

.legend-circle.large {
    width: 24px;
    height: 24px;
}

/* Token List Section */
.token-list-section {
    margin-top: 2rem;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.list-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.token-list {
    display: grid;
    gap: 0.75rem;
}

/* Token Flow Item */
.token-flow-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.token-flow-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.flow-indicator {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.flow-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: flow 2s linear infinite;
}

@keyframes flow {
    to {
        left: 100%;
    }
}

.token-flow-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.token-flow-name {
    font-weight: 600;
    color: var(--text-primary);
}

.token-flow-age {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.token-flow-volume {
    font-weight: 600;
    color: var(--primary);
}

.token-flow-mcap {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Flow Categories */
.flow-category {
    margin-bottom: 2.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.category-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: auto;
}

.category-icon {
    width: 24px;
    height: 24px;
}

.category-icon.hot {
    color: #ef4444;
}

.category-icon.rising {
    color: #22c55e;
}

.category-icon.new {
    color: var(--primary);
}

/* Tokens Grid */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Token Card */
.token-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.token-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.2s;
}

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

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

.token-info {
    flex: 1;
}

.token-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.token-symbol {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Courier New', monospace;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-graduated {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-new {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-active {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.token-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.metric-value.positive {
    color: #22c55e;
}

.metric-value.negative {
    color: #ef4444;
}

.volume-bar {
    margin-top: 0.75rem;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #22c55e);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.token-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trades-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    background: var(--background);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

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

.pagination-btn.prev,
.pagination-btn.next {
    padding: 0.5rem;
}

.pagination-dots {
    padding: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pagination-info {
    margin: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.813rem;
    white-space: nowrap;
}

.loading-skeleton {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Global Controls */
.global-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.time-range-selector {
    display: flex;
    background: var(--background);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--border);
}

.time-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.time-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.time-btn.active {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.refresh-icon {
    color: var(--primary);
    animation: rotate 4s linear infinite;
}

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

.refresh-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Activity Heatmap Section */
.heatmap-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

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

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.section-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    margin-left: 1rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.metric-selector select {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Heatmap Stats */
.heatmap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-icon {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.stat-icon.hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.current {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Heatmap Container */
.heatmap-container {
    position: relative;
    background: var(--background);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.heatmap-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legend-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.legend-gradient {
    width: 200px;
    height: 10px;
    background: linear-gradient(to right, 
        #1a1a2e 0%, 
        #22c55e 25%, 
        #f59e0b 50%, 
        #ef4444 75%, 
        #dc2626 100%);
    border-radius: 5px;
}

/* Hour Details Panel */
.hour-details-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

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

.panel-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Fresh Launches Section */
.fresh-launches-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.launch-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary);
}

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

.launches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Graduation Section */
.graduation-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
}

.graduation-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.about-to-graduate h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.graduation-stats {
    background: var(--background);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
}

/* Racing Chart Section */
.racing-chart-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.race-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.race-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.race-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.2;
    border: 1px solid var(--border);
}

.race-light.red { background: rgba(239, 68, 68, 0.5); }
.race-light.yellow { background: rgba(245, 158, 11, 0.5); }
.race-light.green { background: rgba(34, 197, 94, 0.5); }
.race-light.active { 
    opacity: 0.8;
    animation: pulse 2s infinite;
    border-color: currentColor;
}

.race-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.race-restart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.race-restart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auto-update-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auto-update-indicator i {
    color: var(--primary);
    animation: rotate 2s linear infinite;
}

#update-countdown {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
    min-width: 1.2em;
    display: inline-block;
    text-align: center;
}

/* Racing Track Container */
.racing-track-container {
    margin-top: 2rem;
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border);
    position: relative;
    min-height: 540px;
    overflow: hidden;
}

.racing-track-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(148, 163, 184, 0.02) 40px,
        rgba(148, 163, 184, 0.02) 41px
    );
    pointer-events: none;
}

/* Start and Finish Lines */
.start-line, .finish-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    z-index: 10;
}

.start-line {
    left: 60px;
    background: var(--primary);
    opacity: 0.6;
}

.finish-line {
    right: 60px;
    background: repeating-linear-gradient(
        45deg,
        var(--text-muted),
        var(--text-muted) 5px,
        var(--border) 5px,
        var(--border) 10px
    );
    width: 8px;
    opacity: 0.4;
}

.line-marker {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border-radius: 4px;
    white-space: nowrap;
}

.checkered-flag {
    position: absolute;
    top: -30px;
    right: -5px;
    width: 30px;
    height: 20px;
    background: repeating-conic-gradient(var(--text-muted) 0% 25%, var(--border) 0% 50%) 50% / 10px 10px;
    opacity: 0.3;
}

/* Checkpoints */
.checkpoints {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60px;
    right: 70px;
    pointer-events: none;
}

.checkpoint {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.2);
    border-left: 1px dashed rgba(148, 163, 184, 0.3);
}

.checkpoint span {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Race Tracks */
.race-tracks {
    position: relative;
    padding: 20px 0;
    min-height: 480px; /* 10 tracks * 48px */
    height: 480px;
}

.race-track {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-lane {
    position: absolute;
    left: 60px;
    right: 70px;
    height: 100%;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0.5;
}

.track-lane::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        var(--border) 10px,
        var(--border) 20px
    );
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Racing Car (Token) */
.race-car {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border-radius: 20px;
    border: 2px solid var(--primary);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    cursor: pointer;
}

.race-car:hover {
    transform: scale(1.05);
    z-index: 10;
}

.race-car.accelerating {
    animation: accelerate 0.5s ease-out;
}

.race-car.overtaking {
    animation: overtake 1s ease-out;
}

@keyframes accelerate {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(5px) scale(1.1); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes overtake {
    0% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-10px) scale(1.05); }
    50% { transform: translateX(10px) scale(1.1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    100% { transform: translateX(0) scale(1); }
}

/* Overtake Notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.car-position {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

.car-position.gold {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.car-position.silver {
    background: rgba(192, 192, 192, 0.15);
    border: 1px solid rgba(192, 192, 192, 0.3);
    color: #c0c0c0;
}

.car-position.bronze {
    background: rgba(205, 127, 50, 0.15);
    border: 1px solid rgba(205, 127, 50, 0.3);
    color: #cd7f32;
}

.car-position.regular {
    background: var(--background);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.car-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.car-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.car-symbol {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.car-volume {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* Speed Effects */
.speed-trail {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    opacity: 0;
    animation: trail 1s linear infinite;
}

@keyframes trail {
    0% { opacity: 0; width: 0; }
    50% { opacity: 0.6; width: 60px; }
    100% { opacity: 0; width: 0; left: -60px; }
}

.race-car.boosting .speed-trail {
    opacity: 1;
}

/* Nitro Effect */
.nitro-effect {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 20px;
    opacity: 0;
}

.race-car.nitro .nitro-effect {
    opacity: 1;
    animation: nitro 0.5s ease-out;
}

@keyframes nitro {
    0% { 
        opacity: 0.8;
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(14, 165, 233, 0.4), transparent);
        width: 30px;
    }
    100% { 
        opacity: 0;
        width: 50px;
        right: -40px;
    }
}

/* Position Board */
.position-board {
    position: absolute;
    left: 10px;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Race Stats */
.race-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-icon {
    width: 24px;
    height: 24px;
}

.stat-icon.gold { color: #ffd700; }
.stat-icon.orange { color: #f59e0b; }
.stat-icon.blue { color: #3b82f6; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Line Chart Section */
.line-chart-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-filter-btn:hover:not(.active) {
    border-color: var(--primary);
}

.chart-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Line Chart Container */
.line-chart-container {
    margin-top: 2rem;
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
}

.chart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#line-chart-canvas {
    flex: 1;
    height: 350px;
    display: block;
}

/* Y-axis labels */
.y-axis-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.y-axis-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    padding-right: 10px;
}

/* Token Badges */
.token-badges {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 0;
    gap: 4px;
    min-width: 180px;
}

.token-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.token-badge:hover {
    transform: translateX(-4px);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.token-badge.rising {
    border-left: 3px solid #22c55e;
}

.token-badge.falling {
    border-left: 3px solid #ef4444;
}

.token-badge.stable {
    border-left: 3px solid #3b82f6;
}

.badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.badge-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-symbol {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.badge-trend {
    width: 14px;
    height: 14px;
}

.badge-volume {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-connector {
    position: absolute;
    left: -10px;
    width: 10px;
    height: 1px;
    background: var(--border);
}

/* Time Axis */
.time-axis {
    display: flex;
    justify-content: space-between;
    padding: 1rem 60px 0 60px;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.time-mark {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Pulse Glow Animations */
@keyframes pulseGlowGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.6);
        border-color: #22c55e;
    }
}

@keyframes pulseGlowRed {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.6);
        border-color: #ef4444;
    }
}

@keyframes pulseGlowBlue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(59, 130, 246, 0.5);
        border-color: #3b82f6;
    }
}

@keyframes pulseGlowOrange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(245, 158, 11, 0.5);
        border-color: #f59e0b;
    }
}

@keyframes shimmerPurple {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.3));
    }
}

@keyframes shimmerGray {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 3px rgba(100, 116, 139, 0.3));
    }
}

/* Pulse Classes for Network Flow */
.node-pulse-green {
    animation: pulseGlowGreen 1s ease-in-out 3;
}

.node-pulse-red {
    animation: pulseGlowRed 1s ease-in-out 3;
}

.node-pulse-blue {
    animation: pulseGlowBlue 0.67s ease-in-out 3;
}

.node-pulse-orange {
    animation: pulseGlowOrange 0.67s ease-in-out 3;
}

.node-shimmer-purple {
    animation: shimmerPurple 0.5s ease-in-out 2;
}

.node-shimmer-gray {
    animation: shimmerGray 0.5s ease-in-out 2;
}

/* Token Badge Pulse Classes */
.token-badge.pulse-green {
    animation: pulseGlowGreen 1s ease-in-out 3;
    border: 1px solid #22c55e;
}

.token-badge.pulse-red {
    animation: pulseGlowRed 1s ease-in-out 3;
    border: 1px solid #ef4444;
}

.token-badge.pulse-blue {
    animation: pulseGlowBlue 0.67s ease-in-out 3;
    border: 1px solid #3b82f6;
}

.token-badge.pulse-orange {
    animation: pulseGlowOrange 0.67s ease-in-out 3;
    border: 1px solid #f59e0b;
}

/* Race Car Pulse Classes */
.race-car.pulse-green {
    animation: pulseGlowGreen 1s ease-in-out 3;
}

.race-car.pulse-red {
    animation: pulseGlowRed 1s ease-in-out 3;
}

.race-car.pulse-blue {
    animation: pulseGlowBlue 0.67s ease-in-out 3;
}

.race-car.pulse-orange {
    animation: pulseGlowOrange 0.67s ease-in-out 3;
}

.race-car.shimmer-purple .car-icon {
    animation: shimmerPurple 0.5s ease-in-out 2;
}

.race-car.shimmer-gray .car-icon {
    animation: shimmerGray 0.5s ease-in-out 2;
}

/* Responsive */
@media (max-width: 768px) {
    .heatmap-stats {
        grid-template-columns: 1fr;
    }
    
    .graduation-content {
        grid-template-columns: 1fr;
    }
    
    .global-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stream-controls {
        justify-content: center;
    }
    
    .time-axis {
        padding: 1rem 1rem 0;
    }
    
    /* Mobile: Reorder network monitor layout */
    .split-layout-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        grid-template-columns: unset !important;
    }
    
    /* Network panel full width and first */
    .network-panel {
        order: 1;
        width: 100% !important;
        height: 400px !important;
        margin-bottom: 1rem;
    }
    
    /* Stats panel full width and second (below network) */
    .stats-panel {
        order: 2;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Adjust font sizes for mobile */
    .stats-terminal-box {
        font-size: 10px !important;
    }
    
    .metric-label {
        font-size: 9px !important;
    }
    
    .metric-value {
        font-size: 11px !important;
    }
    
    .stats-divider {
        font-size: 8px !important;
        overflow: hidden !important;
    }
    
    /* PUMP.FUN NETWORK MONITOR title smaller on mobile */
    .monitor-title {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
    
    .terminal-monitor-header {
        padding: 0.5rem 1rem !important;
    }
    
    /* System status header text smaller */
    .stats-header {
        font-size: 9px !important;
    }
    
    .stats-header .prompt {
        font-size: 9px !important;
    }
    
    /* Refresh timer smaller */
    .stats-terminal-box .prompt:last-child {
        font-size: 9px !important;
    }
    
    /* Metric bars smaller */
    .metric-bar {
        height: 4px !important;
        margin-top: 4px !important;
    }
    
    /* Mobile: Volume Flow header responsive */
    .section-header h2 {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .section-header .section-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Hide "60 Minutes" text on mobile */
    #timeframe-display {
        display: none !important;
    }
    
    /* TOKEN STREAM MONITOR header smaller on mobile */
    .stream-header {
        padding: 0.5rem 1rem !important;
    }
    
    .stream-text {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
    
    .auto-refresh {
        font-size: 9px !important;
    }
    
    .refresh-on {
        font-size: 9px !important;
    }
    
    /* TOKEN STREAM CARDS - Mobile Responsive */
    .token-stream-item {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Smaller avatar on mobile */
    .token-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Compact header layout */
    .token-stream-header {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Token symbol and info inline */
    .token-main-info {
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    
    .token-symbol {
        font-size: 0.9rem !important;
        min-width: unset !important;
    }
    
    /* Metrics in 2x2 grid to prevent horizontal scroll */
    .token-metrics {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .metric-item {
        padding: 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    .metric-label {
        font-size: 0.65rem !important;
        display: block !important;
    }
    
    .metric-value {
        font-size: 0.85rem !important;
        display: block !important;
    }
    
    /* Price info compact */
    .token-price {
        font-size: 0.85rem !important;
    }
    
    .price-change {
        font-size: 0.75rem !important;
    }
    
    /* Status badges smaller */
    .token-status {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    /* Remove horizontal overflow */
    .stream-container {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* Ensure no element causes horizontal scroll */
    .token-stream-item * {
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    /* Token age in top-right corner on mobile */
    .token-age-corner {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        background: rgba(0, 255, 0, 0.1) !important;
        border: 1px solid rgba(0, 255, 0, 0.3) !important;
        color: #00ff00 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 0.65rem !important;
        font-weight: bold !important;
    }
    
    /* Make card relative for absolute positioning */
    .token-stream-item {
        position: relative !important;
    }
    
    /* Token Card Footer for Buy/Sell/Momentum */
    .token-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid rgba(0, 255, 0, 0.2) !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        width: 100% !important;
    }
    
    .footer-left {
        display: flex !important;
        gap: 1rem !important;
    }
    
    /* Buy/Sell pressure inline */
    .token-footer .buy-pressure, 
    .token-footer .sell-pressure {
        font-size: 0.75rem !important;
        color: #00ff00 !important;
    }
    
    .token-footer .sell-pressure {
        color: #ef4444 !important;
    }
    
    /* Momentum indicator only (no text) */
    .token-footer .momentum-indicator {
        font-size: 1.2rem !important;
    }
    
    .token-footer .momentum-up {
        color: #00ff00 !important;
    }
    
    .token-footer .momentum-down {
        color: #ef4444 !important;
    }
    
    .token-footer .momentum-neutral {
        color: #fbbf24 !important;
    }
    
    /* Mobile metrics section */
    .token-metrics-mobile {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0.5rem 0 !important;
        gap: 0.5rem !important;
    }
    
    .token-metrics-mobile .metric-item {
        font-size: 0.75rem !important;
    }
    
    .token-metrics-mobile .token-volume-bar {
        flex: 1 !important;
        height: 4px !important;
        background: rgba(0, 255, 0, 0.1) !important;
        border: 1px solid rgba(0, 255, 0, 0.3) !important;
    }
    
    /* Hide desktop controls and pagination on mobile */
    .desktop-controls,
    .stream-pagination {
        display: none !important;
    }
    
    /* Mobile navigation wrapper */
    .mobile-nav-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000 !important;
        border-top: 1px solid #00ff00 !important;
        width: 100% !important;
    }
    
    /* Mobile Bloomberg-style navigation buttons */
    .mobile-nav-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.75rem !important;
        gap: 1rem !important;
        width: auto !important;
    }
    
    .mobile-nav-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        background: #0A0A0A !important;
        border: 1px solid #00ff00 !important;
        color: #00ff00 !important;
        font-family: 'IBM Plex Mono', monospace !important;
        font-size: 11px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
        flex: 1 !important;
    }
    
    .mobile-nav-btn:active {
        background: #00ff00 !important;
        color: #000 !important;
        transform: scale(0.95) !important;
    }
    
    .mobile-nav-btn:disabled {
        opacity: 0.3 !important;
        cursor: not-allowed !important;
    }
    
    .nav-arrow {
        font-size: 14px !important;
    }
    
    /* Mobile page footer below buttons */
    .mobile-page-footer {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0.5rem !important;
        border-top: 1px solid rgba(0, 255, 0, 0.2) !important;
        background: rgba(0, 255, 0, 0.02) !important;
        width: 100% !important;
    }
    
    #mobile-page-number {
        display: block !important;
        color: #00ff00 !important;
        font-family: 'IBM Plex Mono', monospace !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
}

/* Desktop: Hide mobile navigation */
@media (min-width: 769px) {
    .mobile-nav-controls {
        display: none !important;
    }
    
    .desktop-controls {
        display: flex !important;
    }
    
    .stream-pagination {
        display: flex !important;
    }
}

/* ============================================ */
/* NEW SPLIT LAYOUT STYLES - Terminal List Style */
/* ============================================ */

/* Terminal Monitor Header */
.terminal-monitor-header {
    background: #000;
    border: 2px solid #00ff00;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
    z-index: 10;
}

.monitor-title {
    color: #00ff00;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.monitor-time {
    color: #00ff00;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Split Layout Container */
.split-layout-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 1rem;
    height: 600px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Network Panel (Left) */
.network-panel {
    background: #000;
    border: 2px solid #00ff00;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.network-panel #volume-network {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.network-panel .network-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Stats Panel (Right) */
.stats-panel {
    background: #000;
    border: 2px solid #00ff00;
    padding: 0;
    font-family: 'IBM Plex Mono', monospace;
}

.stats-terminal-box {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-header {
    margin-bottom: 1rem;
}

.stats-header .prompt {
    display: block;
    color: #10b981;
    font-size: 0.85rem;
    line-height: 1.6;
}

.status-active {
    color: #00ff00;
    font-weight: 700;
}

#last-update-time {
    color: #00ff00;
}

.stats-divider {
    color: #065f46;
    font-size: 0.75rem;
    margin: 1rem 0;
    letter-spacing: -1px;
}

/* Metrics Section */
.stats-metrics {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.metric-row {
    display: grid;
    grid-template-columns: 80px 100px 1fr;
    gap: 1rem;
    align-items: center;
}

.metric-label {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.metric-value {
    color: #00ff00;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.metric-bar {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    height: 16px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #00ff00,
        #00ff00 2px,
        transparent 2px,
        transparent 4px
    );
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Scanning animation effect */
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 0, 0.5) 50%, 
        transparent 100%);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stats-footer {
    margin-top: 1rem;
}

.stats-footer .prompt {
    color: #10b981;
    font-size: 0.85rem;
}

#refresh-countdown {
    color: #00ff00;
    font-weight: 700;
}

/* Hide old terminal stats header */
.terminal-stats-header {
    display: none;
}

/* ============================================ */
/* TOKEN STREAM MONITOR - Bloomberg Terminal Style */
/* ============================================ */

.token-stream-section {
    background: #000;
    border: 2px solid #00ff00;
    padding: 0;
    margin-top: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.stream-header {
    border-bottom: 2px solid #00ff00;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 0, 0.05);
}

.stream-title .stream-text {
    color: #00ff00;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.stream-status {
    color: #10b981;
    font-size: 0.9rem;
}

.refresh-on {
    color: #00ff00;
    font-weight: 700;
}

.stream-container {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    background: #000;
}

/* Custom Scrollbar */
.stream-container::-webkit-scrollbar {
    width: 8px;
}

.stream-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.stream-container::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 0;
}

/* Token Stream Item */
.token-stream-item {
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 255, 0, 0.02);
    position: relative;
    transition: all 0.2s;
}

.token-stream-item:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

/* Token Header with Image */
.token-stream-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.token-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00ff00;
    overflow: hidden;
    flex-shrink: 0;
}

.token-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-main-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.token-symbol {
    color: #00ff00;
    font-weight: 700;
    font-size: 1rem;
    min-width: 80px;
}

.token-volume {
    color: #00ff00;
    font-size: 1rem;
    font-weight: 600;
    min-width: 100px;
}

.token-volume-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #00ff00,
        #00ff00 4px,
        transparent 4px,
        transparent 8px
    );
    transition: width 0.5s ease;
}

.token-mcap {
    color: #10b981;
    font-size: 0.9rem;
    min-width: 100px;
}

.token-age {
    color: #10b981;
    font-size: 0.9rem;
    min-width: 50px;
}

/* Token Metrics Line */
.token-metrics {
    display: flex;
    gap: 2rem;
    padding-left: 56px; /* Align with content after avatar */
    color: #10b981;
    font-size: 0.85rem;
}

.metric-item {
    display: flex;
    gap: 0.5rem;
}

.metric-label {
    opacity: 0.8;
}

.metric-value {
    color: #00ff00;
    font-weight: 600;
}

.buy-pressure {
    color: #00ff00;
}

.sell-pressure {
    color: #ef4444;
}

.momentum-indicator {
    margin-left: auto;
}

.momentum-up {
    color: #00ff00;
}

.momentum-down {
    color: #ef4444;
}

.momentum-neutral {
    color: #fbbf24;
}

/* Stream Footer */
.stream-footer {
    border-top: 2px solid #00ff00;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 0, 0.05);
}

.stream-controls {
    display: flex;
    gap: 1rem;
    color: #10b981;
    font-size: 0.85rem;
}

.control-item {
    opacity: 0.8;
    transition: all 0.2s;
}

.control-item.clickable {
    cursor: pointer;
}

.control-item.clickable:hover {
    opacity: 1;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.control-separator {
    color: #065f46;
}

.stream-pagination {
    color: #00ff00;
    font-size: 0.9rem;
    font-weight: 600;
}