/* ─────────────────────────────────────────────────
   HOODIES MARKETPLACE — extends parent site tokens
   Loaded AFTER /style.css so we can override.
   ───────────────────────────────────────────────── */

:root {
  --mkt-header-h: 68px;
  --mkt-card-radius: 6px;
  --mkt-tile-radius: 4px;
}

/* ── page shell ────────────────────────────────── */
body.mkt {
  padding-top: var(--mkt-header-h);
}

.mkt-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mkt-header-h);
  background: rgba(10, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-4);
}
.mkt-header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.mkt-brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1;
}
.mkt-brand .mkt-brand-sub {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--hood);
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--hood);
  border-radius: 2px;
}
.mkt-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}
.mkt-header-wallet {
  display: flex;
  align-items: center;
  margin-left: var(--sp-3);
  flex-shrink: 0;
}
.mkt-wallet-connect {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--hood);
  color: var(--hood);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.mkt-wallet-connect:hover:not(:disabled) {
  background: var(--hood);
  color: #0a0c0a;
}
.mkt-wallet-connect:disabled { opacity: 0.6; cursor: not-allowed; }
.mkt-wallet-connected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(20, 24, 20, 0.5);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.mkt-wallet-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hood);
  box-shadow: 0 0 8px var(--hood);
}
.mkt-wallet-addr { color: var(--ink); }
.mkt-wallet-disconnect {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 120ms;
}
.mkt-wallet-disconnect:hover { color: #f66; }

/* Mobile: shrink header padding + hide '← HOODIENFT.XYZ' link so wallet fits. */
@media (max-width: 720px) {
  .mkt-header { padding: 0 var(--sp-2); }
  .mkt-header-inner { gap: var(--sp-3); }
  .mkt-nav { gap: var(--sp-3); }
  .mkt-nav a[href="/"] { display: none; }
  .mkt-wallet-connect { padding: 6px 10px; font-size: 0.65rem; letter-spacing: 0.1em; }
  .mkt-wallet-connected { padding: 5px 8px 5px 10px; font-size: 0.68rem; }
  .mkt-header-wallet { margin-left: var(--sp-2); }
}
@media (max-width: 520px) {
  .mkt-brand .mkt-brand-sub { display: none; }
  .mkt-nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
}
.mkt-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.mkt-nav a:hover,
.mkt-nav a.active {
  color: var(--hood);
  border-bottom-color: var(--hood);
}
.mkt-nav .btn-submit {
  padding: 8px 14px;
  border: 1px solid var(--hood);
  color: var(--hood);
  border-radius: 3px;
}
.mkt-nav .btn-submit:hover {
  background: var(--hood);
  color: #0a0c0a;
  border-bottom-color: var(--hood);
}

/* ── main container ────────────────────────────── */
.mkt-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-8);
}
.mkt-hero {
  padding: var(--sp-6) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-6);
}
.mkt-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--hood);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.mkt-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}
.mkt-hero p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 720px;
  margin: 0;
}
.mkt-hero .first-badge {
  display: inline-block;
  margin-top: var(--sp-4);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--hood);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--hood);
  border-radius: 2px;
}

/* ── section headings ──────────────────────────── */
.mkt-section {
  margin: var(--sp-6) 0;
}
.mkt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.mkt-section-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0;
}
.mkt-section-head .mkt-count {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

/* ── collection cards (grid on index) ──────────── */
.mkt-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
}
.mkt-collection-card {
  background: rgba(20, 24, 20, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 160ms, transform 160ms;
}
.mkt-collection-card:hover {
  border-color: var(--hood);
  transform: translateY(-2px);
}
.mkt-collection-cover {
  aspect-ratio: 3 / 2;
  background: #0a0c0a;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.mkt-collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-collection-cover .mkt-first-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--hood);
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(10, 12, 10, 0.85);
  border: 1px solid var(--hood);
  border-radius: 2px;
}
.mkt-collection-body {
  padding: var(--sp-3) var(--sp-4);
}
.mkt-collection-title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.mkt-collection-title h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}
.mkt-verified {
  color: var(--hood);
  font-size: 0.9rem;
}
.mkt-unverified {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
  background: rgba(20, 24, 20, 0.4);
  white-space: nowrap;
}
.mkt-collection-card.unverified .mkt-collection-cover {
  opacity: 0.82;
}
.mkt-collection-card.unverified:hover .mkt-collection-cover {
  opacity: 1;
}
.mkt-collection-desc {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0 0 var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-collection-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-2);
}
@media (max-width: 520px) {
  .mkt-collection-stats { grid-template-columns: repeat(2, 1fr); }
}
.mkt-stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mkt-stat-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
}
.mkt-stat-value.dim { color: var(--ink-dim); }

