﻿#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 150;
    padding: 12px;
}
.modal-content {
    background: #12161f;
    padding: 16px;
    border: 1px solid #1e2638;
    width: 1280px;
    max-width: 98vw;
    height: 92vh;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e2638;
    padding-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #0b0d12;
    border: 1px solid #1e2638;
}
.modal-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-transform: capitalize;
}
.modal-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}
.modal-controls-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.close-btn {
    cursor: pointer;
    font-size: 1.25rem;
    color: #64748b;
    transition: color 0.2s;
    line-height: 1;
}
.close-btn:hover { color: #ffffff; }

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 12px;
    flex: 1;
    min-height: 0;
}
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.chart-container {
    background: #0b0d12;
    padding: 10px;
    border: 1px solid #1e2638;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    position: relative;
}
.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}
.chart-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.comparison-sidebar {
    background: #0b0d12;
    border: 1px solid #1e2638;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
}
.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comparison-card {
    background: #12161f;
    border: 1px solid #1e2638;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comparison-card.current {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}

.comp-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.comp-claim-name {
    font-weight: 600;
    color: #ffffff;
}
.comp-time {
    font-size: 0.7rem;
    color: #64748b;
    flex-shrink: 0;
}
.comp-row-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    gap: 8px;
    flex-wrap: wrap;
}
.comp-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4px;
}

.chart-container .buy-legend-indicator { color: #4ade80; }
.chart-container .sell-legend-indicator { color: #f87171; }

.comparison-stats {
    background: #0b0d12;
    border: 1px solid #1e2638;
    padding: 8px 10px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}
.comparison-stats strong { color: #ffffff; }