.exchange-page {
  --accent: #df2d40;
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-color: #17191b;
  --header-border: #e1e4e6;
  --nav-muted: #687077;
  --nav-active-bg: #f0f2f3;
  --language-border: #d7dadd;
  --language-bg: #fff;
  --footer-bg: #151719;
  --footer-border: #292c2f;
  --footer-color: #979da2;
  --footer-link-hover: #fff;
  background: #f5f6f7;
  color: #17191b;
}

.exchange-page .site-header {
  position: sticky;
  top: 0;
}

.exchange-hero {
  position: relative;
  padding: 58px 0 66px;
  background: #f3f5f6;
}

.exchange-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #dfe2e4;
  content: "";
}

.exchange-hero__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: 74px;
}

.exchange-intro {
  max-width: 545px;
}

.exchange-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-left: 3px solid #df2d40;
  background: #fff;
  color: #bd2434;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.exchange-intro h1 {
  max-width: 570px;
  margin: 22px 0 0;
  font-size: 50px;
  line-height: 1.07;
}

.exchange-intro > p {
  max-width: 500px;
  margin: 21px 0 0;
  color: #646c72;
  font-size: 18px;
  line-height: 1.68;
}

.exchange-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
  color: #777f85;
  font-size: 12px;
  font-weight: 600;
}

.exchange-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.exchange-trust-row svg {
  width: 16px;
  height: 16px;
  color: #168a69;
}

.exchange-panel {
  position: relative;
  padding: 28px;
  border: 1px solid #d9dddf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(23, 25, 27, 0.12);
}

.exchange-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: #a1a7ac;
  font-size: 10px;
  font-weight: 800;
}

.exchange-panel h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #168a69;
  font-size: 11px;
  font-weight: 700;
}

.live-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a77b;
}

.asset-field {
  display: block;
  padding: 14px 16px;
  border: 1px solid #d9dddf;
  border-radius: 6px;
  background: #fafbfb;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.asset-field:focus-within {
  border-color: #df2d40;
  box-shadow: 0 0 0 3px rgba(223, 45, 64, 0.1);
}

.asset-field--receive {
  background: #f5f9f7;
}

.asset-field__label {
  display: block;
  margin-bottom: 7px;
  color: #81898f;
  font-size: 11px;
  font-weight: 600;
}

.asset-field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.asset-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #17191b;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.asset-pill {
  display: inline-flex;
  min-width: 106px;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 4px 10px 4px 6px;
  border: 1px solid #e1e4e6;
  border-radius: 6px;
  background: #fff;
}

.asset-pill strong {
  font-size: 13px;
}

.coin-logo {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef0f1;
}

.coin-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coin-logo__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #555d63;
  font-size: 12px;
  font-weight: 800;
}

.coin-logo.is-fallback img {
  display: none;
}

.exchange-direction {
  position: relative;
  z-index: 3;
  height: 12px;
}

.exchange-direction > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #202326;
  color: #fff;
  transform: translate(-50%, -50%);
}

.exchange-direction svg {
  width: 14px;
  height: 14px;
}

.quote-picker {
  margin-top: 19px;
}

.quote-picker__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #656d73;
  font-size: 12px;
  font-weight: 650;
}

.quote-picker__label small {
  color: #a2a7ab;
  font-size: 10px;
  font-weight: 800;
}

.quote-chips {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quote-chip {
  min-width: 0;
  height: 39px;
  border: 1px solid #dce0e2;
  border-radius: 5px;
  background: #fff;
  color: #555d63;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.quote-chip:hover {
  border-color: #a8aeb3;
}

.quote-chip.is-selected {
  border-color: #202326;
  background: #202326;
  color: #fff;
}

.rate-summary {
  display: grid;
  margin-top: 18px;
  padding: 12px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e5e7e9;
  border-bottom: 1px solid #e5e7e9;
}

.rate-summary > div {
  min-width: 0;
}

.rate-summary > div + div {
  padding-left: 16px;
  border-left: 1px solid #e5e7e9;
}

.rate-summary span,
.rate-summary strong {
  display: block;
}

.rate-summary span {
  margin-bottom: 4px;
  color: #8b9297;
  font-size: 10px;
}

.rate-summary strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.live-reference-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: #8b9297;
  font-size: 10px;
  line-height: 1.45;
}

.live-reference-hint svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.wallet-field {
  display: block;
  margin-top: 16px;
}

.wallet-field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #555d63;
  font-size: 12px;
  font-weight: 700;
}

.wallet-field__label small {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eaf6f2;
  color: #168a69;
  font-size: 9px;
  font-weight: 800;
}

.wallet-field__control {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d9dddf;
  border-radius: 6px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wallet-field__control:focus-within {
  border-color: #df2d40;
  box-shadow: 0 0 0 3px rgba(223, 45, 64, 0.1);
}

.wallet-field__control:has(.is-invalid) {
  border-color: #df2d40;
  box-shadow: 0 0 0 3px rgba(223, 45, 64, 0.08);
}

.wallet-field__control > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #7d858b;
}

