/* OpenMintArt — NFT Marketplace MVP
   Premium design system: HSL palette, glassmorphism, animated gradients,
   premium type (Inter + Space Grotesk), micro-interactions throughout. */

/* ────────────────────────────────────────────────────────────
   1. Tokens
   ──────────────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --bg: hsl(240, 22%, 6%);
  --bg-2: hsl(245, 25%, 9%);
  --bg-3: hsl(245, 28%, 13%);
  --surface: hsla(245, 30%, 18%, 0.55);
  --surface-2: hsla(245, 30%, 22%, 0.65);
  --surface-3: hsla(245, 30%, 28%, 0.5);
  --border: hsla(245, 30%, 70%, 0.12);
  --border-strong: hsla(245, 30%, 70%, 0.22);
  --border-glow: hsla(265, 90%, 70%, 0.45);

  /* type */
  --text: hsl(220, 25%, 97%);
  --text-dim: hsl(220, 14%, 75%);
  --muted: hsl(220, 10%, 58%);

  /* brand */
  --primary: hsl(265, 90%, 66%);
  --primary-2: hsl(190, 95%, 60%);
  --accent: hsl(330, 85%, 65%);
  --gold: hsl(42, 95%, 60%);
  --success: hsl(155, 70%, 55%);
  --warn: hsl(40, 95%, 60%);
  --danger: hsl(0, 80%, 65%);

  /* gradients */
  --grad-primary: linear-gradient(135deg, var(--primary), var(--primary-2));
  --grad-accent: linear-gradient(135deg, var(--accent), var(--primary));
  --grad-gold: linear-gradient(135deg, var(--gold), var(--accent));
  --grad-text: linear-gradient(135deg, hsl(220, 25%, 97%), hsl(190, 95%, 70%));

  /* shape */
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* elevation */
  --shadow-lg: 0 30px 60px -20px hsla(265, 90%, 10%, 0.55);
  --shadow-md: 0 10px 30px -10px hsla(0, 0%, 0%, 0.4);
  --shadow-glow: 0 0 40px -10px hsla(265, 90%, 60%, 0.4);

  /* type stack */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ────────────────────────────────────────────────────────────
   2. Reset + base
   ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }

::selection { background: hsla(265, 90%, 60%, 0.4); color: var(--text); }

/* ────────────────────────────────────────────────────────────
   3. Background — animated aurora
   ──────────────────────────────────────────────────────────── */
.bg-aurora {
  position: fixed; inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite;
}
.bg-aurora::before {
  width: 60vw; height: 60vw;
  top: -20%; left: -10%;
  background: radial-gradient(circle, hsla(265, 90%, 50%, 0.5), transparent 70%);
}
.bg-aurora::after {
  width: 50vw; height: 50vw;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, hsla(190, 95%, 50%, 0.4), transparent 70%);
  animation-delay: -8s;
}
.bg-aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: drift 30s ease-in-out infinite;
}
.bg-aurora .blob.b2 {
  width: 40vw; height: 40vw;
  top: 30%; right: 20%;
  background: radial-gradient(circle, hsla(330, 85%, 60%, 0.45), transparent 70%);
  animation-delay: -16s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* subtle grain overlay */
.grain {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ────────────────────────────────────────────────────────────
   4. Topbar
   ──────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 2rem;
  background: hsla(245, 30%, 12%, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-primary);
  color: hsl(240, 30%, 8%);
  font-size: 1rem;
  box-shadow: 0 6px 16px -6px hsla(265, 90%, 60%, 0.6);
  transition: transform 200ms var(--ease);
}
.brand:hover .brand-mark { transform: rotate(45deg) scale(1.08); }
.brand-name {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; gap: 1.5rem; flex: 1; margin-left: 1rem; }
.nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 160ms;
}
.nav a:hover { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

/* ────────────────────────────────────────────────────────────
   5. Buttons
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: hsla(245, 30%, 30%, 0.75);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad-primary);
  border: none;
  color: hsl(240, 30%, 8%);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px hsla(265, 90%, 60%, 0.5);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 12px 28px -8px hsla(265, 90%, 60%, 0.7); color: hsl(240, 30%, 8%); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: hsla(245, 30%, 25%, 0.5); }

.btn-accent {
  background: var(--grad-accent);
  border: none;
  color: white;
  font-weight: 600;
}
.btn-danger { background: hsla(0, 80%, 50%, 0.18); border-color: hsla(0, 80%, 60%, 0.35); color: var(--danger); }
.btn-danger:hover { background: hsla(0, 80%, 50%, 0.28); }

.btn-success {
  background: hsla(155, 70%, 50%, 0.15);
  border-color: hsla(155, 70%, 60%, 0.35);
  color: var(--success);
}

/* wallet button — gradient outline + subtle pulse to draw attention */
.btn-wallet {
  position: relative;
  background: hsla(265, 90%, 60%, 0.08);
  border: 1px solid hsla(265, 90%, 60%, 0.4);
  color: var(--text);
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  transition: all 200ms var(--ease);
}
.btn-wallet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(265, 90%, 60%, 0.15), hsla(190, 95%, 60%, 0.1));
  opacity: 0;
  transition: opacity 200ms;
}
.btn-wallet:hover {
  border-color: var(--primary);
  background: hsla(265, 90%, 60%, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px hsla(265, 90%, 60%, 0.5);
}
.btn-wallet:hover::before { opacity: 1; }
.btn-wallet.connected {
  background: hsla(155, 70%, 50%, 0.08);
  border-color: hsla(155, 70%, 50%, 0.4);
}
.btn-wallet.connected:hover {
  background: hsla(155, 70%, 50%, 0.15);
}
.btn-wallet .wallet-icon {
  font-size: 0.95rem;
  color: var(--primary-2);
  position: relative;
  z-index: 1;
}
.btn-wallet > span:not(.dot):not(.wallet-icon) {
  position: relative;
  z-index: 1;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted);
}
.dot-on {
  background: var(--success);
  box-shadow: 0 0 0 3px hsla(155, 70%, 50%, 0.2), 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px hsla(155, 70%, 50%, 0.2), 0 0 8px var(--success); }
  50% { box-shadow: 0 0 0 6px hsla(155, 70%, 50%, 0.05), 0 0 16px var(--success); }
}

.inline-form { display: inline; }

/* ────────────────────────────────────────────────────────────
   6. Container
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ────────────────────────────────────────────────────────────
   7. Surfaces
   ──────────────────────────────────────────────────────────── */
.surface {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.surface-pad-sm { padding: 1.1rem; }
.surface-pad-lg { padding: 2rem; }

/* gradient border on hover */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}
.glow-border:hover::before { opacity: 1; }

/* ────────────────────────────────────────────────────────────
   8. Hero
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: hsla(265, 90%, 60%, 0.1);
  border: 1px solid hsla(265, 90%, 60%, 0.3);
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 580px;
}
.hero .actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* stats bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0 1rem;
}
@media (max-width: 720px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, hsla(265, 90%, 60%, 0.05));
  pointer-events: none;
}
.stat .num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.stat .label {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ────────────────────────────────────────────────────────────
   9. Section header
   ──────────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 3rem 0 1.25rem;
  gap: 1rem;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 24px;
  border-radius: 2px;
  background: var(--grad-primary);
}
.section-head a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 200ms var(--ease), color 160ms;
}
.section-head a:hover { color: var(--primary-2); gap: 0.5rem; }

/* ────────────────────────────────────────────────────────────
   10. NFT cards
   ──────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.nft-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease), border-color 200ms, box-shadow 240ms;
  position: relative;
}
.nft-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}
.nft-card .img-wrap {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, hsla(265, 90%, 50%, 0.25), hsla(190, 95%, 50%, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.nft-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(240, 22%, 6%, 0.4), transparent 30%);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.nft-card:hover .img-wrap::after { opacity: 1; }
.nft-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease);
}
.nft-card:hover .img-wrap img { transform: scale(1.06); }
.nft-card .img-wrap .placeholder {
  font-family: var(--display);
  font-size: 2rem;
  color: hsla(220, 25%, 97%, 0.3);
  font-weight: 700;
}
.nft-card .img-wrap .badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: hsla(0, 0%, 0%, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}
.nft-card .img-wrap .badge.listed { background: hsla(155, 70%, 50%, 0.25); color: var(--success); border: 1px solid hsla(155, 70%, 50%, 0.4); }
.nft-card .img-wrap .badge.owned { background: hsla(265, 90%, 60%, 0.2); color: var(--primary-2); border: 1px solid hsla(265, 90%, 60%, 0.4); }

.nft-card .meta { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.nft-card .meta .name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-card .meta .sub {
  color: var(--text-dim);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-card .meta .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.nft-card .meta .price {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--primary-2);
  font-weight: 600;
}
.nft-card .meta .price.unlisted {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.nft-card .meta .royalty {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ────────────────────────────────────────────────────────────
   11. Collection cards
   ──────────────────────────────────────────────────────────── */
.coll-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 200ms, box-shadow 240ms;
  display: flex;
  flex-direction: column;
}
.coll-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}
.coll-card .banner {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, hsla(330, 85%, 60%, 0.5), hsla(265, 90%, 50%, 0.4)),
    radial-gradient(circle at 30% 30%, hsla(190, 95%, 60%, 0.5), transparent 60%);
  position: relative;
  overflow: hidden;
}
.coll-card .banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease);
}
.coll-card:hover .banner img { transform: scale(1.05); }
.coll-card .pad {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.coll-card .name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.coll-card .verified {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-2);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
}
.coll-card .creator {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.coll-card .stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text-dim);
}
.coll-card .stats strong {
  color: var(--text);
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────
   12. NFT detail (immersive)
   ──────────────────────────────────────────────────────────── */
.nft-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .nft-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

.nft-hero {
  position: sticky;
  top: 90px;
}
.nft-hero .img-wrap {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.nft-hero .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 400ms var(--ease);
}
.nft-hero .img-wrap:hover img { transform: scale(1.02); }

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.detail-panel .crumb {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-panel .crumb a:hover { color: var(--primary-2); }
.detail-panel h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0;
}
.detail-panel .owner-creator-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.entity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
}
.entity-pill .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 0.8rem;
}
.entity-pill .label {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
}

