/* ===================================
   Dashboard Styles
   =================================== */

.dashboard-section {
    max-width: 1200px;
    margin: var(--spacing-md) auto var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.dashboard-panel {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: none;
    padding: var(--spacing-md) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.dashboard-panel-alt {
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ddd;
    margin-bottom: var(--spacing-xs);
    background: rgba(10, 14, 26, 0.8);
}

.dashboard-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.dashboard-hero-sub {
    font-size: 13px;
    color: var(--gray);
    max-width: 520px;
}

.dashboard-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.dashboard-hero-metric {
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-sm);
    border: 1px solid rgba(255,255,255,0.16);
    background: radial-gradient(circle at top left, rgba(0,87,183,0.3), rgba(10,14,26,0.95));
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}

.dashboard-hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    margin-bottom: 2px;
}

.dashboard-hero-value {
    font-size: 16px;
    font-weight: 600;
}

.dashboard-hero-ring {
    position: absolute;
    right: -45px;
    top: -45px;
    width: 220px;
    height: 220px;
    border-radius: var(--radius-full);
    background: conic-gradient(
        from 210deg,
        var(--ukraine-blue),
        #0ea5e9,
        var(--ukraine-yellow),
        #f97316,
        var(--ukraine-blue)
    );
    opacity: 0.18;
    filter: blur(0.4px);
}

.dashboard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.dashboard-chip {
    border-radius: var(--radius-full);
    padding: 4px var(--spacing-sm);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 11px;
    color: var(--gray);
    background: rgba(10, 14, 26, 0.7);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.dashboard-chip:hover {
    background: rgba(0,87,183,0.3);
    border-color: var(--ukraine-blue);
    box-shadow: var(--shadow-md);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.dashboard-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.dashboard-stat-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 4px;
}

.dashboard-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--ukraine-yellow);
}

.dashboard-stat-sub {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.dashboard-pill-small {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 2px var(--spacing-xs);
    margin-top: var(--spacing-xs);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 10px;
    color: var(--gray);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: var(--spacing-md);
}

.dashboard-chart-title {
    font-size: 13px;
    margin-bottom: 2px;
}

.dashboard-chart-sub {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: var(--spacing-xs);
}

.dashboard-footer-note {
    font-size: 11px;
    color: var(--gray);
    margin-top: var(--spacing-sm);
    text-align: center;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--gray);
    margin: var(--spacing-xs) 0 2px;
}

.dashboard-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--ukraine-blue);
    box-shadow: 0 0 0 0 rgba(0,87,183,0.75);
    animation: dashboard-pulse 1.2s infinite;
}

@keyframes dashboard-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,87,183,0.75);
    }
    70% {
        transform: scale(1.4);
        box-shadow: 0 0 0 8px rgba(0,87,183,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,87,183,0);
    }
}

#tvlChart,
#dashPriceChart {
    width: 100% !important;
    height: 220px !important;
}

/* Стилі для карточки TVL */
.stats-card-header {
    margin-bottom: 14px;
}

.stats-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e9eefc;
}

.stats-card-subtitle {
    font-size: 12px;
    color: var(--gray);
}

.stats-card-body {
    position: relative;
}

/* ==== ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ СЕКЦИЙ САЙТА (как дашборд) ==== */

.page-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-panel {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: none;
    padding: 26px 24px 26px;
    position: relative;
    overflow: hidden;
}

.page-panel-alt {
    background: rgba(0,0,0,0.2);
}

.page-section-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-section-subtitle {
    font-size: 14px;
    color: var(--gray);
    max-width: 720px;
    margin-bottom: 24px;
}

.page-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ddd;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.2);
}

/* карточки внутри новых секций — те же, что в дашборде */

.page-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px 18px 16px;
}

.page-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.page-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--ukraine-blue), var(--ukraine-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.page-card-title {
    font-size: 16px;
    font-weight: 600;
}

.page-card-text {
    font-size: 13px;
    color: var(--gray);
}

/* немного адаптивности */

@media (max-width: 768px) {
    .page-section {
        margin: 30px auto;
        padding: 0 16px;
    }
}


/* Правый блок "Рівні стейкінгу (USD)" стилизуем как hero-мэтрик */
.tiers-card {
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255,255,255,0.16);
    background: radial-gradient(
        circle at top left,
        rgba(0,87,183,0.3),
        rgba(10,14,26,0.95)
    );
    box-shadow: var(--shadow-sm);
}

/* Подсветка активного тира */
.tiers-list li.active-tier {
    color: var(--ukraine-yellow);
    font-weight: 600;
}
