:root {
    --fill-start: #00C853;
    --fill-end: #00E676;
    --track: #333;
    --muted: #aaa;
    --bg: #121212;
    --table-bg: #1e1e1e;
    --table-header: #2c2c2c;
    --text: #e0e0e0;
    --bar-color: rgba(255,255,255,0.25);
}

/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text);
}

.capitalization-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 70px;
}

.state {
    margin-bottom: 30px;
}

.tittle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sub {
    font-size: 14px;
    color: var(--muted);
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.stat {
    font-size: 16px;
}

/* ================= ПРОГРЕСС-БАР ================= */

.progress-wrap {
    position: relative;
    margin-top: 28px;
    height: 70px;
}

.track {
    background: var(--track);
    height: 24px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.fill {
    background: linear-gradient(90deg, var(--fill-start), var(--fill-end));
    height: 100%;
    width: 0;
    transition: width 1s ease;
    border-radius: 25px 0 0 25px;
    position: relative;
    z-index: 2;
}

/* Контейнер маркеров */
.markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
}

/* вертикальная линия уровня */
.marker .bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: var(--muted);
    opacity: 0.5;
}

/* если уровень достигнут — линия исчезает */
.marker.reached .bar {
    display: none;
}

/* подпись под прогресс-баром */
.marker .label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* цель — выделена */
.marker:last-child .label {
    color: var(--text);
    font-weight: 700;
}

/* убираем линии у первого и последнего */
.marker:first-child .bar,
.marker:last-child .bar {
    display: none;
}

/* хэштег */
.last-hashtag {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

/* график */
.first_state {
    margin-top: 30px;
    height: 300px;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
}

/* Активы */
.assets-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 10px;
    background: var(--table-bg);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #2c2c2c;
    color: var(--text);
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.tab-btn.active {
    background: var(--fill-start);
    color: #fff;
}

.tab-btn:hover {
    background: #3a3a3a;
}

.assets-content {
    display: flex;
    gap: 20px;
}

.assets-chart-container {
    width: 150px;
    flex-shrink: 0;
}

.assets-table-container {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
}

.assets-table-container table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.assets-table-container th,
.assets-table-container td {
    border: 1px solid #333;
    padding: 8px;
    text-align: center;
}

.assets-table-container th {
    background: var(--table-header);
}

.assets-table-container tr:nth-child(even) {
    background: #2c2c2c;
}

/* Плавность */
.fill, .tab-btn {
    transition: all 0.35s ease;
}

#downloadReport {
    background: transparent;
    color: white;
    border: 0;
    cursor: pointer;
}
.history-chart{
    height: inherit;
}
/* адаптив */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 8px;
    }

    .marker .label {
        font-size: 10px;
        white-space: nowrap;
    }
}
