/* Collection / market dashboard — visual vault */
body.hub-page.collection-hub .hub-main {
  padding-top: 88px;
}

.collection-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(ellipse 90% 80% at 10% -20%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 95% 0%, rgba(34, 211, 238, 0.18), transparent 50%),
    var(--gradient-card);
}

.collection-hero h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.collection-hero-glow {
  position: absolute;
  inset: auto -40% -60% 40%;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  pointer-events: none;
}

.collection-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.collection-stat-tile {
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: rgba(8, 6, 16, 0.72);
}

.collection-stat-tile small {
  display: block;
  font-size: 0.72rem;
  color: var(--hub-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.collection-stat-tile strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
  color: #fde047;
  font-family: var(--font-primary, inherit);
}

.collection-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 960px) {
  .collection-workspace {
    grid-template-columns: 1fr;
  }
}

.collection-add-card {
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  background: var(--gradient-card);
  padding: 1rem;
}

.collection-add-card h2 {
  margin-top: 0;
}

.collection-suggest-grid {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
}

.collection-suggest {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(12, 8, 22, 0.75);
}

.collection-suggest img {
  width: 56px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.collection-suggest-meta {
  min-width: 0;
}

.collection-suggest-meta strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.collection-suggest-meta span {
  display: block;
  font-size: 0.72rem;
  color: var(--hub-muted);
  margin-top: 0.15rem;
}

.collection-vault {
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 10, 28, 0.95) 0%, rgba(8, 6, 14, 0.98) 100%);
  padding: 0.85rem 1rem 1rem;
}

.collection-vault-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.collection-vault-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.collection-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(20, 12, 34, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.collection-card--wish {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.15);
}

.collection-card__visual {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem 0.5rem;
}

.collection-card__visual img {
  width: 108px;
  height: 158px;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  background: #0a0612;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.collection-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.collection-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #f7f3ff;
}

.collection-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.collection-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  background: rgba(8, 6, 16, 0.65);
}

.collection-badge--wish {
  border-color: rgba(236, 72, 153, 0.65);
  color: #fbcfe8;
}

.collection-card__type {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
  line-height: 1.35;
}

.collection-card__stats {
  margin: 0;
  font-size: 0.78rem;
  color: #9be9ff;
}

.collection-card__body {
  padding: 0 0.75rem 0.65rem;
  flex: 1;
}

.collection-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde047;
  margin: 0.25rem 0 0.4rem;
}

.collection-card details {
  margin-top: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(8, 6, 16, 0.55);
}

.collection-card summary {
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
  list-style: none;
}

.collection-card summary::-webkit-details-marker {
  display: none;
}

.collection-card__text {
  padding: 0 0.55rem 0.55rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #dcd5f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.collection-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  margin-top: auto;
}

.collection-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  color: var(--hub-muted);
}

.hub-filters.collection-filters {
  margin-bottom: 0.75rem;
}

/* Signed-in dashboard — shortcut tiles (no quick-bookmark list) */
.collection-dash {
  margin-top: 0.85rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: var(--gradient-card);
}

.collection-dash-head {
  margin-bottom: 1rem;
}

.collection-dash-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-family: var(--font-primary, inherit);
  color: #f7f3ff;
}

.collection-dash-sub {
  margin: 0;
  max-width: 52ch;
}

.collection-dash-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .collection-dash-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.collection-dash-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  min-height: 4.5rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: rgba(8, 6, 16, 0.78);
  color: #f1e9ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.collection-dash-btn:hover {
  border-color: rgba(34, 211, 238, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.collection-dash-btn__label {
  letter-spacing: 0.02em;
}

.collection-dash-btn__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--hub-muted);
  line-height: 1.3;
}

