/* Exchange controls and account views. Kept separate from the original theme. */
body, button, input, select {
  font-family: system-ui, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans CJK SC", sans-serif;
  letter-spacing: normal;
}
.brand, .hero h1, .section-intro h2, .support-band h2,
.page-heading h1, .auth-panel h1, .asset-picker-head h2, .amount-row input,
.amount-row output { letter-spacing: normal; }
.hero h1 { line-height: 1.13; }
.section-intro h2, .page-heading h1, .auth-panel h1 { line-height: 1.2; }
.language-switcher { display: flex; align-items: center; gap: 4px; }
.language-switcher select, .language-switcher button {
  color: #eaf3f2; background: #202939; border: 1px solid #46576c;
  border-radius: 9px; padding: 8px 7px; font-size: 12px;
}
.language-switcher button { color: var(--mint); font-weight: 700; }
[dir="rtl"] .asset-picker-item { text-align: right; }
[dir="rtl"] .asset-picker-mark { margin-left: 0; margin-right: auto; }
[dir="rtl"] .quote-details strong, [dir="rtl"] .detail-line b { text-align: left; }
@media (max-width: 650px) {
  .site-header { gap: 6px; }
  .header-actions { gap: 4px; }
  .language-switcher select { width: 72px; }
  .language-switcher button { padding-inline: 6px; }
  .header-actions .button.small { padding: 8px; font-size: 12px; }
}
.asset-select {
  align-self: stretch;
  flex: none;
  width: 122px;
}

.asset-select .asset-native {
  width: 100%;
}

.asset-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 0 9px;
  color: #f5f7fb;
  background: #202939;
  border: 0;
  border-left: 1px solid #374257;
  font-size: 13px;
  font-weight: 750;
}

.asset-trigger:hover,
.asset-trigger:focus-visible {
  background: #2c384a;
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}

.asset-trigger img,
.asset-picker-item img,
.amount-with-icon img,
.order-icon img {
  width: 25px;
  height: 25px;
  flex: none;
  object-fit: contain;
}

.asset-chevron {
  margin-left: auto;
  color: #9caabc;
  font-size: 16px;
}

.js-ready .asset-select .asset-native {
  display: none;
}

.js-ready .asset-trigger {
  display: flex;
}

.asset-picker {
  width: min(460px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 36px));
  box-sizing: border-box;
  padding: 23px;
  color: var(--text);
  background: #192231;
  border: 1px solid #47556b;
  border-radius: 22px;
  box-shadow: 0 35px 100px #000b;
}

.asset-picker[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asset-picker::backdrop {
  background: #050912bd;
  backdrop-filter: blur(5px);
}

.asset-picker-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.asset-picker-head h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.6px;
}

.asset-picker-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  color: #cbd6e4;
  background: #273346;
  border: 1px solid #42516a;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}

.asset-search-label {
  display: block;
  margin: 24px 0 14px;
  color: #a9b7c9;
  font-size: 12px;
}

.asset-search-label input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  color: var(--text);
  background: #101826;
  border: 1px solid #3b4960;
  border-radius: 11px;
  outline: 0;
}

.asset-picker-list {
  display: grid;
  gap: 5px;
  min-height: 0;
  max-height: 435px;
  overflow: auto;
  padding-right: 4px;
}

.asset-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  color: #f1f5fb;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
}

.asset-picker-item:hover,
.asset-picker-item:focus-visible {
  background: #253449;
  border-color: #4c6f74;
  outline: none;
}

.asset-picker-item[hidden] {
  display: none;
}

.asset-picker-item > span:not(.asset-picker-mark) {
  display: grid;
  gap: 1px;
}

.asset-picker-item strong {
  font-size: 14px;
}

.asset-picker-item small {
  color: #a9b7c9;
  font-size: 11px;
}

.asset-picker-mark {
  margin-left: auto;
  color: var(--mint);
}