/* ── NFT tile grid (collection page + profile) ─ */
.mkt-nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.mkt-nft-tile {
  background: rgba(20, 24, 20, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--mkt-tile-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 140ms, transform 140ms;
}
.mkt-nft-tile:hover {
  border-color: var(--hood);
  transform: translateY(-1px);
}
.mkt-nft-image {
  aspect-ratio: 1 / 1;
  background: #0a0c0a;
  overflow: hidden;
}
.mkt-nft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-nft-body {
  padding: var(--sp-2) var(--sp-3);
}
.mkt-nft-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-nft-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.mkt-nft-meta .rarity-legendary { color: #d4af37; }
.mkt-nft-meta .rarity-epic      { color: #b57edc; }
.mkt-nft-meta .rarity-rare      { color: #6cb2ff; }
.mkt-nft-meta .rarity-uncommon  { color: #71c48a; }
.mkt-nft-meta .rarity-common    { color: var(--ink-dim); }

/* ── loading skeleton ──────────────────────────── */
.mkt-skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%);
  background-size: 200% 100%;
  animation: mktShimmer 1.4s infinite;
}
@keyframes mktShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mkt-skel-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--mkt-tile-radius);
  border: 1px solid var(--line);
}

/* ── filters bar ───────────────────────────────── */
.mkt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.mkt-filters .filter-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.mkt-filters label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.mkt-filters select,
.mkt-filters input[type="text"] {
  background: rgba(10, 12, 10, 0.6);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  min-width: 140px;
}
.mkt-filters select:focus,
.mkt-filters input:focus {
  outline: none;
  border-color: var(--hood);
}
.mkt-filters .spacer { flex: 1; }
.mkt-filters .filter-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

/* ── collection detail page ────────────────────── */
.mkt-collection-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.mkt-collection-hero-cover {
  aspect-ratio: 1 / 1;
  border-radius: var(--mkt-card-radius);
  overflow: hidden;
  background: #0a0c0a;
  border: 1px solid var(--line);
}
.mkt-collection-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-collection-hero-body h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}
.mkt-collection-hero-body .mkt-sub {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.mkt-collection-hero-body .mkt-sub a {
  color: var(--hood);
  text-decoration: none;
}
.mkt-collection-hero-body .mkt-sub a:hover { text-decoration: underline; }
.mkt-collection-hero-body p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 780px;
  margin: 0 0 var(--sp-4);
}
.mkt-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-2);
  max-width: 100%;
}
.mkt-stats-row .mkt-stat-value {
  font-size: 1.15rem;
  font-family: var(--serif);
}
.mkt-note-warn {
  border-left-color: #d4a044 !important;
  color: var(--ink);
}
.mkt-note-warn strong { color: #d4a044 !important; }

/* ── NFT detail page ───────────────────────────── */
.mkt-nft-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-6);
  padding-top: var(--sp-4);
}
.mkt-nft-image-large {
  aspect-ratio: 1 / 1;
  background: #0a0c0a;
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--mkt-header-h) + var(--sp-4));
}
.mkt-nft-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-nft-info h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}
.mkt-nft-info .mkt-nft-id {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--hood);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.mkt-info-block {
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  background: rgba(20, 24, 20, 0.35);
}
.mkt-info-block h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0 0 var(--sp-2);
  font-weight: 400;
}
.mkt-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  gap: var(--sp-3);
}
.mkt-info-row:last-child { border-bottom: none; }
.mkt-info-row .k {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mkt-info-row .v {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}
.mkt-info-row .v a { color: var(--hood); text-decoration: none; }
.mkt-info-row .v a:hover { text-decoration: underline; }

.mkt-traits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-2);
}
.mkt-trait {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(10, 12, 10, 0.4);
}
.mkt-trait .trait-type {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--hood);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mkt-trait .trait-value {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
}