.price-card {
  background: linear-gradient(135deg, hsla(265, 90%, 60%, 0.08), hsla(190, 95%, 60%, 0.05));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, hsla(265, 90%, 60%, 0.15), transparent 60%);
  pointer-events: none;
}
.price-card .label {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-card .price-big {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.3rem 0 0.8rem;
}
.price-card .breakdown {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.price-card .breakdown span strong { color: var(--text); font-family: var(--mono); }
.price-card .breakdown .royalty-amt { color: var(--success); }

.royalty-note {
  background: linear-gradient(135deg, hsla(155, 70%, 50%, 0.08), hsla(155, 70%, 50%, 0.02));
  border: 1px solid hsla(155, 70%, 50%, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--success);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}
.royalty-note .lock-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: hsla(155, 70%, 50%, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.action-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.offers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.offers-table th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.offers-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.offers-table tr:last-child td { border-bottom: none; }
.offers-table .bid-amount {
  font-family: var(--mono);
  color: var(--primary-2);
  font-weight: 600;
}

/* collection detail */
.coll-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.coll-hero .banner {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, hsla(330, 85%, 60%, 0.4), hsla(265, 90%, 50%, 0.4), hsla(190, 95%, 60%, 0.3));
  position: relative;
  overflow: hidden;
}
.coll-hero .banner img {
  width: 100%; height: 100%; object-fit: cover;
}
.coll-hero .body {
  padding: 1.5rem 2rem;
}
.coll-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.coll-hero .stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.coll-hero .stats-row .stat-mini .label {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.coll-hero .stats-row .stat-mini .val {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ────────────────────────────────────────────────────────────
   13. Forms
   ──────────────────────────────────────────────────────────── */
form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
form label, .form-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
form input, form textarea, form select,
.form-input, .form-select, .form-textarea {
  background: hsla(245, 30%, 15%, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  width: 100%;
}
form input:focus, form textarea:focus, form select:focus,
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: hsla(245, 30%, 18%, 0.8);
  box-shadow: 0 0 0 3px hsla(265, 90%, 60%, 0.18);
}
form textarea, .form-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font);
}
form .help {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.errorlist { list-style: none; padding: 0; margin: 0.3rem 0; color: var(--danger); font-size: 0.85rem; }

/* file upload dropzone */
.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  background: hsla(245, 30%, 15%, 0.4);
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
}
.file-drop:hover { border-color: var(--primary); background: hsla(265, 90%, 60%, 0.05); }
.file-drop .icon { font-size: 2rem; color: var(--primary-2); }
.file-drop .hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.4rem; }

/* ────────────────────────────────────────────────────────────
   14. Messages
   ──────────────────────────────────────────────────────────── */
.messages {
  list-style: none; padding: 0; margin: 0;
  max-width: 1320px;
  margin: 1.25rem auto 0;
  padding: 0 2rem;
}
.msg {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.msg::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.msg-success { color: var(--success); border-color: hsla(155, 70%, 50%, 0.4); background: hsla(155, 70%, 50%, 0.08); }
.msg-error, .msg-danger { color: var(--danger); border-color: hsla(0, 80%, 60%, 0.4); background: hsla(0, 80%, 60%, 0.08); }
.msg-info { color: var(--primary-2); border-color: hsla(190, 95%, 60%, 0.4); background: hsla(190, 95%, 60%, 0.08); }
.msg-warning { color: var(--warn); border-color: hsla(40, 95%, 60%, 0.4); background: hsla(40, 95%, 60%, 0.08); }

/* ────────────────────────────────────────────────────────────
   15. Footer
   ──────────────────────────────────────────────────────────── */
.footer {
  margin-top: 5rem;
  padding: 2.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.footer a:hover { color: var(--primary-2); }

.muted { color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   16. Tags + utility
   ──────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: hsla(265, 90%, 60%, 0.12);
  border: 1px solid hsla(265, 90%, 60%, 0.3);
  font-size: 0.75rem;
  color: var(--primary-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.tag-gold {
  background: hsla(42, 95%, 60%, 0.12);
  border-color: hsla(42, 95%, 60%, 0.3);
  color: var(--gold);
}
.tag-success {
  background: hsla(155, 70%, 50%, 0.12);
  border-color: hsla(155, 70%, 50%, 0.3);
  color: var(--success);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: hsla(245, 30%, 12%, 0.4);
}
.empty-state .icon { font-size: 2.5rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.empty-state .title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.empty-state p { color: var(--text-dim); font-size: 0.9rem; max-width: 360px; margin: 0.5rem auto 1.25rem; }

/* ────────────────────────────────────────────────────────────
   16b. Pagination
   ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.page-link {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsla(245, 30%, 12%, 0.4);
  text-decoration: none;
  transition: background 160ms, border-color 160ms, transform 120ms;
}
.page-link:hover {
  background: hsla(190, 95%, 55%, 0.08);
  border-color: var(--primary-2);
  transform: translateY(-1px);
}
.page-current {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ────────────────────────────────────────────────────────────
   17. Tabs
   ──────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms, border-color 160ms;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--primary-2);
  border-bottom-color: var(--primary-2);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 240ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ────────────────────────────────────────────────────────────
   18. Lightbox
   ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: hsla(240, 22%, 4%, 0.92);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn 240ms var(--ease); }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 160ms;
  z-index: 2;
}
.lightbox-close:hover { background: var(--surface-3); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 160ms, transform 160ms;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--surface-3); transform: translateY(-50%) scale(1.05); }

.lightbox-zoom-in,
.lightbox-zoom-out,
.lightbox-zoom-reset {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 160ms;
  font-family: var(--mono);
}
.lightbox-zoom-in:hover,
.lightbox-zoom-out:hover,
.lightbox-zoom-reset:hover { background: var(--surface-3); }
.lightbox-zoom-in { top: 1.5rem; left: 1.5rem; }
.lightbox-zoom-out { top: 1.5rem; left: calc(1.5rem + 48px); }
.lightbox-zoom-reset { top: 1.5rem; left: calc(1.5rem + 96px); }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  z-index: 2;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform 160ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox img.zoomed { cursor: grab; }
.lightbox img.zoomed:active { cursor: grabbing; }

/* ────────────────────────────────────────────────────────────
   19. Responsive nav
   ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .topbar { padding: 0.75rem 1rem; gap: 0.75rem; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 0.25rem; }
  .nav-right { margin-left: auto; }
  .container { padding: 1.5rem 1rem; }
  .hero { padding: 3rem 0 2rem; }
}

/* ────────────────────────────────────────────────────────────
   20. Misc utilities
   ──────────────────────────────────────────────────────────── */
.text-mono { font-family: var(--mono); }
.text-dim { color: var(--text-dim); }
.text-primary { color: var(--primary-2); }
.text-success { color: var(--success); }
.text-gold { color: var(--gold); }
.flex { display: flex; gap: 0.75rem; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: 0.5rem; }

/* ────────────────────────────────────────────────────────────
   21. Form elements (used by listing/offer/profile/signup/login)
   ──────────────────────────────────────────────────────────── */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-row label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="datetime-local"],
.form-row input[type="file"],
.form-row textarea,
.form-row select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 160ms, box-shadow 160ms;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(265, 90%, 60%, 0.2);
}
.form-row input[type="file"] {
  padding: 0.5rem;
}
.form-help {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}
.form-err {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  padding: 0.4rem 0.6rem;
  background: hsla(0, 80%, 50%, 0.08);
  border: 1px solid hsla(0, 80%, 60%, 0.3);
  border-radius: var(--radius-xs);
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.25rem;
}
form p { margin: 0 0 1rem; }
form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0;
  color: var(--danger);
  font-size: 0.85rem;
}

/* Search bar (hero / collection list) */
.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 540px;
  margin: 1.5rem 0 0;
}
.search-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 160ms, box-shadow 160ms;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(265, 90%, 60%, 0.2);
}
.search-input::placeholder { color: var(--muted); }

/* ============================================================
   LANDING / GALLERY — editorial sections
   ============================================================ */

/* Cormorant Garamond serif for editorial display */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --serif: 'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Fraunces', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --ink: var(--text);
  --parchment: hsl(42, 30%, 96%);
}

/* ── EDITORIAL HEAD / SEARCH-MODE HEADER ──────────────── */
.editorial-head { margin: 1rem 0 2rem; }
.ed-display {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}
.ed-display em { font-style: italic; color: var(--primary-2); font-weight: 400; }
.ed-counts { font-family: var(--mono); font-size: 0.85rem; margin-bottom: 2rem; }
.back-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.back-link:hover { border-bottom-color: var(--gold); color: var(--gold); }
.coll-desc { font-size: 0.85rem; line-height: 1.5; margin: 0.5rem 0; }

/* ── COVER / HERO ─────────────────────────────────────── */
.cover {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}
.cover-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 184, 92, 0.20), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(122, 168, 255, 0.18), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(196, 132, 222, 0.14), transparent 60%);
  z-index: -1;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.04'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.cover-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.cover-meta .plate { color: var(--gold); border-right: 1px solid rgba(255,255,255,0.2); padding-right: 1rem; }
.cover-meta .issue { color: var(--text-dim); }
.cover-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 2rem;
  display: block;
}
.title-mosaic {
  display: block;
  font-style: italic;
  color: var(--primary-2);
  font-weight: 400;
  margin-bottom: 1rem;
}
.title-rule {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.5rem 0;
}
.title-tag {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.4em;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 0.5rem;
}
.title-tag em { color: var(--gold); font-style: italic; }
.cover-lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 2.5rem;
}
.lede-accent { color: var(--gold); font-style: italic; font-weight: 500; }
.cover-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cover-cta .btn { font-size: 0.95rem; padding: 0.9rem 2rem; }
.cover-fine {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── STAT STRIP (in hero + signoff) ───────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-tile { display: flex; flex-direction: column; }
.stat-tile-gold .stat-num { color: var(--gold); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
.unit {
  font-family: var(--mono);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 0.2em;
}

/* ── SPREAD (section shell) ───────────────────────────── */
.spread { padding: 5rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
.spread:first-of-type { border-top: none; }
.spread-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.spread-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.spread-title em { font-style: italic; color: var(--primary-2); font-weight: 400; }
.spread-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 40ch;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}
.spread-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.spread-link:hover { color: var(--primary-2); border-color: var(--primary-2); }

/* ── FILTER PILLS ─────────────────────────────────────── */
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pill {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.pill:hover, .pill.active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

/* ── FEATURED (asymmetric grid) ───────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}
.feature-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
  text-decoration: none;
  color: inherit;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 92, 0.3);
}
.feature-large .frame { aspect-ratio: 4/5; }
.feature-mini .frame-mini { aspect-ratio: 16/10; }
.frame, .frame-mini {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.frame img, .frame-mini img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.feature-card:hover .frame img,
.feature-card:hover .frame-mini img { transform: scale(1.04); }
.lot-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}
.feature-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: white;
}
.feature-mini .feature-meta { padding: 1rem; }
.feature-meta .feature-by {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.feature-meta .feature-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.feature-mini .feature-meta .feature-name { font-size: 1.2rem; }
.feature-meta .feature-foot {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--mono); font-size: 0.85rem;
}
.feature-meta .price { color: white; font-weight: 600; }
.feature-meta .royalty-tag {
  color: var(--gold);
  font-size: 0.7rem;
  border: 1px solid var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

/* ── RAIL (horizontal scroll collections) ─────────────── */
.rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.coll-rail-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.coll-rail-card:hover { border-color: rgba(255, 184, 92, 0.3); transform: translateY(-3px); }
.coll-rail-card .banner {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.coll-rail-card .banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.coll-rail-card:hover .banner img { transform: scale(1.05); }
.rail-num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}
.coll-rail-card .pad { padding: 1.25rem; }
.coll-rail-card .name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.coll-rail-card .creator-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.coll-rail-card .stats {
  display: flex; gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.coll-rail-card .stats strong { color: var(--ink); font-weight: 600; }
.coll-rail-card .tag-gold {
  color: var(--gold);
  font-size: 0.7rem;
  border: 1px solid var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.coll-rail-cta {
  flex: 0 0 240px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255,184,92,0.1), rgba(122,168,255,0.1));
  border: 1px dashed rgba(255,184,92,0.3);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s;
}
.coll-rail-cta:hover { border-color: var(--gold); transform: translateY(-3px); }
.rail-cta-banner {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--gold);
}
.rail-cta-pad { padding: 1.5rem; }
.rail-cta-pad .name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* ── MASONRY + WORK CARDS ─────────────────────────────── */
.masonry {
  column-count: 4;
  column-gap: 1.5rem;
}
@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 768px) { .masonry { column-count: 2; } }
@media (max-width: 480px) { .masonry { column-count: 1; } }
.work-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  border-color: rgba(255, 184, 92, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.work-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.work-card .img-wrap img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s;
}
.work-card:hover .img-wrap img { transform: scale(1.04); }
.lot-stamp {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: white;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}
.work-card .meta { padding: 1rem; }
.work-card .meta .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.work-card .meta .sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.work-card .meta .footer-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.work-card .meta .price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}
.work-card .meta .price.unlisted { color: var(--text-dim); font-weight: 400; font-style: italic; }
.work-card .meta .royalty {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
}

