* { box-sizing: border-box }
[hidden] { display: none !important }
:root { font: 14px/1.4 "Inter", "Segoe UI", Arial, sans-serif; color: #111; background: #fdfdfd }
body { margin: 0 }
button, input, textarea { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: default }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #246cba; outline-offset: 3px }
.top { background: #050505; color: white; height: 46px; padding: 0 1.5%; display: flex; gap: clamp(12px, 1.4vw, 28px); align-items: center; white-space: nowrap }
.brand { display: block; width: 80px; height: 24px; flex: none; margin-right: 8px }
.brand-divider { flex: 0 0 1px; height: 16px; background: #292929 }
.nav-dropdown { display: inline-flex; align-items: center; gap: 6px; flex: none }
.nav-dropdown svg { display: block; flex: 0 0 10px }
.search { margin-left: auto; border: 1px solid #333; background: #222; color: #aaa; border-radius: 10px; padding: 7px 12px; width: min(13vw, 245px); font-size: .85rem }
.deposit { border: 1px solid #555; border-radius: 25px; padding: 6px 12px }
.wrap { width: 76%; max-width: 1840px; margin-inline: auto }
.sub { border-bottom: 1px solid #e6e6e6 }
.tabs { display: flex; gap: 26px; align-items: stretch; color: #565656 }
.tabs > * { padding: 12px 0; white-space: nowrap }
.tabs strong { color: #111; border-bottom: 2px solid; font-weight: 600 }
h1 { font-size: 1.72rem; margin: 17px 0 14px }
h2 { font-size: 1.15rem; margin: 0; font-weight: 600 }
.layout { display: grid; grid-template-columns: 49% 32%; justify-content: space-between; align-items: start }
.step { position: relative; padding: 0 0 39px 20px; margin-left: 11px; border-left: 1px solid #262626 }
.step.last { border-color: transparent; padding-bottom: 0 }
.step h2 { margin-bottom: 16px }
.dot { position: absolute; left: -12px; top: 0; border: 1px solid #111; background: #fdfdfd; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .78rem }
.dot.current { background: #000; border-color: #000; color: #fff; font: 600 12px/1 Arial, sans-serif }
.field { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px 8px 12px; background: #efefef; border: 1px solid transparent; border-radius: 9px; margin-top: 8px }
.field:focus-within { border-color: #444 }
.field.invalid { border-color: #d01730 }
.coin { display: inline-block; width: 24px; height: 24px; object-fit: contain; flex: none }
.tron { width: 22px; height: 22px }
.tail { margin-left: auto }
.destination { border-bottom: 1px solid #ddd; margin-bottom: 24px }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
.field + .label-row { margin-top: 22px }
.input-field input { border: 0; background: transparent; width: 100%; min-width: 0; outline: none }
.clear, .max { border: 0; border-radius: 100px }
.clear { position: relative; display: inline-grid; place-items: center; background: #929292; width: 16px; height: 16px; padding: 0; flex: 0 0 16px }
.clear::before, .clear::after { content: ""; grid-area: 1 / 1; width: 6px; height: 1.5px; border-radius: 1px; background: white; transform: rotate(45deg) }
.clear::after { transform: rotate(-45deg) }
.chevron { width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-right: 4px }
#address-field { min-height: 55px }
#network-select { display: block; width: 100%; color: inherit }
.details .network-detail { display: flex; align-items: center; justify-content: end; gap: 6px }
.details .network-detail .coin { width: 17px; height: 17px }
.max { background: white; padding: 4px 10px }
.balance-row, .field + .balance-row { margin-top: 5px; font-size: 1rem; flex-wrap: wrap }
#balance { border: 0; background: transparent; padding: 0; font-variant-numeric: tabular-nums }
#balance:hover { text-decoration: underline; text-underline-offset: 3px }
#balance-input { max-width: 10em; padding: 0 4px; border: 1px solid #888; border-radius: 4px }
.muted, .totals .label-row > :first-child { color: #777 }
.error { color: #b80c26; margin: 4px 0 0; font-size: .9rem }
.totals { border-top: 1px solid #ddd; margin-top: 34px; padding-top: 16px; display: grid; gap: 16px }
#total { font-size: 1.35rem }
.primary, .secondary { border-radius: 100px; padding: .65rem 1.05rem; border: 1px solid transparent; font-weight: 600 }
.primary { background: #111; color: white }
.secondary { background: white; border-color: #ddd }
.next { width: 100%; min-height: 40px; margin-top: 22px }
.next:disabled { background: #efefef; color: #777 }
.card { border: 1px solid #e0e0e0; border-radius: 18px; padding: 26px; font-size: .9rem }
.card h2 { font-size: 1.22rem }
.card p { margin: 24px 0 0 }
.limit { margin-top: 24px; font-size: 1rem }
footer { margin: clamp(60px, 9vw, 170px) 0 32px }
.history { display: flex; justify-content: space-between; gap: 16px; color: #595959; font-size: .82rem; border-top: 1px solid #eee; padding: 16px 0; overflow: auto; white-space: nowrap }
.settings-button { position: fixed; bottom: 20px; right: 20px; border: 0; border-radius: 50%; width: 54px; height: 54px; font-size: 25px; background: #e7ffa8; color: #275016; box-shadow: 0 6px 20px #0001 }
dialog { border: 0; border-radius: 12px; width: min(670px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(18px, 2.3vw, 34px); color: inherit; background: #fff; box-shadow: 0 12px 35px #0002 }
dialog::backdrop { background: #0005 }
#result::backdrop { background: #0003 }
#result[open] { position: fixed; inset: 50% auto auto var(--dialog-left, 50%); transform: translate(0, -50%); margin: 0 }
#result.centered[open] { left: 50%; transform: translate(-50%, -50%) }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px }
#result-title { display: flex; align-items: center; gap: 9px; font-size: 20px; line-height: 1.25; font-weight: 650 }
.close { background: transparent; border: 0; font-size: 1.8rem; line-height: 1; padding: 3px }
.error-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #c11830; color: #fff; font-size: 14px; line-height: 1 }
.arrival { display: grid; justify-items: center; gap: 6px; margin: 32px 0; color: #666 }
.arrival strong { color: #111; font-size: 1.82rem }
.details { margin: 0 }
.details div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2.4fr); gap: 12px; padding: 10px 0 }
.details div:nth-child(2) { border-bottom: 1px solid #eee; padding-bottom: 18px }
.details dt { color: #686868 }
.details dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600 }
.alert { background: #fff0f1; border: 1px solid #ffc6cd; color: #9f0d24; border-radius: 9px; padding: 13px 15px; font-weight: 650; overflow-wrap: anywhere; white-space: pre-wrap }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px }
textarea { display: block; width: 100%; resize: vertical; margin-top: 8px; padding: 10px; border: 1px solid #aaa; border-radius: 8px }
@media (max-width: 1150px) { .top { overflow: auto } .wrap { width: 90% } .sub .tabs { overflow: auto } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; gap: 30px } .card { padding: 18px } .step { padding-bottom: 30px } .top { gap: 14px } .search { display: none } }