.mkt-action-row {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.mkt-action-row .btn {
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(20, 24, 20, 0.5);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 120ms;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-action-row .btn:hover:not(:disabled) {
  border-color: var(--hood);
  color: var(--hood);
}
.mkt-action-row .btn.primary {
  border-color: var(--hood);
  color: var(--hood);
}
.mkt-action-row .btn.primary:hover:not(:disabled) {
  background: var(--hood);
  color: #0a0c0a;
}
.mkt-action-row .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mkt-action-row .btn .btn-sub {
  display: block;
  font-size: 0.62rem;
  opacity: 0.7;
  margin-top: 3px;
  letter-spacing: 0.1em;
}

/* ── profile page ──────────────────────────────── */
.mkt-profile-search {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  max-width: 640px;
}
.mkt-profile-search input {
  flex: 1;
  background: rgba(10, 12, 10, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.9rem;
  border-radius: 3px;
}
.mkt-profile-search input:focus {
  outline: none;
  border-color: var(--hood);
}
.mkt-profile-search button {
  padding: 12px 22px;
  background: var(--hood);
  color: #0a0c0a;
  border: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}
.mkt-profile-header {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.mkt-profile-addr {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--hood);
  word-break: break-all;
}
.mkt-profile-summary {
  font-family: var(--serif);
  color: var(--ink-dim);
  margin-top: var(--sp-2);
}

/* ── submit page ──────────────────────────────── */
.mkt-submit-form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.mkt-submit-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mkt-submit-form label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.mkt-submit-form input,
.mkt-submit-form textarea,
.mkt-submit-form select {
  background: rgba(10, 12, 10, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.9rem;
  border-radius: 3px;
}
.mkt-submit-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 120px;
  resize: vertical;
}
.mkt-submit-form input:focus,
.mkt-submit-form textarea:focus,
.mkt-submit-form select:focus {
  outline: none;
  border-color: var(--hood);
}
.mkt-submit-form .field-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.mkt-submit-form .verify-box {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(20, 24, 20, 0.4);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.mkt-submit-form .verify-box.ok { border-color: var(--hood); color: var(--ink); }
.mkt-submit-form .verify-box.err { border-color: #b64848; color: #ff9d9d; }
.mkt-submit-form .verify-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.mkt-submit-form .verify-row .k { color: var(--ink-dim); }
.mkt-submit-form button.submit {
  align-self: flex-start;
  padding: 14px 28px;
  background: var(--hood);
  color: #0a0c0a;
  border: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}
.mkt-submit-form button.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── messaging boxes ───────────────────────────── */
.mkt-note {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hood);
  border-radius: 3px;
  background: rgba(20, 24, 20, 0.35);
  font-family: var(--serif);
  color: var(--ink-dim);
  margin: var(--sp-3) 0;
  line-height: 1.6;
}
.mkt-note strong { color: var(--ink); font-style: italic; }
.mkt-note code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--hood);
  background: rgba(10, 12, 10, 0.6);
  padding: 2px 6px;
  border-radius: 2px;
}

.mkt-empty {
  padding: var(--sp-6);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--mkt-card-radius);
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .mkt-collection-hero { grid-template-columns: 1fr; }
  .mkt-collection-hero-cover { max-width: 240px; }
  .mkt-nft-detail { grid-template-columns: 1fr; }
  .mkt-nft-image-large { position: static; }
  .mkt-nav a:not(.btn-submit) { display: none; }
}
@media (max-width: 620px) {
  :root { --mkt-header-h: 60px; }
  .mkt-brand { font-size: 1.15rem; }
  .mkt-brand .mkt-brand-sub { font-size: 0.6rem; padding: 2px 5px; }
  .mkt-hero { padding: var(--sp-4) 0; }
  .mkt-main { padding: var(--sp-3) var(--sp-3) var(--sp-6); }
  .mkt-nft-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mkt-collections-grid { grid-template-columns: 1fr; }
  .mkt-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mkt-profile-search { flex-direction: column; }
  .mkt-filters { padding: var(--sp-2) 0; }
  .mkt-filters select,
  .mkt-filters input[type="text"] { min-width: 110px; font-size: 0.8rem; }
  .mkt-action-row { flex-wrap: wrap; }
  .mkt-action-row .btn { font-size: 0.68rem; padding: 10px 8px; }
  .mkt-action-row .btn .btn-sub { font-size: 0.55rem; }
  .mkt-nft-info h1 { font-size: 1.9rem; }
}

/* ── Trading UI ────────────────────────────────────────────────────────── */
.mkt-trade-hint {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(var(--hood-rgb, 46, 213, 115), 0.08);
  border: 1px solid rgba(var(--hood-rgb, 46, 213, 115), 0.25);
  color: var(--ink);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  margin-bottom: 12px;
  border-radius: 4px;
}
.mkt-pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--hood, #2ed573);
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: mkt-pulse 1.6s ease-in-out infinite;
}
@keyframes mkt-pulse { 50% { opacity: 0.35; transform: scale(0.85); } }

