@charset "utf-8";

.fx-market {
    padding: 80px 0 120px;
    background: #fff;
}

.fx-market__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-left: 28px;
    border-left: 4px solid #b48c00;
}

.fx-market__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #b48c00;
    line-height: 12px;
}

.fx-market__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.fx-market__updated {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: #64748b;
    line-height: 20px;
    text-align: right;
}

.fx-market__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 900px) {
    .fx-market__grid {
        grid-template-columns: 1fr;
    }
}

.fx-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 33px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background-color: #fff;
}

.fx-card--usd {
    background-image:
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(180, 140, 0, 0.06) 0%, rgba(180, 140, 0, 0) 55%),
        linear-gradient(90deg, #fff 0%, #fff 100%);
}

.fx-card--jpy {
    background-image:
        linear-gradient(19.7deg, rgba(180, 140, 0, 0.04) 25%, rgba(180, 140, 0, 0) 25%, rgba(180, 140, 0, 0) 50%, rgba(180, 140, 0, 0.04) 50%, rgba(180, 140, 0, 0.04) 75%, rgba(180, 140, 0, 0) 75%, rgba(180, 140, 0, 0) 100%),
        linear-gradient(90deg, #fff, #fff);
}

.fx-card--cny {
    background-image:
        linear-gradient(0deg, rgba(180, 140, 0, 0) 0%, rgba(180, 140, 0, 0) 92%, rgba(180, 140, 0, 0.04) 92%, rgba(180, 140, 0, 0.04) 100%),
        linear-gradient(90deg, #fff, #fff);
}

.fx-card--eur {
    background-image:
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(180, 140, 0, 0.06) 0%, rgba(180, 140, 0, 0) 55%),
        linear-gradient(90deg, #fff, #fff);
}

.fx-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fx-card__left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.fx-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 140, 0, 0.2);
    background: rgba(180, 140, 0, 0.05);
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    color: #b48c00;
    line-height: 1;
}

.fx-card__pair {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    line-height: 28px;
}

.fx-card__label {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 16px;
}

.fx-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.fx-card__badge-arrow {
    font-size: 9px;
    line-height: 1;
}

.fx-card__badge--down {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}

.fx-card__badge--up {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.fx-card__badge--flat {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.fx-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
}

.fx-card__price {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.1;
}

.fx-card__unit {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    line-height: 24px;
}
