body.finance-page {
    background: var(--gradient-hero);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body.finance-page .header {
    background: rgba(10, 12, 18, 0.92);
    border-bottom: 1px solid #222a32;
}

body.finance-page main {
    padding: 48px 0 88px;
}

.cot-container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.cot-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.cot-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin: 0;
}

.cot-hero p {
    color: #9aa4ad;
    margin: 0;
    max-width: 720px;
}

.cot-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222a32;
    border-radius: 16px;
    padding: 16px 20px;
}

.cot-error {
    color: #ff5c6c;
    font-size: 14px;
    min-height: 18px;
}

.cot-controls label {
    font-size: 14px;
    color: #9aa4ad;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cot-controls select {
    border: 1px solid #222a32;
    border-radius: 10px;
    background: #14181d;
    color: #e6ecf1;
    padding: 8px 12px;
    font-size: 14px;
}

.cot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.cot-card {
    background: #14181d;
    border: 1px solid #222a32;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.cot-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cot-card-title {
    font-size: 1.125rem;
    margin: 0;
}

.cot-card-segment {
    font-size: 12px;
    color: #9aa4ad;
    border: 1px solid #222a32;
    border-radius: 999px;
    padding: 4px 9px;
}

.cot-card-subtitle {
    color: #9aa4ad;
    font-size: 13px;
}

.cot-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cot-kpi {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222a32;
    border-radius: 12px;
    padding: 12px;
}

.cot-kpi-label {
    font-size: 12px;
    color: #9aa4ad;
}

.cot-kpi-value {
    font-size: 18px;
    margin-top: 6px;
}

.cot-kpi-value.up {
    color: #2dbf71;
}

.cot-kpi-value.down {
    color: #ff5c6c;
}

.cot-spark {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
    margin: 12px 0 8px;
}

.cot-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9aa4ad;
}

.cot-pill {
    border-radius: 999px;
    border: 1px solid #222a32;
    padding: 5px 10px;
}

.cot-pill.up {
    border-color: rgba(45, 191, 113, 0.35);
    color: #2dbf71;
}

.cot-pill.down {
    border-color: rgba(255, 92, 108, 0.35);
    color: #ff5c6c;
}

.cot-card a {
    color: inherit;
    text-decoration: none;
}

.cot-empty {
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed #222a32;
    color: #9aa4ad;
    text-align: center;
}

/* Detail page */

.cot-detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 32px;
}

/* News section */
.cot-news {
    margin-top: 28px;
    background: #14181d;
    border: 1px solid #222a32;
    border-radius: 16px;
    overflow: hidden;
}

.cot-news h2 {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #222a32;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cot-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cot-news-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 20px;
    border-bottom: 1px solid #222a32;
}

.cot-news-item:last-child { border-bottom: none; }

.cot-news-item a { color: #e6ecf1; text-decoration: none; }
.cot-news-item a:hover { text-decoration: underline; }

.cot-news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #9aa4ad;
    font-size: 12px;
}

.cot-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #222a32;
    border-radius: 999px;
    font-size: 11px;
    color: #9aa4ad;
}

.cot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9aa4ad;
    border: 1px solid #222a32;
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
}

.cot-detail-main {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cot-detail-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.cot-detail-kpi {
    background: rgba(255,255,255,0.02);
    border: 1px solid #222a32;
    border-radius: 12px;
    padding: 12px;
}

.cot-detail-kpi .cot-kpi-label {
    font-size: 13px;
}

.cot-detail-spark {
    flex: 1 1 360px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
    border-radius: 16px;
}

.cot-table-wrap {
    background: #14181d;
    border: 1px solid #222a32;
    border-radius: 16px;
    overflow: hidden;
}

.cot-table-wrap h2 {
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #222a32;
    font-size: 1.1rem;
}

.cot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cot-table th,
.cot-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #222a32;
}

.cot-table th {
    text-align: left;
    color: #9aa4ad;
    font-weight: 500;
}

.cot-table td {
    text-align: right;
}

.cot-table td:first-child,
.cot-table th:first-child {
    text-align: left;
}

.cot-back-link {
    color: #9aa4ad;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cot-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cot-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cot-detail-hero {
        flex-direction: column;
    }

    .cot-detail-spark {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .cot-kpi-row {
        grid-template-columns: 1fr;
    }
}
