/* vibeswap-css v81 */
:root {
  --desk: 440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; max-width: 100%; }
body {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(153, 69, 255, 0.16), transparent 58%),
    radial-gradient(900px 480px at 108% 4%, rgba(34, 211, 238, 0.1), transparent 52%),
    radial-gradient(700px 380px at 50% 120%, rgba(20, 241, 149, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button, input, select { font-family: inherit; color: inherit; }
button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
img { display: block; }
[hidden] { display: none !important; }
.desk a, .stage a { color: var(--cyan, #22d3ee); text-decoration: none; }

.swap-mode {
  display: flex;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin: 4px 0 2px;
}
.swap-mode-btn {
  flex: 1;
  min-height: 36px;
  font-weight: 700;
  background: rgba(23,23,31,0.9);
}
.swap-mode-btn.on {
  background: rgba(168,85,247,0.28);
}
.limit-hint {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(199, 242, 132, 0.1);
  border: 1px solid rgba(199, 242, 132, 0.28);
  margin: 8px 0 4px;
}
.limit-hint-title {
  font-size: 14px;
  font-weight: 700;
  color: #c7f284;
}
.limit-hint-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.7;
}
.limit-sides, .limit-bumps, .limit-exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.limit-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(23, 23, 31, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d4d4d8;
}
.limit-chip.on {
  background: rgba(199, 242, 132, 0.22);
  color: #c7f284;
  border-color: rgba(199, 242, 132, 0.45);
}
.limit-panel {
  display: grid;
  gap: 10px;
  padding: 4px 0 2px;
}
.limit-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #16181e;
  border: 1px solid rgba(255,255,255,0.05);
}
.limit-when {
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d8;
}
#limit-price {
  width: 100%;
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background: #17171f;
  padding: 4px 10px;
  font-size: 20px;
  font-weight: 600;
}
.limit-bump-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.limit-now { font-size: 13px; font-weight: 600; opacity: 0.7; flex: 1; min-width: 0; }
.limit-exp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
}
.limit-exp-row > span { flex: 1; }
.desk.limit-on #amount,
.desk.limit-on .out {
  font-size: 20px;
  min-height: 36px;
}
.limit-order {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface, #111113);
  margin-bottom: 8px;
}
.limit-order-open {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 4px 8px;
  background: transparent;
}
.limit-order-copy { min-width: 0; flex: 1; }
.limit-order-title { font-size: 13px; font-weight: 700; }
.limit-order-sub { font-size: 11px; font-weight: 600; opacity: 0.55; }
.limit-order-cancel {
  font-weight: 700;
  color: #22d3ee;
  padding: 6px 10px;
}
.limit-detail-coin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}
.limit-detail-parked { font-size: 12px; opacity: 0.65; margin: 0 0 8px; }
.limit-detail-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.limit-detail-acts .btn { flex: 1; min-height: 40px; border-radius: 12px; font-weight: 700; background: var(--surface-2, #17171b); }
.limit-detail-acts .btn-danger { color: #fb7185; }
.hold-limits { margin-top: 4px; }
.hold-limit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hold-limit-copy { min-width: 0; flex: 1; }
.hold-limit-title { font-size: 13px; font-weight: 700; }
.hold-limit-sub { font-size: 11px; opacity: 0.55; font-weight: 600; }

.find-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.find-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
  color: var(--muted);
}
.find-search-wrap:focus-within {
  border-color: rgba(153, 69, 255, 0.55);
  color: var(--text);
}
.find-search-wrap input {
  flex: 1;
  min-width: 0;
  height: 38px;
  background: transparent;
  border: 0;
  outline: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.find-search-wrap kbd {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.2;
}
.find-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(360px, 60vh);
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  z-index: 60;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.find-pop .tok-row { width: 100%; }
.find-sol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.find-sol img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
}
.find-sol strong { font-weight: 800; }
.find-px { font-variant-numeric: tabular-nums; }
.find-chg { font-variant-numeric: tabular-nums; }
.find-chg.up { color: var(--mint); }
.find-chg.down { color: #fb7185; }

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav-home img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(153, 69, 255, 0.55));
}
.nav-apps {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.nav-app {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.nav-app:hover { color: var(--text); }
.nav-app.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.4);
}
.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.nav-x:hover {
  color: var(--text);
  border-color: rgba(153, 69, 255, 0.55);
}
.nav-x svg { display: block; }
.nav-right {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.acct-wrap { position: relative; }
.acct-chip[aria-expanded="true"] { border-color: rgba(153, 69, 255, 0.7); }

.acct-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.acct-chip img, .acct-chip .mark {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
  background: var(--bg);
}
.acct-chip .mark {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--mint);
}
.acct-chip .acct-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-chip .acct-handle { color: var(--mint); }
.acct-chip .acct-dot { color: var(--muted); font-weight: 600; }
.acct-chip:hover { border-color: rgba(153, 69, 255, 0.55); }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: var(--text);
  border-color: rgba(153, 69, 255, 0.55);
}
.icon-btn img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}
a.icon-btn.on {
  border-color: rgba(153, 69, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.16);
}
.icon-btn[aria-pressed="true"] img { opacity: 0.45; }
.opts-pop.guest .opts-wallet { display: none; }
.opts-fx {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.opts-fx > span {
  display: block;
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opts-fx-drop { position: relative; }
.opts-fx-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  font-weight: 700;
  font-size: 12px;
}
.opts-fx-btn:hover { border-color: rgba(153, 69, 255, 0.55); }
.opts-fx-flag {
  width: 32px;
  height: 22px;
  min-width: 32px;
  max-width: 32px;
  flex: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  background: transparent;
  font-size: 16px;
  line-height: 0;
}
.opts-fx-btn img,
.opts-fx-item img,
.opts-fx-flag-img,
.opts-fx-flag img {
  width: 32px !important;
  height: 22px !important;
  max-width: 32px !important;
  max-height: 22px !important;
  border-radius: 0;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.opts-fx-btn b,
.opts-fx-item b {
  width: 34px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.opts-fx-btn > span:not(.opts-fx-flag),
.opts-fx-item > span:not(.opts-fx-flag) {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opts-fx-caret {
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #a1a1aa;
  flex-shrink: 0;
}
.opts-fx-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
  z-index: 90;
  max-height: min(320px, calc(100vh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 1px;
}
.opts-fx-menu[hidden] { display: none; }
.opts-fx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--text);
  font-size: 12px;
}
.opts-fx-item:hover { background: var(--surface-2); }
.opts-fx-item.on {
  background: rgba(153, 69, 255, 0.18);
}
.opts-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text);
}
.opts-item:hover { background: var(--surface-2); }
a.opts-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.opts-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 6px 8px;
  margin-top: 4px;
  padding: 10px 8px 6px;
  border-top: 1px solid var(--line);
}
.opts-socials-lab {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 4px 2px;
}
.opts-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 6px 4px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.opts-social span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.opts-social:hover { background: var(--surface-2); }
.opts-socials img,
.opts-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.opts-danger { color: #fb7185; }
.opts-slip {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.opts-chips { display: flex; gap: 6px; margin-top: 8px; }
.opts-chip {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2, #17171b);
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.opts-chip:hover:not(.on) {
  color: var(--text);
  border-color: color-mix(in srgb, var(--purple) 55%, transparent);
  background: color-mix(in srgb, var(--purple) 14%, var(--surface-2, #17171b));
}
.opts-chip.on,
.opts-chip[aria-pressed="true"] {
  color: #050505;
  font-weight: 800;
  background: linear-gradient(100deg, var(--purple), var(--mint));
  border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 40%, transparent);
}

.btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  border: 0;
  background: linear-gradient(90deg, var(--purple) 12%, var(--cyan, #22d3ee) 88%);
  background-clip: padding-box;
  color: #050505;
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  cursor: pointer;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: color-mix(in srgb, var(--purple) 55%, var(--line));
  background: color-mix(in srgb, var(--purple) 12%, transparent);
}
.btn-ghost:active {
  transform: translateY(1px);
  background: color-mix(in srgb, var(--purple) 18%, transparent);
}
.btn-wide {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-weight: 700;
}

.swap-cta {
  width: 100%;
  padding: 2px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #a855f7 0%, #22d3ee 100%);
  color: #f4f4f5;
}
.swap-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  background: var(--surface);
  color: #f4f4f5;
  font-size: 1.05rem;
  font-weight: 700;
}
.swap-cta img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
}
.swap-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.swap-cta:not(:disabled):hover .swap-cta-inner {
  background: var(--surface-2);
}

.stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(var(--desk), calc(100% - 28px));
  margin: 18px auto 56px;
}
.desk {
  width: 100%;
  margin: 0;
}

.hero-banner {
  width: 100%;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(153, 69, 255, 0.28);
  background: #050506;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 2px 16px;
}
.title-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(153, 69, 255, 0.7));
}
.title-copy { flex: 1; min-width: 0; }
.title-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.title-copy p {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.jup-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.jup-chip img { width: 18px; height: 18px; border-radius: 999px; }

.pair { position: relative; }

.leg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 16px 18px;
}
.leg.sell { background: var(--surface); padding-bottom: 34px; }
.leg.buy { background: var(--surface); margin-top: 12px; padding-top: 28px; }
.leg-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.leg-top > span:first-child { margin-right: auto; }
.bal {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pct {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lime);
}
.pct:hover { color: #c7f284; }
.paste {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.paste:hover { color: #22d3ee; }
.paste-wrap { position: relative; }
.paste-pop {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 5;
  width: 260px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.paste-pop[hidden] { display: none; }
.paste-pop input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.leg-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#amount, .out {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.out {
  color: var(--text);
  min-height: 1.2em;
  line-height: 1.3;
}
.leg-fiat {
  margin: 6px 4px 0;
  min-height: 1em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mint-warn {
  margin: 12px 0 0;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
}
.mint-warn[hidden] { display: none; }
.mint-warn-head {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.mint-warn-item {
  color: #fecdd3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0;
}
.mint-warn-item.info { color: var(--muted); }
.mint-warn-item.warning { color: #fdba74; }
.mint-warn-item.critical { color: #fb7185; }
.mint-warn-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}
.site-foot {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 28px 2px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: #22d3ee; }
.site-foot a.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.site-foot a.foot-icon img,
.site-foot a.foot-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.site-foot a.foot-icon img { opacity: 0.75; }
.site-foot a.foot-icon:hover img { opacity: 1; }
.tx-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.tx-box[hidden] { display: none; }
.tx-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tx-row:hover { color: var(--mint); }
.tx-row span { color: var(--muted); font-size: 12px; }
.rev-sheet { width: min(400px, 100%); }
.rev-pair {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}
.rev-leg {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.rev-leg span { color: var(--muted); font-size: 12px; font-weight: 700; }
.rev-leg strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  text-align: right;
}
.rev-facts {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.rev-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.rev-facts dt { color: var(--muted); font-weight: 600; }
.rev-facts dd { margin: 0; font-weight: 700; text-align: right; }

.token-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  font-weight: 700;
}
.token-btn img, .row-icon,
.token-btn .tok-ico,
.token-btn .tok-ico img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 999px;
  background: var(--bg);
  object-fit: cover;
}
.token-btn .mark, .row-icon.mark, .tok-ico-mark {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mint);
}

.flip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--text) 82%, transparent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}
.flip img { width: 42px !important; height: 42px !important; }
.flip:hover, .flip.spinning {
  background: color-mix(in srgb, var(--mint) 14%, var(--surface-2));
  box-shadow: 0 0 0 1px #c7f284, 0 0 16px rgba(199, 242, 132, 0.28), 0 0 32px rgba(199, 242, 132, 0.1);
}
.flip.spinning img {
  animation: flip-spin 5s ease-in-out 1;
}
@keyframes flip-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(720deg); }
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 2px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.meta select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 22px 4px 8px;
  margin-left: 6px;
  background-image: linear-gradient(45deg, transparent 50%, #a1a1aa 50%), linear-gradient(135deg, #a1a1aa 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.swap-legal {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 40rem;
}
.swap-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status {
  min-height: 1.4em;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-word;
}
.status.err { color: #fb7185; }
.status.ok { color: var(--mint); }

.linux {
  position: fixed;
  top: auto;
  bottom: auto;
  left: calc(300px + 16px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 220px;
  margin: 0;
  padding: 14px 40px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-2);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(153, 69, 255, 0.12);
  pointer-events: auto;
}
.linux-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--surface-2);
  color: #f4f4f5;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 3;
  cursor: pointer;
}
.linux-x:hover {
  color: var(--text);
  border-color: rgba(153, 69, 255, 0.55);
}
.linux-marks {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.linux-v {
  display: block;
  width: 44px;
  height: 44px;
}
.linux-v img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(153, 69, 255, 0.7));
}
.linux-tux {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--surface-2);
}
.linux-copy { min-width: 0; width: 100%; }
.linux strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  font-family: "Space Grotesk", sans-serif;
}
.linux p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.linux-copy a { font-weight: 700; font-size: 0.82rem; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
  overflow: auto;
}
.overlay[hidden] { display: none; }
#done-modal { overflow: auto; }
#done-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.done-sheet {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  animation: done-pop 0.32s ease-out;
}
@keyframes done-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.done-mark {
  width: 64px;
  height: 64px;
  margin: 4px auto 0;
  filter: drop-shadow(0 0 18px rgba(20, 241, 149, 0.55));
}
.done-sheet h2 {
  margin: 0;
  font-size: 1.55rem;
}
.done-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 1.05rem;
}
.done-pair span { color: var(--mint); font-weight: 700; }
.done-hold {
  margin: 0;
  padding: 0 8px;
  color: var(--mint);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  word-break: break-word;
}
.done-link {
  display: inline-block;
  margin: 0 0 4px;
  font-weight: 700;
}
.done-sheet .swap-cta {
  position: static;
  margin-top: 6px;
  z-index: 1;
}
.sheet {
  width: min(420px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.sheet h2 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; }
.muted, .hint { color: var(--muted); font-size: 0.9rem; }
#wallet-status:not(:empty) { color: #fb7185; font-weight: 600; }
#wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
#wallet-help {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
#wallet-help[hidden] { display: none !important; }
a.pick { text-decoration: none; color: inherit; box-sizing: border-box; }
.wallet-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  color: #0a0a0a;
}
.wm-phantom { background: #ab9ff2; }
.wm-solflare { background: #fc722c; }
.wm-backpack { background: #e11d48; }
#wallet-help-mobile .hint,
#wallet-mobile-hint {
  margin: 0 0 8px;
  line-height: 1.4;
}
#wallet-linux-help {
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--surface-2);
}
#wallet-linux-help summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
#wallet-linux-help summary::-webkit-details-marker { display: none; }
#wallet-linux-help p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
#wallet-linux-help a { font-weight: 700; }
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 0 transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.pick:hover,
.pick:focus-visible {
  border-color: color-mix(in srgb, var(--purple) 60%, var(--line));
  background: color-mix(in srgb, var(--purple) 14%, var(--surface-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 28%, transparent);
  outline: none;
}
.pick:active {
  transform: scale(0.985);
  border-color: color-mix(in srgb, var(--purple) 80%, var(--line));
  background: color-mix(in srgb, var(--purple) 22%, var(--surface-2));
  box-shadow: none;
}
.pick img, .pick .mark {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.pick > div { min-width: 0; flex: 1; }
.pick b { display: block; }
.pick span { color: var(--muted); font-size: 0.8rem; }

.tok-sheet {
  width: min(400px, calc(100vw - 24px));
  padding: 16px 14px 22px;
  display: flex;
  flex-direction: column;
  height: min(88vh, 640px);
  max-height: min(88vh, 640px);
  min-height: 0;
  overflow: hidden;
}
.tok-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tok-head-mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(153, 69, 255, 0.55));
}
.tok-head-copy { flex: 1; min-width: 0; }
.tok-head-copy h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.tok-head-copy p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.tok-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tok-close:hover { color: var(--text); border-color: rgba(153, 69, 255, 0.55); }
.tok-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.tok-search-wrap:focus-within {
  border-color: rgba(153, 69, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.18);
  color: var(--text);
}
#token-search {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
#token-search::-webkit-search-decoration,
#token-search::-webkit-search-cancel-button { appearance: none; }
.tok-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 2px 0 0;
  overflow: visible;
}
.tok-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}
.tok-chip:hover { border-color: rgba(153, 69, 255, 0.55); }
.tok-chip .tok-ico,
.tok-chip .tok-ico img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
}
.tok-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.tok-tab {
  flex: 1;
  min-height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.tok-tab:hover { color: var(--text); }
.tok-tab.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.4);
}
.tok-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  margin: 0 -4px 0;
  padding: 2px 4px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
  mask-image: linear-gradient(#000 0%, #000 calc(100% - 16px), transparent);
}
.tok-list::-webkit-scrollbar { width: 8px; }
.tok-list::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 999px;
}
.tok-list::-webkit-scrollbar-track { background: transparent; }
.tok-label {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tok-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  flex-shrink: 0;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 8px 10px;
  color: inherit;
  box-sizing: border-box;
}
.tok-row:hover { border-color: rgba(153, 69, 255, 0.45); background: color-mix(in srgb, var(--purple) 12%, var(--surface-2)); }
.tok-row.on {
  border-color: rgba(153, 69, 255, 0.55);
  background: rgba(153, 69, 255, 0.12);
}
.tok-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tok-ico.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--surface) 0%, #3b2460 45%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: hold-pulse 1.1s ease-in-out infinite;
}
.tok-ico img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.tok-ico-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mint);
  background: var(--surface-2);
}
.tok-meta { min-width: 0; }
.tok-sym {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.tok-sym-lab {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tok-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tok-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 6px 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}
.tok-pill svg { display: block; }
.tok-pill-pump {
  background: #0f2a1c;
  color: #14f195;
  border: 1px solid rgba(20, 241, 149, 0.35);
}
.tok-verified {
  display: inline-flex;
  color: #14f195;
  flex-shrink: 0;
}
.tok-verified svg { display: block; }
.tok-side {
  display: grid;
  justify-items: end;
  gap: 2px;
  flex-shrink: 0;
}
.tok-qty {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.tok-flag {
  color: #71717a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tok-check {
  color: var(--mint);
  font-weight: 700;
  font-size: 13px;
}
.tok-empty {
  padding: 22px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.tok-list > .btn {
  display: flex;
  justify-content: center;
  width: fit-content;
}
.tok-skel { pointer-events: none; }
.tok-skel-line {
  height: 10px;
  width: 72%;
  border-radius: 6px;
  background: linear-gradient(110deg, var(--surface) 0%, #2a2438 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: hold-pulse 1.1s ease-in-out infinite;
  margin: 4px 0;
}
.tok-skel-line.short { width: 42%; }

.hold-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  flex: none;
  width: min(380px, calc(100vw - 28px));
  max-height: min(calc(100dvh - 24px), 820px);
  z-index: 40;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.hold-panel[hidden] { display: none; }
.hold-panel.hold-preview {
  max-height: none;
  width: min(340px, calc(100vw - 28px));
}
a.hold-act {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
a.icon-btn {
  text-decoration: none;
  color: inherit;
}
.hold-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hold-mark,
img.hold-mark {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
}
.hold-who { flex: 1; min-width: 0; }
.hold-handle {
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hold-handle:empty { display: none; }
.hold-addr {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  font-family: ui-monospace, "Space Grotesk", monospace;
}
.hold-addr:hover { color: var(--mint); }
.hold-icon, .hold-x {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.hold-icon img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  display: block;
}
.hold-icon:hover, .hold-x:hover { color: var(--text); border-color: rgba(153, 69, 255, 0.55); }
.hold-icon[aria-pressed="true"] img { opacity: 0.55; }
.hold-x {
  font-size: 18px;
  line-height: 1;
  display: grid;
}
.hold-x img,
.tok-close img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.hold-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hold-fiat {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hold-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.9fr 0.8fr;
  gap: 8px;
  padding: 0 6px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hold-cols span:nth-child(2),
.hold-cols span:nth-child(3) { text-align: right; }
.hold-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 14px 0 8px;
}
.hold-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.hold-act img, .hold-act svg { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.hold-act:hover {
  border-color: rgba(153, 69, 255, 0.55);
  background: color-mix(in srgb, var(--purple) 14%, var(--surface-2));
}
.hold-act.on,
.hold-act[aria-pressed="true"] {
  border-color: rgba(153, 69, 255, 0.55);
  background: rgba(153, 69, 255, 0.14);
  color: var(--text);
}
#hold-bags,
#hold-hist-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
#hold-bags[hidden],
#hold-hist-box[hidden] { display: none; }
.hist-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
}
.hist-day {
  padding: 14px 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.hist-list > .hist-day:first-child { padding-top: 2px; }
.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 8px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.hist-row:hover { background: rgba(255, 255, 255, 0.045); }
.hist-stack {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.hist-token {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}
.hist-token .tok-ico,
.hist-token .tok-ico img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
}
.hist-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--surface);
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.hist-mark .tok-ico,
.hist-mark .tok-ico img {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
}
.hist-copy { flex: 1; min-width: 0; }
.hist-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hist-sub {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-amt {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-left: 6px;
}
.hist-amt-in { color: #14f195; }
.hist-solscan {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.28;
  color: var(--muted);
}
.hist-row:hover .hist-solscan { opacity: 0.75; color: var(--text); }
.hist-empty {
  padding: 22px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dep-sheet {
  width: min(400px, 100%);
  padding: 18px 18px 16px;
}
.dep-sheet .tok-head-copy { text-align: center; flex: 1; }
.dep-sheet .tok-head-copy h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.dep-qr-wrap {
  position: relative;
  width: 268px;
  height: 268px;
  margin: 8px auto 6px;
  overflow: hidden;
  background: #0a0a0a;
  border: 0;
  border-radius: 0;
}
.dep-qr-wrap canvas,
.dep-qr-wrap #dep-qr-img {
  position: absolute;
  inset: 0;
  width: 268px;
  height: 268px;
  border-radius: 0;
}
.dep-qr-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px !important;
  height: 40px !important;
  padding: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 0 6px #ffffff;
  z-index: 1;
  object-fit: cover;
}
.dep-addr-lab {
  margin: 8px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.dep-addr-card {
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dep-addr {
  display: block;
  margin: 0;
  text-align: center;
  font-family: ui-monospace, "Space Grotesk", monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--text);
}
.dep-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.dep-share {
  opacity: 0.92;
}
.dep-note {
  margin: 10px 12px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.dep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.dep-btn svg,
.dep-btn img { width: 16px; height: 16px; }
.dep-btn:hover {
  border-color: rgba(153, 69, 255, 0.55);
  background: color-mix(in srgb, var(--purple) 12%, var(--surface-2));
}
.dep-btn.on {
  border-color: rgba(20, 241, 149, 0.45);
  color: var(--mint);
}
.hold-kicker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.hold-kicker #hold-sum { color: var(--muted); }
.hold-limits { margin-top: 2px; }
.hold-limit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
}
.hold-limit-copy { min-width: 0; flex: 1; }
.hold-limit-title { font-size: 13px; font-weight: 700; }
.hold-limit-sub { font-size: 11px; opacity: 0.55; font-weight: 600; }
.hold-limits-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan, #22d3ee);
  text-decoration: none;
}
.hold-err {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.1);
  color: #fb7185;
  font-size: 13px;
  font-weight: 600;
}
.hold-err[hidden] { display: none; }
.hold-retry {
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: transparent;
  color: #fb7185;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
}
.hold-retry:hover { background: rgba(251, 113, 133, 0.12); }
.hold-list {
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hold-list.hold-list-scroll {
  overflow-y: auto;
  max-height: calc(52px * 8 + 2px * 7);
}
.hold-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px 6px;
  border-radius: 12px;
}
.hold-row:hover { background: var(--surface); }
.hold-row.hold-pending { opacity: 0.72; }
.hold-coin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hold-row img, .hold-row .mark,
.hold-row .tok-ico,
.hold-row .tok-ico img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.hold-meta { flex: 1; min-width: 0; }
.hold-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hold-tick {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hold-qty {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hold-solval {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hold-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 4px;
}
.hold-dust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
}
.hold-dust:hover { color: var(--text); background: var(--surface); }
.hold-dust::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.hold-dust[aria-expanded="true"]::after { transform: rotate(180deg); }
.hold-dust-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hold-dust-list.open { grid-template-rows: 1fr; }
.hold-dust-inner {
  overflow: hidden;
  min-height: 0;
}
.hold-dust-inner .hold-row {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hold-dust-list.open .hold-dust-inner .hold-row {
  opacity: 1;
  transform: none;
}
.hold-dust-list.open .hold-dust-inner .hold-row:hover { transform: translateX(2px); }
.hold-skel {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface) 0%, #1c1c24 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: hold-pulse 1.2s ease-in-out infinite;
}
@keyframes hold-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

button, a, input, select, .token-btn, .acct-chip, .icon-btn, .opts-chip,
.hold-row, .tok-row, .tok-chip, .tok-tab, .pick, .dep-btn, .hold-act, .pct, .paste {
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.icon-btn svg,
.icon-btn img { transition: transform 0.28s ease; }
.icon-btn.open {
  border-color: rgba(153, 69, 255, 0.7);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.16);
}
.icon-btn.open svg,
.icon-btn.open img { transform: rotate(72deg); }
.opts-pop {
  transform-origin: top right;
  animation: pop-down 0.16s ease-out;
}
.opts-fx-menu { animation: pop-down 0.14s ease-out; }
.opts-fx-caret { transition: transform 0.16s ease; }
.opts-fx-btn[aria-expanded="true"] .opts-fx-caret { transform: rotate(180deg); }
.hold-panel {
  transform-origin: top right;
  animation: pop-down 0.18s ease-out;
}
.paste-pop { animation: pop-down 0.14s ease-out; }
@keyframes pop-down {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(153, 69, 255, 0.55)); }
  50% { filter: drop-shadow(0 0 18px rgba(20, 241, 149, 0.42)); }
}
@keyframes cta-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes num-tick {
  0% { color: var(--mint); }
  100% { color: var(--text); }
}
.linux {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: rise-in 0.45s ease;
}
.linux:hover {
  border-color: rgba(153, 69, 255, 0.5);
  box-shadow: 0 18px 44px rgba(153, 69, 255, 0.18);
}
.linux-tux { transition: transform 0.22s ease; }
.linux:hover .linux-tux { transform: rotate(-14deg) scale(1.12); }
.linux-copy a {
  position: relative;
  display: inline-block;
}
.linux-copy a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.linux-copy a:hover::after { transform: scaleX(1); }
.overlay { animation: fade-in 0.18s ease; }
.sheet { animation: sheet-in 0.22s ease-out; }
.desk > * { animation: rise-in 0.48s ease; }
.desk > *:nth-child(1) { animation-delay: 0.02s; }
.desk > *:nth-child(2) { animation-delay: 0.07s; }
.desk > *:nth-child(3) { animation-delay: 0.12s; }
.desk > *:nth-child(4) { animation-delay: 0.17s; }
.desk > *:nth-child(5) { animation-delay: 0.22s; }
.desk > *:nth-child(6) { animation-delay: 0.27s; }
.hero-banner img { transition: transform 0.7s ease; }
.hero-banner:hover img { transform: scale(1.045); }
.title-mark { animation: glow-pulse 4.2s ease-in-out infinite; }
.jup-chip:hover { border-color: rgba(153, 69, 255, 0.5); }
.leg { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.leg:focus-within {
  border-color: rgba(153, 69, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(153, 69, 255, 0.12);
}
#amount:focus {
  border-color: rgba(153, 69, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.16);
}
.out.quoting { color: var(--muted); }
.out.tick { animation: num-tick 0.45s ease; }
.token-btn:hover {
  border-color: rgba(153, 69, 255, 0.55);
  transform: translateY(-1px);
}
.flip { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.flip:hover { transform: translate(-50%, -50%) scale(1.08); }
.flip:active { transform: translate(-50%, -50%) scale(0.96); }
.swap-cta:not(:disabled) {
  background-size: 200% 100%;
  animation: cta-shift 5s linear infinite;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18);
}
.swap-cta:not(:disabled):hover { filter: brightness(1.08); }
.swap-cta.busy .swap-cta-inner { opacity: 0.8; }
.tok-row:hover { transform: none; }
.hold-row:hover { transform: none; }
.mint-warn { animation: rise-in 0.22s ease; }
.tx-box { animation: rise-in 0.25s ease; }
.tx-row { transition: color 0.15s ease, transform 0.15s ease; }
.tx-row:hover { transform: translateX(3px); }
.btn-primary:hover { filter: brightness(1.06); }
.acct-chip:hover { transform: translateY(-1px); }
.done-mark { animation: glow-pulse 2.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .flip:hover, .flip:active { transform: translate(-50%, -50%); }
  .hold-dust-list { grid-template-rows: 0fr; }
  .hold-dust-list.open { grid-template-rows: 1fr; }
}

@media (max-width: 960px) {
  .stage {
    width: min(var(--desk), calc(100% - 28px));
  }
}
@media (max-width: 767px) {
  .nav-apps { display: none; }
  .linux { display: none !important; }
  .tok-sheet {
    width: min(420px, calc(100% - 24px));
    height: auto;
    max-height: min(80vh, 640px);
    border-radius: 20px;
  }
  .overlay {
    place-items: end center;
    align-items: end;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .overlay .sheet {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(16px + var(--dock-h, 64px));
  }
  /* Token picker: full-screen on mobile so search results are not cut off */
  #token-modal.overlay {
    place-items: stretch;
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    overflow: hidden;
  }
  #token-modal .tok-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    min-height: 100%;
    min-height: 100dvh;
    border-radius: 0;
    padding: max(12px, env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  #token-modal .tok-list {
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: 28px;
  }
  .stage { padding-bottom: 24px; width: min(var(--desk), calc(100% - 24px)); }
  .desk > .swap-cta,
  #rev-modal .swap-cta {
    position: sticky;
    bottom: calc(var(--dock-h, 64px) + 8px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
  #done-modal {
    place-items: center;
    align-items: center;
    padding: 16px;
  }
  #done-modal .done-sheet {
    width: min(380px, 100%);
    max-width: min(380px, 100%);
    border-radius: 20px;
    padding: 22px 20px 20px;
    gap: 12px;
  }
  #done-modal .swap-cta {
    position: static;
    bottom: auto;
    z-index: 1;
    box-shadow: none;
  }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  nav.vibe-bar { padding: 6px 8px; }
  .nav-x span { display: none; }
  .hero-banner { height: 72px; }
  .title-copy h1 { font-size: 1.25rem; }
  .stage { width: calc(100% - 20px); margin: 12px auto 24px; }
  .hold-panel {
    width: min(420px, calc(100% - 16px));
  }
  .title-row { gap: 8px; }
  #amount,
  .paste-pop input {
    font-size: 16px;
  }
  .paste-pop {
    width: min(280px, calc(100vw - 36px));
  }
  #connect-btn,
  .acct-chip {
    min-height: 44px;
  }
}