.wallet-field__control input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25282b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.wallet-field__control input::placeholder {
  overflow: hidden;
  color: #a1a7ac;
  font-family: var(--font-sans);
  font-size: 12px;
  text-overflow: ellipsis;
}

.wallet-field__hint,
.wallet-field__error {
  min-height: 17px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
}

.wallet-field__hint {
  display: block;
  color: #8b9297;
}

.wallet-field__error {
  display: none;
  color: #c72536;
  font-weight: 650;
}

.wallet-field:has(.is-invalid) .wallet-field__hint {
  display: none;
}

.wallet-field:has(.is-invalid) .wallet-field__error {
  display: block;
}

.exchange-details {
  display: grid;
  margin: 15px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exchange-details > div {
  min-width: 0;
  padding-right: 12px;
}

.exchange-details > div + div {
  padding-left: 12px;
  border-left: 1px solid #e2e5e7;
}

.exchange-details dt {
  margin-bottom: 3px;
  color: #92989d;
  font-size: 9px;
}

.exchange-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #3b4044;
  font-size: 11px;
  font-weight: 700;
}

.exchange-submit {
  display: flex;
  width: 100%;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 21px;
  border-radius: 6px;
  background: #df2d40;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  transition: background 150ms ease, transform 150ms ease;
}

.exchange-submit:hover {
  background: #c72536;
  transform: translateY(-1px);
}

.exchange-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.exchange-submit svg {
  width: 18px;
  height: 18px;
}

.exchange-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #9ca2a6;
  font-size: 9px;
  text-align: center;
}

.exchange-disclaimer svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.rates-section,
.market-section,
.exchange-benefits,
.exchange-process,
.exchange-faq {
  padding: 86px 0;
}

.rates-section {
  background: #fff;
}

.rate-table-note {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #d9dddf;
  border-radius: 5px;
  color: #168a69;
  font-size: 12px;
  font-weight: 700;
}

.rate-table-note svg {
  width: 16px;
  height: 16px;
}

.rates-table-wrap {
  overflow: hidden;
  border: 1px solid #dfe2e4;
  border-radius: 6px;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rates-table th,
.rates-table td {
  height: 65px;
  padding: 0 22px;
  border-bottom: 1px solid #e3e6e8;
  text-align: left;
}

.rates-table th {
  height: 45px;
  background: #f4f6f7;
  color: #7f878d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rates-table th:last-child,
.rates-table td:last-child {
  width: 160px;
  text-align: right;
}

.rates-table tbody tr:last-child td {
  border-bottom: 0;
}

.rates-table tbody tr {
  transition: background 150ms ease;
}

.rates-table tbody tr:hover,
.rates-table tbody tr.is-selected {
  background: #faf4f4;
}

.rates-table td strong {
  font-size: 17px;
}

.rates-table td span {
  color: #8d9499;
  font-size: 11px;
  font-weight: 700;
}

.rate-select {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: #51585e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.rate-select:hover,
.rates-table tr.is-selected .rate-select {
  background: #202326;
  color: #fff;
}

.rate-select svg {
  width: 14px;
  height: 14px;
}

.market-section {
  background: #17191b;
  color: #fff;
}

.market-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(250px, 0.72fr) minmax(520px, 1.28fr);
  gap: 80px;
}

.market-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.market-copy > p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #9fa6ab;
}

.market-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #6cd8b3;
  font-size: 12px;
  font-weight: 600;
}

.market-source svg {
  width: 16px;
  height: 16px;
}

.market-board {
  border-top: 1px solid #3a3e42;
}

.market-row {
  display: grid;
  min-height: 78px;
  align-items: center;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  border-bottom: 1px solid #3a3e42;
}

.market-asset,
.market-price,
.market-change {
  min-width: 0;
}

.market-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-asset > span:last-child,
.market-price > *,
.market-change > * {
  display: block;
}

.market-asset strong {
  display: block;
  font-size: 14px;
}

.market-asset small,
.market-price small,
.market-change small {
  display: block;
  color: #787f85;
  font-size: 10px;
}

.market-price strong,
.market-change strong {
  margin-top: 3px;
  font-size: 14px;
}

.market-change {
  text-align: right;
}

.market-change strong.is-positive {
  color: #48cf9f;
}

.market-change strong.is-negative {
  color: #ff6876;
}

.exchange-benefits {
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dfe2e4;
  border-bottom: 1px solid #dfe2e4;
}

.benefit-item {
  position: relative;
  min-height: 250px;
  padding: 32px;
}

.benefit-item + .benefit-item {
  border-left: 1px solid #dfe2e4;
}

.benefit-item .icon-box {
  margin-bottom: 28px;
  background: #f4f5f6;
  color: #df2d40;
}

.benefit-item__number {
  position: absolute;
  top: 36px;
  right: 30px;
  color: #bcc1c4;
  font-size: 11px;
  font-weight: 800;
}

.benefit-item h3 {
  margin: 0;
  font-size: 19px;
}

