/* vibe-scan v2 — lightweight on-site tx / account / token */
.scan-page {
  width: min(960px, calc(100% - 40px));
  margin: 18px auto 56px;
  display: grid;
  gap: 14px;
}
.scan-strip {
  position: relative;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--purple, #9945ff) 32%, transparent);
  background: var(--bg);
}
.scan-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.scan-strip-title {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: #f4f4f5;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.scan-find {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.scan-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  background: var(--surface);
  color: var(--muted, #a1a1aa);
}
.scan-search-wrap:focus-within {
  border-color: rgba(153, 69, 255, 0.55);
  color: var(--text, #f4f4f5);
}
.scan-search-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
  font-weight: 600;
}
.scan-lede {
  margin: 0;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
  font-weight: 600;
}
.scan-lede.err { color: #fb7185; }
.scan-card {
  background: var(--surface);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}
.scan-card h2 {
  margin: 0;
  font-size: 1.05rem;
}
.scan-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.scan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(153, 69, 255, 0.16);
}
.scan-pill.ok {
  background: rgba(20, 241, 149, 0.16);
  color: #14f195;
}
.scan-pill.bad {
  background: rgba(251, 113, 133, 0.16);
  color: #fb7185;
}
.scan-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}
.scan-sns {
  color: var(--mint, #14f195);
  font-size: 13px;
  font-weight: 700;
}
.scan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.scan-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  gap: 4px;
}
.scan-stat span {
  color: var(--muted, #a1a1aa);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scan-stat b {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.scan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.04));
  font-size: 13px;
  font-weight: 600;
}
.scan-row:first-child { border-top: 0; padding-top: 0; }
.scan-row span { color: var(--muted, #a1a1aa); }
.scan-row a { color: #22d3ee; font-weight: 700; word-break: break-all; }
.scan-row a:hover { color: #14f195; }
.scan-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scan-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scan-actions .btn img {
  width: 16px;
  height: 16px;
}
.scan-token {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scan-token img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}
.scan-logs {
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted, #a1a1aa);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.scan-empty {
  color: var(--muted, #a1a1aa);
  font-weight: 600;
  font-size: 13px;
}
.scan-foot {
  margin: 0;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
  font-weight: 600;
}
.scan-foot a { color: #22d3ee; }
@media (max-width: 860px) {
  .scan-page { width: min(960px, calc(100% - 20px)); margin: 12px auto 24px; }
  .scan-strip { height: 64px; }
  .scan-strip-title { font-size: 16px; right: 10px; padding: 6px 10px; }
  .scan-stats { grid-template-columns: 1fr 1fr; }
  .scan-find .btn { width: 100%; }
}
