* { box-sizing: border-box; }

body {
    background: #030c25;
    color: #abaebd;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
}

h1 {
    color: #00c4ff;
    font-size: 20px;
    margin-bottom: 16px;
}

.import-panel, .view-panel {
    background: #0a1533;
    border: 1px solid #1c2b52;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

select, input[type="file"] {
    background: #12132f;
    color: #abaebd;
    border: 1px solid #2a3a66;
    border-radius: 4px;
    padding: 4px 6px;
}

button {
    padding: 6px 14px;
    cursor: pointer;
    background: #12132f;
    color: #00c4ff;
    border: 1px solid #2a3a66;
    border-radius: 4px;
    font-size: 13px;
}

button:hover {
    background: #1c2b52;
}

#importStatus {
    font-size: 12px;
}

#importStatus.success { color: #4caf50; }
#importStatus.error { color: #f44336; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #2a3a66;
    color: #00c4ff;
    white-space: nowrap;
}

tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #1c2b52;
    white-space: nowrap;
}

.empty-row {
    text-align: center;
    opacity: 0.6;
    padding: 20px;
}

a.ca-link {
    color: #00c4ff;
    text-decoration: none;
    font-family: Arial;
}

a.ca-link:hover {
    text-decoration: underline;
}

.score-badge {
    font-weight: bold;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
}

.score-plus {
    color: #ffd54f;
}

.score-green   { color: #4caf50; }
.score-yellow  { color: #ffd54f; }
.score-orange-light { color: #ffb74d; }
.score-orange-dark  { color: #ff7043; }
.score-red     { color: #f44336; }

.change-up   { color: #4caf50; }
.change-down { color: #f44336; }
.change-na   { color: #888; }

.history-strip {
    display: inline-flex;
    gap: 6px;
}

.history-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px;
    border-radius: 3px;
    background: #12132f;
    font-size: 11px;
    width: 92px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid transparent;
}

.item-delete-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 1.4;
    color: #f44336;
    border: none;
    background: transparent;
}

.item-delete-btn:hover {
    background: #3a1414;
    border-radius: 2px;
}

.history-item.item-border-green {
    border-color: #4caf50;
}

.history-item.item-border-red {
    border-color: #f44336;
}

.history-item.item-border-blue {
    border-color: #2196f3;
}

.history-price {
    font-size: 10.5px;
    color: #7c8299;
    font-family: Arial;
    white-space: nowrap;
}

.toggle-btn {
    font-size: 11px;
    padding: 4px 8px;
    white-space: normal;
}

.toggle-visible {
    color: #4caf50;
    border-color: #2e5c33;
}

.toggle-hidden {
    color: #f44336;
    border-color: #5c2e2e;
}

tr.row-hidden {
    opacity: 0.5;
}

.token-symbol {
    cursor: pointer;
    color: #00c4ff;
    text-decoration: underline dotted;
}

.token-symbol:hover {
    color: #66e0ff;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #0a1533;
    border: 1px solid #2a3a66;
    border-radius: 8px;
    padding: 16px;
    max-width: 800px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #00c4ff;
    font-size: 14px;
}

.modal-header button {
    padding: 2px 8px;
}

.price-chart-svg {
    width: 100%;
    height: auto;
}

.chart-line {
    fill: none;
    stroke: #00c4ff;
    stroke-width: 1.5;
}

.chart-point {
    fill: #00c4ff;
}

.chart-gridline {
    stroke: #1c2b52;
    stroke-width: 1;
}

.chart-axis-label {
    fill: #7c8299;
    font-size: 10px;
}

.chart-point-label {
    fill: #abaebd;
    font-size: 12px;
    font-family: Arial;
}

.chart-empty {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
}

th.sortable { cursor: pointer; user-select: none; }
th.sortable.sort-active { color: #fff; }