.mkt-price-strip {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(46,213,115,0.14), rgba(46,213,115,0.04));
  border: 1px solid rgba(46,213,115,0.25);
  border-radius: 4px;
}
.mkt-price-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.mkt-price-value {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--hood, #2ed573);
}
.mkt-price-value span {
  font-family: var(--mono, ui-monospace, monospace);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-left: 4px;
  letter-spacing: 0.06em;
}

.mkt-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: mkt-fade-in 0.15s ease;
}
@keyframes mkt-fade-in { from { opacity: 0; } to { opacity: 1; } }
.mkt-modal {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 32px;
  max-width: 460px; width: 100%;
  color: var(--ink, #f5f5f5);
  animation: mkt-slide-up 0.25s ease;
  border-radius: 4px;
}
@keyframes mkt-slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.btn.danger {
  background: transparent;
  border: 1px solid rgba(255,80,80,0.4);
  color: rgba(255,120,120,1);
}
.btn.danger:hover { background: rgba(255,80,80,0.08); }
.btn.ghost {
  background: transparent;
  border: 1px solid #333;
  color: var(--ink-dim);
  font-size: 0.78rem;
}

/* ── Profile: connect wallet + connected bar ── */
.mkt-profile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.mkt-profile-actions .btn.btn-lg {
  font-size: 0.92rem;
  padding: 16px 28px;
  letter-spacing: 0.06em;
}
.mkt-profile-hint {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--ink-dim, #8a8a8a);
  letter-spacing: 0.06em;
}
.mkt-profile-connected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rule, #2a2a2a);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
.mkt-connected-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim, #8a8a8a);
  margin-left: 6px;
}
.mkt-connected-addr {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink, #eee);
  margin-left: 8px;
}
.mkt-connected-actions {
  display: flex;
  gap: 8px;
}
.btn.btn-sm {
  font-size: 0.72rem;
  padding: 6px 12px;
  letter-spacing: 0.06em;
}
.mkt-profile-lookup-toggle {
  margin-bottom: var(--sp-4);
}
.mkt-profile-lookup-toggle summary {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim, #8a8a8a);
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
}
.mkt-profile-lookup-toggle summary::-webkit-details-marker { display: none; }
.mkt-profile-lookup-toggle summary::before {
  content: '+ ';
  color: var(--hood, #d4af37);
}
.mkt-profile-lookup-toggle[open] summary::before {
  content: '− ';
}
.mkt-profile-lookup-toggle[open] .mkt-profile-search {
  margin-top: var(--sp-2);
}

/* ── Generic buttons (admin, submit success, connect bars) ────── */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(20, 24, 20, 0.5);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 120ms;
  line-height: 1.2;
}
.mkt-btn:hover:not(:disabled) {
  border-color: var(--hood);
  color: var(--hood);
}
.mkt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mkt-btn.btn-primary {
  border-color: var(--hood);
  color: var(--hood);
  background: rgba(70, 200, 90, 0.06);
}
.mkt-btn.btn-primary:hover:not(:disabled) {
  background: rgba(70, 200, 90, 0.14);
}
.mkt-btn.btn-danger {
  border-color: rgba(255, 90, 90, 0.5);
  color: #f66;
}
.mkt-btn.btn-danger:hover:not(:disabled) {
  background: rgba(255, 90, 90, 0.08);
}