/* ── LEDGER (recent activity) ─────────────────────────── */
.ledger { margin-top: 1rem; }
.ledger-list { display: flex; flex-direction: column; gap: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.ledger-row:hover { background: rgba(255,255,255,0.02); }
.ledger-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.ledger-art {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.ledger-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ledger-handle { color: var(--gold); }
.ledger-arrow { color: var(--text-dim); }
.ledger-price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 1rem;
  text-align: right;
}
.empty-ledger {
  padding: 3rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
}

/* ── MANIFESTO ────────────────────────────────────────── */
.manifesto {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2rem;
  position: relative;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 1.5em;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  vertical-align: -0.1em;
  margin-right: 0.1em;
}
.quote-mark-end {
  font-family: var(--serif);
  font-size: 1.5em;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  vertical-align: -0.3em;
  margin-left: 0.1em;
}
.manifesto-attr {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.manifesto-link {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
}

/* ── SIGNOFF (newsletter + footer stats) ──────────────── */
.signoff { padding: 4rem 0; }
.signoff-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}
.signoff-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.signoff-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.signoff-form { display: flex; gap: 0.5rem; }
.signoff-form input {
  flex: 1;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}
.signoff-form input:focus { outline: none; border-color: var(--gold); }
.signoff-stats {
  display: flex; gap: 2rem; align-items: center;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.signoff-text {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  margin-right: auto;
}
.dot-sep { color: var(--text-dim); margin: 0 0.5rem; opacity: 0.5; }

@media (max-width: 768px) {
  .cover { min-height: 70vh; padding: 4rem 1rem 3rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .signoff-card { grid-template-columns: 1fr; padding: 2rem; }
  .masonry { column-count: 2 !important; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem 0; }
  .ledger-price { text-align: left; }
}

/* ── HERO ─────────────────────────────────────────────── */
/* ───── Hero work — full-bleed single artwork ───── */
.hero-work {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 4rem;
}
.hero-work .art-frame {
  width: 100%;
  height: 75vh;
  min-height: 540px;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.hero-work .art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-work .lot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.hero-work .lot-overlay .lot-stamp {
  pointer-events: auto;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  margin-bottom: 1rem;
  background: transparent;
}
.hero-work .art-meta {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
  text-align: center;
}
.hero-work .art-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.hero-work .art-by {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.hero-work .art-credit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero-work .art-note {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--parchment);
  font-weight: 400;
  margin: 0 auto 2.5rem;
  max-width: 56ch;
}
.hero-work .acquire {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.hero-work .acquire:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ───── Plate index — horizontal auto-scroll ───── */
.plate-index {
  padding: 6rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.plate-index .plate-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}
.plate-index .plate-title em {
  color: var(--gold);
}
.plate-track-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.plate-track-wrap::before,
.plate-track-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}
.plate-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.plate-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}
.plate-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: plate-scroll 80s linear infinite;
  will-change: transform;
}
.plate-index:hover .plate-track {
  animation-play-state: paused;
}
.plate {
  flex: 0 0 280px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.4s;
}
.plate:hover { opacity: 0.6; }
.plate .plate-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
}
.plate .plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate .plate-label {
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.plate .plate-lot {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plate .plate-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.plate .plate-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s;
}
.plate:hover .plate-meta { opacity: 1; }
@keyframes plate-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───── Editor's letter — drop cap + justified essay ───── */
.editors-letter {
  max-width: 680px;
  margin: 8rem auto;
  padding: 0 2rem;
}
.editors-letter .epigraph {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.editors-letter .epigraph-mark {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.editors-letter .epigraph-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}
.editors-letter .essay-body {
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--parchment);
  text-align: justify;
  hyphens: auto;
}
.editors-letter .essay-body p {
  margin-bottom: 1.5rem;
}
.editors-letter .essay-body p:first-of-type .drop-cap,
.editors-letter .drop-cap {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.4rem 0.75rem -0.2rem -0.1rem;
  color: var(--gold);
}
.editors-letter .signature {
  text-align: right;
  margin-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
}
.editors-letter .signature::before {
  content: "—";
  margin-right: 0.5rem;
}

/* ───── The Studios — 2-col grid of collections ───── */
.studios {
  max-width: 1100px;
  margin: 8rem auto;
  padding: 0 2rem;
}
.studios .studios-head {
  margin-bottom: 5rem;
}
.studios .studios-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.studios .studios-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.studios .studios-title em {
  color: var(--gold);
}
.studios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 3rem;
}
.studio-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.studio-card .studio-art {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.studio-card .studio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-card .studio-meta {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.studio-card .studio-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.studio-card .studio-by {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.studio-card .studio-stats {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.studio-card .studio-stats span:not(:last-child)::after {
  content: " · ";
  margin: 0 0.4rem;
  color: rgba(255,255,255,0.15);
}
@media (max-width: 768px) {
  .studios-grid { grid-template-columns: 1fr; gap: 3rem; }
  .studios { margin: 5rem auto; }
}

/* ───── The Ledger — sales table ───── */
.ledger {
  max-width: 1000px;
  margin: 8rem auto;
  padding: 0 6%;
}
.ledger .ledger-head {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ledger .ledger-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.ledger .ledger-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.ledger-table thead th {
  text-align: left;
  padding: 0.6rem 1.5rem 0.6rem 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ledger-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.ledger-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.ledger-table td {
  padding: 1rem 1.5rem 1rem 0;
  vertical-align: middle;
  color: var(--parchment);
}
.ledger-table td.txn-date {
  color: var(--text-dim);
  font-size: 0.8rem;
  white-space: nowrap;
}
.ledger-table td.txn-art {
  color: var(--ink);
}
.ledger-table td.txn-from-to {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.ledger-table td.txn-amount {
  color: var(--gold);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.ledger-empty {
  padding: 3rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
  text-align: center;
}
@media (max-width: 768px) {
  .ledger { padding: 0 1.5rem; }
  .ledger-table { font-size: 0.7rem; }
  .ledger-table .hide-mobile { display: none; }
}

/* ───── Pull quote (no attribution) ───── */
.pull-quote {
  max-width: 720px;
  margin: 10rem auto;
  padding: 0 2rem;
  text-align: center;
  border-left: 2px solid var(--gold);
  padding-left: 2.5rem;
}
@media (max-width: 768px) {
  .pull-quote {
    border-left: none;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 3rem 1.5rem;
  }
}
.pull-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.pull-quote-text::before {
  content: "\201C";
  color: var(--gold);
  margin-right: 0.1em;
}
.pull-quote-text::after {
  content: "\201D";
  color: var(--gold);
  margin-left: 0.1em;
}

/* ───── Platform essay — body text with subheads ───── */
.platform-essay {
  max-width: 680px;
  margin: 10rem auto;
  padding: 0 2rem;
}
.platform-essay .essay-head {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.platform-essay .essay-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.platform-essay .essay-h {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.platform-essay-body {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--parchment);
  text-align: justify;
  hyphens: auto;
}
.platform-essay-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
  text-align: left;
}
.platform-essay-body p { margin-bottom: 1.4rem; }
.platform-essay-body code {
  font-family: var(--mono);
  background: rgba(255,255,255,0.05);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--gold);
}

/* ───── Colophon / closing ───── */
.colophon {
  max-width: 720px;
  margin: 8rem auto 6rem;
  padding: 4rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.colophon .colophon-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.colophon .colophon-mark .mark {
  color: var(--gold);
  font-style: normal;
  margin-right: 0.5rem;
}
.colophon .colophon-credits {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 2;
  margin-top: 2rem;
}
.colophon .colophon-line {
  display: inline-block;
  padding: 0 0.8rem;
}
@media (max-width: 768px) {
  .colophon { margin: 5rem auto 3rem; }
  .colophon-line { display: block; padding: 0; }
}

/* ───── BACKWARD COMPAT — old section classes still work ───── */
.section { padding: 6rem 0; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   GALLERY REBUILD v2 — Phase 10
   Distinctive editorial fonts (Fraunces + EB Garamond), film-grain
   hero, letter-by-letter stagger, plate flip on hover, scroll
   progress, section fade-ups, drop-cap footnotes, etc.
   All rules use existing tokens (--serif, --gold, --primary-2, etc.)
   ============================================================ */

/* Strengthen feature settings globally for the editorial typography. */
body, p, li, blockquote {
  font-feature-settings: "kern", "liga", "ss01", "ss02", "calt", "onum";
}

/* Force body text to use Fraunces, not Inter. Override the base. */
.editors-letter-body p,
.platform-essay-body p,
.hero-work-note,
.hero-work-lot,
.editors-letter-first,
.editorial-intro {
  font-family: var(--serif);
}

/* ── SCROLL PROGRESS BAR (top of page, 1px gold) ──────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--primary-2));
  z-index: 100;
  box-shadow: 0 0 8px hsla(42, 95%, 60%, 0.6);
  transition: width 60ms linear;
  pointer-events: none;
}

/* ── TOPBAR EDITION BADGE ──────────────────────────────────── */
.topbar-edition {
  position: absolute;
  top: 0.6rem;
  right: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.25rem 0.75rem;
  border: 1px solid hsla(42, 95%, 60%, 0.35);
  border-radius: 100px;
  background: hsla(42, 95%, 60%, 0.05);
  white-space: nowrap;
  z-index: 51;
}
@media (max-width: 720px) {
  .topbar-edition { display: none; }
}

/* ── CURRENTLY VIEWING WIDGET (bottom-left floating) ───────── */
.currently-viewing {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: hsla(245, 30%, 8%, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid hsla(42, 95%, 60%, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.5);
  pointer-events: none;
  animation: viewing-fade-in 800ms 1200ms var(--ease) backwards;
}
.viewing-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px hsla(42, 95%, 60%, 0.2), 0 0 10px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
.viewing-text strong {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--serif);
  font-size: 0.95em;
  font-feature-settings: "tnum";
}
@keyframes viewing-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO REVEAL ───────────────────────────────────────────── */
.hero-work--reveal {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease);
}
.hero-work--reveal.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── HERO ANIMATED GRAIN OVERLAY ───────────────────────────── */
.hero-work-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.6  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: hero-grain-shift 4s steps(8) infinite;
}
@keyframes hero-grain-shift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0,0); }
}
.hero-work-img {
  transition: transform 200ms ease-out;
  will-change: transform;
}

/* ── HERO TIMESTAMP (mono, bottom of image) ─────────────────── */
.hero-work-timestamp {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── HERO GOLD INK UNDER-STROKE ON "OpenMintArt" ─────────────────── */
.hero-work-title--stroked em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  text-shadow: 0 1px 0 hsla(42, 95%, 60%, 0.0);
  transition: text-shadow 200ms ease;
}
.hero-work-title--stroked em:hover {
  text-shadow:
    0 1px 0 hsla(42, 95%, 60%, 0.85),
    0 2px 0 hsla(42, 95%, 60%, 0.6),
    0 3px 0 hsla(42, 95%, 60%, 0.35);
  cursor: default;
}

/* ── LETTER-BY-LETTER STAGGER ON HERO HEADLINE ─────────────── */
.hero-work-title--stroked em span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-rise 600ms var(--ease) forwards;
}
@keyframes char-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── HERO JUSTIFIED HYPHENATION ─────────────────────────────── */
.hero-work-note--justified {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}

/* ── SCROLL INDICATOR (bottom of hero) ──────────────────────── */
.hero-work-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: scroll-indicator-bounce 2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-indicator-arrow {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--gold);
}
@keyframes scroll-indicator-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ── LIVE CURSOR TRAIL (hero) ───────────────────────────────── */

/* old .hero-* rules removed — replaced by .marketplace-hero below */

.trail-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  opacity: 0.8;
  animation: trail-fade 800ms ease-out forwards;
  pointer-events: none;
}
@keyframes trail-fade {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.3); }
}

