/* ── Volume Spike Panel ── */

#tab-volume-spikes {
    padding: 0;
}

.vs-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 152, 0, 0.05);
    border-bottom: 1px solid rgba(255, 152, 0, 0.15);
}

.vs-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ff9800;
    font-weight: bold;
}

.vs-header-left .vs-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff9800;
    animation: vs-pulse 1.5s ease-in-out infinite;
}

@keyframes vs-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #ff9800; }
    50% { opacity: 0.4; box-shadow: none; }
}

.vs-header-right {
    font-size: 10px;
    color: #666;
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.vs-table thead th {
    padding: 6px 10px;
    text-align: left;
    color: #666;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #1a1a2e;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.vs-sort-header {
    cursor: pointer;
    transition: color 0.2s;
}

.vs-sort-header:hover {
    color: #ff9800;
}

.vs-sort-header.sort-active {
    color: #ff9800;
}

.vs-sort-header::after {
    content: ' ▼';
    font-size: 8px;
    opacity: 0.3;
}

.vs-sort-header.sort-active::after {
    opacity: 1;
}

.vs-sort-header.sort-active.sort-asc::after {
    content: ' ▲';
    opacity: 1;
}

/* ── Rows ── */

.vs-row {
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.vs-row:hover {
    background: rgba(255, 152, 0, 0.08);
}

.vs-row td {
    padding: 8px 10px;
    vertical-align: middle;
}

/* ── Symbol Column ── */

.vs-symbol {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.vs-coin-name {
    font-weight: 700;
    color: #fff;
    font-size: 12px;
}

.vs-coin-pair {
    font-size: 9px;
    color: #555;
}

/* ── Price Column ── */

.vs-price {
    white-space: nowrap;
}

.vs-price-val {
    color: #ddd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.vs-price-change {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.vs-price-change.positive {
    color: #00ff41;
}

.vs-price-change.negative {
    color: #ff003c;
}

/* ── Spike Badge ── */

.vs-spike-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}

.vs-spike-badge.spike-medium {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.vs-spike-badge.spike-high {
    background: rgba(255, 87, 34, 0.15);
    color: #ff5722;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.vs-spike-badge.spike-extreme {
    background: rgba(255, 0, 60, 0.15);
    color: #ff003c;
    border: 1px solid rgba(255, 0, 60, 0.3);
    animation: vs-glow 2s ease-in-out infinite;
}

@keyframes vs-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 0, 60, 0.3); }
    50% { box-shadow: 0 0 12px rgba(255, 0, 60, 0.5); }
}

/* ── Volume Column ── */

.vs-volume {
    white-space: nowrap;
}

.vs-vol-now {
    color: #ff9800;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.vs-vol-avg {
    color: #555;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 1px;
}

/* ── Time Column ── */

.vs-time {
    color: #555;
    font-size: 10px;
    white-space: nowrap;
}

/* ── Spike Row Highlights ── */

.vs-row.spike-extreme {
    background: rgba(255, 0, 60, 0.03);
}

.vs-row.spike-high {
    background: rgba(255, 87, 34, 0.02);
}

/* ── Tab Badge ── */

.tab-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Direction Badge ── */

.vs-direction {
    text-align: center;
}

.vs-dir-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vs-dir-buy {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.vs-dir-sell {
    background: rgba(255, 0, 60, 0.15);
    color: #ff003c;
    border: 1px solid rgba(255, 0, 60, 0.3);
}

.vs-dir-neutral {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-buy-pct {
    display: block;
    font-size: 9px;
    color: #555;
    margin-top: 2px;
}

/* ── Scrollable Table Body ── */

.vs-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    background: #0a0a0a;
    border-radius: 0 0 6px 6px;
}

.vs-table-wrapper::-webkit-scrollbar {
    width: 4px;
}

.vs-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.vs-table-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}
