.transfer-content {
  padding-top: 65px;
}

.transfer-balance-card,
.transfer-form {
  border: 1px solid rgba(228, 195, 101, 0.38);
  border-radius: 10px;
  background: var(--ui-surface, #26272c);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.transfer-balance-card {
  overflow: hidden;
}

.transfer-balance-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px 8px;
}

.transfer-balance {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.transfer-balance > span {
  color: var(--ui-muted, #c7cad3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.transfer-balance strong {
  color: #f5f5f7;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
}

.transfer-wallet-art {
  width: 100px;
  height: 92px;
  flex-shrink: 0;
}

.transfer-auto-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 24px 20px;
  color: #e1e2e9;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}

.transfer-auto-switch {
  position: relative;
  width: 88px;
  height: 36px;
  flex: 0 0 88px;
}

.transfer-auto-switch input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.transfer-auto-track {
  position: absolute;
  inset: 0;
  border: 1px solid #989da9;
  border-radius: 22px;
  background: #34353d;
  pointer-events: none;
}

.transfer-auto-switch input:checked + .transfer-auto-track {
  border-color: var(--ui-gold, #e4c365);
}

.transfer-auto-state {
  position: absolute;
  top: 6px;
  right: 12px;
  color: #e8e9ef;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

.transfer-auto-switch input:checked + .transfer-auto-track .transfer-auto-state {
  right: auto;
  left: 14px;
}

.transfer-auto-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b9bdc8;
  transition: transform 160ms ease;
}

.transfer-auto-switch input:checked + .transfer-auto-track .transfer-auto-thumb {
  transform: translateX(50px);
  background: var(--ui-gold-bright, #f4dda1);
}

.transfer-auto-switch input:focus-visible + .transfer-auto-track {
  outline: 2px solid var(--ui-gold-bright, #f4dda1);
  outline-offset: 3px;
}

.transfer-preference-status {
  margin: 0 24px 16px;
  color: var(--ui-muted, #c7cad3);
  font-size: 12px;
  line-height: 18px;
}

.transfer-details {
  padding: 18px 24px 16px;
  border-top: 1px solid #555964;
  background: #393b43;
  color: #eef0f6;
}

.transfer-details:not([hidden]) {
  animation: transfer-details-reveal 180ms ease-out;
}

.transfer-wallet-balances {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 19px;
}

.transfer-wallet-balances > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.transfer-wallet-balances dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.transfer-wallet-maintenance {
  color: #d4d7e0;
  font-size: 12px;
}

.transfer-wallet-balances .transfer-wallet-total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #626672;
  color: var(--ui-gold-bright, #f4dda1);
  font-size: 16px;
  font-weight: 700;
}

@keyframes transfer-details-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.transfer-more {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  border: 0;
  background: #d9bb68;
  color: #252116;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.transfer-more > span {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.transfer-more[aria-expanded="true"] > span {
  margin-top: 4px;
  transform: rotate(225deg);
}

.transfer-form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 22px 26px;
}

.transfer-manual-fields {
  display: grid;
  gap: 28px;
}

.transfer-manual-fields[hidden] {
  display: none;
}

.transfer-form .field-label {
  margin-bottom: 10px;
}

.transfer-wallet-trigger,
.transfer-amount {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9dce4;
  border-radius: 7px;
  background: #f2f3f5;
  color: #30333b;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.transfer-wallet-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.transfer-wallet-trigger > span {
  overflow-wrap: anywhere;
}

.transfer-wallet-trigger > svg {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  fill: none;
  stroke: #444852;
  stroke-width: 2;
}

.transfer-wallet-trigger.has-selection {
  font-weight: 600;
}

.transfer-amount::placeholder {
  color: #737781;
}

.transfer-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #a85c5c;
  border-radius: 7px;
  color: #ffb4b4;
  font-size: 13px;
  line-height: 19px;
}

.transfer-form [aria-invalid="true"] {
  border-color: #d16e6e;
}

.transfer-mode-note,
.transfer-source-available {
  margin: 0;
  color: var(--ui-muted, #c7cad3);
  font-size: 12px;
  line-height: 18px;
}

.transfer-source-available {
  margin-top: 7px;
}

.transfer-wallet-trigger:disabled,
.transfer-amount:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.transfer-sync-history {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ui-gold, #e4c365);
  border-radius: 7px;
  background: transparent;
  color: var(--ui-gold-bright, #f4dda1);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.transfer-option-label {
  display: grid;
  gap: 3px;
}

.transfer-option-label strong {
  font-size: 14px;
  font-weight: 600;
}

.transfer-option-label small {
  color: var(--ui-muted, #c7cad3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.transfer-wallet-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.transfer-demo-note {
  margin: 10px 8px 0;
  color: var(--ui-muted, #c7cad3);
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}

.transfer-actions {
  flex: 0 0 94px;
  padding: 27px 9px;
  background: var(--ui-bg, #1b1c20);
}

.transfer-submit,
.transfer-success-done {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #f4dfa5, #e4c365 72%, #d8b455);
  color: #252116;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.transfer-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.transfer-frame:has(.transfer-wallet-dialog[open])::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  content: "";
  pointer-events: none;
}

.transfer-wallet-dialog {
  width: min(calc(100% - 40px), 366px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(228, 195, 101, 0.45);
  border-radius: 14px;
  background: var(--ui-surface, #26272c);
  color: #eeeef4;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.transfer-wallet-dialog::backdrop {
  background: transparent;
}

.transfer-dialog-eyebrow {
  margin: 0 0 6px;
  color: var(--ui-gold, #e4c365);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.transfer-wallet-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 27px;
}

#transfer-wallet-description,
#transfer-success-description {
  margin: 0;
  color: var(--ui-muted, #c7cad3);
  font-size: 13px;
  line-height: 20px;
}

.transfer-success-details {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #555964;
  border-radius: 8px;
  background: #303137;
  font-size: 13px;
  line-height: 19px;
}

.transfer-success-details > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
}

.transfer-success-details dt {
  color: var(--ui-muted, #c7cad3);
}

.transfer-success-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.transfer-wallet-dialog.transfer-success-dialog {
  width: min(calc(100% - 40px), 380px);
  box-sizing: border-box;
  padding: 26px 24px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  color: #202124;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
  color-scheme: light;
}

.transfer-success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.transfer-success-dialog h2 {
  margin: 0 0 16px;
  color: #202124;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.transfer-success-dialog #transfer-success-description {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.6;
}

.transfer-success-dialog .transfer-success-details {
  gap: 8px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #f8f9fa;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.5;
}

.transfer-success-dialog .transfer-success-details dt {
  color: #5f6368;
}

.transfer-success-dialog .transfer-success-details dd {
  color: #202124;
  font-weight: 600;
}

.transfer-success-dialog .transfer-demo-note {
  margin: 0 0 12px;
  color: #6b7075;
  font-size: 11px;
  text-align: left;
}

.transfer-success-history {
  display: block;
  padding: 13px 16px;
  border: 1px solid #e8eaed;
  border-radius: 24px;
  background: #f1f3f4;
  color: #202124;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.transfer-success-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.transfer-success-done {
  width: auto;
  min-width: 64px;
  height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #3c4043;
  font-size: 14px;
}

.transfer-success-done:hover,
.transfer-success-history:hover {
  background: #e8eaed;
}

.transfer-success-done:focus-visible,
.transfer-success-history:focus-visible {
  outline: 2px solid #596579;
  outline-offset: 3px;
}

.transfer-wallet-options {
  display: grid;
  gap: 8px;
  max-height: min(360px, 45dvh);
  overflow-y: auto;
  margin: 18px 0;
  padding: 3px;
  scrollbar-width: thin;
  scrollbar-color: #a6a8af #26272c;
}

.transfer-wallet-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ui-option-border, #959ba8);
  border-radius: 8px;
  background: #303137;
  color: #eef0f6;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.transfer-wallet-option[aria-checked="true"] {
  border-color: var(--ui-gold-bright, #f4dda1);
  background: #3d3729;
}

.transfer-wallet-option > :last-child {
  width: 18px;
  flex-shrink: 0;
  color: var(--ui-gold-bright, #f4dda1);
  text-align: center;
}

.transfer-wallet-cancel {
  width: 100%;
  min-height: 42px;
  border: 1px solid #969ba8;
  border-radius: 7px;
  background: transparent;
  color: #eeeef4;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 360px) {
  .transfer-balance-summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .transfer-wallet-art {
    width: 84px;
    height: 84px;
  }

  .transfer-auto-label {
    margin-right: 18px;
    margin-left: 18px;
    font-size: 14px;
  }

  .transfer-form {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-auto-thumb {
    transition: none;
  }

  .transfer-details:not([hidden]) {
    animation: none;
  }
}