/* ── PLATE INDEX: AUTOSCROLL + PROGRESS + DRAG + FLIP ───────── */
.plate-index-wrap {
  position: relative;
  padding-bottom: 0.5rem;
}
.plate-index-track--autoscroll {
  /* Enables smooth horizontal scroll animation. */
  animation: plate-scroll 60s linear infinite;
  animation-play-state: running;
}
.plate-index-track--autoscroll.is-paused {
  animation-play-state: paused;
}
@keyframes plate-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
.plate-progress {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  margin-top: 1rem;
  overflow: hidden;
}
.plate-progress-bar {
  height: 100%;
  width: 15%;
  background: linear-gradient(to right, var(--gold), var(--primary-2));
  transition: width 200ms ease;
  box-shadow: 0 0 6px hsla(42, 95%, 60%, 0.6);
}
.plate-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-pill--active {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border-color: var(--gold) !important;
  font-weight: 600;
}

/* Plate flip-card behaviour */
.plate--flip {
  perspective: 1200px;
}
.plate-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 700ms var(--ease);
  transform-style: preserve-3d;
}
.plate--flip:hover .plate-flip-inner,
.plate--flip:focus .plate-flip-inner {
  transform: rotateY(180deg);
}
.plate-flip-front,
.plate-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
}
.plate-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, hsla(42, 95%, 25%, 0.95), hsla(245, 30%, 12%, 0.98));
  border: 1px solid hsla(42, 95%, 60%, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  text-align: center;
  color: var(--ink);
}
.plate-back-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.plate-back-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.plate-back-price {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.plate-back-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.plate-back-cta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
}

/* ── DROP CAP (gold serif italic) ───────────────────────────── */
.drop-cap {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.15em 0 0;
  color: var(--ink);
  text-shadow: 0 0 0 currentColor;
}
.drop-cap--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── ACCENT EMPHASIS (gold italic words) ────────────────────── */
em.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── PULL QUOTE INLINE (indented box) ───────────────────────── */
.pull-quote-inline {
  margin: 2rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: hsla(42, 95%, 60%, 0.05);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  border-radius: 0 8px 8px 0;
}

/* ── MARGINALIA / FOOTNOTES ─────────────────────────────────── */
.marginalia {
  font-family: var(--mono);
  font-size: 0.65em;
  vertical-align: super;
  color: var(--gold);
  margin: 0 0.1em;
}
.marginalia a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted hsla(42, 95%, 60%, 0.5);
}
.marginalia a:hover {
  color: var(--primary-2);
  border-bottom-color: var(--primary-2);
}
.footnote-rule {
  border: none;
  border-top: 1px solid hsla(42, 95%, 60%, 0.2);
  margin: 2rem 0 1rem;
}
.footnotes {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: 1.25rem;
  margin: 0;
}
.footnotes li {
  margin-bottom: 0.5rem;
}
.footnotes--inline {
  margin-top: 1rem;
}
.footnote-back {
  font-family: var(--mono);
  font-size: 0.75em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: none;
}

/* ── STUDIO LIFT + GOLD UNDERLINE + PULSE BADGE ─────────────── */
.studio-card--lift {
  transition: transform 280ms var(--ease), border-color 240ms;
}
.studio-card--lift:hover {
  transform: translateY(-2px);
}
.studio-card--lift .studio-name::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-top: 0.4rem;
  transition: width 280ms var(--ease);
}
.studio-card--lift:hover .studio-name::after { width: 60%; }
.studio-stats-reveal {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease), opacity 240ms;
}
.studio-card--lift:hover .studio-stats-reveal {
  max-height: 60px;
  opacity: 1;
}
.studio-verified--pulse {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-2);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(190, 95%, 60%, 0.6); }
  50%      { box-shadow: 0 0 0 8px hsla(190, 95%, 60%, 0); }
}
.studio-image { position: relative; }

/* ── LEDGER TABLE — sticky, gold left-border, live timestamp ─── */
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ledger-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}
.ledger-updated {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ledger-updated #ledger-updated {
  color: var(--gold);
  margin-left: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.ledger-view-all {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid hsla(42, 95%, 60%, 0.4);
  padding-bottom: 0.15rem;
}
.ledger-view-all:hover { color: var(--primary-2); border-bottom-color: var(--primary-2); }
.ledger-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ledger-table thead th {
  position: sticky;
  top: 80px;
  background: var(--bg);
  z-index: 2;
  padding: 1rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid hsla(42, 95%, 60%, 0.4);
  text-align: left;
}
.ledger-table tbody tr {
  transition: border-left 240ms var(--ease), background 200ms;
  border-left: 2px solid transparent;
}
.ledger-table tbody tr:hover {
  border-left-color: var(--gold);
  background: hsla(42, 95%, 60%, 0.04);
}

/* ── PULL QUOTE SECTION — gold glyph animation + vertical rule ─ */
.pull-quote {
  position: relative;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 5rem auto;
  text-align: center;
  border-left: 1px solid hsla(42, 95%, 60%, 0.3);
  border-right: 1px solid hsla(42, 95%, 60%, 0.3);
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 1.25rem; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.pull-quote-glyph {
  display: block;
  font-family: var(--serif);
  font-size: 8rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 1.5rem;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}
.pull-quote-glyph--animated.is-revealed {
  transform: scale(1);
  opacity: 1;
}
.pull-quote blockquote {
  margin: 0;
}
.pull-quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1rem;
}
.pull-quote cite {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-style: normal;
}

/* ── PLATFORM ESSAY — section dividers + did-you-know callouts ─ */
.section-divider {
  text-align: center;
  margin: 2.5rem 0;
  opacity: 0.6;
}
.section-divider-glyph {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 1em;
  padding-left: 1em;
}
.did-you-know {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: hsla(42, 95%, 60%, 0.06);
  border: 1px solid hsla(42, 95%, 60%, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.did-you-know strong {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.5rem;
}

/* ── SECTION FADE-UP ON SCROLL (IntersectionObserver) ───────── */
.fade-up-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.fade-up-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── NEWSLETTER + FAQ (footer) ───────────────────────────────── */
.newsletter-signup {
  margin: 4rem 0 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, hsla(42, 95%, 25%, 0.12), hsla(245, 30%, 14%, 0.6));
  border: 1px solid hsla(42, 95%, 60%, 0.25);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) { .newsletter-signup { grid-template-columns: 1fr; padding: 2rem; } }
.newsletter-signup-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.newsletter-signup-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.newsletter-signup-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-signup-form input {
  flex: 1;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
}
.newsletter-signup-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* FAQ accordion */
.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}
.faq-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin: 0 0 2rem;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 1.25rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  cursor: pointer;
  text-align: left;
  transition: color 200ms;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-style: normal;
  color: var(--gold);
  transition: transform 300ms var(--ease);
  display: inline-block;
  width: 1.5rem;
  text-align: center;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms var(--ease);
}
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 320px;
}
.faq-answer p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  padding-right: 2rem;
}

/* ════════════════════════════════════════════════════════════
   MARKETPLACE LAYOUT — OpenSea-style (sidebar + grid)
   ════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.marketplace-hero {
  background: linear-gradient(135deg, hsl(252, 60%, 18%) 0%, hsl(220, 50%, 14%) 50%, hsl(180, 30%, 12%) 100%);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-content { max-width: 720px; margin: 0 auto 3rem; }
.hero-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 0 2rem;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero-stat-num {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .marketplace-hero { padding: 3rem 1.25rem 2.5rem; }
}

/* ── LAYOUT (sidebar + main) ── */
.marketplace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1440px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

@media (max-width: 960px) {
  .marketplace-layout { grid-template-columns: 1fr; padding: 0 1rem; }
}

/* ── SIDEBAR ── */
.marketplace-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .marketplace-sidebar { position: static; max-height: none; }
}

.sidebar-section {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.filter-label-text { flex: 1; }
.filter-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.filter-scroll {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.price-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.price-input:focus { outline: none; border-color: var(--primary); }
.price-sep { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }
.price-unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}
.apply-btn { width: 100%; }

/* ── TOOLBAR (tabs + sort) ── */
.marketplace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.toolbar-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.toolbar-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0.55rem 1rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.toolbar-tab:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.toolbar-tab.active {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.sort-select {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font-family: var(--body);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* ── NFT GRID ── */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1280px) { .marketplace-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .marketplace-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .marketplace-grid { grid-template-columns: 1fr; } }

/* ── NFT CARD (OpenSea-style) ── */
.nft-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nft-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nft-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.nft-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nft-card:hover .nft-card-media img { transform: scale(1.05); }
.nft-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-dim);
}