/* ── Connect bar (admin page) ─────────────────────────────────── */
.mkt-connect-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  background: rgba(20, 24, 20, 0.5);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.mkt-connect-status { flex: 1; min-width: 220px; }
.mkt-connect-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.mkt-connect-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.mkt-connect-sub code {
  font-family: var(--mono);
  color: var(--hood);
  background: transparent;
  padding: 0;
}

/* ── Page heading (admin) ─────────────────────────────────────── */
.mkt-page-head { margin-bottom: var(--sp-4); }
.mkt-page-head h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--ink);
  margin: var(--sp-1) 0 var(--sp-2);
}
.mkt-page-head .mkt-lead {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 780px;
  margin: 0;
}

/* ── Admin list ────────────────────────────────────────────────── */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.admin-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  background: rgba(20, 24, 20, 0.35);
}
.admin-card-cover {
  aspect-ratio: 1 / 1;
  background: #0a0c0a;
  border: 1px solid var(--line-2);
  border-radius: var(--mkt-tile-radius);
  overflow: hidden;
}
.admin-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-card-body { min-width: 0; }
.admin-card-head { margin-bottom: var(--sp-2); }
.admin-card-head h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-card-head h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.admin-card-head h3 a:hover { border-bottom-color: var(--hood); color: var(--hood); }
.admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.admin-card-meta a { color: var(--ink-dim); border-bottom: 1px dotted var(--line); text-decoration: none; }
.admin-card-meta a:hover { color: var(--hood); border-bottom-color: var(--hood); }
.admin-card-desc {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: var(--sp-2) 0;
}
.admin-card-links {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}
.admin-card-links a { color: var(--hood); text-decoration: none; }
.admin-card-links a:hover { text-decoration: underline; }
.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-card-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-top: var(--sp-2);
  min-height: 1.2em;
}
.admin-status-ok  { color: var(--hood) !important; }
.admin-status-err { color: #f66 !important; }

.admin-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(20, 24, 20, 0.4);
  white-space: nowrap;
}
.admin-tag-verified { color: var(--hood); border-color: rgba(70, 200, 90, 0.4); }
.admin-tag-pending  { color: #d4a044; border-color: rgba(212, 160, 68, 0.4); }
.admin-tag-hidden   { color: #f66; border-color: rgba(255, 90, 90, 0.35); }

@media (max-width: 640px) {
  .admin-card { grid-template-columns: 1fr; }
  .admin-card-cover { max-width: 200px; }
}

/* ────────────────────────────────────────────────────────────────────────
   v1.7 — Live Feed
   ──────────────────────────────────────────────────────────────────────── */

.mkt-hero-compact { padding: var(--sp-5) 0 var(--sp-4); }
.mkt-hero-compact h1 { margin-bottom: var(--sp-2); }
.mkt-hero-compact p  { max-width: 640px; }

.af-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.af-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.af-filter {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.af-filter:hover { color: var(--ink); border-color: var(--ink-dim); }
.af-filter.active {
  color: var(--hood);
  border-color: var(--hood);
  background: rgba(70, 200, 90, 0.06);
}

.af-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.af-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hood);
  box-shadow: 0 0 0 0 rgba(70, 200, 90, 0.7);
  animation: af-live-pulse 2s ease-out infinite;
}
@keyframes af-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(70, 200, 90, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(70, 200, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 200, 90, 0); }
}
.af-live.pulse { border-color: var(--hood); color: var(--hood); }

/* Feed rows */
.af-feed {
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  background: rgba(20, 24, 20, 0.35);
  overflow: hidden;
}

.af-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1.35;
  animation: af-row-fade-in 0.35s ease;
}
.af-feed .af-row:last-child { border-bottom: none; }

@keyframes af-row-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.af-row-new .af-row,
.af-row-new-flash {
  animation: af-row-flash 1.2s ease;
}
@keyframes af-row-flash {
  0%   { background: rgba(70, 200, 90, 0.22); }
  100% { background: transparent; }
}