.benefit-item p {
  margin: 10px 0 0;
  color: #6c747a;
  font-size: 14px;
  line-height: 1.7;
}

.exchange-process {
  background: #eef0f1;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 80px;
}

.process-layout h2 {
  margin: 0;
  font-size: 35px;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.process-list li {
  min-height: 130px;
  padding: 19px 22px;
  border-top: 2px solid #25282b;
  background: #fff;
}

.process-list li + li {
  margin-left: 10px;
}

.process-list span {
  color: #df2d40;
  font-size: 11px;
  font-weight: 800;
}

.process-list p {
  margin: 19px 0 0;
  color: #4e555a;
  font-size: 13px;
}

.exchange-faq {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.faq-layout h2 {
  margin: 0;
  font-size: 35px;
}

.faq-layout > div:first-child > p {
  max-width: 340px;
  margin: 16px 0 0;
  color: #70787e;
}

.exchange-success-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #e0e3e5;
  border-radius: 6px;
  background: #f7f8f8;
}

.exchange-success-quote span,
.exchange-success-quote strong {
  font-size: 16px;
}

.exchange-success-quote strong {
  color: #df2d40;
}

.exchange-success-quote svg {
  width: 17px;
  height: 17px;
  color: #8d9499;
}

.exchange-reference {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #e3e6e8;
}

.exchange-recipient {
  margin-top: 17px;
  padding: 12px;
  border-radius: 5px;
  background: #f3f5f6;
  text-align: left;
}

.exchange-recipient span,
.exchange-recipient strong {
  display: block;
}

.exchange-recipient span {
  color: #8d9499;
  font-size: 10px;
}

.exchange-recipient strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.exchange-reference span,
.exchange-reference strong {
  display: block;
}

.exchange-reference span {
  color: #969ca1;
  font-size: 10px;
  text-transform: uppercase;
}

.exchange-reference strong {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 1020px) {
  .exchange-hero__inner {
    grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
    gap: 36px;
  }

  .exchange-intro h1 {
    font-size: 42px;
  }

  .exchange-panel {
    padding: 24px;
  }

  .market-layout {
    gap: 42px;
  }

  .benefit-item {
    padding: 27px;
  }

  .process-layout,
  .faq-layout {
    gap: 46px;
  }
}

@media (max-width: 820px) {
  .exchange-hero {
    padding-top: 42px;
  }

  .exchange-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .exchange-intro {
    max-width: 620px;
  }

  .exchange-panel {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .market-layout,
  .process-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-copy {
    max-width: 600px;
  }

  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-item {
    min-height: 190px;
  }

  .benefit-item + .benefit-item {
    border-top: 1px solid #dfe2e4;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .exchange-hero {
    padding: 34px 0 44px;
  }

  .exchange-intro h1 {
    font-size: 36px;
  }

  .exchange-intro > p {
    font-size: 16px;
  }

  .exchange-panel {
    padding: 20px 16px;
  }

  .asset-field input {
    font-size: 24px;
  }

  .asset-pill {
    min-width: 94px;
  }

  .quote-chips {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .quote-chip {
    padding: 0 7px;
  }

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

  .rate-summary > div + div {
    padding: 10px 0 0;
    border-top: 1px solid #e5e7e9;
    border-left: 0;
  }

  .exchange-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .exchange-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
  }

  .exchange-details > div + div {
    padding: 8px 0;
    border-top: 1px solid #e5e7e9;
    border-left: 0;
  }

  .exchange-details dt {
    margin: 0;
  }

  .rates-section,
  .market-section,
  .exchange-benefits,
  .exchange-process,
  .exchange-faq {
    padding: 62px 0;
  }

  .rate-table-note {
    margin-top: 18px;
  }

  .rates-table {
    table-layout: auto;
  }

  .rates-table th,
  .rates-table td {
    height: 61px;
    padding: 0 12px;
  }

  .rates-table th:last-child,
  .rates-table td:last-child {
    width: 44px;
  }

  .rate-select {
    width: 34px;
    padding: 0;
  }

  .rate-select span {
    display: none;
  }

  .market-row {
    grid-template-columns: 1.18fr 1fr 0.76fr;
  }

  .market-asset .coin-logo {
    width: 28px;
    height: 28px;
  }

  .market-asset {
    gap: 8px;
  }

  .market-price strong,
  .market-change strong {
    font-size: 12px;
  }

  .process-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-list li {
    min-height: 108px;
  }

  .process-list li + li {
    margin: 10px 0 0;
  }
}

@media (max-width: 380px) {
  .exchange-intro h1 {
    font-size: 32px;
  }

  .asset-field input {
    font-size: 21px;
  }

  .asset-pill {
    min-width: 86px;
    gap: 6px;
  }

  .asset-pill .coin-logo {
    width: 28px;
    height: 28px;
  }

  .rates-table td strong {
    font-size: 15px;
  }

  .market-row {
    grid-template-columns: 1fr 0.9fr 0.7fr;
  }

  .market-asset small,
  .market-price small,
  .market-change small {
    display: none;
  }
}