.nft-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.nft-card-badge-buy { background: var(--primary); }

.nft-card-body {
  padding: 0.85rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nft-card-collection {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nft-card-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nft-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nft-card-price { display: flex; flex-direction: column; }
.price-amount {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.price-amount.not-listed { color: var(--text-dim); font-weight: 400; font-size: 0.8rem; }
.price-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.nft-card-fav {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.nft-card-fav:hover { color: var(--primary); background: rgba(255,255,255,0.04); }

.verified-tick {
  color: var(--primary-2);
  font-size: 0.85em;
  margin-left: 0.2rem;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}
.page-link {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: all 0.2s;
}
.page-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.page-current {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════
   OPENSEA LAYOUT — unique class prefix `os-`
   ════════════════════════════════════════════════ */

/* HERO */
.os-hero {
  background: linear-gradient(135deg, hsl(252, 60%, 16%) 0%, hsl(220, 50%, 12%) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.os-hero-inner { max-width: 800px; margin: 0 auto; }
.os-hero-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.os-hero-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 0 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.os-hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* STATS BAR */
.os-stats {
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.os-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}
.os-stat {
  display: block;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.os-stat:last-child { border-right: none; }
.os-stat:hover { background: rgba(255,255,255,0.03); }
.os-stat-value {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.os-stat-unit {
  font-family: var(--display);
  font-size: 0.7em;
  color: var(--text-dim);
  font-weight: 500;
}
.os-stat-label {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}
@media (max-width: 768px) {
  .os-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .os-stat:nth-child(2) { border-right: none; }
}

/* SECTION */
.os-section {
  max-width: 1440px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
}
.os-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.os-section-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.os-section-accent { color: var(--primary-2); }
.os-section-link {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 500;
}
.os-section-link:hover { text-decoration: underline; }

/* TRENDING CAROUSEL */
.os-trending {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.os-trending::-webkit-scrollbar { height: 6px; }
.os-trending::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.os-trending-card {
  flex: 0 0 240px;
  display: block;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.os-trending-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
}
.os-trending-rank {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}
.os-trending-media {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-trending-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.os-trending-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-dim);
}
.os-trending-body {
  padding: 0.85rem;
}
.os-trending-collection {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.os-trending-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.4rem;
}
.os-trending-amount {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.os-trending-na {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.85rem;
}

/* LAYOUT (sidebar + grid) */
.os-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1440px;
  margin: 4rem auto 0;
  padding: 0 1.5rem 4rem;
}
@media (max-width: 960px) {
  .os-layout { grid-template-columns: 1fr; padding: 0 1rem; }
}

/* SIDEBAR */
.os-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .os-sidebar { position: static; max-height: none; }
}
.os-sidebar-section {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.os-sidebar-section:last-child { border-bottom: none; }
.os-sidebar-title {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.85rem;
}
.os-filter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-family: var(--body);
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.os-filter-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.os-filter-label { flex: 1; }
.os-filter-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.os-filter-scroll { max-height: 220px; overflow-y: auto; }
.os-price-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.os-price-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.os-price-input:focus { outline: none; border-color: var(--primary); }
.os-price-sep { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }
.os-price-unit { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); margin-left: 0.5rem; }
.os-apply-btn { width: 100%; }

/* TOOLBAR */
.os-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.os-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.os-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0.55rem 1rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.os-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.os-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.os-sort {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-family: var(--body);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}
.os-sort:focus { outline: none; border-color: var(--primary); }

/* NFT GRID */
.os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1280px) { .os-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .os-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .os-grid { grid-template-columns: 1fr; } }

.os-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.os-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
}
.os-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.os-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-dim);
}
.os-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.os-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.os-card-collection {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.os-tick { color: var(--primary-2); font-size: 0.85em; }
.os-card-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.os-card-price {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.os-card-na { color: var(--text-dim); font-weight: 400; font-size: 0.8rem; }
.os-card-price-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.os-card-fav {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.os-card-fav:hover { color: var(--primary); background: rgba(255,255,255,0.04); }

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}
.page-link {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: all 0.2s;
}
.page-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-current {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════
   OPENSEA TOPBAR + FOOTER + HERO UPGRADE
   ════════════════════════════════════════════════ */

/* ── OPENSEA-STYLE TOPBAR ── */
.os-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 64px;
  background: rgba(15, 18, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
}
.os-topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.os-topbar-mark { color: #2081e2; font-size: 1.6rem; line-height: 1; }
.os-topbar-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.os-topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.os-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}
.os-search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.os-search-input:focus { border-color: #2081e2; }
.os-search-input::placeholder { color: var(--text-dim); }

.os-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.os-nav-link {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.os-nav-link:hover { background: rgba(255,255,255,0.06); }
.os-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #2081e2;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.os-nav-btn:hover { background: rgba(32, 129, 226, 0.1); }

.os-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.os-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.os-icon-btn:hover { background: rgba(255,255,255,0.06); }
.os-notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #2081e2;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.os-wallet-btn svg { stroke: #2081e2; }

.os-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2081e2, #c3a634);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.1);
}
.os-avatar-letter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.os-login-link {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  border-radius: 8px;
}
.os-login-link:hover { background: rgba(255,255,255,0.06); }
.os-signup-btn {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  padding: 0.5rem 1rem;
  background: #2081e2;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.os-signup-btn:hover { background: #1868b7; }

/* Wide admin tables — horizontal scroll on small viewports */
.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table-scroll table { min-width: 720px; }
.admin-table-scroll th, .admin-table-scroll td { white-space: nowrap; }
@media (max-width: 720px) {
  .admin-table-scroll th, .admin-table-scroll td { padding: 0.5rem 0.4rem !important; font-size: 0.85rem; }
  .admin-table-scroll input[name="note"] { min-width: 110px !important; width: 110px; }
}

/* Topbar pill links — role / wallet / admin / become-seller */
.os-topbar-role,
.os-topbar-wallet,
.os-topbar-admin,
.os-topbar-become {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.os-topbar-role:hover,
.os-topbar-wallet:hover,
.os-topbar-admin:hover,
.os-topbar-become:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.os-topbar-wallet { color: hsl(200, 90%, 70%); }
.os-topbar-admin {
  background: rgba(208, 96, 32, 0.12);
  border-color: rgba(208, 96, 32, 0.35);
  color: hsl(20, 80%, 70%);
}
.os-topbar-become {
  background: linear-gradient(135deg, rgba(32, 129, 226, 0.18), rgba(195, 166, 52, 0.18));
  border-color: rgba(32, 129, 226, 0.4);
  color: hsl(200, 85%, 75%);
}
.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2081e2;
  box-shadow: 0 0 6px rgba(32, 129, 226, 0.7);
}
.role-seller { border-color: rgba(195, 166, 52, 0.4); }
.role-seller .role-dot { background: #c3a634; box-shadow: 0 0 6px rgba(195, 166, 52, 0.7); }
.role-admin {
  background: rgba(208, 96, 32, 0.12);
  border-color: rgba(208, 96, 32, 0.4);
}
.role-admin .role-dot { background: #d06020; box-shadow: 0 0 6px rgba(208, 96, 32, 0.7); }

/* Mobile topbar */
@media (max-width: 900px) {
  .os-topbar-search { display: none; }
  .os-topbar-nav { display: none; }
  .os-topbar-nav.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15, 18, 28, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0.25rem;
  }
  .os-topbar-nav.open a { width: 100%; }
  /* Move wallet/admin/become into the off-canvas nav menu instead of cramming the right side */
  .os-topbar-role,
  .os-topbar-admin,
  .os-topbar-become {
    display: none;
  }
}
.os-topbar-wallet {
  /* keep wallet button visible on mobile — it's the most-used action */
}
/* Mobile slide-down menu: appended items (rendered into the off-canvas via JS) */
@media (max-width: 900px) {
  .os-topbar-nav.open .os-topbar-role,
  .os-topbar-nav.open .os-topbar-admin,
  .os-topbar-nav.open .os-topbar-become {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }
  .os-topbar-nav.open .os-topbar-wallet {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .os-login-link { display: none; }
  .os-topbar { padding: 0 0.75rem; gap: 0.5rem; }
  .os-topbar-right { gap: 0.35rem; }
  .os-topbar-wallet { padding: 0.35rem 0.55rem; font-size: 0.75rem; }
}

/* ── HERO REFINEMENT (OpenSea-style large stat) ── */
.os-hero {
  background: linear-gradient(180deg, hsl(220, 50%, 11%) 0%, hsl(252, 50%, 14%) 50%, hsl(220, 50%, 9%) 100%);
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.os-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(32, 129, 226, 0.15), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(195, 166, 52, 0.10), transparent 55%);
  z-index: 0;
}
.os-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

/* ── OPENSEA-STYLE FOOTER ── */
.os-footer {
  background: rgba(15, 18, 28, 0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4rem;
  padding: 4rem 1.5rem 2rem;
  color: var(--text);
}
.os-footer-inner { max-width: 1280px; margin: 0 auto; }
.os-footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .os-footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
.os-footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.os-footer-mark { color: #2081e2; }
.os-footer-tagline {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  max-width: 380px;
}
.os-footer-socials { display: flex; gap: 0.6rem; }
.os-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.os-footer-socials a:hover { background: rgba(32, 129, 226, 0.2); border-color: #2081e2; }

.os-footer-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 1rem;
}
.os-footer-newsletter p {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.os-footer-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
}
.os-footer-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
}
.os-footer-input:focus { outline: none; border-color: #2081e2; }
.os-footer-submit {
  background: #2081e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.os-footer-submit:hover { background: #1868b7; }

.os-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .os-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.os-footer-col h4 { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.os-footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.os-footer-col a:hover { color: #fff; }

.os-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
@media (max-width: 640px) {
  .os-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
.os-footer-tag { color: var(--text-dim); }

/* Hide OLD site-footer */
.site-footer { display: none !important; }

/* ════════════════════════════════════════════════
   FEATURED HERO BANNER — full-bleed artwork
   ════════════════════════════════════════════════ */
.os-feature-banner {
  width: 100%;
  background: #000;
  position: relative;
}
.os-feature-frame {
  display: block;
  position: relative;
  height: 480px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}
.os-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.os-feature-frame:hover .os-feature-img { transform: scale(1.04); }
.os-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
}
.os-feature-info {
  padding: 2.5rem 2rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.os-feature-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2081e2;
  margin-bottom: 0.75rem;
}
.os-feature-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.os-feature-title em {
  font-style: italic;
  font-weight: 400;
  color: #fff;
}
.os-feature-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1rem;
}
.os-feature-price {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.os-feature-amount {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.os-feature-cta {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #2081e2;
  text-decoration: none;
}
.os-feature-cta:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .os-feature-frame { height: 360px; }
  .os-feature-info { padding: 1.5rem 1rem; }
}

/* ════════════════════════════════════════════════
   SECTION HEAD — used by all "section" blocks
   ════════════════════════════════════════════════ */
.os-section-sub {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0.4rem 0 0;
}

/* ════════════════════════════════════════════════
   TOP COLLECTIONS — 3-col with banner + floor
   ════════════════════════════════════════════════ */
.os-collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .os-collections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .os-collections { grid-template-columns: 1fr; } }

.os-collection-card {
  display: block;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.os-collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.os-collection-banner {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.os-collection-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.os-collection-card:hover .os-collection-banner img { transform: scale(1.04); }
.os-collection-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}
.os-collection-body { padding: 1rem 1.1rem 1.2rem; }
.os-collection-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.os-collection-by {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.os-collection-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.os-collection-stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.os-collection-stat-value {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ════════════════════════════════════════════════
   LIVE ACTIVITY
   ════════════════════════════════════════════════ */
.os-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 0.4rem;
  position: relative;
  top: -1px;
  animation: os-pulse 1.6s ease-in-out infinite;
}
@keyframes os-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.os-activity {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.os-activity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.os-activity-row:last-child { border-bottom: none; }
.os-activity-row:hover { background: rgba(255,255,255,0.02); }
.os-activity-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.os-activity-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.os-activity-info { flex: 1; min-width: 0; }
.os-activity-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-activity-meta {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.os-activity-handle { color: #2081e2; }
.os-activity-price {
  text-align: right;
  flex-shrink: 0;
}
.os-activity-amount {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.os-activity-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ════════════════════════════════════════════════
   TRENDING CARD POLISH
   ════════════════════════════════════════════════ */
.os-trending { display: flex; gap: 1rem; overflow-x: auto; padding: 0.5rem 0 1rem; scrollbar-width: thin; }
.os-trending::-webkit-scrollbar { height: 6px; }
.os-trending::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.os-trending-card {
  flex: 0 0 240px;
  display: block;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.os-trending-card:hover {
  transform: translateY(-3px);
  border-color: #2081e2;
  box-shadow: 0 8px 24px rgba(32, 129, 226, 0.2);
}
.os-trending-rank {
  position: absolute;
  top: 0.65rem; left: 0.65rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}
.os-trending-media {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-trending-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.os-trending-card:hover .os-trending-media img { transform: scale(1.05); }
.os-trending-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-dim);
}
.os-trending-body { padding: 0.85rem; }
.os-trending-collection {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.os-trending-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.4rem;
}
.os-trending-amount {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.os-trending-na { color: var(--text-dim); font-weight: 400; font-size: 0.85rem; }
.os-tick { color: #2081e2; font-size: 0.85em; }

/* ════════════════════════════════════════════════
   AUTH SPREAD — split-screen login/signup
   ════════════════════════════════════════════════ */
.auth-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  margin: -2rem 0 0;
}
.auth-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  background: linear-gradient(135deg, hsl(252, 50%, 14%) 0%, hsl(220, 50%, 10%) 100%);
  overflow: hidden;
  min-height: 480px;
}
.auth-art-img {
  position: absolute; inset: 0;
  background-image: url("https://res.cloudinary.com/dormpccho/image/upload/v1/nfts/genesis_232_lpfyyi");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.auth-art-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.auth-art-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 90%;
}
.auth-art-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #2081e2;
  margin-bottom: 1rem;
  display: block;
}
.auth-art-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.auth-art-attrib {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.auth-art-back {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  z-index: 2;
  transition: color 0.2s;
}
.auth-art-back:hover { color: #fff; }
.auth-art-bottom {
  position: absolute;
  bottom: 1.5rem; left: 3rem; right: 3rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: rgba(15, 18, 28, 0.6);
}
.auth-form-inner {
  width: 100%;
  max-width: 380px;
}
.auth-form-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.auth-form-brand .mark { color: #2081e2; }
.auth-form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.auth-form-title em {
  font-style: italic;
  color: #2081e2;
  font-weight: 400;
}
.auth-form-sub {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 1rem;
}
.auth-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: #2081e2; }
.auth-input::placeholder { color: rgba(255,255,255,0.3); }
.auth-input[autocomplete="username"] { letter-spacing: 0; }

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input { accent-color: #2081e2; cursor: pointer; }
.auth-forgot {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #2081e2;
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  background: #2081e2;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.1s;
}
.auth-submit:hover { background: #1868b7; }
.auth-submit:active { transform: translateY(1px); }

.auth-terms {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin: 1rem 0 0;
}
.auth-terms a { color: #2081e2; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-wallet-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.auth-wallet-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.7rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.2s;
}
.auth-wallet-btn:hover { background: rgba(255,255,255,0.08); }
.auth-wallet-btn .mark { color: #2081e2; font-size: 1.1rem; }

.auth-foot {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.auth-foot a { color: #2081e2; text-decoration: none; margin-left: 0.4rem; }
.auth-foot a:hover { text-decoration: underline; }

/* Error/alert messages in auth */
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fca5a5;
}

/* Field errors */
.auth-field-error {
  color: #fca5a5;
  font-family: var(--body);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}
.auth-input.has-error { border-color: #ef4444; }

/* Mobile */
@media (max-width: 960px) {
  .auth-spread {
    display: flex !important;
    flex-direction: column !important;
  }
  .auth-art {
    width: 100% !important;
    min-height: 200px !important;
    max-height: 220px !important;
  }
  .auth-art-text, .auth-art-bottom, .auth-art-back { display: none !important; }
  .auth-form {
    width: 100% !important;
    padding: 1.5rem 1.25rem 2.5rem !important;
  }
  .auth-form-inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  .auth-form-brand { display: none !important; }
  .auth-form-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  .auth-form-sub {
    font-size: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }
  .auth-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.8rem 1rem !important;
  }
  .auth-submit {
    width: 100% !important;
    padding: 0.85rem !important;
  }
}



/* ════════════════════════════════════════════════
   AUTH MOBILE FIX — kill all overflow
   ════════════════════════════════════════════════ */


/* Topbar + sign-up button overflow fix on mobile */
@media (max-width: 600px) {
  .os-topbar-right .os-signup-btn {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.8rem !important;
  }
  .os-search-input {
    font-size: 0.85rem !important;
  }
}

/* Global overflow kill on auth */
.auth-spread, .auth-spread * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* AUTH mobile - hide art text on small screens, just show image */
@media (max-width: 720px) {
  .auth-art-text { display: none !important; }
  .auth-art {
    min-height: 200px !important;
    padding: 1rem !important;
  }
  .auth-art-quote,
  .auth-art-attrib,
  .auth-art-eyebrow,
  .auth-art-back { display: none !important; }
}
@media (max-width: 960px) and (min-width: 721px) {
  .auth-art-text { bottom: 1rem !important; left: 1rem !important; right: 1rem !important; padding: 0 !important; }
  .auth-art-quote { font-size: 1.1rem !important; }
}

/* AUTH FORM FIX — proper mobile layout */

/* ════════════════════════════════════════════════════════
   MOBILE FIX — comprehensive overrides for every screen
   ════════════════════════════════════════════════════════ */

/* Make html not allow horizontal overflow at the root */
html, body { overflow-x: hidden; }

/* ---- Topbar mobile ---- */
@media (max-width: 900px) {
  .os-topbar-search { display: none !important; }
  .os-topbar-nav { display: none !important; }
  .os-topbar-nav.open {
    display: flex !important;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15, 18, 28, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0.25rem;
  }
  .os-topbar-nav.open a { width: 100%; }
  /* Add a hamburger button that exists in the topbar template */
  .menu-toggle { display: inline-flex !important; }
}
@media (max-width: 600px) {
  .os-topbar { padding: 0 0.5rem !important; gap: 0.25rem !important; height: 56px !important; }
  .os-topbar-name { font-size: 1rem !important; }
  .os-signup-btn { padding: 0.4rem 0.7rem !important; font-size: 0.8rem !important; }
  .os-icon-btn { width: 36px !important; height: 36px !important; }
  .os-avatar { width: 32px !important; height: 32px !important; }
  .os-avatar-letter { font-size: 0.85rem !important; }
  .os-login-link { display: none !important; }
}
@media (max-width: 480px) {
  .os-login-link { display: none !important; }
  .os-topbar-right { gap: 0.2rem !important; }
  .os-topbar-right .os-signup-btn {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
  }
}

/* ---- AUTH spread (login/signup) ---- */
.auth-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  margin: -2rem 0 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.auth-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  background: linear-gradient(135deg, hsl(252, 50%, 14%) 0%, hsl(220, 50%, 10%) 100%);
  overflow: hidden;
  min-height: 480px;
}

.auth-art-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 90%;
}
.auth-art-foot {
  position: absolute;
  bottom: 1.5rem; left: 3rem; right: 3rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: rgba(15, 18, 28, 0.6);
  overflow: hidden;
}

.auth-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.auth-back:hover { color: #2081e2; }

/* Auth form content — single-column flow inside auth-form */
.auth-head {
  width: 100%;
  max-width: min(460px, 100%);
  align-self: center;
  margin-bottom: 1.5rem;
}
.auth-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.auth-title em {
  font-style: italic;
  color: #2081e2;
  font-weight: 400;
}
.auth-sub {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.auth-fields {
  width: 100%;
  max-width: min(460px, 100%);
  align-self: center;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.auth-roles {
  border: none;
  padding: 0;
  margin: 1.25rem 0;
}
.auth-role-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.auth-role { display: block; cursor: pointer; position: relative; }
.auth-role input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.auth-role-card.is-selected {
  border-color: #2081e2;
  background: rgba(32, 129, 226, 0.08);
}
.auth-role-icon {
  color: var(--text-dim);
  font-size: 1.2rem;
}
.auth-role-card.is-selected .auth-role-icon { color: #2081e2; }
.auth-role-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.auth-role-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.auth-role-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.auth-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.auth-input-wrap {
  position: relative;
  display: block;
}
.auth-input-wrap input,
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-input-wrap input:focus,
.auth-input:focus { border-color: #2081e2; }
.auth-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.auth-mono-wrap input { font-family: var(--mono); font-size: 0.85rem; }
.auth-hint {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  display: block;
}
.auth-field-err {
  display: block;
  font-family: var(--body);
  font-size: 0.75rem;
  color: #fca5a5;
  margin-top: 0.3rem;
}
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fca5a5;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
}

.auth-password-wrap { position: relative; }
.auth-eye {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem;
  font-size: 0.95rem;
}
.auth-eye:hover { color: #2081e2; }
.auth-eye .eye-hide { display: none; }
.auth-eye[aria-pressed="true"] .eye-show { display: none; }
.auth-eye[aria-pressed="true"] .eye-hide { display: inline; }

.auth-forgot {
  font-family: var(--body);
  font-size: 0.8rem;
  color: #2081e2;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  margin: 1rem 0;
}
.auth-check input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
}
.auth-check input[type="checkbox"]:checked {
  background: #2081e2;
  border-color: #2081e2;
}
.auth-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-check-box { display: none; }

.auth-submit {
  width: 100%;
  background: #2081e2;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.1s;
}
.auth-submit:hover { background: #1868b7; }
.auth-submit:active { transform: translateY(1px); }

.auth-fine {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.5;
}
.auth-fine a { color: #2081e2; text-decoration: none; }
.auth-fine a:hover { text-decoration: underline; }

.auth-alt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.auth-alt-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.auth-alt-row > * { min-width: 0; }
.auth-alt-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .auth-alt-btn { font-size: 0.75rem !important; padding: 0.55rem 0.35rem !important; }
  .auth-alt-btn span:not(.auth-alt-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.auth-alt-btn:hover:not([aria-disabled="true"]) { background: rgba(255,255,255,0.08); }
.auth-alt-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-alt-icon { color: #2081e2; font-size: 1.1rem; }

.auth-foot {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.auth-foot a { color: #2081e2; text-decoration: none; margin-left: 0.4rem; }
.auth-foot a:hover { text-decoration: underline; }

.auth-wallet {
  margin: 1rem 0;
  width: 100%;
  max-width: 460px;
}
.auth-wallet-toggle {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-dim);
  font-family: var(--body);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}
.auth-wallet-toggle:hover { border-color: #2081e2; color: #fff; }
.auth-wallet-plus { color: #2081e2; font-size: 1rem; }
.auth-wallet-hint {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-wallet-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

/* AUTH BREAKPOINT — full mobile layout */
@media (max-width: 960px) {
  .auth-spread {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    min-height: auto !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .auth-art {
    width: 100% !important;
    min-height: 0 !important;
    max-height: 140px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .auth-art-img {
    background-position: center !important;
    background-size: cover !important;
  }
  .auth-art-text,
  .auth-art-foot,
  .auth-art-gradient { display: none !important; }
  .auth-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.25rem 2.5rem !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .auth-head,
  .auth-fields,
  .auth-error,
  .auth-wallet,
  .auth-form > form,
  .auth-form > .auth-back {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .auth-input-wrap input,
  .auth-input {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .auth-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .auth-role-row {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .auth-alt-row {
    grid-template-columns: 1fr !important;
  }
  .auth-title {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 1.25rem 1rem 2rem !important;
  }
  .auth-title {
    font-size: 1.45rem !important;
  }
  .auth-sub {
    font-size: 0.85rem !important;
  }
}

/* ---- Hero + Stats (homepage) ---- */
.os-feature-banner {
  width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
}
.os-feature-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
}
.os-feature-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.os-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.os-feature-info { max-width: 100%; }
.os-feature-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2081e2;
  margin-bottom: 0.5rem;
}
.os-feature-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.os-feature-title em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.os-feature-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.os-feature-price {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.os-feature-amount {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.os-feature-cta {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2081e2;
}

.os-stats {
  margin: 2rem 0 0;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.os-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.os-stat {
  text-align: center;
  padding: 0.5rem;
}
.os-stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.os-stat-unit {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.25rem;
}
.os-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

@media (max-width: 600px) {
  .os-stats-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .os-feature-frame { aspect-ratio: 4 / 3; max-height: 320px; }
  .os-feature-overlay { padding: 1rem; }
}

/* ---- Trending carousel ---- */
.os-trending {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.os-trending-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.os-trending-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 129, 226, 0.4);
}
.os-trending-rank {
  position: absolute;
  margin-left: 0.6rem;
  margin-top: 0.6rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  z-index: 2;
}
.os-trending-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-trending-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.os-trending-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
}
.os-trending-body {
  padding: 0.75rem;
}
.os-trending-collection {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.os-trending-name {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-trending-amount {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.os-trending-na { color: var(--text-dim); font-weight: 400; font-size: 0.85rem; }
.os-tick { color: #2081e2; font-size: 0.85em; }

/* Section heads */
.os-section {
  margin: 3rem 0 0;
  padding: 0;
}
.os-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.os-section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.os-section-accent { font-style: italic; color: #2081e2; }
.os-section-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0.4rem 0 0;
}
.os-section-link {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2081e2;
  text-decoration: none;
}

/* ---- Collections grid ---- */
.os-collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .os-collections { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .os-collections { grid-template-columns: 1fr !important; }
}
.os-collection-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.os-collection-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 129, 226, 0.4);
}
.os-collection-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-collection-banner img {
  width: 100%; height: 100%; object-fit: cover;
}
.os-collection-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.os-collection-body { padding: 1rem; }
.os-collection-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.os-collection-by {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.os-collection-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.os-collection-stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.os-collection-stat-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-top: 0.2rem;
}

/* ---- Live activity ---- */
.os-activity-section .os-pulse {
  display: inline-block;
  width: 10px; height: 10px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 0.4rem;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.os-activity {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.os-activity-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.os-activity-row:last-child { border-bottom: none; }
.os-activity-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.os-activity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-activity-info { min-width: 0; }
.os-activity-name {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-activity-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.os-activity-handle { color: rgba(255,255,255,0.7); }
.os-activity-price { text-align: right; }
.os-activity-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.os-activity-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ---- Layout: sidebar + grid (Explore NFTs) ---- */
.os-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin: 1rem 0 0;
}
.os-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  height: fit-content;
}
.os-sidebar-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.os-sidebar-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.os-filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  padding: 0.3rem 0;
}
.os-filter-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #2081e2;
  cursor: pointer;
}
.os-filter-label { flex: 1; }
.os-filter-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.os-filter-scroll {
  max-height: 220px;
  overflow-y: auto;
  margin-right: -0.5rem;
  padding-right: 0.5rem;
}
.os-price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.os-price-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}
.os-price-sep, .os-price-unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.os-apply-btn { width: 100%; }

.os-main { min-width: 0; }
.os-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.os-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.os-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.os-tab.active,
.os-tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.os-tab.active { border-color: #2081e2; color: #2081e2; }
.os-sort {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) {
  .os-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) {
  .os-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .os-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .os-sidebar { position: static !important; }
}
@media (max-width: 480px) {
  .os-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
}

.os-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.os-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 129, 226, 0.4);
}
.os-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.os-card-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.os-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.15);
}
.os-card-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: rgba(32, 129, 226, 0.95);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.os-card-body { padding: 0.85rem; }
.os-card-collection {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-card-name {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.os-card-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.os-card-na { color: var(--text-dim); font-weight: 400; font-size: 0.8rem; }
.os-card-price-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.os-card-fav {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.os-card-fav:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

/* ---- Footer columns ---- */
.os-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .os-footer-cols { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
  .os-footer-form { flex-direction: column !important; }
}
.os-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.os-footer-col a {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
}
.os-footer-col a:hover { color: #fff; }
.os-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- "Currently viewing" pill — make it less intrusive ---- */
.currently-viewing {
  position: fixed;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
  .currently-viewing {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    bottom: 0.75rem;
  }
  .currently-viewing strong { display: none; }
}

/* ---- Container width ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
@media (max-width: 600px) {
  .container { padding: 1rem 0.85rem 1.5rem !important; }
}

/* ---- KILL ALL HORIZONTAL OVERFLOW ---- */
*, *::before, *::after {
  min-width: 0;
}

/* Topbar should never overflow */
.os-topbar {
  overflow: visible;
}
.os-topbar-right { max-width: calc(100vw - 200px); }

/* Auth: kill horizontal overflow hard */
.auth-spread { max-width: 100vw; }
.auth-form { max-width: 100vw; }
.auth-fields, .auth-head, .auth-error, .auth-wallet {
  max-width: 100% !important;
}
.auth-form * {
  max-width: 100% !important;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 0;
  flex-wrap: wrap;
}
.page-link {
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.85rem;
}
.page-link:hover { background: rgba(32, 129, 226, 0.1); border-color: #2081e2; }
.page-current {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Messages ---- */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  max-width: 1280px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
}
.msg-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.msg-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.msg-info { background: rgba(32, 129, 226, 0.1); border: 1px solid rgba(32, 129, 226, 0.3); color: #93c5fd; }
.msg-warning { background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3); color: #fde68a; }

/* ---- Burger menu (hidden on desktop) ---- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---- Lot detail mobile ---- */
.lot-spread {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2.5rem;
  align-items: start;
}
.lot-hero { position: sticky; top: 80px; }
.lot-meta { min-width: 0; }

@media (max-width: 900px) {
  .lot-spread {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .lot-hero { position: static !important; }
}

/* ---- Collection detail mobile ---- */
.coll-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .coll-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .coll-rail {
    position: static !important;
  }
}

.coll-banner-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 280px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  border-radius: 16px;
  margin: 1.5rem 0 0;
}
.coll-banner-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.coll-banner-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}
.coll-banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  color: #fff;
}
.coll-banner-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  margin: 0 0 0.4rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.coll-banner-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.verified-banner {
  color: #2081e2;
  font-size: 0.7em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---- Surface card (profile, become-seller, change-wallet) ---- */
.surface {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-sizing: border-box;
}
.surface h2, .surface h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 1rem;
  color: #fff;
}
.surface p {
  font-family: var(--body);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.surface code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #fff;
  word-break: break-all;
}
.surface hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 1.5rem 0;
}
.surface-inset {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select,
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus { border-color: #2081e2; }
.form-help {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}
.form-err {
  color: #fca5a5;
  font-family: var(--body);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary { background: #2081e2; color: #fff; }
.btn-primary:hover { background: #1868b7; }
.btn-ghost { background: rgba(255,255,255,0.04); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---- Collection cards (collection_list) ---- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin: 0;
}
.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.search-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.search-input:focus { border-color: #2081e2; }

.grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.coll-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.coll-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 129, 226, 0.4);
}
.coll-card .banner {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.coll-card .banner img { width: 100%; height: 100%; object-fit: cover; }
.coll-card .pad { padding: 1rem; }
.coll-card .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.coll-card .creator {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.coll-card .stats {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.coll-card .stats strong {
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
  margin-right: 0.25rem;
}
.coll-card .tag {
  background: rgba(195, 166, 52, 0.15);
  color: #c3a634;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.coll-card .verified {
  color: #2081e2;
  font-size: 0.9em;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 14px;
}
.empty-state .icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}
.empty-state .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-family: var(--body);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ---- NFT detail components (light coverage for fix) ---- */
.detail-side {
  position: sticky;
  top: 80px;
}

/* ---- Work card (from same collection rail) ---- */
.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.work-card {
  flex: 0 0 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.work-card:hover { transform: translateY(-2px); border-color: rgba(32, 129, 226, 0.4); }
.work-card .img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.work-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.work-card .meta { padding: 0.85rem; }
.work-card .name {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card .sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.work-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.work-card .price { color: #fff; font-weight: 600; }
.work-card .price.unlisted { color: var(--text-dim); font-weight: 400; }
.work-card .royalty { color: #c3a634; }
.work-card .lot-stamp {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  z-index: 2;
}
.work-card .badge.listed {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: rgba(32, 129, 226, 0.95);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  z-index: 2;
}

/* ---- Masonry fallback ---- */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
@media (max-width: 600px) {
  .masonry { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
}
@media (max-width: 400px) {
  .masonry { grid-template-columns: 1fr !important; }
}

/* ---- Generic typography fallbacks ---- */
h1, h2, h3 {
  color: #fff;
  line-height: 1.25;
}
.muted { color: var(--text-dim); }
.text-mono { font-family: var(--mono); }

/* ---- DASHBOARD components ---- */
.cover {
  position: relative;
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, hsl(220, 50%, 11%) 0%, hsl(252, 50%, 14%) 50%, hsl(220, 50%, 9%) 100%);
  border-radius: 16px;
  margin: 1.5rem 0 0;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(32, 129, 226, 0.15), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(195, 166, 52, 0.10), transparent 55%);
}
.cover-meta {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cover-meta .plate { color: var(--gold, #c3a634); }
.cover-meta .issue { color: var(--text-dim); }
.cover-title {
  position: relative;
  font-family: var(--serif, 'Fraunces');
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cover-title em { font-style: italic; color: #2081e2; font-weight: 400; }
.cover-lede {
  position: relative;
  font-family: var(--body, 'Inter');
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.5;
}
.cover-lede em { font-style: italic; color: #c3a634; }

.spread {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.spread:first-of-type { border-top: none; padding-top: 1.5rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
}
.stat-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.stat-tile .stat-num {
  font-family: var(--display, 'Inter');
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-tile .stat-num .unit {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.2rem;
}
.stat-tile-gold .stat-num { color: #c3a634; }
.stat-tile .stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.balance-card {
  background: linear-gradient(135deg, rgba(32, 129, 226, 0.08) 0%, rgba(195, 166, 52, 0.05) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.balance-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-pulse {
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.balance-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.balance-unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.4rem;
}
.balance-breakdown {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.balance-pill strong {
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
}
.dot-sep { color: rgba(255,255,255,0.3); margin: 0 0.2rem; }
.balance-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .balance-actions { flex-direction: column !important; }
  .balance-actions .btn { width: 100% !important; }
  .balance-breakdown { flex-direction: column !important; }
  .balance-card { padding: 1.25rem !important; }
}

.pending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pending-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
@media (max-width: 800px) {
  .pending-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
}
@media (max-width: 480px) {
  .pending-row {
    grid-template-columns: 1fr !important;
  }
}
.pending-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}
.pending-amount .amount-unit { font-size: 0.6em; color: var(--text-dim); margin-left: 0.2rem; }
.pending-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.pending-addr {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  word-break: break-all;
}
.time-val {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-pending { background: rgba(234, 179, 8, 0.15); color: #fde68a; }
.status-processing { background: rgba(32, 129, 226, 0.15); color: #93c5fd; }
.status-confirmed { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.status-expired { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

.empty-prose {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-prose p {
  font-family: var(--body);
  color: var(--text-dim);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.empty-prose em { font-style: italic; color: #fff; }
.empty-mark {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.15);
  margin-bottom: 1rem;
}
.actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ledger {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
}
.ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--body);
  font-size: 0.9rem;
}
.ledger-row:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .ledger-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
}
.ledger-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.ledger-art {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.ledger-art:hover { color: #2081e2; }
.ledger-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.ledger-handle { color: var(--text); }
.ledger-arrow { color: rgba(255,255,255,0.4); margin: 0 0.25rem; }
.ledger-royalty {
  color: #c3a634;
  font-family: var(--display);
  font-weight: 600;
}
.ledger-royalty .royalty-em { font-style: italic; }
.ledger-price {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.signoff {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}
.signoff-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.signoff-stats strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-right: 0.25rem;
}

/* ---- Detail page: lot spread, price-plaque, offers, provenance ---- */
.lot-spread {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2.5rem;
  align-items: start;
  margin: 1.5rem 0;
}
.lot-hero { position: sticky; top: 80px; }
.lot-meta { min-width: 0; }
@media (max-width: 900px) {
  .lot-spread { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .lot-hero { position: static !important; }
}

.lot-frame {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
}
.lot-corner-tags {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lot-number em { font-style: italic; color: #c3a634; }
.lot-collection-tag {
  color: #2081e2;
  text-decoration: none;
}
.verified-tick { color: #2081e2; margin-left: 0.25rem; }
.lot-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow: hidden;
}
.lot-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.lot-image-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}
.lot-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lot-meta-head { margin-bottom: 1.5rem; }
.lot-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.5rem;
}
.lot-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lot-creator {
  font-family: var(--body);
  color: var(--text-dim);
  margin: 0;
}
.lot-creator a { color: #2081e2; text-decoration: none; }
.lot-description {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid #2081e2;
  border-radius: 0 8px 8px 0;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
}
.description-mark {
  color: #2081e2;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.entity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) {
  .entity-row { grid-template-columns: 1fr !important; }
}
.entity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.entity-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.entity-value {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.entity-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2081e2, #c3a634);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.entity-name {
  font-family: var(--body);
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.entity-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.price-plaque, .status-plaque {
  background: linear-gradient(135deg, rgba(32, 129, 226, 0.08) 0%, rgba(195, 166, 52, 0.05) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.price-plaque-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.plaque-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plaque-tag {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plaque-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}
.plaque-amount .amount-eth {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.4rem;
}
.breakdown {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-family: var(--body);
  font-size: 0.85rem;
}
.breakdown-row dt { color: var(--text-dim); margin: 0; }
.breakdown-row dd { margin: 0; color: #fff; font-family: var(--mono); }
.breakdown-row .num.gold { color: #c3a634; font-weight: 600; }
.breakdown-row .pct { color: var(--text-dim); font-size: 0.8rem; }
.breakdown-row-total {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.royalty-lock {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(195, 166, 52, 0.08);
  border: 1px solid rgba(195, 166, 52, 0.2);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.5;
}
.lock-mark { color: #c3a634; margin-right: 0.4rem; }

.status-plaque {
  text-align: center;
  padding: 2rem;
}
.status-line {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0.5rem 0;
  font-style: italic;
}
.status-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.action-stack form { margin: 0; }
.action-stack .btn-block { width: 100%; }

.offer-panel {
  margin: 1.5rem 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0;
}
.offer-panel summary {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.offer-panel summary::-webkit-details-marker { display: none; }
.summary-mark {
  width: 24px; height: 24px;
  background: rgba(32, 129, 226, 0.15);
  color: #2081e2;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
}
.summary-text { flex: 1; }
.summary-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.offer-panel[open] > form { padding: 0 1.25rem 1.25rem; }

.offers-panel {
  margin: 1.5rem 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.panel-head h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}
.tag-success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.bidder {
  font-family: var(--mono);
  color: #2081e2;
}
.bid-amount {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}
.text-gold { color: #c3a634; }

.provenance, .same-collection, .catalogue-details {
  margin: 3rem 0;
}
.provenance-frame {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
}
.provenance-empty {
  text-align: center;
  padding: 2rem;
}
.mint-line {
  margin: 1rem 0 0;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.diamond { color: #2081e2; margin-right: 0.3rem; }
.hand {
  font-family: var(--mono);
  color: #2081e2;
}
.tx-hash {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.eth-amount {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
}

.details-accordion {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.details-accordion summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--body);
  font-weight: 600;
  color: #fff;
}
.details-accordion summary::-webkit-details-marker { display: none; }
.summary-num {
  color: #2081e2;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.summary-title { flex: 1; font-family: var(--serif); font-weight: 500; }
.summary-mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.summary-chevron {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.details-accordion[open] .summary-chevron { transform: rotate(45deg); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (max-width: 800px) {
  .details-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.details-cell {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 0.75rem;
}
.cell-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.cell-value {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  word-break: break-all;
}
.cell-gold { color: #c3a634; font-weight: 600; }
.cell-handle { color: #2081e2; }
.cell-link {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #2081e2;
  text-decoration: none;
}
.cell-link:hover { text-decoration: underline; }

/* ---- Watchlist ---- */
.section-intro {
  font-family: var(--body);
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}
.flex { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- Filter pills ---- */
.filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.8rem;
  cursor: pointer;
}
.pill.active, .pill:hover {
  background: rgba(32, 129, 226, 0.1);
  color: #2081e2;
  border-color: #2081e2;
}

/* ---- Admin ops: data tables, tag pills, inline forms ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 0.85rem;
}
.data-table th,
.data-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #fff;
}
.data-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: none;
}
@media (max-width: 800px) {
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table { min-width: 600px; font-size: 0.8rem; }
}
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.tag-ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.inline-form { display: inline-block; margin: 0; }
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ---- Public profile + watchlist ---- */
.public-profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}
@media (max-width: 800px) {
  .public-profile-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
}

/* ---- Activity feed ---- */
.activity-section { margin: 2rem 0; }
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
}
.activity-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.activity-info { min-width: 0; }
.activity-name { font-weight: 600; color: #fff; }
.activity-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem; }
.activity-amount { font-family: var(--display); font-weight: 700; color: #fff; }

/* ---- Forms on small screens — make sure they don't overflow ---- */
form input, form textarea, form select {
  max-width: 100%;
}

/* ---- Notifications dropdown ---- */
.notif-dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 1rem);
  background: rgba(15, 18, 28, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.5rem;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.notif-row {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.notif-row:hover { background: rgba(255,255,255,0.04); }
.notif-row.unread { background: rgba(32, 129, 226, 0.08); }
.notif-mark {
  width: 8px; height: 8px;
  background: #2081e2;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ---- Empty when there's nothing to show ---- */
.no-content {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-family: var(--body);
  font-size: 0.95rem;
}

/* ---- Glow border (re-used from coll-card class) ---- */
.glow-border {
  position: relative;
}
.glow-border:hover {
  border-color: rgba(32, 129, 226, 0.4);
}

/* ---- Auth-spread reset for desktop (re-confirm) ---- */
@media (min-width: 961px) {
  .auth-spread {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .auth-art { max-height: none !important; min-height: 480px !important; }
  .auth-art-text { display: block !important; }
  .auth-form { padding: 3rem 2rem !important; }
}

/* ---- Tables on small ---- */
.offers-table, .provenance-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 0.85rem;
  display: table;
}
.offers-table th, .provenance-table th,
.offers-table td, .provenance-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #fff;
}
.offers-table th, .provenance-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.offers-table .t-right, .provenance-table .t-right { text-align: right; }

@media (max-width: 600px) {
  .offers-panel, .provenance-frame {
    overflow-x: auto;
  }
  .offers-table, .provenance-table {
    min-width: 480px;
    font-size: 0.8rem;
  }
}

/* ---- Section heads for detail pages ---- */
.spread-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.spread-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #fff;
  margin: 0.4rem 0 0;
  letter-spacing: -0.01em;
}
.spread-title em { font-style: italic; color: #2081e2; }
.spread-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
}
.spread-link {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2081e2;
  text-decoration: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2081e2;
}