.af-kind {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  justify-self: start;
}
.af-kind.k-buy    { color: var(--hood); border-color: rgba(70, 200, 90, 0.4); }
.af-kind.k-list   { color: #7ec1ff; border-color: rgba(126, 193, 255, 0.35); }
.af-kind.k-offer  { color: #d4a044; border-color: rgba(212, 160, 68, 0.4); }
.af-kind.k-cancel { color: #f88; border-color: rgba(255, 120, 120, 0.35); }
.af-kind.k-bump   { color: #b39ddb; border-color: rgba(179, 157, 219, 0.35); }

.af-body {
  color: var(--ink);
  min-width: 0;
  word-break: break-word;
}
.af-body .af-addr {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.af-body .af-addr:hover { color: var(--hood); border-bottom-color: var(--hood); }

.af-subj {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
.af-subj:hover { color: var(--hood); border-bottom-color: var(--hood); }
.af-col { font-weight: 500; }
.af-token { font-family: var(--mono); color: var(--ink-dim); margin-left: 4px; }
.af-subj:hover .af-token { color: var(--hood); }
.af-subj-muted { color: var(--ink-dim); }

.af-price {
  font-family: var(--mono);
  color: var(--hood);
  font-weight: 500;
}

.af-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}
.af-time { color: var(--ink-dim); }
.af-tx {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.af-tx:hover { color: var(--hood); border-bottom-color: var(--hood); }

/* Compact variant (widget) */
.af-row.af-compact {
  grid-template-columns: 60px 1fr auto;
  padding: 8px 12px;
  font-size: 0.82rem;
  gap: var(--sp-2);
}
.af-row.af-compact .af-kind { font-size: 0.55rem; padding: 2px 5px; }
.af-row.af-compact .af-meta { font-size: 0.65rem; gap: 8px; }

.af-more-wrap {
  text-align: center;
  margin-top: var(--sp-4);
}
.af-more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.af-more:hover:not(:disabled) { border-color: var(--hood); color: var(--hood); }
.af-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* Widget (home / collection) */
.af-widget {
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  background: rgba(20, 24, 20, 0.35);
  overflow: hidden;
}
.af-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}
.af-widget-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.af-widget-all {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-decoration: none;
}
.af-widget-all:hover { color: var(--hood); }
.af-widget-body { max-height: 420px; overflow-y: auto; }
.af-widget-empty { padding: var(--sp-4); text-align: center; font-size: 0.85rem; }

/* Mobile */
@media (max-width: 720px) {
  .af-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  .af-kind { justify-self: start; }
  .af-meta { justify-self: start; }
  .af-toolbar { flex-direction: column; align-items: stretch; }
  .af-live { justify-content: center; }
}

/* ────────────────────────────────────────────────────────────────────────
   v1.7 — Live Feed · Card design (full page)
   ──────────────────────────────────────────────────────────────────────── */

/* Feed container becomes a vertical card stack */
.af-feed {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base card */
.af-card {
  display: flex;
  align-items: stretch;
  gap: var(--sp-3);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--mkt-card-radius);
  background:
    linear-gradient(180deg, rgba(30, 34, 30, 0.55), rgba(18, 21, 18, 0.55));
  transition: border-color 0.15s ease, transform 0.15s ease;
  animation: af-row-fade-in 0.4s ease;
  position: relative;
  overflow: hidden;
}
.af-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--line);
}
.af-card.k-buy::before    { background: linear-gradient(180deg, var(--hood), rgba(70, 200, 90, 0.15)); }
.af-card.k-list::before   { background: linear-gradient(180deg, #7ec1ff, rgba(126, 193, 255, 0.15)); }
.af-card.k-offer::before  { background: linear-gradient(180deg, #d4a044, rgba(212, 160, 68, 0.15)); }
.af-card.k-cancel::before { background: linear-gradient(180deg, #f88, rgba(255, 120, 120, 0.15)); }
.af-card.k-bump::before   { background: linear-gradient(180deg, #b39ddb, rgba(179, 157, 219, 0.15)); }

.af-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.af-card.k-buy:hover    { border-color: rgba(70, 200, 90, 0.45); }
.af-card.k-list:hover   { border-color: rgba(126, 193, 255, 0.45); }
.af-card.k-offer:hover  { border-color: rgba(212, 160, 68, 0.45); }
.af-card.k-cancel:hover { border-color: rgba(255, 120, 120, 0.35); }

/* Sale (large) */
.af-card-sale {
  padding: 16px;
  gap: 18px;
}
.af-card-sale .af-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 10px;
}
.af-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.af-card-sale .af-subj-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.af-card-sale .af-subj-col {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.af-card-sale .af-subj-id {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink-dim);
}
.af-card-sale .af-subj-block:hover .af-subj-col,
.af-card-sale .af-subj-block:hover .af-subj-id {
  color: var(--hood);
}

/* Slim (list/offer/cancel/bump) */
.af-card-slim {
  padding: 12px;
  align-items: center;
  gap: 12px;
}
.af-card-slim .af-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.af-card-slim .af-card-line1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.af-card-slim .af-card-line2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.af-card-slim .af-subj-block {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.af-card-slim .af-subj-col {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.1;
}
.af-card-slim .af-subj-id {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.af-card-slim .af-subj-block:hover .af-subj-col,
.af-card-slim .af-subj-block:hover .af-subj-id { color: var(--hood); }

/* Thumbnail */
.af-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.af-thumb-lg {
  width: 112px;
  height: 112px;
  border-radius: 8px;
}
.af-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.af-thumb-initials {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.af-thumb-lg .af-thumb-initials { font-size: 1.6rem; letter-spacing: 0.1em; }

/* Kind pill with inline icon */
.af-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.af-kind.k-buy    { color: var(--hood); border-color: rgba(70, 200, 90, 0.4); background: rgba(70, 200, 90, 0.06); }
.af-kind.k-list   { color: #7ec1ff; border-color: rgba(126, 193, 255, 0.35); background: rgba(126, 193, 255, 0.05); }
.af-kind.k-offer  { color: #d4a044; border-color: rgba(212, 160, 68, 0.4); background: rgba(212, 160, 68, 0.06); }
.af-kind.k-cancel { color: #f88; border-color: rgba(255, 120, 120, 0.35); background: rgba(255, 120, 120, 0.05); }
.af-kind.k-bump   { color: #b39ddb; border-color: rgba(179, 157, 219, 0.35); background: rgba(179, 157, 219, 0.05); }
.af-kind-ic {
  display: inline-flex;
  width: 10px; height: 10px;
}
.af-kind-ic svg { width: 100%; height: 100%; }

/* Party chips (buyer / seller) */
.af-parties {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.af-party {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.af-party-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.af-party-arrow {
  font-family: var(--mono);
  color: var(--ink-dim);
  font-size: 1rem;
  opacity: 0.6;
}
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.af-chip:hover { border-color: var(--hood); color: var(--hood); }
.af-chip-addr {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.af-avatar {
  display: inline-block;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* Sale price panel */
.af-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 4px 0 var(--sp-3);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 140px;
}
.af-card-price-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.af-card-price-value {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--hood);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(70, 200, 90, 0.2);
}

/* Slim card price/verb */
.af-verb {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.af-price {
  font-family: var(--mono);
  color: var(--hood);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Time + tx (line2) */
.af-card .af-time { color: var(--ink-dim); font-family: var(--mono); font-size: 0.7rem; }
.af-card .af-tx {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.af-card .af-tx:hover { color: var(--hood); border-bottom-color: var(--hood); }

/* Flash animation applies to cards too */
.af-row-new .af-card,
.af-card.af-row-new-flash {
  animation: af-card-flash 1.4s ease;
}
@keyframes af-card-flash {
  0%   { box-shadow: 0 0 0 2px rgba(70, 200, 90, 0.55); background: rgba(70, 200, 90, 0.14); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Mobile (override) */
@media (max-width: 720px) {
  .af-card-sale {
    flex-wrap: wrap;
    padding: 14px;
  }
  .af-card-sale .af-thumb-lg { width: 88px; height: 88px; }
  .af-card-price {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0 0;
    min-width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 6px;
  }
  .af-card-price-value { font-size: 1.4rem; }
  .af-parties { gap: 6px; }
  .af-card-slim .af-card-line1 { gap: 6px; }
  .af-card-slim .af-subj-col { font-size: 0.95rem; }
  .af-thumb { width: 44px; height: 44px; }
}
