/* The converter's transfer route and quote are designed as one mobile-first flow. */
.exchange-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: center;
  gap: 34px;
  min-height: 254px;
  padding: 29px 38px;
  border-radius: 25px;
  box-shadow: 0 22px 42px #28185420;
}

.exchange-hero .hero-content { min-width: 0; }
.exchange-hero h1 {
  max-width: 470px;
  margin: 12px 0 9px;
  font-size: clamp(32px, 3.35vw, 43px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.exchange-hero p { max-width: 290px; font-size: 13px; line-height: 1.5; }

.transfer-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 17px 19px 15px;
  border: 1px solid #ffffff4a;
  border-radius: 19px;
  background: linear-gradient(135deg, #ffffff27, #ffffff10);
  box-shadow: 0 16px 34px #1b103550, inset 0 1px #ffffff3d;
  backdrop-filter: blur(14px);
}
.transfer-visual-top,
.transfer-visual-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.transfer-visual-top { font-size: 11px; font-weight: 700; color: #eee8ff; }
.transfer-visual-top span,
.transfer-visual-bottom span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.transfer-visual-top > .ti { font-size: 17px; }
.transfer-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 0 18px; }
.route-currency { display: flex; align-items: center; gap: 10px; min-width: 0; }
.route-currency-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #ffffffed; color: #5e31e2; }
.route-receive .route-currency-icon { background: #d9ccff; color: #3c217f; }
.route-currency small,
.route-currency strong { display: block; }
.route-currency small { color: #d1c4f8; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.route-currency strong { margin-top: 2px; color: white; font: 800 20px/1.05 Manrope,sans-serif; letter-spacing: -.03em; }
.route-connector { display: grid; place-items: center; flex: 1; min-width: 25px; height: 1px; border-top: 1px dashed #d1c1ff9e; color: #fff; }
.route-connector .ti { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #ffffff59; border-radius: 50%; background: #3d2486; font-size: 13px; }
.transfer-visual-bottom { border-top: 1px solid #ffffff32; padding-top: 12px; color: #e4dcff; font-size: 10px; }
.transfer-visual-bottom .ti { font-size: 14px; }
.route-dots { display: flex; gap: 4px; }
.route-dots b { display: block; width: 4px; height: 4px; border-radius: 50%; background: #d3c4ff; opacity: .5; }
.route-dots b:first-child { opacity: 1; }

.exchange-hero + .content-grid { margin-top: -25px; }
.quote-card { padding: 27px; }
.quote-card .card-heading { align-items: center; margin-bottom: 19px; }
.quote-card .card-heading h2 { margin: 0; font-size: 20px; }
.quote-card .amount-panel { padding: 14px 16px; background: #fff; border-color: #e6e1f1; }
.quote-card .amount-input { color: #2b2144; font-size: clamp(28px, 3vw, 36px); }
.quote-card .form-label { color: #716985; }
.quote-card .form-group { margin: 18px 0 0; }
.quote-card .select-field { border-color: #e6e1f1; }
.quote-card .rate-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 19px 0 16px;
  padding: 14px 16px;
  border: 1px solid #e9e3ff;
  border-radius: 15px;
  background: #f7f5ff;
}
.rate-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rate-symbol { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #e9e1ff; color: #6139df; }
.rate-symbol .ti { font-size: 17px; }
.rate-copy { min-width: 0; }
.quote-card .rate-bar .rate-copy span,
.quote-card .rate-bar .rate-fee span { display: block; color: #837994; font-size: 10px; line-height: 1.2; }
.quote-card .rate-bar strong { display: block; margin-top: 4px; color: #392581; font-size: 13px; line-height: 1.35; letter-spacing: -.01em; }
.rate-fee { min-width: 76px; padding-left: 16px; border-left: 1px solid #e0d7f7; text-align: right; }
.quote-card .rate-fee strong { font-size: 15px; }

/* Clear payment destination and a live image receipt, inside the review sheet. */
.pay-to-panel { margin: 18px 0 0; padding: 18px; border: 1px solid #e8e0fb; border-radius: 18px; background: linear-gradient(145deg, #f9f7ff, #f2edff); }
.pay-step-head { display: flex; align-items: flex-start; gap: 11px; }
.pay-step-head > div { min-width: 0; }
.pay-step-number { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 10px; background: #6438df; color: #fff; font: 800 12px Manrope,sans-serif; box-shadow: 0 6px 14px #6236df38; }
.pay-step-eyebrow { display: block; margin: 1px 0 3px; color: #75639e; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pay-step-head h3 { margin: 0; color: #2c2147; font: 800 16px/1.35 Manrope,sans-serif; letter-spacing: -.025em; }
.pay-step-note { margin: 10px 0 14px 40px; color: #756c8a; font-size: 11px; line-height: 1.45; }
.payment-destinations { display: grid; gap: 10px; }
.destination-card { min-width: 0; padding: 15px; border: 1px solid #e2dcf0; border-radius: 15px; background: #fff; box-shadow: 0 8px 18px #3220540d; }
.destination-heading { display: flex; align-items: center; gap: 11px; min-width: 0; padding-bottom: 13px; }
.destination-heading > div { min-width: 0; }
.destination-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: #efe9ff; color: #6438df; font-size: 18px; }
.destination-heading small,.destination-heading strong { display: block; }
.destination-heading small { color: #847895; font-size: 10px; line-height: 1.3; text-transform: capitalize; }
.destination-heading strong { margin-top: 3px; color: #2c2147; font: 800 14px/1.3 Manrope,sans-serif; overflow-wrap: anywhere; }
.destination-detail { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0 0; border-top: 1px solid #eee9f5; }
.destination-detail > span,.destination-number > div > span { flex: none; color: #81778f; font-size: 10px; }
.destination-detail > strong { color: #403653; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.destination-number { align-items: center; margin-top: 11px; padding: 11px 12px; border: 0; border-radius: 11px; background: #f5f1ff; }
.destination-number > div { min-width: 0; }
.destination-number > div > span,.destination-number > div > strong { display: block; }
.destination-number > div > strong { margin-top: 4px; color: #362172; font: 800 17px/1.25 Manrope,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .015em; overflow-wrap: anywhere; user-select: text; }
.destination-copy { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; min-width: 66px; min-height: 36px; padding: 7px 9px; border: 1px solid #d6c9fb; border-radius: 9px; background: #fff; color: #6036d3; font-size: 11px; font-weight: 800; cursor: pointer; }
.destination-copy:disabled { opacity: .5; cursor: default; }
.destination-copy:hover:not(:disabled) { background: #ede6ff; }

.receipt-section { margin: 21px 0 20px; }
.receipt-section .pay-step-head { margin-bottom: 13px; }
.receipt-upload { position: relative; }
#paymentProof { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.receipt-dropzone { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 157px; padding: 19px; border: 1.5px dashed #b9a5ea; border-radius: 16px; background: #faf8ff; color: #60517d; text-align: center; cursor: pointer; transition: border-color .18s,background .18s,transform .18s; }
.receipt-dropzone[hidden],.receipt-preview[hidden] { display: none!important; }
.receipt-dropzone:hover,.receipt-upload.dragging .receipt-dropzone,.receipt-dropzone:focus-visible { border-color: #7549ed; background: #f2ecff; outline: none; }
.receipt-upload.needs-proof .receipt-dropzone { border-color: #d76d73; }
.receipt-upload-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 9px; border-radius: 12px; background: #ede6ff; color: #653cdb; font-size: 20px; }
.receipt-dropzone strong { color: #3a2c58; font: 800 13px/1.35 Manrope,sans-serif; }
.receipt-dropzone > span:not(.receipt-upload-icon) { margin-top: 4px; color: #847b96; font-size: 11px; }
.receipt-dropzone small { margin-top: 10px; color: #82759d; font-size: 10px; }
.receipt-preview { overflow: hidden; border: 1px solid #ded6ef; border-radius: 16px; background: #faf8ff; }
.receipt-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 13px; }
.receipt-ready { display: inline-flex; align-items: center; gap: 6px; color: #24815d; font-size: 11px; font-weight: 800; }
.receipt-ready .ti { font-size: 17px; }
.receipt-remove { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #8b779d; cursor: pointer; }
.receipt-remove:hover { background: #f2eaf9; color: #b94455; }
.receipt-preview img { display: block; width: calc(100% - 26px); max-height: 230px; margin: 0 13px; border: 1px solid #e7e0f0; border-radius: 11px; background: #ede9f5; object-fit: contain; }
.receipt-file-row { display: flex; align-items: center; gap: 9px; padding: 11px 13px 12px; }
.receipt-file-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #eee8ff; color: #6740d3; font-size: 15px; }
.receipt-file-info { display: block; min-width: 0; flex: 1; }
.receipt-file-info strong,.receipt-file-info small { display: block; }
.receipt-file-info strong { overflow: hidden; color: #3b3150; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-file-info small { margin-top: 2px; color: #8b819b; font-size: 10px; }
.receipt-replace { flex: none; border: 0; background: transparent; color: #633bd2; font-size: 11px; font-weight: 800; cursor: pointer; }
.submit-spinner { display: inline-block; animation: submit-spin .8s linear infinite; }
@keyframes submit-spin { to { transform: rotate(360deg); } }

html[data-theme="dark"] .pay-to-panel { border-color: #4b3b6a; background: linear-gradient(145deg, #29213b, #251d37); }
html[data-theme="dark"] .pay-step-head h3,html[data-theme="dark"] .destination-heading strong { color: #f4edff; }
html[data-theme="dark"] .pay-step-eyebrow,html[data-theme="dark"] .pay-step-note { color: #b8a9d1; }
html[data-theme="dark"] .destination-card { border-color: #493b61; background: #1d172b; box-shadow: none; }
html[data-theme="dark"] .destination-icon,html[data-theme="dark"] .receipt-upload-icon,html[data-theme="dark"] .receipt-file-icon { background: #3b2a5b; color: #c1a8ff; }
html[data-theme="dark"] .destination-heading small,html[data-theme="dark"] .destination-detail > span,html[data-theme="dark"] .destination-number > div > span { color: #b2a6c3; }
html[data-theme="dark"] .destination-detail { border-color: #3b3150; }
html[data-theme="dark"] .destination-detail > strong { color: #e6dcf3; }
html[data-theme="dark"] .destination-number { background: #302443; }
html[data-theme="dark"] .destination-number > div > strong { color: #eee4ff; }
html[data-theme="dark"] .destination-copy { border-color: #6b5294; background: #422d66; color: #eee1ff; }
html[data-theme="dark"] .destination-copy:hover:not(:disabled) { background: #523679; }
html[data-theme="dark"] .receipt-dropzone,html[data-theme="dark"] .receipt-preview { border-color: #68508f; background: #231b34; }
html[data-theme="dark"] .receipt-dropzone:hover,html[data-theme="dark"] .receipt-upload.dragging .receipt-dropzone,html[data-theme="dark"] .receipt-dropzone:focus-visible { border-color: #b18cff; background: #2f2345; }
html[data-theme="dark"] .receipt-dropzone strong,html[data-theme="dark"] .receipt-file-info strong { color: #f0e8fb; }
html[data-theme="dark"] .receipt-dropzone > span:not(.receipt-upload-icon),html[data-theme="dark"] .receipt-dropzone small,html[data-theme="dark"] .receipt-file-info small { color: #b7aacb; }
html[data-theme="dark"] .receipt-preview img { border-color: #4b3a66; background: #191425; }
html[data-theme="dark"] .receipt-remove { color: #bfafd8; }
html[data-theme="dark"] .receipt-remove:hover { background: #49304b; color: #ffc0c8; }
html[data-theme="dark"] .receipt-replace { color: #c5adff; }

@media (max-width: 850px) {
  .exchange-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr); gap: 18px; padding: 26px 28px 45px; }
  .exchange-hero + .content-grid { margin-top: -26px; }
}

@media (max-width: 600px) {
  .pay-to-panel { padding: 15px; }
  .pay-step-head h3 { font-size: 15px; }
  .pay-step-note { margin-left: 0; }
  .destination-card { padding: 12px; }
  .destination-number > div > strong { font-size: 15px; }
  .receipt-dropzone { min-height: 150px; }
  .receipt-preview img { max-height: 195px; }
  .shell { width: calc(100% - 26px); }
  .app-header { padding: 13px 1px 14px; }
  .exchange-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; padding: 24px 19px 20px; border-radius: 20px; }
  .exchange-hero h1 { margin: 9px 0 5px; font-size: clamp(27px, 7.6vw, 32px); }
  .exchange-hero p { font-size: 11px; }
  .exchange-hero .eyebrow { font-size: 9px; }
  .transfer-visual { padding: 12px 13px 11px; border-radius: 14px; }
  .transfer-route { padding: 13px 0 12px; }
  .route-currency-icon { width: 29px; height: 29px; border-radius: 9px; }
  .route-currency { gap: 6px; }
  .route-currency strong { font-size: 16px; }
  .route-currency small { font-size: 8px; }
  .transfer-visual-bottom { padding-top: 9px; }
  .exchange-hero + .content-grid { margin: 13px 0 38px; }
  .quote-card { padding: 19px 16px; border-radius: 20px; }
  .quote-card .card-heading { margin-bottom: 15px; }
  .quote-card .card-heading h2 { font-size: 18px; }
  .quote-card .amount-panel { padding: 13px 14px; }
  .quote-card .amount-input { font-size: 29px; }
  .quote-card .rate-bar { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 12px 13px; }
  .rate-symbol { width: 31px; height: 31px; border-radius: 9px; }
  .quote-card .rate-bar strong { font-size: 12px; overflow-wrap: anywhere; }
  .rate-fee { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid #e5def7; text-align: left; }
  .quote-card .rate-fee strong { margin-top: 0; font-size: 13px; }
}

@media (max-width: 350px) {
  .route-connector { min-width: 16px; }
  .route-currency strong { font-size: 14px; }
  .quote-card .amount-input { font-size: 26px; }
}
