.tr { padding: 120px 0 80px; }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--green); } .chg.down { color: var(--red); } .chg.flat { color: var(--ink-3); }

.tr-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: 36px; }
.tr-title { font-size: clamp(56px, 11vw, 176px); margin: 12px 0 18px; line-height: .82; }
.tr-quote { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tr-quote b { font-size: clamp(34px, 3.6vw, 52px); font-variant-numeric: tabular-nums; }
.tr-quote small { color: var(--ink-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tr-hero__cta { display: grid; gap: 14px; }
.tr-hydra { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .18); background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.tr-hydra:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.tr-hydra img { width: 118px; height: auto; max-height: 30px; object-fit: contain; object-position: left center; flex: none; padding-right: 16px; border-right: 1px solid rgba(255, 255, 255, .16); }
.tr-hydra span { flex: 1; display: grid; gap: 3px; }
.tr-hydra b { font: 900 30px/1 var(--f-display); font-variation-settings: "wdth" 62; text-transform: uppercase; }
.tr-hydra small { color: var(--ink-3); font-size: 13px; }
.tr-hydra i { font-style: normal; font-size: 26px; color: var(--ink-2); }
.tr-hero__alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tr-hero__alt .btn { justify-content: center; }
.tr-trust { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; }

.tr-tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.tr-tabbar::-webkit-scrollbar { display: none; }
.tr-tabbar button { padding: 14px 18px; font: 600 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tr-tabbar button:hover { color: var(--ink-2); }
.tr-tabbar button.is-on { color: var(--ink); border-bottom-color: var(--red); }
.tr-panel { display: grid; gap: 18px; }
.tr-panel[hidden] { display: none; }

.tr-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tr-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tr-card { padding: 22px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(22, 14, 12, .88), rgba(10, 7, 6, .9)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tr-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tr-card__head h2, .tr-card h3.display { font-size: clamp(30px, 3vw, 42px); margin: 0; }
.tr-refresh { font: 600 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tr-refresh:hover { color: var(--ink); }
.tr-sub { color: var(--ink-2); font-size: 14px; margin: -6px 0 16px; }
.tr-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.tr-note a, .tr-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.tr-note a:hover, .tr-link:hover { color: var(--ink); }
.tr-empty { color: var(--ink-3); font-size: 14px; margin: 0 0 16px; }

.tr-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.tr-chart__head .label { color: var(--ink-3); }
.tr-chart__val { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.tr-chart__val b { font: 700 26px var(--f-ui); font-variant-numeric: tabular-nums; }
.tr-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .08); }
.tr-tabs button { padding: 6px 10px; font: 600 11px var(--f-ui); color: var(--ink-3); letter-spacing: .06em; }
.tr-tabs button.is-on { color: var(--ink); background: rgba(255, 255, 255, .08); }
.tr-chart__plot { position: relative; height: 320px; margin: 18px 0 14px; }
.tr-chart__plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.tr-chart__tip { position: absolute; top: 0; padding: 6px 10px; background: rgba(8, 5, 4, .92); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; pointer-events: none; display: grid; gap: 2px; white-space: nowrap; }
.tr-chart__tip span { color: var(--ink-3); }
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.tr-stats > div { padding: 14px 0 0; display: grid; gap: 6px; }
.tr-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.tr-stats .label { color: var(--ink-3); }
.tr-stats b { font: 700 17px var(--f-ui); font-variant-numeric: tabular-nums; }

.tr-swap__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .08); }
.tr-swap__tabs button { padding: 10px; font: 700 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: background .2s, color .2s; }
.tr-swap__tabs button.is-on { background: var(--red); color: #000; }
.tr-swap__tabs button[data-mode="sell"].is-on { background: var(--ink); }
.tr-flip { display: grid; place-items: center; width: 36px; height: 36px; margin: -12px auto; position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .16); background: #120c0a; color: var(--ink-2); transition: color .2s, transform .35s var(--ease); }
.tr-flip:hover { color: var(--ink); transform: rotate(180deg); }
.tr-flip svg { width: 16px; height: 16px; }
.tr-swap .bfield + .tr-flip + .bfield { margin-top: 0; }

.tr-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.tr-total .label { color: var(--ink-3); }
.tr-total b { font-size: 42px; font-variant-numeric: tabular-nums; }
.tr-bals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tr-bals li { display: grid; gap: 4px; padding: 14px 0 2px; }
.tr-bals li + li { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.tr-chain { font: 600 10px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tr-tok { font-size: 13px; color: var(--ink-2); }
.tr-bals b { font: 700 22px var(--f-ui); font-variant-numeric: tabular-nums; }
.tr-bals em { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tr-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.tr-route button { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 8px; border: 1px solid rgba(255, 255, 255, .1); font: 600 12px var(--f-ui); color: var(--ink-3); transition: border-color .2s, color .2s, background .2s; }
.tr-route button i { font-style: normal; color: var(--red); }
.tr-route button.is-on { color: var(--ink); border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); }
.tr-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.tr-list li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tr-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tr-list b { color: var(--ink); font-weight: 600; }

.tr-trades { display: grid; }
.tr-row { display: grid; grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.6fr) 90px 80px; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.tr-row--head { border-top: 0; padding-top: 0; font: 600 10px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tr-pill { justify-self: start; padding: 3px 8px; font: 700 10px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; }
.tr-pill.is-buy { color: var(--green); background: rgba(61, 255, 138, .06); }
.tr-pill.is-sell { color: var(--red); background: rgba(255, 42, 20, .06); }
.tr-who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.tr-who i { font-style: normal; }
.tr-act { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-act b { color: var(--ink-3); font-weight: 400; margin: 0 4px; }
.tr-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-time { text-align: right; color: var(--ink-3); font-size: 12px; }
.tr-time:hover { color: var(--ink); }
.tr-row--head span:nth-child(4), .tr-row--head span:nth-child(5) { text-align: right; }

.tr-guide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tr-steps > li { display: flex; gap: 18px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(22, 14, 12, .88), rgba(10, 7, 6, .9)); }
.tr-steps__n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 60, 40, .5); color: var(--red); font: 900 20px var(--f-display); font-variation-settings: "wdth" 62; }
.tr-steps h3 { margin: 4px 0 6px; font: 700 17px var(--f-ui); }
.tr-steps p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.tr-steps p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tr-wallets { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tr-wallets a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--ink-2); }
.tr-wallets a:hover { border-color: rgba(255, 255, 255, .4); color: var(--ink); }
.tr-wallets img { width: 22px; height: 22px; border-radius: 6px; }
.tr-warn { position: sticky; top: 90px; padding: 22px; border: 1px solid rgba(255, 60, 40, .35); background: linear-gradient(180deg, rgba(60, 10, 6, .55), rgba(14, 6, 5, .9)); }
.tr-warn h3.display { font-size: 34px; margin: 0; }

@media (max-width: 980px) {
  .tr-hero, .tr-grid, .tr-grid--even, .tr-guide { grid-template-columns: minmax(0, 1fr); }
  .tr-warn { position: static; }
}
@media (max-width: 640px) {
  .tr { padding-top: 96px; }
  .tr-hero__alt { grid-template-columns: minmax(0, 1fr); }
  .tr-stats, .tr-bals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-stats > div:nth-child(3), .tr-bals li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tr-chart__plot { height: 240px; }
  .tr-row { grid-template-columns: 80px minmax(0, 1fr) 70px; }
  .tr-row .tr-act, .tr-row--head span:nth-child(3), .tr-row .tr-time, .tr-row--head span:nth-child(5) { display: none; }
  .tr-card { padding: 16px; }
}

.tr-slider { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.tr-slider span { min-width: 38px; text-align: right; font: 600 12px var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tr-slider input { --p: 0%; flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red) var(--p), rgba(255, 255, 255, .12) var(--p)); outline: none; cursor: pointer; }
.tr-slider input:disabled { opacity: .35; cursor: default; }
.tr-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--red); box-shadow: 0 0 10px rgba(255, 42, 20, .5); }
.tr-slider input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--red); }
.tr-slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.tr-addr { width: 100%; background: none; border: 0; outline: none; color: var(--ink); font: 500 15px var(--f-ui); padding: 4px 0; }
.tr-addr::placeholder { color: var(--ink-3); }
.bfield__usd.is-warn { color: #ffb4a6; }
.tr-send .agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.tr-send .agree input { margin-top: 3px; accent-color: var(--red); }
.tr-send .bfield + .bfield { margin-top: 6px; }
.tr-send .bdetails { margin-top: 14px; }
.tr-trust a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.tr-hero > *, .tr-grid > *, .tr-guide > *, .tr-card, .tr-panel { min-width: 0; }
.tr-hydra span { min-width: 0; }
.tr-hydra b, .tr-hydra small { overflow-wrap: anywhere; }
.tr-chart__head > div { min-width: 0; }
@media (max-width: 640px) {
  .tr-title { font-size: clamp(56px, 20vw, 110px); }
  .tr-hydra { gap: 12px; padding: 16px; }
  .tr-hydra img { width: 88px; padding-right: 12px; }
  .tr-hydra b { font-size: 24px; }
  .tr-tabs { flex-wrap: wrap; }
  .tr-chart__head { gap: 10px; }
  .bdetails li { flex-wrap: wrap; }
  .tr-route button { font-size: 11px; padding: 10px 4px; gap: 5px; }
  .bfield__row input, .bfield__row b { font-size: 32px; }
  .tr-total b { font-size: 34px; }
  .tr-steps > li { padding: 16px; gap: 12px; }
}
.tr-hydra { background: radial-gradient(120% 140% at 0% 0%, rgba(229, 62, 118, .22), transparent 55%), #240e32; border: 1px solid rgba(229, 62, 118, .35); border-radius: 18px; padding: 20px 20px 20px 24px; box-shadow: 0 20px 50px -24px rgba(229, 62, 118, .6); }
.tr-hydra:hover { background: radial-gradient(120% 140% at 0% 0%, rgba(229, 62, 118, .32), transparent 60%), #2b1140; border-color: rgba(229, 62, 118, .7); }
.tr-hydra img { border-right-color: rgba(255, 255, 255, .14); }
.tr-hydra b { font: 600 22px/1.15 Georgia, "Times New Roman", serif; text-transform: none; letter-spacing: -.01em; color: #fff; }
.tr-hydra small { color: rgba(255, 255, 255, .62); }
.tr-hydra__pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #e53e76; color: #fff; font: 600 13px var(--f-ui); font-style: normal; box-shadow: 0 6px 18px -6px rgba(229, 62, 118, .8); transition: background .2s, transform .25s var(--ease); }
.tr-hydra__pill i { font-style: normal; }
.tr-hydra:hover .tr-hydra__pill { background: #f0508a; transform: translateX(2px); }
@media (max-width: 640px) { .tr-hydra { flex-wrap: wrap; padding: 16px; } .tr-hydra__pill { width: 100%; justify-content: center; } .tr-hydra b { font-size: 20px; } }
.tr-hydra .tr-hydra__pill i { font-size: inherit; color: inherit; }

.tr-lp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); margin-bottom: 18px; }
.tr-lp__stats > div { padding: 14px 0 4px; display: grid; gap: 6px; }
.tr-lp__stats > div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.tr-lp__stats .label { color: var(--ink-3); }
.tr-lp__stats b { font: 700 20px var(--f-ui); font-variant-numeric: tabular-nums; }
.tr-lp__steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tr-lp__steps b { color: var(--ink); }
.tr-lp__steps em { font-style: normal; color: #f0508a; }
.tr-lp__h { margin-top: 26px !important; }
@media (max-width: 640px) { .tr-lp__stats { grid-template-columns: minmax(0, 1fr); } .tr-lp__stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); } }
