/* NextArt — styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f4ef;
  --bg-alt: #ede8df;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: rgba(180, 83, 9, 0.12);
  --border: rgba(28, 25, 23, 0.1);
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(28, 25, 23, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(180, 83, 9, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(28, 25, 23, 0.04), transparent);
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }

/* Shared frames — gallery cards, cart, dashboard, uploads */
.media-thumb {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-alt), #e5dfd4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
a.media-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180, 83, 9, 0.28);
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
a.media-thumb:hover img { transform: scale(1.05); }

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.avatar-sm { width: 48px; height: 48px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-hero {
  width: 160px;
  height: 160px;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border), var(--shadow-lg);
}

.photo-count-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 25, 23, 0.78);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
a:hover { color: var(--accent-hover); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.hidden { display: none !important; }
.container { width: min(1120px, 92vw); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
  background: rgba(247, 244, 239, 0.95);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo span { color: var(--accent); font-style: italic; }
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--ink-muted); font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); position: relative; }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta {
  color: var(--surface) !important; background: var(--ink);
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); color: var(--surface) !important; transform: translateY(-1px); }

.cart-toggle {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.cart-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 0.65rem; font-weight: 600; line-height: 18px; text-align: center;
  color: #fff; background: var(--accent); border-radius: 999px;
}

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: var(--transition);
}

