.hero--web { display: block; padding: 54px 0 32px; }
.hero--web h1 { max-width: 100%; font-size: clamp(32px, 4.5vw, 54px); margin-bottom: 16px; }
.hero--web .lead { max-width: 820px; font-size: 18px; margin-bottom: 20px; }
.hero--web .trust-row { margin-top: 18px; }
.converter-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding-bottom: 42px; scroll-margin-top: 90px; }
.converter-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.converter-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.converter-heading h2 { margin: 0; font-size: 22px; }
.converter-heading bdi { font-size: 13px; color: var(--muted); }
.text-button { color: var(--brand); font-size: 13px; border: 0; background: transparent; cursor: pointer; padding: 6px 0; text-align: start; }
.pair-controls { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 10px; align-items: end; margin-bottom: 22px; }
.field-label { display: block; color: var(--muted); font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.currency-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-soft); text-align: start; cursor: pointer; }
.currency-select strong, .currency-select small { display: block; }
.currency-select small { margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.currency-select > span:first-child { min-width: 0; }
.swap-button { height: 42px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 23px; cursor: pointer; }
.amount-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--surface); }
.amount-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 28px; direction: ltr; }
.amount-field > span { color: var(--muted); font-size: 13px; }
.conversion-result { margin-top: 22px; padding: 20px; background: var(--brand-soft); border-radius: 8px; }
.conversion-result output { display: block; font-size: clamp(23px, 3vw, 34px); font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.conversion-result p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
#unit-rate { unicode-bidi: plaintext; color: var(--text); font-size: 14px; }
.status-note { min-height: 20px; font-size: 12px; color: var(--muted); margin: 12px 0; }
.error-message, .status-note.error { color: var(--danger); }
.error-message { font-size: 13px; }
.converter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
button:disabled { cursor: default; opacity: .55; }
.period-buttons { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.period-buttons button { flex: 1; min-width: 0; padding: 8px 2px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 13px; cursor: pointer; }
.period-buttons button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; }
.rate-chart { position: relative; height: 260px; direction: ltr; }
.rate-chart canvas { display: block; width: 100%; height: 100%; }
.chart-point { margin: 0; text-align: center; font-size: 12px; color: var(--brand-strong); min-height: 20px; }
.history-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 28px 0 16px; }
.history-stats span { display: block; color: var(--muted); font-size: 12px; }
.history-stats strong { display: block; font-size: 15px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.history-table { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.history-table summary { cursor: pointer; color: var(--brand); }
.table-scroll { max-height: 240px; overflow: auto; margin-top: 12px; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 7px; border-bottom: 1px solid var(--line); text-align: start; }
.table-scroll th { position: sticky; top: 0; background: var(--surface); }
.rate-disclaimer { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.rate-disclaimer a { color: var(--brand); }
.language-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 22px; }
.language-links a[aria-current="page"] { color: var(--brand); font-weight: 800; }
.currency-dialog { width: min(460px, calc(100% - 28px)); max-width: none; max-height: min(680px, calc(100dvh - 28px)); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.currency-dialog::backdrop { background: rgba(8,22,20,.6); backdrop-filter: blur(4px); }
.currency-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.currency-dialog-header h2 { font-size: 22px; margin: 0; }
#currency-search { display: block; width: 100%; margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
#currency-results { max-height: 430px; overflow-y: auto; }
#currency-results h3 { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.currency-option { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: start; cursor: pointer; }
.currency-option:hover, .currency-option[aria-pressed="true"] { background: var(--brand-soft); }
.currency-option strong { flex: 0 0 45px; }
.currency-option span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 850px) { .converter-layout { grid-template-columns: minmax(0,1fr); } .hero--web { padding-top: 32px; } }
@media (max-width: 400px) { .converter-card { padding: 18px 14px; } .pair-controls { gap: 6px; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); } .conversion-result { padding: 14px; } .currency-select { padding: 8px; } }
