.exchange-page__intro {
    text-align: center;
    margin-bottom: 2rem;
}

.exchange-page__intro h1 {
    margin-bottom: 0.75rem;
}

.exchange-page__intro p {
    margin: 0 auto;
    max-width: 36rem;
    opacity: 0.88;
}

.exchange-card {
    padding: 2rem 2rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #eef3f8 0%, #e7edf4 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.exchange-section + .exchange-section {
    margin-top: 1.75rem;
}

.exchange-section__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.exchange-currencies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.exchange-currency {
    min-width: 4.5rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #2f3542;
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.exchange-currency:hover,
.exchange-currency:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 8px 18px rgba(47, 53, 66, 0.18);
}

.exchange-currency.is-active {
    background-color: #0be062;
    background-image: linear-gradient(180deg, #0be062 0%, #009b3f 100%);
    box-shadow: 0 10px 24px rgba(11, 224, 98, 0.28);
}

.exchange-currency.is-active:hover,
.exchange-currency.is-active:focus-visible {
    background-color: #009b3f;
    background-image: linear-gradient(180deg, #0be062 0%, #009b3f 100%);
    box-shadow: 0 10px 24px rgba(0, 155, 63, 0.32);
}

.exchange-input,
.exchange-result {
    display: block;
    width: 100%;
    min-height: 4.5rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 1.125rem;
    line-height: 1.4;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.exchange-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(11, 224, 98, 0.45);
}

.exchange-result {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.exchange-result.has-value {
    color: #111827;
    font-weight: 600;
}

.exchange-disclaimer,
.exchange-source,
.exchange-updated {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

[data-theme="dark"] .exchange-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .exchange-input,
[data-theme="dark"] .exchange-result.has-value {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

[data-theme="dark"] .exchange-result {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .exchange-disclaimer,
[data-theme="dark"] .exchange-source,
[data-theme="dark"] .exchange-updated {
    color: #94a3b8;
}

@media (max-width: 767px) {
    .exchange-card {
        padding: 1.25rem;
    }

    .exchange-currency {
        flex: 1 1 calc(33.333% - 0.625rem);
        min-width: 0;
    }
}
