/* Inflows/Outflows Dashboard Styles */

/* Enable scrolling on the main content */
html, body {
    overflow: auto !important;
    height: auto !important;
}

.main-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100vh;
    position: relative;
}

.main {
    min-height: auto;
    padding-bottom: 40px; /* Add bottom padding for scrolling */
    overflow: visible;
}

/* Custom header stats for flows */
.header-stats .stat-item {
    min-width: 120px;
}

.header-stat-value {
    font-size: 20px;
    font-weight: 700;
}

/* Flow-specific styling */
.flow-positive {
    color: var(--green);
}

.flow-negative {
    color: var(--red);
}

.flow-neutral {
    color: var(--text-400);
}

/* CSS Variables */
:root {
    --maxw: 1280px;
    --gutter: 24px;
    --header-h: 88px;
    --header-pad: 16px;
}

/* Reusable container for ALL page sections */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: border-box;
    overflow: visible;
}

/* Full-bleed header background */
.site-header {
    background: linear-gradient(180deg, #0e1520 0%, #0b121a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* center content to the same grid as cards */
    padding-inline: max(calc((100vw - var(--maxw)) / 2), var(--gutter));
    padding-block: var(--header-pad);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    width: 100%;
}

/* Make sure nothing nudges the row */
.site-header > * {
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 16px;
}

/* Time Period Selector - Left aligned */
.time-period-selector {
    display: flex;
    align-items: center;
    margin: 0;
}

.time-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
}

.header-content .page-title {
    margin: 0;
}

/* Avoid device notch pushing content unevenly */
@supports (padding: max(0px)) {
    .header { 
        padding-top: max(var(--header-pad), env(safe-area-inset-top)); 
    }
}

.page-title {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-100);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(52, 214, 255, 0.3);
    margin-top: 16px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Orbitron", system-ui, sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0;
}

.tab-button:first-child {
    margin-left: 0 !important;
}

.tab-button:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

.tab-button.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 0 20px rgba(122, 92, 255, 0.3);
    /* Do not change height/padding/border on active */
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.overview-card {
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.1)),
                var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.overview-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(52, 214, 255, 0.1);
    transform: translateY(-2px);
}

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

.overview-card-header h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.overview-icon {
    font-size: 20px;
    opacity: 0.8;
}

.overview-card-value {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-100);
    margin-bottom: 8px;
}

.overview-card-change {
    font-size: 14px;
    font-weight: 600;
    font-family: "Orbitron", system-ui, sans-serif;
}

.overview-card-change.positive {
    color: var(--green);
}

