:root {
  --hf-bg: #f5f6f8;
  --hf-panel: #ffffff;
  --hf-panel-soft: #f9fafb;
  --hf-ink: #121417;
  --hf-muted: #637083;
  --hf-line: rgba(18, 20, 23, 0.12);
  --hf-line-strong: rgba(18, 20, 23, 0.2);
  --hf-orange: #ff690f;
  --hf-orange-dark: #c54d07;
  --hf-green: #05805f;
  --hf-blue: #1e5aa8;
  --hf-purple: #5c3bb8;
  --hf-shadow: 0 18px 42px rgba(25, 33, 46, 0.1);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--hf-ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--hf-bg) 38%, #eef2f5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hf-shell {
  min-height: 100vh;
}

.hf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--hf-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.hf-header--results {
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 28px;
}

.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.hf-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.hf-search-band {
  display: grid;
  gap: 22px;
  padding: 40px 28px 28px;
  background:
    linear-gradient(135deg, rgba(255, 105, 15, 0.16), rgba(5, 128, 95, 0.1)),
    #ffffff;
}

.hf-search-band--landing {
  padding-top: 56px;
  padding-bottom: 34px;
}

.hf-title-block {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hf-kicker,
.hf-provider-meta,
.hf-row-label,
.hf-source-link {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hf-kicker {
  margin: 0 0 8px;
  color: var(--hf-orange-dark);
}

.hf-title-block h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.hf-search-form {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.75fr 0.55fr 1fr 0.6fr 1.1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--hf-line-strong);
  border-radius: 8px;
  background: var(--hf-panel);
  box-shadow: var(--hf-shadow);
}

.hf-search-form--header {
  flex: 1 1 960px;
  width: auto;
  min-width: 0;
  margin: 0;
  grid-template-columns: 1.2fr 1.2fr 0.72fr 0.55fr 1fr 0.6fr 1.05fr auto;
  gap: 8px;
  padding: 10px;
  box-shadow: none;
}

.hf-search-form--header .hf-field input,
.hf-search-form--header .hf-field select,
.hf-search-form--header .hf-primary-button,
.hf-search-form--header .hf-secondary-button {
  min-height: 42px;
}

.hf-search-form--header .hf-field span {
  font-size: 0.72rem;
}

.hf-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hf-field span {
  color: var(--hf-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hf-field input,
.hf-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid var(--hf-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--hf-ink);
}

.hf-field input:focus-visible,
.hf-field select:focus-visible,
.hf-primary-button:focus-visible,
.hf-secondary-button:focus-visible,
.hf-provider-cta:focus-visible {
  outline: 3px solid rgba(255, 105, 15, 0.22);
  outline-offset: 2px;
}

.hf-search-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.hf-primary-button,
.hf-secondary-button,
.hf-provider-cta {
  min-height: 46px;
  border-radius: 6px;
  font-weight: 900;
}

.hf-primary-button {
  min-width: 104px;
  border: 1px solid var(--hf-orange);
  color: #ffffff;
  background: var(--hf-orange);
}

.hf-secondary-button {
  min-width: 76px;
  border: 1px solid var(--hf-line-strong);
  color: var(--hf-ink);
  background: #ffffff;
}

.hf-search-body {
  width: min(1180px, calc(100% - 56px));
  margin: 22px auto 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hf-filters--static {
  position: static;
}

.hf-search-copy {
  min-height: 340px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 105, 15, 0.12), rgba(5, 128, 95, 0.11)),
    var(--hf-panel);
}

.hf-search-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.hf-search-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--hf-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.45;
}

.hf-results-page {
  padding-top: 18px;
}

.hf-results-layout {
  width: min(1180px, calc(100% - 56px));
  margin: 18px auto 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hf-results-layout--results {
  width: calc(100% - 40px);
  max-width: none;
  margin-top: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.hf-filters {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.hf-filter-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: var(--hf-panel);
}

.hf-filter-group h2,
.hf-filter-group legend {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.hf-filter-group p {
  margin: 0;
  color: var(--hf-muted);
  line-height: 1.45;
}

.hf-filter-group label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--hf-muted);
  font-weight: 700;
}

.hf-filter-group input {
  width: 18px;
  height: 18px;
}

.hf-results {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hf-results-head {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: var(--hf-panel);
}

.hf-results-head h1,
.hf-results-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.hf-results-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--hf-muted);
  line-height: 1.45;
}