/* Cart panel */
.cart-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(28, 25, 23, 0.4); backdrop-filter: blur(2px);
}
.cart-panel {
  position: fixed; top: 0; right: 0; z-index: 160;
  width: min(400px, 100vw); height: 100vh; height: 100dvh;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(28, 25, 23, 0.15);
  display: flex; flex-direction: column;
  animation: cartSlideIn 0.3s var(--ease-out);
}
.cart-panel.hidden { display: none; }
@keyframes cartSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cart-panel-close {
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--bg); font-size: 1.5rem; cursor: pointer; color: var(--ink-muted);
}
.cart-empty { padding: 2rem 1.25rem; text-align: center; color: var(--ink-muted); }
.cart-items { list-style: none; flex: 1; overflow-y: auto; padding: 0.75rem 1rem; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 0.85rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item-thumb { width: 72px; height: 72px; aspect-ratio: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; color: var(--ink); display: block; }
.cart-item-artist { font-size: 0.8rem; color: var(--ink-muted); }
.cart-item-price { font-size: 0.85rem; font-weight: 600; margin-top: 0.25rem; }
.cart-item-remove {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--bg); cursor: pointer; font-size: 1.25rem; color: var(--ink-muted);
}
.cart-item-remove:hover { background: #fef2f2; color: #b91c1c; }
.cart-panel-footer {
  padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cart-total-line { text-align: center; color: var(--ink-muted); }
.cart-total-line strong { color: var(--ink); font-size: 1.25rem; }
body.cart-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500; border-radius: 999px;
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(180, 83, 9, 0.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: #b91c1c; border: 1.5px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-block { width: 100%; }
.btn-in-cart { background: var(--ink); color: #fff; }
.btn-in-cart:hover { background: var(--accent-hover); color: #fff; }
.btn-text {
  background: none; border: none; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500; color: var(--accent);
  cursor: pointer; text-decoration: underline;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 4rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; max-width: 1280px; margin-inline: auto;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem); font-weight: 600;
  line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-lead { font-size: 1.1rem; color: var(--ink-muted); max-width: 28rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats dt { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.hero-stats dd { font-size: 0.85rem; color: var(--ink-muted); }
.hero-visual { position: relative; height: min(520px, 70vh); }
.frame {
  position: absolute; border-radius: var(--radius);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg); border: 6px solid var(--surface);
  transition: transform 0.6s var(--ease-out);
}
.frame-1 { width: 55%; height: 70%; top: 5%; right: 5%; transform: rotate(3deg); z-index: 3; background-image: linear-gradient(135deg, #d4a574, #8b5a2b); }
.frame-2 { width: 50%; height: 55%; bottom: 8%; left: 0; transform: rotate(-4deg); z-index: 2; background-image: linear-gradient(160deg, #6b7f8a, #3d4f5c); }
.frame-3 { width: 40%; height: 45%; top: 15%; left: 15%; transform: rotate(-8deg); z-index: 1; opacity: 0.85; background-image: linear-gradient(120deg, #c9b8a8, #7a6b5d); }
.hero-visual:hover .frame-1 { transform: rotate(5deg) scale(1.02); }
.hero-visual:hover .frame-2 { transform: rotate(-6deg) scale(1.02); }
.hero-visual:hover .frame-3 { transform: rotate(-10deg) scale(1.02); }

/* Sections */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
.section-header.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-lead { color: var(--ink-muted); margin-top: 0.75rem; max-width: 36rem; }

#how-it-works { background: var(--bg-alt); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li {
  background: var(--surface); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); opacity: 0.35; display: block; margin-bottom: 0.75rem; }
.steps h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.steps p { color: var(--ink-muted); font-size: 0.95rem; }

/* Gallery */
.section-gallery { background: var(--surface); }
.gallery-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gallery-tools input, .gallery-tools select,
.listing-form input, .listing-form select, .listing-form textarea {
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 0.65rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.gallery-tools input:focus, .gallery-tools select:focus,
.listing-form input:focus, .listing-form select:focus, .listing-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-wrap input { min-width: 220px; }
.gallery-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.gallery-count { font-size: 0.9rem; color: var(--ink-muted); }
.medium-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pill {
  font-size: 0.8rem; font-weight: 500; padding: 0.4rem 0.9rem;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--ink-muted); cursor: pointer;
}
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.art-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180, 83, 9, 0.2);
}
.art-card-image-link { display: block; color: inherit; text-decoration: none; }
.art-card-body { padding: 1.15rem 1.25rem 1.3rem; }
.art-card-body h3 a { color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.art-card-body h3 a:hover { color: var(--accent); }
.art-card-artist a { color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; }
.art-card-artist a:hover { color: var(--accent); text-decoration: underline; }
.art-card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-alt) 0%, #ddd6c8 100%);
}
.art-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.art-card:hover .art-card-image::before { opacity: 1; }
.art-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.art-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 25, 23, 0.2);
  opacity: 0;
  transition: opacity var(--transition);
}
.art-card-overlay span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(4px);
}
.art-card:hover .art-card-image img { transform: scale(1.07); }
.art-card:hover .art-card-overlay { opacity: 1; }
.art-card-medium { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.art-card-price { font-weight: 600; margin-top: 0.25rem; }
.gallery-empty { text-align: center; padding: 3rem; color: var(--ink-muted); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form */
.section-sell { background: var(--bg); }
.sell-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.listing-form {
  background: var(--surface); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.span-2 { grid-column: span 2; }
.form-group label { font-size: 0.85rem; font-weight: 500; }
.form-group label span { color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.char-count { font-size: 0.75rem; color: var(--ink-muted); text-align: right; }
.char-count.warn { color: var(--accent); }
.image-upload { display: flex; flex-direction: column; gap: 0.75rem; }
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.25rem 1.5rem;
  border: 2px dashed rgba(180, 83, 9, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.upload-drop:hover,
.upload-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.15);
}
.upload-hint { font-size: 0.78rem; opacity: 0.85; }
.upload-drop input[type="file"] { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; }
.upload-icon { font-size: 2rem; color: var(--accent); }
.image-preview { position: relative; border-radius: var(--radius); overflow: hidden; max-height: 280px; }
.image-preview img { width: 100%; height: 280px; object-fit: cover; }
.preview-clear {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 1.25rem; cursor: pointer;
}
.form-hint { font-size: 0.8rem; color: var(--ink-muted); }
.form-error { color: #b91c1c; font-size: 0.9rem; margin-top: 1rem; }
.form-success { color: #15803d; font-size: 0.9rem; margin-top: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Listing page */
.page-listing .listing-main { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 4rem; min-height: 100vh; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 2rem; align-items: center; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--ink); font-weight: 500; max-width: min(240px, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-detail { animation: fadeUp 0.45s var(--ease-out) both; margin-bottom: 2rem; }
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.listing-visual {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.listing-image-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
  min-height: min(520px, 70vh);
}
.listing-image-wrap img {
  width: 100%;
  max-height: min(75vh, 640px);
  object-fit: contain;
  pointer-events: none;
  padding: 1.25rem;
}
.listing-expand-hint {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: rgba(28,25,23,0.72); padding: 0.5rem 1rem; border-radius: 999px;
  opacity: 0; transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.listing-image-wrap:hover .listing-expand-hint { opacity: 1; }
.listing-info {
  padding: 0.5rem 0 0;
  display: flex; flex-direction: column;
  align-items: stretch; text-align: left; gap: 1.25rem;
}
.listing-header { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.listing-medium { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.listing-info h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.15; margin-bottom: 0.75rem; }
.listing-price { font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.listing-availability {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.listing-availability--sold { color: var(--ink-muted); }
.listing-sold-btn {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.art-card--sold .art-card-image img { opacity: 0.72; }
.art-card-sold-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.art-card-availability {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.art-card-availability--sold { font-weight: 600; color: var(--ink); }
.listing-artist-line { color: var(--ink-muted); font-size: 1rem; }
.listing-artist-block {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.listing-artist-block:hover {
  border-color: var(--accent); box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.listing-artist-block .avatar { flex-shrink: 0; }
.listing-artist-block-text { flex: 1; min-width: 120px; }
.listing-artist-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.listing-artist-block strong { display: block; font-size: 1.05rem; margin-top: 0.15rem; }
.listing-artist-block small { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.15rem; }
.listing-artist-block-cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.listing-specs {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem; padding: 0; margin: 0;
}
.listing-specs li {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
}
.listing-specs li span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.25rem; }
.listing-specs li strong { font-size: 0.95rem; font-weight: 500; }
.listing-shipping {
  padding: 1.15rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.listing-shipping-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.listing-shipping-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.listing-shipping-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.listing-shipping-item--muted { color: var(--ink-muted); }
.listing-shipping-icon {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.85;
}
.listing-shipping-text { flex: 1; min-width: 0; }
.listing-shipping-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}
.listing-shipping-text strong { font-weight: 500; color: var(--ink); }
.listing-shipping-item--muted .listing-shipping-text strong { color: var(--ink-muted); }
.listing-shipping-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 0.25rem;
  margin: 0;
}
.listing-shipping-fieldset legend {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0 0.35rem;
}
.listing-shipping-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.listing-desc-block { padding-top: 0.25rem; }
.listing-desc { color: var(--ink-muted); line-height: 1.75; font-size: 1rem; }
.listing-purchase {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.listing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.listing-actions form { flex: 1; min-width: 140px; }
.listing-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
.listing-purchase-note { margin-top: 0.85rem; font-size: 0.8rem; color: var(--ink-muted); }
.listing-owner-actions {
  padding: 1rem 1.15rem; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px dashed var(--border);
}
.listing-owner-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 0.65rem; }
.listing-owner-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.listing-back { font-size: 0.9rem; font-weight: 500; color: var(--ink-muted); margin-top: 0.5rem; }
.listing-back:hover { color: var(--accent); }
.section-related { padding-top: 2rem; padding-bottom: 3rem; }
.section-related-alt { background: var(--bg-alt); }
.listing-not-found { text-align: center; padding: 4rem 0; }
.listing-not-found h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.75rem; }

/* Fullscreen */
.fullscreen-viewer { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.fullscreen-viewer.is-open { animation: fullscreenFadeIn 0.25s var(--ease-out); }
.fullscreen-backdrop { position: absolute; inset: 0; background: rgba(12,10,9,0.92); cursor: zoom-out; }
.fullscreen-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.75rem; cursor: pointer;
}
.fullscreen-stage {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 4rem 1.5rem; pointer-events: none;
}
.fullscreen-stage img {
  max-width: min(96vw, 1400px); max-height: min(90vh, 900px);
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5); pointer-events: auto;
}
body.fullscreen-open { overflow: hidden; }
@keyframes fullscreenFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Toast */
.toast-root { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { pointer-events: auto; padding: 0.85rem 1.25rem; background: var(--ink); color: #fff; font-size: 0.9rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: toastIn 0.35s var(--ease-out) both; max-width: min(360px, 90vw); }
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Inner pages */
.page-main { padding-top: calc(var(--header-h) + 1rem); }
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; margin-bottom: 0.75rem; }
.page-lead { color: var(--ink-muted); font-size: 1.05rem; max-width: 36rem; }

.section-featured { background: var(--surface); }
.gallery-grid-compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.section-artists { background: var(--bg-alt); }
.artist-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.artist-cards > li { display: contents; }
a.artist-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); padding: 1rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); color: inherit; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
a.artist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.artist-card-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border), var(--shadow);
}
.artist-card h3 { font-family: var(--font-display); font-size: 1.2rem; }
.artist-card p { font-size: 0.85rem; color: var(--ink-muted); }
.artist-card-location { font-size: 0.8rem !important; opacity: 0.85; }

/* Artist profile */
.artist-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.artist-hero-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.artist-avatar .avatar-hero { display: block; }
.artist-hero-text h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.35rem; }
.artist-location { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.artist-meta { font-size: 0.9rem; color: var(--accent); font-weight: 500; margin-bottom: 1rem; }
.artist-bio { color: var(--ink-muted); max-width: 40rem; line-height: 1.7; margin-bottom: 1.25rem; }
.artist-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.artist-profile-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.artist-profile-card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.artist-profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.artist-profile-card-visual { position: relative; height: 140px; background: var(--bg-alt); }
.artist-profile-cover { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.artist-profile-avatar {
  position: absolute;
  left: 1.25rem;
  bottom: -36px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border), var(--shadow-lg) !important;
}
.artist-profile-card-body { padding: 2.75rem 1.25rem 1.25rem; }
.artist-profile-card h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.25rem; }
.artist-profile-location { font-size: 0.85rem; color: var(--ink-muted); }
.artist-profile-works { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0.35rem 0; }
.artist-profile-bio { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.5; margin-bottom: 0.75rem; }
.artist-profile-link { font-size: 0.85rem; font-weight: 500; color: var(--accent); }

/* Artists directory */
.artists-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.artists-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.artists-hero-copy { max-width: 38rem; }
.artists-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.artists-stats {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.artists-stats div {
  min-width: 6.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.artists-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.artists-stats dd {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-artists-directory { padding-top: 2rem; }
.artists-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.artists-search { flex: 1; min-width: 220px; }
.artists-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.artists-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.artists-sort {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.artists-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}
.artists-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.artists-empty h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.artists-empty p {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.listing-artist-block-cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

.section-testimonials { background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.testimonial-grid blockquote {
  background: var(--surface); padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); font-style: italic;
}
.testimonial-grid footer { margin-top: 1rem; font-size: 0.85rem; font-style: normal; color: var(--ink-muted); }

.cta-banner { background: var(--ink); color: rgba(255,255,255,0.85); }
.cta-banner-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.about-block h2, .about-block h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
.about-block p, .about-block li { color: var(--ink-muted); font-size: 0.95rem; }
.about-block ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.about-highlight {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.faq-list { display: grid; gap: 1.5rem; max-width: 720px; }
.faq-list dt { font-weight: 600; margin-bottom: 0.35rem; }
.faq-list dd { color: var(--ink-muted); }

.account-layout { padding-bottom: 4rem; }
.account-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center;
}
.stat-value { display: block; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; }
.stat-label { font-size: 0.85rem; color: var(--ink-muted); }
.account-listings h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 1.25rem; }
.listing-row-date { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.15rem; }

/* Dashboard */
.dashboard-main { padding-bottom: 4rem; }
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.dashboard-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.dashboard-nav-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-nav-avatar { /* extends .avatar */ }
.dashboard-nav-user strong { display: block; font-size: 0.95rem; }
.dashboard-nav-user span { font-size: 0.75rem; color: var(--ink-muted); word-break: break-all; }
.dashboard-nav-realname { display: block; font-size: 0.8rem !important; color: var(--ink-muted); opacity: 0.9; }
.dashboard-nav-links { display: flex; flex-direction: column; gap: 0.25rem; }
.dashboard-nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.dashboard-nav-link:hover { background: var(--bg); color: var(--ink); }
.dashboard-nav-link.active { background: var(--accent-soft); color: var(--accent); }
.dashboard-nav-link.muted { font-size: 0.85rem; }
.dashboard-nav-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-header h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card-highlight { border-color: var(--accent); background: var(--accent-soft); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.dashboard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.dashboard-panel h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1rem; }
.dashboard-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dashboard-panel-header h2 { margin-bottom: 0; }
.dashboard-empty { text-align: center; padding: 2rem 1rem; color: var(--ink-muted); }
.dashboard-empty p { margin-bottom: 1rem; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.quick-action:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-action-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; font-size: 1.1rem;
}
.medium-breakdown { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.medium-breakdown li {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: var(--ink-muted);
  padding-bottom: 0.65rem; border-bottom: 1px solid var(--border);
}
.medium-breakdown li:last-child { border-bottom: none; padding-bottom: 0; }
.dashboard-profile-form { max-width: none; }
.dashboard-profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.dashboard-profile-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.dashboard-profile-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.dashboard-profile-card-avatar { margin: 0 auto 0.85rem; }
.dashboard-profile-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}
.dashboard-profile-card-location {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
}
.dashboard-profile-card-role {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}
.dashboard-profile-card-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
.dashboard-profile-card-bio {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: left;
  margin: 0;
}
.dashboard-profile-account h3,
.dashboard-profile-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}
.dashboard-profile-dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}
.dashboard-profile-dl dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}
.dashboard-profile-dl dd {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}
.dashboard-profile-section + .dashboard-profile-section { margin-top: 1rem; }
.dashboard-profile-section-lead {
  margin: -0.35rem 0 1rem;
  max-width: 42rem;
}
.profile-photo-field { margin-top: 0; }
.profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.profile-photo-controls {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.profile-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
  border: 2px dashed rgba(180, 83, 9, 0.35);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  transition: border-color var(--transition), background var(--transition);
}
.profile-photo-upload:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.profile-photo-upload input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
}
.profile-photo-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #b91c1c;
  cursor: pointer;
  user-select: none;
}
.profile-photo-remove input { accent-color: #b91c1c; }
.profile-avatar-preview--muted { opacity: 0.65; filter: grayscale(0.25); }
.profile-photo-controls .form-hint { margin: 0; }

.current-listing-image {
  margin-bottom: 1rem; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); max-width: 280px;
}
.current-listing-image .form-hint { padding: 0.65rem 0.75rem; background: var(--bg); margin: 0; }

/* Thumbnail strips (artwork page, edit, upload) */
.thumb-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.5rem;
  padding: 0.5rem 0.25rem 0.85rem;
  margin: 0 -0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 83, 9, 0.45) transparent;
}
.thumb-strip::-webkit-scrollbar { height: 6px; }
.thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(180, 83, 9, 0.4);
  border-radius: 999px;
}
.thumb-item {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.thumb-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.thumb-index {
  position: absolute; top: 0.4rem; left: 0.4rem; z-index: 2;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(28, 25, 23, 0.72);
  border-radius: 999px;
}
.thumb-badge {
  position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
  background: var(--accent); padding: 0.2rem 0.45rem; border-radius: 4px;
}

.listing-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Listing form — photo cards (edit / sell) */
.listing-photos-field { margin-top: 0.25rem; }
.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 1.5rem;
}
.photo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.photo-card--cover {
  border-color: rgba(180, 83, 9, 0.4);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow);
}
.photo-card--pending-delete {
  opacity: 0.55;
}
.photo-card--pending-delete .photo-card-visual img {
  filter: grayscale(0.35);
}
.photo-card-visual {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-alt), #e5dfd4);
}
.photo-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.photo-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.photo-card-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.photo-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin-top: auto;
}
.photo-card-action {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.photo-card-action-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
}
.photo-card-action:hover .photo-card-action-text {
  color: var(--ink);
}
.photo-card-action-cover:has(.cover-radio:checked) .photo-card-action-text {
  color: var(--accent);
  font-weight: 600;
}
.photo-card-action-danger .photo-card-action-text {
  color: #b91c1c;
}
.photo-card-action-danger:hover .photo-card-action-text {
  color: #991b1b;
}
.photo-card--pending-delete .photo-card-action-cover {
  pointer-events: none;
  opacity: 0.45;
}
.photo-card--pending-delete .photo-card-action-danger .photo-card-action-text {
  font-weight: 600;
}
button.photo-card-action,
button.photo-card-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.listing-gallery { display: flex; flex-direction: column; gap: 1rem; }
.listing-image-count {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  background: rgba(28, 25, 23, 0.72); padding: 0.35rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.listing-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.thumb-nav {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.thumb-nav:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.thumb-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.listing-gallery-thumbs.thumb-strip {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0.65rem;
}
.listing-gallery-thumb {
  width: 92px;
  height: 92px;
  padding: 0;
  cursor: pointer;
  opacity: 0.9;
}
.listing-gallery-thumb:hover { opacity: 1; }
.listing-gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg);
  transform: scale(1.03);
}
.listing-gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.listing-row-actions { flex-wrap: wrap; }
.listing-table { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.listing-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.15rem;
  align-items: center;
  background: var(--surface);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.listing-row:hover {
  border-color: rgba(180, 83, 9, 0.22);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.listing-row-thumb { width: 84px; height: 84px; aspect-ratio: 1; }
.listing-row-info p { font-size: 0.85rem; color: var(--ink-muted); }
.listing-row-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* —— Checkout —— */
.checkout-layout {
  padding-bottom: 4rem;
  max-width: 1120px;
}
.checkout-header { margin-bottom: 1.5rem; }
.checkout-header-lead { max-width: 42rem; }
.checkout-flash { margin-bottom: 1.25rem; }
.checkout-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.checkout-empty-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}
.checkout-progress {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0;
}
.checkout-progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.checkout-progress-step.is-current {
  border-color: rgba(180, 83, 9, 0.35);
  background: var(--accent-soft);
  color: var(--ink);
}
.checkout-progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.checkout-progress-step.is-current .checkout-progress-num {
  background: var(--accent);
  color: #fff;
}
.checkout-progress-label { font-weight: 500; }
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.65rem 1.75rem;
}
.checkout-panel--muted { padding: 2rem; text-align: center; }
.checkout-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.checkout-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.checkout-panel-titles { flex: 1; min-width: 0; }
.checkout-panel-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.checkout-panel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.checkout-panel-sub strong { color: var(--ink); font-weight: 600; }
.checkout-artist-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.checkout-artist-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.checkout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.checkout-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.checkout-item:hover {
  border-color: rgba(180, 83, 9, 0.22);
  background: var(--surface);
}
.checkout-item-thumb { width: 88px; height: 88px; border-radius: var(--radius); }
.checkout-item-body { min-width: 0; }
.checkout-item-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.checkout-item-title:hover { color: var(--accent); }
.checkout-item-artist {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.checkout-item-price {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  margin: 0;
}
.checkout-summary-box {
  padding: 1rem 1.15rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.checkout-summary-box .order-summary {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.checkout-pay-box {
  padding-top: 0.25rem;
}
.checkout-pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  font-size: 1rem;
}
.checkout-pay-btn-label { font-weight: 600; }
.checkout-pay-btn-amount {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.95;
}
.checkout-pay-btn--test {
  background: linear-gradient(135deg, #78716c, #57534e);
}
.checkout-pay-btn--test:hover {
  background: linear-gradient(135deg, #57534e, #44403c);
}
.checkout-pay-perks {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.checkout-pay-perks li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.checkout-pay-perks li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.checkout-pay-message {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.checkout-pay-message--error { color: #b91c1c; }
.checkout-total { font-size: 1.1rem; margin-top: 1rem; }
.order-summary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}
.order-summary-row dt { color: var(--ink-muted); font-weight: 500; }
.order-summary-row dd { margin: 0; font-weight: 600; text-align: right; }
.order-summary-row--fee dd { color: var(--accent); }
.order-summary-row--muted { font-size: 0.82rem; }
.order-summary-row--muted dd { font-weight: 500; color: var(--ink-muted); }
.order-summary-row--total {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
}
.order-summary-row--total dt { color: var(--ink); font-weight: 600; }
.order-summary-row--total dd strong { font-size: 1.15rem; }
.order-summary-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0.75rem 0 0;
}
.order-summary--compact .order-summary-note { display: none; }
.cart-fee-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 0;
}
.checkout-pay-form { margin: 0; }
.checkout-test-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(180, 140, 60, 0.14), rgba(180, 83, 9, 0.08));
  border: 1px solid rgba(180, 140, 60, 0.4);
  font-size: 0.92rem;
  line-height: 1.5;
}
.checkout-test-banner-icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}
.checkout-test-banner p {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.checkout-shipping-fieldset { border: none; margin: 0; padding: 0; }
.checkout-shipping-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.checkout-shipping-section { }
.checkout-shipping-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
}
.checkout-shipping-grid { gap: 1rem 1.15rem; }
.checkout-aside { position: relative; }
.checkout-aside-card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
}
.checkout-aside-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.checkout-aside-stats {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.checkout-aside-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}
.checkout-aside-stats dt { color: var(--ink-muted); font-weight: 500; margin: 0; }
.checkout-aside-stats dd { margin: 0; font-weight: 600; }
.checkout-aside-stats-total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.checkout-aside-stats-estimate dd { color: var(--accent); font-size: 1.1rem; }
.checkout-aside-fees-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: -0.35rem 0 1rem;
}
.checkout-success-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.checkout-success-card .checkout-success-totals {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.checkout-success-card .btn { margin: 0.35rem; }
.checkout-aside-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}
.checkout-trust {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.checkout-trust span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}
.checkout-aside-link {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
.checkout-aside-link:hover { color: var(--accent); }
.checkout-aside-clear { margin: 0; }
.order-shipping-panel .order-shipping-address { line-height: 1.5; }
.listing-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.stripe-status-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stripe-status-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.stripe-status-list dt { color: var(--ink-muted); font-weight: 500; }
.stripe-status-list dd { margin: 0; font-weight: 600; text-align: right; }
.stripe-panel { max-width: 520px; }
.order-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-muted);
}
.order-status-paid { background: #dcfce7; color: #166534; }
.order-status-pending { background: #fef3c7; color: #92400e; }
.order-status-failed,
.order-status-cancelled { background: #fee2e2; color: #991b1b; }
/* Admin panel */
.page-admin .admin-nav {
  border-color: rgba(180, 83, 9, 0.35);
  background: linear-gradient(180deg, var(--surface) 0%, #faf8f5 100%);
}
.admin-nav-brand { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.admin-nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.admin-nav-email { font-size: 0.75rem; color: var(--ink-muted); word-break: break-all; }
.admin-main .dashboard-shell { max-width: 1400px; }
.admin-content { min-width: 0; }
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-kpi-grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.admin-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-empty { color: var(--ink-muted); font-size: 0.9rem; padding: 0.5rem 0; }
.admin-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.admin-list li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.admin-list li:last-child { border-bottom: none; padding-bottom: 0; }
.admin-list-meta { font-size: 0.8rem; color: var(--ink-muted); }
.admin-breakdown { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.admin-breakdown li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border);
}
.admin-breakdown li:last-child { border-bottom: none; }
.admin-quick-links { margin-top: 0.5rem; }
.admin-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 1.25rem;
}
.admin-filters--row .admin-search-grow { flex: 1; min-width: 200px; }
.admin-filters select,
.admin-filters input[type="search"] {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--surface);
}
.admin-table-wrap { overflow-x: auto; margin-top: 0.5rem; }
.admin-table-wrap--flush { margin-top: 0; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table--compact { font-size: 0.82rem; }
.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.admin-table tbody tr:hover { background: rgba(247, 244, 239, 0.6); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-thumb-cell { width: 56px; padding: 0.5rem !important; }
.admin-listing-thumb { width: 48px; height: 48px; display: block; }
.admin-cell-muted { display: block; font-size: 0.78rem; color: var(--ink-muted); font-weight: 400; }
.admin-actions-cell { white-space: nowrap; }
.admin-actions-cell .btn-text { margin-right: 0.5rem; }
.admin-inline-form { display: inline; }
.admin-inline-form select {
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.admin-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-muted);
}
.admin-pill--ok { background: #dcfce7; color: #166534; }
.admin-pill--warn { background: #fef3c7; color: #92400e; }
.admin-text-danger { color: #b91c1c !important; }
.admin-code {
  font-size: 0.75rem;
  word-break: break-all;
  background: var(--bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.admin-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-detail-list div:last-child { border-bottom: none; }
.admin-detail-list dt { color: var(--ink-muted); font-weight: 500; }
.admin-detail-list dd { margin: 0; font-weight: 600; text-align: right; }
.admin-code--block {
  display: block;
  text-align: right;
  max-width: 100%;
  word-break: break-all;
}
.admin-order-header .admin-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.admin-order-date { color: var(--ink-muted); font-size: 0.9rem; }
.admin-order-totals-panel { margin-bottom: 1.25rem; }
.admin-order-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.admin-order-summary {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-order-summary .order-summary-row--total {
  border-top: 1px dashed var(--border);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}
.admin-order-split-note { margin: 0.75rem 0 0; }
.admin-order-detail-grid { grid-template-columns: repeat(3, 1fr); }
.admin-order-subhead {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 1rem 0 0.65rem;
}
.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.admin-order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-order-item-thumb { width: 72px; height: 72px; }
.admin-order-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink-muted);
  opacity: 0.4;
}
.admin-order-item-body p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.admin-order-item-price {
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}
.order-shipping-address { text-align: right; line-height: 1.45; }
.fulfillment-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.fulfillment-badge--awaiting {
  background: rgba(180, 83, 9, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(180, 83, 9, 0.35);
}
.fulfillment-badge--shipped {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.3);
}
.fulfillment-badge--delivered {
  background: var(--bg-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.order-fulfillment-panel .order-ship-form { margin-top: 1rem; }
.order-fulfillment-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* Dashboard — Sales */
.sales-stats { margin-bottom: 1.25rem; }
.stat-card--highlight {
  border-color: rgba(180, 83, 9, 0.4);
  background: var(--accent-soft);
}
.stat-card--highlight .stat-value { color: var(--accent); }
.sales-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.sales-filter {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.sales-filter:hover { color: var(--ink); border-color: rgba(180, 83, 9, 0.3); }
.sales-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sales-filter-empty { margin-bottom: 1.5rem; }
.sales-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sales-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sales-order-card:hover {
  border-color: rgba(180, 83, 9, 0.25);
  box-shadow: var(--shadow-lg);
}
.sales-order-card--action {
  border-color: rgba(180, 83, 9, 0.35);
  background: linear-gradient(135deg, var(--surface) 70%, var(--accent-soft) 100%);
}
.sales-order-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.sales-order-date { font-size: 0.82rem; color: var(--ink-muted); }
.sales-order-buyer {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}
.sales-order-address {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.sales-order-amounts {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  font-size: 0.88rem;
}
.sales-order-amounts div { display: flex; gap: 0.4rem; align-items: baseline; }
.sales-order-amounts dt { color: var(--ink-muted); font-weight: 500; margin: 0; }
.sales-order-amounts dd { margin: 0; font-weight: 600; }
.sales-order-card-actions { text-align: right; }
.sales-empty { text-align: center; padding: 2.5rem 1.5rem; }
.sales-empty-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 0.75rem;
}
.sales-empty h2 { font-family: var(--font-display); font-size: 1.65rem; margin-bottom: 0.5rem; }
.sales-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  vertical-align: middle;
}
.sales-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 0.5rem;
}
.sales-detail-meta time { color: var(--ink-muted); font-size: 0.9rem; }
.sales-ship-callout {
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(180, 83, 9, 0.35);
}
.sales-ship-callout p { margin: 0.35rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.sales-earnings-panel { margin-bottom: 1.25rem; }
.sales-earnings-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sales-earnings-label { font-size: 0.85rem; color: var(--ink-muted); }
.sales-earnings-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}
.sales-earnings-breakdown {
  margin: 0;
  padding: 0;
  border-top: none;
}
.sales-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Maintenance modal */
.maintenance-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.maintenance-modal[hidden] { display: none; }
.maintenance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
}
.maintenance-modal-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  outline: none;
}
.maintenance-modal-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.maintenance-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.2;
}
.maintenance-modal-message {
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}
.maintenance-modal-note { margin-bottom: 1.35rem; }
.maintenance-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
body.maintenance-modal-open { overflow: hidden; }

/* Preview gate (pre-launch) */
.page-preview-gate {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 95% -5%, rgba(180, 83, 9, 0.14), transparent 58%),
    radial-gradient(ellipse 65% 45% at 0% 100%, rgba(28, 25, 23, 0.07), transparent 52%);
}
.preview-gate-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.preview-gate-frame {
  position: absolute;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--surface);
  opacity: 0.55;
  animation: previewFloat 14s ease-in-out infinite;
}
.preview-gate-frame--1 {
  width: min(28vw, 220px);
  height: min(36vw, 280px);
  top: 8%;
  right: 6%;
  transform: rotate(6deg);
  background-image: linear-gradient(135deg, #d4a574, #8b5a2b);
  animation-delay: 0s;
}
.preview-gate-frame--2 {
  width: min(24vw, 190px);
  height: min(30vw, 230px);
  bottom: 12%;
  left: 4%;
  transform: rotate(-5deg);
  background-image: linear-gradient(160deg, #6b7f8a, #3d4f5c);
  animation-delay: -4s;
}
.preview-gate-frame--3 {
  width: min(18vw, 150px);
  height: min(22vw, 180px);
  top: 42%;
  left: 12%;
  transform: rotate(-9deg);
  background-image: linear-gradient(120deg, #c9b8a8, #7a6b5d);
  animation-delay: -8s;
  opacity: 0.4;
}
@keyframes previewFloat {
  0%, 100% { transform: translateY(0) rotate(var(--preview-rotate, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--preview-rotate, 0deg) + 2deg)); }
}
.preview-gate-frame--1 { --preview-rotate: 6deg; }
.preview-gate-frame--2 { --preview-rotate: -5deg; }
.preview-gate-frame--3 { --preview-rotate: -9deg; }

.preview-gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
}
.preview-gate-layout {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.preview-gate-intro {
  animation: fadeUp 0.5s var(--ease-out) both;
}
.preview-gate-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.preview-gate-logo span { color: var(--accent); font-style: italic; }
.preview-gate-logo:hover { color: var(--ink); }
.preview-gate-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.preview-gate-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.preview-gate-lead {
  color: var(--ink-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.65;
  max-width: 34rem;
}
.preview-gate-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  animation: fadeUp 0.55s var(--ease-out) 0.08s both;
}
.preview-gate-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.preview-gate-form-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.preview-gate-error {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(185, 28, 28, 0.07);
  border: 1px solid rgba(185, 28, 28, 0.18);
}
.preview-gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.preview-gate-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.preview-gate-form input[type="password"],
.preview-gate-form input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.preview-gate-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.preview-gate-form .password-field input {
  padding-right: 2.75rem;
}
.preview-gate-form .btn-primary {
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}
.preview-gate-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

@media (min-width: 860px) {
  .preview-gate-layout {
    grid-template-columns: 1.05fr minmax(300px, 400px);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
  .preview-gate-frame { opacity: 0.7; }
  .preview-gate-frame--3 { opacity: 0.55; }
}

@media (max-width: 859px) {
  .preview-gate-intro { text-align: center; }
  .preview-gate-title { max-width: none; margin-inline: auto; }
  .preview-gate-lead { margin-inline: auto; }
  .preview-gate-bg { opacity: 0.45; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  padding: 1.15rem 0 1.25rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 40px rgba(28, 25, 23, 0.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-banner-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}
.cookie-banner-copy h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.35rem;
}
.cookie-banner-copy p {
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.cookie-banner-copy a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-copy a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
}
.cookie-btn-primary:hover { background: var(--accent-hover); }
.cookie-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
}
.cookie-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
body.cookie-banner-visible { padding-bottom: 7.5rem; }
.footer-link-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.footer-link-btn:hover { color: #fff; }
.footer-legal .footer-link-btn {
  display: inline;
  width: auto;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal .footer-link-btn:hover { color: #fff; }
.admin-checklist {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}
.admin-settings-form { max-width: 900px; }
.admin-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-settings-intro { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-settings-actions { margin-top: 0; }
.admin-settings-readonly { margin-top: 1.5rem; }

.admin-hero-panel { margin-top: 1.5rem; }
.admin-hero-panel-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.25rem;
}
.admin-hero-slots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem;
}
.admin-hero-slot {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem;
  background: var(--surface); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-hero-slot--active {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
.admin-hero-slot-label {
  display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.65rem;
}
.admin-hero-slot-preview {
  position: relative; height: 120px; margin-bottom: 0.65rem; border-width: 4px;
}
.admin-hero-slot-preview--empty {
  display: grid; place-items: center; background: var(--surface-2);
}
.admin-hero-slot-placeholder { font-size: 0.85rem; color: var(--ink-muted); }
.admin-hero-slot-title {
  font-size: 0.85rem; margin: 0 0 0.35rem; line-height: 1.35;
}
.admin-hero-slot-title--muted { color: var(--ink-muted); }
.admin-hero-picker-hint { margin-bottom: 1rem; }
.admin-hero-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem;
  max-height: 420px; overflow: auto; padding: 0.25rem; margin-bottom: 1rem;
}
.admin-hero-pick {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.admin-hero-pick:hover { border-color: var(--accent); transform: translateY(-1px); }
.admin-hero-pick-thumb { aspect-ratio: 1; width: 100%; }
.admin-hero-pick-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-hero-pick-meta strong {
  font-size: 0.8rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.admin-hero-pick-meta span { font-size: 0.75rem; color: var(--ink-muted); }
.admin-hero-actions { margin-top: 0; }

@media (max-width: 720px) {
  .admin-hero-slots { grid-template-columns: 1fr; }
}
.admin-user-edit-form { max-width: 900px; }
.admin-actions-cell { white-space: nowrap; }
.admin-actions-cell .btn-text + .btn-text { margin-left: 0.75rem; }
.admin-two-col--tight { margin-bottom: 0; }
.checkout-form-card {
  background: var(--surface); padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.checkout-form-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
.checkout-clear { margin-top: 0.75rem; }
.checkout-continue { display: block; text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--ink-muted); }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { color: var(--ink-muted); margin-bottom: 1.5rem; }
.empty-state .btn { margin: 0 0.5rem; }

.section-related { padding-top: 0; padding-bottom: 4rem; }

.demo-banner {
  background: var(--accent-soft); border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: var(--radius); padding: 0.85rem 1rem; font-size: 0.85rem;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.demo-banner code { font-size: 0.8rem; background: var(--surface); padding: 0.1rem 0.35rem; border-radius: 4px; }

/* Footer */
.site-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--border); background: var(--ink); color: rgba(255,255,255,0.7); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; max-width: 280px; }
.footer-col h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #fbbf24; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-demo { font-size: 0.8rem; opacity: 0.7; margin-top: 0.5rem; }
.footer-demo code { color: #fbbf24; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.footer-legal a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; opacity: 0.6; }

/* Legal pages */
.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.legal-nav-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid transparent;
}
.legal-nav-link:hover {
  color: var(--ink);
  background: var(--surface-muted);
}
.legal-nav-link.active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.legal-document {
  max-width: 46rem;
}
.legal-document section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.legal-document h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.legal-document p,
.legal-document li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal-document p + p { margin-top: 0.75rem; }
.legal-document ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.legal-document a { color: var(--accent); }
.legal-document a:hover { text-decoration: underline; }

/* Auth nav */
.auth-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.auth-login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted) !important;
}
.auth-login:hover { color: var(--ink) !important; }
.auth-signup {
  font-size: 0.85rem !important;
  font-weight: 500;
  color: var(--surface) !important;
  background: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.auth-signup:hover {
  background: var(--accent);
  color: var(--surface) !important;
}
.auth-greeting {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.auth-logout {
  font-size: 0.9rem;
}

/* Auth pages */
.page-auth .auth-main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.45s var(--ease-out) both;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.auth-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.auth-form .form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}
.auth-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.account-type-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.account-type-fieldset legend {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}
.account-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.account-type-option {
  cursor: pointer;
}
.account-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.account-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.account-type-card strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.account-type-card small {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.account-type-option input:checked + .account-type-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}
.account-type-option input:focus-visible + .account-type-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.auth-terms-group { margin-top: 0.15rem; }
.auth-terms {
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.auth-terms input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.auth-terms a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-terms a:hover { color: var(--accent-hover); }
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.password-toggle:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.password-toggle svg {
  display: block;
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.auth-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3rem; }
  .hero-visual { height: 280px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .sell-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .artists-hero-inner { flex-direction: column; align-items: stretch; }
  .artists-stats { width: 100%; }
  .artists-stats div { flex: 1; }
  .artists-toolbar { flex-direction: column; align-items: stretch; }
  .artists-search, .artists-sort { width: 100%; }
  .artist-profile-grid { grid-template-columns: 1fr; }
  body.cookie-banner-visible { padding-bottom: 10rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1; min-width: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-aside-card { position: static; }
  .checkout-progress { flex-direction: column; }
  .account-stats { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-profile-layout { grid-template-columns: 1fr; }
  .dashboard-profile-aside { position: static; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .listing-visual { position: static; }
  .admin-order-totals-grid,
  .admin-order-detail-grid { grid-template-columns: 1fr; }
  .sales-detail-grid { grid-template-columns: 1fr; }
  .sales-order-card { grid-template-columns: 1fr; }
  .sales-order-card-actions { text-align: left; }
}
@media (max-width: 640px) {
  .account-type-options { grid-template-columns: 1fr; }
  .header-right .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 1rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition); z-index: 99;
  }
  .header-right .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header-right .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .header-right .nav-cta { text-align: center; margin-top: 0.5rem; }
  .auth-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  .auth-signup { text-align: center; }
  .menu-toggle { display: flex; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
  .gallery-tools, .gallery-tools input, .gallery-tools select { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .photo-cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .listing-gallery-thumb { width: 80px; height: 80px; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item-thumb { width: 64px; height: 64px; }
  .listing-row { grid-template-columns: 72px 1fr auto; }
  .listing-row-thumb { width: 72px; height: 72px; }
  .checkout-item { grid-template-columns: 72px 1fr; }
  .checkout-item-price {
    grid-column: 2;
    text-align: left;
    margin-top: 0.15rem;
  }
  .checkout-item-thumb { width: 72px; height: 72px; }
  .checkout-panel { padding: 1.25rem 1.15rem 1.5rem; }
  .checkout-panel-head { flex-wrap: wrap; }
  .checkout-pay-btn { flex-direction: column; align-items: stretch; text-align: center; gap: 0.25rem; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
  .thumb-nav { width: 32px; height: 32px; font-size: 1.2rem; }
}