.asset-picker-empty {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.quote-details {
  margin-bottom: 21px;
}

.quote-details strong {
  overflow-wrap: anywhere;
}

.quote-freshness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 23px;
  color: #a6b8c8;
  font-size: 11px;
}

.refresh-quote {
  flex: none;
  padding: 3px 0;
  color: var(--mint);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.refresh-quote:hover,
.refresh-quote:focus-visible {
  text-decoration: underline;
}

.order-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 17px 20px;
  border: 1px solid #46576c;
  border-radius: 15px;
  background: #1b2835;
}

.order-identity > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-identity span {
  color: #9fafc1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.order-identity code {
  overflow-wrap: anywhere;
  color: #e2fff0;
  font-size: 15px;
}

.copy-id {
  flex: none;
  padding: 10px 14px;
  border: 1px solid #64816f;
  border-radius: 10px;
  color: var(--mint);
  background: #1e3a30;
  font-size: 12px;
  font-weight: 700;
}

.copy-id:hover,
.copy-id:focus-visible {
  border-color: var(--mint);
}

.details-fields { grid-template-columns: 1fr; }

.payment-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.payment-copy-row > div { min-width: 0; }
.payment-copy-row code { min-width: 0; margin: 0; }
.payment-copy-row .copy-id { max-width: 150px; }
.payment-box .payment-wait { color: #b8ffdd; font-weight: 700; }

.amount-with-icon {
  display: flex !important;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.amount-with-icon img {
  width: 23px;
  height: 23px;
}

.status-tag.status-awaiting_payment,
.status-tag.status-preparing {
  color: #ffe3a1;
  background: #403422;
  border-color: #7a633d;
}

.status-tag.status-confirming,
.status-tag.status-manual_review,
.status-tag.status-refund_pending {
  color: #b9ddff;
  background: #23364a;
  border-color: #507398;
}

.status-tag.status-aml_hold,
.status-tag.status-provider_unknown {
  color: #ffd2d4;
  background: #48282f;
  border-color: #94535a;
}

.status-tag.status-canceled {
  color: #ccd4df;
  background: #313843;
  border-color: #596472;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 5px 0 0;
}

.orders-count {
  color: #9bacbd;
  font-size: 11px;
  white-space: nowrap;
}

.order-row {
  grid-template-columns: 42px minmax(0, 1fr) auto 20px;
  gap: 14px;
}

.order-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-row-main b {
  font-size: 14px;
}

.order-row-main .order-uuid {
  color: #b2d7c4;
  overflow-wrap: anywhere;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}

.order-icon img {
  width: 25px;
  height: 25px;
}

.order-history {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.order-history h2 {
  margin-bottom: 17px;
}

.order-history ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-history li {
  display: flex;
  gap: 13px;
  padding: 0 0 19px;
  font-size: 12px;
}

.order-history li:not(:last-child) {
  border-left: 1px solid #416558;
  margin-left: 5px;
  padding-left: 0;
}

.history-dot {
  display: block;
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: #1a3c2f;
}

.order-history li:first-child .history-dot {
  box-shadow: 0 0 12px #6af0b68a;
}

.order-history li > div {
  display: grid;
  gap: 3px;
  margin-top: -3px;
  margin-left: 1px;
}

.order-history time {
  color: #91a0b0;
  font-size: 11px;
}

@media (max-width: 650px) {
  .asset-select { width: 110px; }
  .asset-trigger { padding: 0 7px; }
  .asset-trigger img { width: 22px; height: 22px; }
  .quote-freshness { align-items: start; }
  .order-identity { align-items: start; flex-direction: column; }
  .payment-copy-row { align-items: start; flex-direction: column; }
  .order-row { grid-template-columns: 35px minmax(0, 1fr) 16px; }
  .order-row .status-tag { grid-column: 2; justify-self: start; }
  .order-row .row-arrow { grid-column: 3; grid-row: 1; }
}
