.swipe-token-bar {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 35;
  border-block: 1px solid rgb(255 181 71 / 16%);
  background: linear-gradient(100deg, rgb(255 181 71 / 5%), transparent 65%), #15100d;
  color: var(--fg, #f7efe4);
}

.swipe-token-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  padding-block: 14px;
}

.swipe-token-intro {
  display: flex;
  align-items: center;
  gap: 11px;
}

.swipe-token-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 181 71 / 22%);
  border-radius: 11px;
  background: rgb(255 181 71 / 7%);
}

.swipe-token-mark i {
  width: 4px;
  height: 19px;
  border-radius: 2px;
  background: linear-gradient(#fff1d6, #ffb547 55%, #d27a2c);
  transform: rotate(-14deg);
}

.swipe-token-mark i:nth-child(2) { height: 25px; }
.swipe-token-name { display: grid; gap: 2px; }
.swipe-token-name strong { font-size: 16px; font-weight: 750; letter-spacing: -0.025em; }
.swipe-token-name > span,
.swipe-token-caption { color: var(--muted, #b3a696); font-size: 11px; line-height: 1.4; }
.swipe-token-contract { min-width: 0; }
.swipe-token-caption { display: block; margin-bottom: 4px; }
.swipe-token-address-row { display: flex; align-items: center; gap: 12px; min-width: 0; }

.swipe-token-address {
  min-width: 0;
  font-family: var(--font-fragment-mono, monospace);
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
}

.swipe-token-copy,
.swipe-token-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.swipe-token-copy { padding: 8px; color: var(--muted, #b3a696); background: transparent; }
.swipe-token-copy:hover { color: var(--fg, #f7efe4); border-color: rgb(255 181 71 / 15%); background: rgb(255 181 71 / 5%); }
.swipe-token-buy { padding: 11px 16px; border-color: #ffb547; background: #ffb547; color: #21150b; text-decoration: none; }
.swipe-token-buy:hover { border-color: #ffc871; background: #ffc871; }
.swipe-token-copy svg,
.swipe-token-buy svg { width: 16px; height: 16px; flex-shrink: 0; }
.swipe-token-copy:focus-visible,
.swipe-token-buy:focus-visible { outline: 2px solid #fff1d6; outline-offset: 3px; }
.swipe-token-copy:disabled,
.swipe-token-buy:disabled { opacity: 0.5; cursor: default; }

.swipe-token-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .swipe-token-inner { gap: 8px 16px; }
  .swipe-token-copy span { display: none; }
}

@media (max-width: 639px) {
  .swipe-token-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; }
  .swipe-token-intro { grid-column: 1; grid-row: 1; }
  .swipe-token-buy { grid-column: 2; grid-row: 1; font-size: 11px; padding-inline: 12px; }
  .swipe-token-contract { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid rgb(255 181 71 / 10%); padding-top: 7px; }
  .swipe-token-address-row { justify-content: space-between; gap: 8px; }
  .swipe-token-address { font-size: 10px; }
  .swipe-token-caption { margin-bottom: 0; font-size: 10px; }
  .swipe-token-copy { width: 44px; min-height: 36px; }
  .swipe-token-mark { width: 32px; height: 32px; }
  .swipe-token-mark i { height: 16px; }
  .swipe-token-mark i:nth-child(2) { height: 21px; }
  .swipe-token-name strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-token-copy,
  .swipe-token-buy { transition: none; }
}
