/* Crypto / Sarafu za Kidijitali */

.crypto-page .finance-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.crypto-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.crypto-live-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

.crypto-updated {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.crypto-notice {
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.crypto-notice__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.crypto-notice__body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.crypto-section {
    margin-bottom: 28px;
}

.crypto-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.crypto-section__sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.crypto-card {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.crypto-card:hover {
    border-color: rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.crypto-card.is-flash {
    animation: cryptoFlash 0.7s ease;
}

@keyframes cryptoFlash {
    0% { background: rgba(16, 185, 129, 0.12); }
    100% { background: rgba(255, 255, 255, 0.85); }
}

.crypto-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.crypto-card__name {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.25;
}

.crypto-card__symbol {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.crypto-card__peg {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 7px;
    border-radius: 6px;
}

.crypto-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.crypto-card__pending {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.crypto-card__change {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.crypto-card__change-hint {
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.crypto-card__meta {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.crypto-card__note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Price table (stablecoins) */
.crypto-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.crypto-price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.crypto-price-table th,
.crypto-price-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.crypto-price-table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.02);
}

.crypto-price-table tbody tr:last-child td {
    border-bottom: none;
}

.crypto-price-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.015);
}

.crypto-price-row.is-flash td {
    animation: cryptoRowFlash 0.7s ease;
}

@keyframes cryptoRowFlash {
    0% { background: rgba(16, 185, 129, 0.1); }
    100% { background: transparent; }
}

.crypto-table-asset {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-table-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.crypto-table-symbol {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.crypto-table-peg {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 7px;
    border-radius: 6px;
}

.crypto-table-muted {
    color: var(--text-tertiary);
}

.crypto-price-table .col-price,
.crypto-price-table .col-change {
    text-align: right;
    white-space: nowrap;
}

.crypto-price-table th.col-price,
.crypto-price-table th.col-change {
    text-align: right;
}

.crypto-table-price {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.crypto-table-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.crypto-price-table .col-change {
    font-size: 12px;
    font-weight: 600;
}

.crypto-price-table .col-country {
    font-size: 13px;
    color: var(--text-secondary);
}

.crypto-table-footnote {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .crypto-header-meta {
        align-items: flex-start;
    }

    .crypto-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    }

    .crypto-price-table th.col-country,
    .crypto-price-table td.col-country {
        display: none;
    }

    .crypto-price-table {
        min-width: 420px;
    }
}