.hf-reference-summary {
  display: grid;
  gap: 6px;
  min-width: 230px;
}

.hf-reference-summary span {
  color: var(--hf-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hf-reference-summary strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--hf-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--hf-ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.hf-sort-control {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 190px;
}

.hf-sort-control span {
  color: var(--hf-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hf-sort-control select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--hf-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--hf-ink);
}

.hf-via20-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(5, 128, 95, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 128, 95, 0.08), rgba(255, 255, 255, 0.98));
}

.hf-via20-card strong {
  display: block;
  font-size: 1.2rem;
}

.hf-via20-card p {
  margin: 0;
  color: var(--hf-muted);
  line-height: 1.45;
}

.hf-results-list {
  display: grid;
  gap: 10px;
}

.hf-provider-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(250px, 1.1fr) minmax(210px, 0.8fr);
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: var(--hf-panel);
}

.hf-results-layout--results .hf-provider-row {
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.25fr) minmax(240px, 0.8fr);
  gap: 18px;
}

.hf-provider-row.is-unavailable {
  opacity: 0.74;
}

.hf-provider-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.hf-provider-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.logo-wise { background: #163300; }
.logo-western-union { background: #111111; color: #ffd100; }
.logo-revolut { background: #0666eb; }
.logo-airwallex { background: linear-gradient(135deg, #ff4f42, #ff8e3c); }
.logo-instarem { background: #7a2cff; }
.logo-nium { background: #14213d; }
.logo-thunes { background: #18206f; }
.logo-terrapay { background: #009cde; }
.logo-currencycloud { background: #1b4d89; }
.logo-rapyd { background: #01a78a; }
.logo-dlocal { background: #111111; }
.logo-swan { background: #111827; }
.logo-tazapay { background: #0047ff; }
.logo-currencytransfer { background: #125f99; }
.logo-transfermate { background: #004b8d; }
.logo-flywire { background: #ff5f00; }
.logo-ebury { background: #19324a; }
.logo-ibanfirst { background: #213a8f; }
.logo-equals-money { background: #13294b; }
.logo-vertofx { background: #0b6b56; }
.logo-worldfirst { background: #0066ff; }
.logo-convera { background: #4c2f91; }
.logo-corpay { background: #005a8d; }
.logo-moneycorp { background: #0f334d; }
.logo-remitly { background: #00a878; }
.logo-moneygram { background: #d71920; }
.logo-ria { background: #0071bc; }
.logo-xoom { background: #003087; }
.logo-worldremit { background: #00a3e0; }
.logo-transfergo { background: #5333ed; }
.logo-paysend { background: #0b2b6f; }
.logo-atlantic-money { background: #0b5fff; }
.logo-xe { background: #002b49; }
.logo-ofx { background: #008c95; }
.logo-currencyfair { background: #1a7f37; }
.logo-skrill { background: #862165; }
.logo-payoneer { background: #ff4800; }
.logo-paypal { background: #003087; }
.logo-sling { background: #111827; }
.logo-remessa-online { background: #00a650; }
.logo-taptap-send { background: #ff6a00; }
.logo-profee { background: #151515; }
.logo-sendwave { background: #00a1df; }
.logo-boss-revolution { background: #ec1c24; }
.logo-koronapay { background: #f2b705; color: #111111; }
.logo-lemfi { background: #6f2cff; }
.logo-nala { background: #151515; }
.logo-small-world { background: #0054a6; }
.logo-onafriq { background: #272343; }

.hf-provider-name {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hf-provider-name strong {
  display: block;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.hf-provider-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.hf-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--hf-muted);
  background: var(--hf-panel-soft);
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 100%;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hf-tag-source {
  border: 1px solid rgba(19, 77, 100, 0.22);
  background: rgba(19, 77, 100, 0.08);
  color: #134d64;
}

.hf-tag-source.is-api {
  border-color: rgba(5, 128, 95, 0.28);
  background: rgba(5, 128, 95, 0.1);
  color: var(--hf-green);
}

.hf-tag-source.is-calculator {
  border-color: rgba(113, 78, 17, 0.24);
  background: rgba(213, 154, 67, 0.14);
  color: #714e11;
}

.hf-tag-source.is-scraped {
  border-color: rgba(118, 47, 20, 0.24);
  background: rgba(201, 95, 55, 0.12);
  color: #762f14;
}

.hf-provider-meta {
  color: var(--hf-muted);
}

.hf-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hf-rate-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hf-row-label {
  color: var(--hf-muted);
}

.hf-rate-cell strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.hf-recipient-block {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.hf-recipient-amount {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  color: var(--hf-ink);
  overflow-wrap: anywhere;
}

.hf-provider-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0 12px;
  border: 1px solid var(--hf-line-strong);
  color: var(--hf-ink);
  background: #ffffff;
}

.hf-source-link {
  color: var(--hf-blue);
}

.hf-empty-state {
  padding: 28px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: var(--hf-panel);
  color: var(--hf-muted);
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .hf-search-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hf-header--results {
    align-items: flex-start;
  }

  .hf-search-form--header {
    flex-basis: 100%;
  }

  .hf-search-actions {
    grid-column: auto;
  }

  .hf-search-body,
  .hf-results-layout {
    grid-template-columns: 1fr;
  }

  .hf-results-layout--results .hf-provider-row {
    grid-template-columns: minmax(250px, 1.2fr) minmax(250px, 1.1fr) minmax(210px, 0.8fr);
  }

  .hf-filters {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hf-header {
    min-height: 64px;
  }

  .hf-header--results {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hf-search-form--header {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-search-form,
  .hf-search-body,
  .hf-filters,
  .hf-via20-card,
  .hf-provider-row,
  .hf-results-layout--results .hf-provider-row {
    grid-template-columns: 1fr;
  }

  .hf-field-compact {
    max-width: none;
  }

  .hf-search-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-results-layout {
    width: min(100% - 32px, 1180px);
  }

  .hf-results-layout--results {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .hf-search-body {
    width: min(100% - 32px, 1180px);
  }

  .hf-results-head {
    display: grid;
  }

  .hf-sort-control {
    justify-self: start;
  }

  .hf-recipient-block {
    justify-items: start;
    text-align: left;
  }

  .hf-provider-cta {
    width: min(100%, 180px);
  }
}

@media (max-width: 560px) {
  .hf-header,
  .hf-search-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hf-title-block h1 {
    max-width: 330px;
    font-size: clamp(1.8rem, 7.2vw, 1.95rem);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hf-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .hf-search-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hf-search-form--header {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hf-search-form--header .hf-field:nth-child(5),
  .hf-search-form--header .hf-field:nth-child(7),
  .hf-search-form--header .hf-search-actions {
    grid-column: 1 / -1;
  }

  .hf-search-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hf-search-form--header .hf-search-actions {
    grid-template-columns: 1fr;
  }

  .hf-header--results {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hf-primary-button,
  .hf-secondary-button {
    width: 100%;
  }

  .hf-provider-main {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .hf-provider-logo {
    width: 54px;
    height: 54px;
  }

  .hf-provider-tags {
    gap: 5px;
  }

  .hf-tag {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .hf-tag-source {
    flex-basis: 100%;
    width: fit-content;
  }

  .hf-results-page {
    padding-top: 12px;
  }

  .hf-results-head,
  .hf-provider-row {
    padding: 12px;
  }

  .hf-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hf-filter-group {
    padding: 12px;
  }

  .hf-filter-group label {
    align-items: flex-start;
    font-size: 0.9rem;
  }

  .hf-results-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hf-reference-summary,
  .hf-sort-control {
    width: 100%;
    min-width: 0;
  }

  .hf-rate-grid {
    grid-template-columns: 1fr;
  }

  .hf-recipient-amount {
    font-size: 1.72rem;
  }
}