.overview-card-change.negative {
    color: var(--red);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.chart-container {
    background: var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-100);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-type-btn {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.chart-type-btn:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

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

.chart-wrapper {
    height: 300px;
    position: relative;
    max-height: 300px;
    overflow: hidden;
}

.comparison-chart .chart-wrapper {
    height: 320px;
    max-height: 320px;
}





/* Detailed Analysis */
.detailed-analysis {
    margin-bottom: 40px;
}

.analysis-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.analysis-tab {
    background: transparent;
    border: none;
    color: var(--text-400);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
}

.analysis-tab:hover {
    color: var(--text-100);
}

.analysis-tab.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

.analysis-content {
    background: var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.analysis-panel {
    display: none;
}

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

.analysis-grid {
    display: grid;
    gap: 16px;
}

/* Historical Comparison */
.historical-comparison {
    margin-bottom: 40px;
}

.comparison-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.comparison-controls select {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-100);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Exo 2", system-ui, sans-serif;
}

.comparison-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.comparison-chart {
    background: var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.comparison-chart h4 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Live Flow Items */
.live-flow-item {
    background: var(--bg-800);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.live-flow-item:hover {
    border-color: var(--cyan);
    background: var(--card-800);
}

.live-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.flow-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Orbitron", system-ui, sans-serif;
}

.flow-type.inflow {
    background: rgba(46, 230, 160, 0.1);
    color: var(--green);
    border: 1px solid rgba(46, 230, 160, 0.3);
}

.flow-type.outflow {
    background: rgba(255, 107, 107, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.flow-time {
    font-size: 12px;
    color: var(--text-400);
    font-family: "Orbitron", system-ui, sans-serif;
}

.live-flow-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.flow-token {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
}

.flow-amount {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.flow-amount.inflow {
    color: var(--green);
}

.flow-amount.outflow {
    color: var(--red);
}

.flow-wallet {
    font-size: 12px;
    color: var(--text-400);
    font-family: "Exo 2", system-ui, sans-serif;
}

/* Animation for live flows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comparison-charts {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific spacing and layout adjustments */
    .container {
        padding-inline: 16px;
    }
    
    .site-header {
        min-height: auto;
        padding-block: 12px;
        gap: 12px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin: 0;
    }
    
    .time-period-selector {
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .time-tabs {
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
    }
    
    .tab-button {
        height: 36px;
        line-height: 36px;
        padding: 0 12px;
        font-size: 11px;
        min-width: 60px;
    }
    
    /* Overview cards mobile layout */
    .overview-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .overview-card {
        padding: 20px;
    }
    
    .overview-card-header h3 {
        font-size: 12px;
    }
    
    .overview-card-value {
        font-size: 24px;
    }
    
    .overview-card-change {
        font-size: 12px;
    }
    
    /* Charts section mobile optimization */
    .charts-section {
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .chart-header h3 {
        font-size: 14px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    

    

    
    /* Flow items mobile optimization */
    .flow-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
        padding: 16px;
        min-height: auto;
        text-align: center;
    }
    
    .flow-icon {
        justify-self: center;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .flow-details {
        text-align: center;
        gap: 8px;
    }
    
    .usd-amount {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .flow-address {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    
    .flow-hash {
        justify-self: center;
        align-items: center;
        min-width: auto;
        max-width: 100%;
    }
    
    .flow-hash a {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-width: 80px;
        max-width: 120px;
    }
    
    .flow-time {
        text-align: center;
        font-size: 0.65rem;
        margin-top: 4px;
    }
    
    /* Detailed analysis mobile optimization */
    .detailed-analysis {
        margin-bottom: 24px;
    }
    
    .analysis-tabs {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .analysis-tab {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .analysis-content {
        padding: 16px;
    }
    
    .analysis-grid {
        gap: 12px;
    }
    
    .pattern-card {
        padding: 14px;
        margin-bottom: 8px;
    }
    
    .pattern-card p {
        font-size: 0.8rem;
        margin: 4px 0;
    }
    
    .pattern-header h4 {
        font-size: 12px;
    }
    
    /* Historical comparison mobile optimization */
    .historical-comparison {
        margin-bottom: 24px;
    }
    
    .comparison-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .comparison-controls select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .comparison-charts {
        gap: 20px;
        margin-top: 16px;
    }
    
    .comparison-chart {
        padding: 16px;
        height: 300px;
    }
    
    .comparison-chart h4 {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    /* Empty state mobile optimization */
    .empty-state {
        padding: 40px 16px;
        height: 300px;
    }
    
    .empty-state-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .empty-state h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .empty-state p {
        font-size: 12px;
        max-width: 250px;
    }
    
    /* Header stats mobile optimization */
    .header-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-stats .stat-item {
        min-width: auto;
        text-align: center;
    }
    
    .header-stat-value {
        font-size: 18px;
    }
    
    /* Chart controls mobile optimization */
    .chart-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .chart-type-btn {
        padding: 4px 8px;
        font-size: 10px;
        flex: 1;
        min-width: 60px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding-inline: 12px;
    }
    
    .site-header {
        padding-block: 8px;
        gap: 8px;
    }
    
    .time-tabs {
        gap: 4px;
        margin: 0;
    }
    
    .tab-button {
        height: 32px;
        line-height: 32px;
        padding: 0 10px;
        font-size: 10px;
        min-width: 50px;
    }
    
    .overview-cards {
        gap: 12px;
    }
    
    .overview-card {
        padding: 16px;
    }
    
    .overview-card-value {
        font-size: 20px;
    }
    
    .charts-section {
        gap: 16px;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    

    

    
    .flow-item {
        padding: 12px;
        gap: 8px;
    }
    
    .flow-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .usd-amount {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .flow-address {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    
    .flow-hash a {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .flow-time {
        font-size: 0.6rem;
    }
    
    .analysis-tab {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .analysis-content {
        padding: 12px;
    }
    
    .pattern-card {
        padding: 12px;
    }
    
    .pattern-card p {
        font-size: 0.75rem;
    }
    
    .comparison-chart {
        padding: 12px;
        height: 250px;
    }
    
    .empty-state {
        padding: 30px 12px;
        height: 250px;
    }
    
    .empty-state-icon {
        font-size: 32px;
    }
    
    .empty-state h3 {
        font-size: 14px;
    }
    
    .empty-state p {
        font-size: 11px;
        max-width: 200px;
    }
}

/* Flow Card Styles */
.flow-card {
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.1)),
                var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.flow-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(52, 214, 255, 0.1);
    transform: translateY(-2px);
}

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

.flow-token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-token-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.flow-token-details h4 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.flow-token-details p {
    font-size: 12px;
    color: var(--text-400);
    margin: 2px 0 0 0;
    font-family: "Exo 2", system-ui, sans-serif;
}

.flow-amount {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.flow-amount.inflow {
    color: var(--green);
}

.flow-amount.outflow {
    color: var(--red);
}

.flow-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

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

.flow-stat-label {
    font-size: 11px;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: "Orbitron", system-ui, sans-serif;
}

.flow-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    font-family: "Orbitron", system-ui, sans-serif;
}

/* Flow Chart Styles */
.flow-chart {
    background: var(--bg-800);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid var(--line);
}

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

.flow-chart-title {
    font-size: 12px;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Orbitron", system-ui, sans-serif;
}

.flow-chart-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    font-family: "Orbitron", system-ui, sans-serif;
}

.flow-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-900);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.flow-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.flow-progress-fill.inflow {
    background: linear-gradient(90deg, var(--green), rgba(46, 230, 160, 0.6));
}

.flow-progress-fill.outflow {
    background: linear-gradient(90deg, var(--red), rgba(255, 107, 107, 0.6));
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-400);
    height: 400px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flow-card-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .flow-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .flow-amount {
        text-align: left;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-stats .stat-item {
        min-width: auto;
    }
}

/* Animation for flow cards */
@keyframes flowIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-card {
    animation: flowIn 0.3s ease forwards;
}

/* Flow Velocity Indicator */
.velocity-icon {
    animation: pulse 1.5s infinite;
}

/* Heatmap Chart Styles */
.heatmap-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.heatmap-cell {
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.heatmap-cell:hover {
    border-color: var(--cyan);
    transform: scale(1.05);
}

/* Pattern Analysis Styles */
.pattern-card {
    background: var(--bg-800);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.pattern-card:hover {
    border-color: var(--cyan);
    background: var(--card-800);
    transform: translateY(-1px);
}

.pattern-card p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pattern-card p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pattern-card a {
    color: var(--accent);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.pattern-card a:hover {
    text-decoration: underline;
}

.pattern-card:hover {
    border-color: var(--cyan);
    background: var(--card-800);
}

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

.pattern-name {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pattern-confidence {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.pattern-description {
    font-size: 12px;
    color: var(--text-400);
    line-height: 1.4;
}

/* Correlation Matrix */
.correlation-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.correlation-cell {
    background: var(--bg-800);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.correlation-cell.strong-positive {
    background: rgba(46, 230, 160, 0.2);
    border-color: var(--green);
    color: var(--green);
}

.correlation-cell.positive {
    background: rgba(46, 230, 160, 0.1);
    border-color: rgba(46, 230, 160, 0.3);
    color: var(--green);
}

.correlation-cell.negative {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--red);
}

.correlation-cell.strong-negative {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.correlation-cell.neutral {
    background: var(--bg-800);
    border-color: var(--line);
    color: var(--text-400);
}

/* ===== COMPLETELY REDESIGNED LIVE FLOWS SECTION ===== */

.live-flows-section {
    margin-bottom: 40px;
}



/* ===== NEW FLOW ITEM DESIGN ===== */

.flow-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.05)),
                var(--card-800);
    border: 1px solid var(--line);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    box-sizing: border-box;
    width: 100%;
}

.flow-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flow-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.08)),
                var(--card-700);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.flow-item:hover::before {
    opacity: 1;
}

.flow-item:last-child {
    margin-bottom: 0;
}

/* ===== FLOW ICON ===== */

.flow-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 2px;
}

.flow-type-text {
    font-size: 0.6rem;
    font-weight: 700;
    font-family: "Orbitron", system-ui, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: -2px;
}

.flow-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.flow-item:hover .flow-icon::before {
    transform: translateX(100%);
}

.flow-item.inflow .flow-icon {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.flow-item.outflow .flow-icon {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ===== FLOW CONTENT ===== */

.flow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.flow-main-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.flow-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.usd-amount {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: "Orbitron", system-ui, sans-serif;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    letter-spacing: 0.5px;
}

.flow-address {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.flow-secondary-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.flow-hash {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.flow-hash a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.flow-hash a:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.flow-time {
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
    font-family: "Orbitron", system-ui, sans-serif;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* ===== UNIFIED GRID DESIGN ===== */

/* Common Grid Styles */
.outflows-grid,
.inflows-grid,
.patterns-grid,
.correlations-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

/* Common Card Styles */
.outflow-card,
.inflow-card,
.pattern-card,
.correlation-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card-800);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.outflow-card:hover,
.inflow-card:hover,
.pattern-card:hover,
.correlation-card:hover {
    border-color: var(--cyan);
    background: var(--bg-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.outflow-card:focus-within,
.inflow-card:focus-within,
.pattern-card:focus-within,
.correlation-card:focus-within {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Rank Badge - 30px circle with thin ring */
.outflow-rank,
.inflow-rank,
.pattern-rank,
.correlation-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-800);
    border: 1px solid var(--line);
    color: var(--text-100);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.outflow-rank:hover,
.inflow-rank:hover,
.pattern-rank:hover,
.correlation-rank:hover,
.outflow-rank.is-active,
.inflow-rank.is-active,
.pattern-rank.is-active,
.correlation-rank.is-active {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(52, 214, 255, 0.3);
    background: var(--bg-800);
}

/* Content Area */
.outflow-content,
.inflow-content,
.pattern-content,
.correlation-content {
    flex: 1;
    min-width: 0;
}

/* Route Text */
.outflow-route,
.inflow-route,
.pattern-route,
.correlation-route {
    color: var(--text-100);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: "Exo 2", system-ui, sans-serif;
    letter-spacing: 0.2px;
}

/* Meta Row */
.outflow-meta,
.inflow-meta,
.pattern-meta,
.correlation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-400);
    font-size: 12px;
    opacity: 0.7;
    font-family: "Exo 2", system-ui, sans-serif;
}

.outflow-time,
.inflow-time,
.pattern-time,
.correlation-time {
    white-space: nowrap;
}

.outflow-separator,
.inflow-separator,
.pattern-separator,
.correlation-separator {
    opacity: 0.6;
}

.outflow-hash,
.inflow-hash,
.pattern-hash,
.correlation-hash {
    font-family: "Exo 2", system-ui, sans-serif;
    letter-spacing: 0.2px;
}

/* Copy Button */
.outflow-copy,
.inflow-copy,
.pattern-copy,
.correlation-copy {
    background: transparent;
    border: none;
    color: var(--text-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    font-family: "Exo 2", system-ui, sans-serif;
}

.outflow-card:hover .outflow-copy,
.inflow-card:hover .inflow-copy,
.pattern-card:hover .pattern-copy,
.correlation-card:hover .correlation-copy {
    opacity: 1;
}

.outflow-copy:hover,
.inflow-copy:hover,
.pattern-copy:hover,
.correlation-copy:hover {
    color: var(--cyan);
    background: rgba(52, 214, 255, 0.1);
}

.outflow-copy.copied,
.inflow-copy.copied,
.pattern-copy.copied,
.correlation-copy.copied {
    color: var(--green);
}

/* Amount Section - Right-aligned, min-width: 96px */
.outflow-amount,
.inflow-amount,
.pattern-amount,
.correlation-amount {
    text-align: right;
    flex-shrink: 0;
    min-width: 96px;
}

.outflow-value,
.inflow-value,
.pattern-value,
.correlation-value {
    color: var(--text-100);
    font-size: 18px;
    font-weight: 700;
    font-family: "Orbitron", system-ui, sans-serif;
    margin-bottom: 6px;
}

/* Tag Below Amount */
.outflow-tag,
.inflow-tag,
.pattern-tag,
.correlation-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 18px;
    display: inline-block;
}

.outflow-tag {
    background: var(--red);
    color: white;
}

.inflow-tag {
    background: var(--green);
    color: white;
}

.pattern-tag {
    background: var(--purple);
    color: white;
}

.correlation-tag {
    background: var(--cyan);
    color: white;
}

/* Actions - 40x40 hit area */
.outflow-actions,
.inflow-actions,
.pattern-actions,
.correlation-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outflow-card:hover .outflow-actions,
.inflow-card:hover .inflow-actions,
.pattern-card:hover .pattern-actions,
.correlation-card:hover .correlation-actions {
    opacity: 1;
}

.outflow-view,
.inflow-view,
.pattern-view,
.correlation-view {
    color: var(--cyan);
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outflow-view:hover,
.inflow-view:hover,
.pattern-view:hover,
.correlation-view:hover {
    background: rgba(52, 214, 255, 0.1);
    color: var(--cyan);
}

/* Responsive Grid */
@media (min-width: 900px) {
    .outflows-grid,
    .inflows-grid,
    .patterns-grid,
    .correlations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .outflows-grid,
    .inflows-grid,
    .patterns-grid,
    .correlations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .outflow-card,
    .inflow-card,
    .pattern-card,
    .correlation-card {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
    }
    
    .outflow-rank,
    .inflow-rank,
    .pattern-rank,
    .correlation-rank {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .outflow-value,
    .inflow-value,
    .pattern-value,
    .correlation-value {
        font-size: 16px;
    }
    
    .outflow-route,
    .inflow-route,
    .pattern-route,
    .correlation-route {
        font-size: 13px;
    }
    
    .outflow-meta,
    .inflow-meta,
    .pattern-meta,
    .correlation-meta {
        font-size: 11px;
        gap: 6px;
    }
    
    .outflow-actions,
    .inflow-actions,
    .pattern-actions,
    .correlation-actions {
        opacity: 1;
        width: 32px;
        height: 32px;
    }
    
    .outflow-amount,
    .inflow-amount,
    .pattern-amount,
    .correlation-amount {
        text-align: left;
        min-width: auto;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    

    
    .flow-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
        min-height: 80px;
        text-align: left;
    }
    
    .flow-icon {
        align-self: center;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        gap: 1px;
    }
    
    .flow-type-text {
        font-size: 0.55rem;
        margin-top: -1px;
    }
    
    .flow-content {
        width: 100%;
        gap: 12px;
    }
    
    .flow-main-info {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    .flow-amount {
        align-self: flex-start;
    }
    
    .usd-amount {
        font-size: 1rem;
        padding: 5px 10px;
        max-width: 100%;
    }
    
    .flow-address {
        font-size: 0.75rem;
        padding: 5px 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .flow-secondary-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
        overflow: hidden;
    }
    
    .flow-hash {
        align-self: flex-start;
    }
    
    .flow-hash a {
        font-size: 0.75rem;
        padding: 5px 8px;
        min-width: 70px;
        max-width: 100%;
    }
    
    .flow-time {
        font-size: 0.7rem;
        padding: 3px 6px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    

    
    .flow-item {
        padding: 14px;
        gap: 12px;
    }
    
    .flow-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        gap: 1px;
    }
    
    .flow-type-text {
        font-size: 0.5rem;
        margin-top: -1px;
    }
    
    .usd-amount {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    .flow-address {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    
    .flow-hash a {
        font-size: 0.7rem;
        padding: 4px 6px;
        min-width: 60px;
    }
    
    .flow-time {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}



/* LiveFlows Component Styles */
.live-flows {
    background: var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* Header */
.lf-header {
    background: var(--bg-800);
    padding: 24px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lf-header-left {
    flex: 1;
}

.lf-header h2 {
    color: var(--text-100);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    font-family: "Orbitron", system-ui, sans-serif;
    text-transform: uppercase;
}

.lf-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Orbitron", system-ui, sans-serif;
    flex-shrink: 0;
    margin-left: 24px;
}

.lf-status .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.2s ease-in-out infinite;
}

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

.lf-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.lf-tools button {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Orbitron", system-ui, sans-serif;
}

.lf-tools button:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

.lf-tools button.is-active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 0 20px rgba(122, 92, 255, 0.3);
}

.lf-tools input[type="search"] {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-100);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    min-width: 200px;
    transition: border-color 0.2s ease;
    font-family: "Exo 2", system-ui, sans-serif;
}

.lf-tools input[type="search"]:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(52, 214, 255, 0.1);
}

.lf-tools input[type="search"]::placeholder {
    color: var(--text-400);
}

.lf-tools select {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-100);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-family: "Exo 2", system-ui, sans-serif;
}

.lf-tools select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(52, 214, 255, 0.1);
}

/* List */
.lf-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    max-height: 400px; /* Height for approximately 5 items (5 * 72px + some padding) */
}

.lf-list::-webkit-scrollbar {
    width: 8px;
}

.lf-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.lf-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lf-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4dd6ff, #8a6bff);
    box-shadow: 0 0 10px rgba(52, 214, 255, 0.3);
}

/* Empty State */
.lf-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-400);
}

.lf-empty-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.lf-empty h3 {
    color: var(--text-100);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-family: "Orbitron", system-ui, sans-serif;
}

.lf-empty p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    font-family: "Exo 2", system-ui, sans-serif;
}

/* Flow Items */
.lf-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    transition: all 0.2s ease;
    position: relative;
}

.lf-item:hover {
    background: var(--bg-800);
    transform: translateY(-1px);
}

.lf-item:last-child {
    border-bottom: none;
}

/* Badge */
.lf-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.lf-item.in .lf-badge {
    background: var(--green);
    color: white;
}

.lf-item.out .lf-badge {
    background: var(--red);
    color: white;
}

.lf-badge i {
    font-size: 14px;
    opacity: 0.8;
}

/* Primary Info */
.lf-primary {
    min-width: 120px;
    flex-shrink: 0;
}

.lf-amount {
    color: var(--text-100);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    font-family: "Orbitron", system-ui, sans-serif;
}

.lf-time {
    color: var(--text-400);
    font-size: 12px;
    font-weight: 500;
    font-family: "Orbitron", system-ui, sans-serif;
}

/* Route */
.lf-route {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.lf-route-text {
    color: var(--text-400);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.2px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lf-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.lf-copy,
.lf-view {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lf-copy:hover,
.lf-view:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

.lf-copy:focus,
.lf-view:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.lf-copy.copied {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.lf-copy i,
.lf-view i {
    font-size: 12px;
}

/* Jump to Latest Button */
.lf-jump {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--purple);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(122, 92, 255, 0.3);
    z-index: 20;
    font-family: "Orbitron", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lf-jump:hover {
    background: #8a6bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(122, 92, 255, 0.4);
}

.lf-jump:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Entrance Animation */
.lf-item.entering {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
        background: rgba(29, 223, 138, 0.12);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        background: var(--surface);
    }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .lf-header {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .lf-header-left {
        width: 100%;
    }
    
    .lf-status {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .lf-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .lf-tools input[type="search"] {
        min-width: auto;
    }
    
    .lf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    
    .lf-primary {
        min-width: auto;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .lf-amount {
        margin-bottom: 0;
    }
    
    .lf-route {
        width: 100%;
        justify-content: space-between;
    }
    
    .lf-view {
        display: none;
    }
    
    .lf-jump {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* Focus States for Accessibility */
.lf-item:focus-within {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .live-flows {
        border-color: #ffffff;
    }
    
    .lf-item:hover {
        background: #000000;
    }
}

