/* =========================================================================
   PaintedTabletop — design system
   Dark-mode-as-hero. Copper / amber / gold over near-black & parchment.
   ========================================================================= */

:root {
  --gold:        #d5a84f;
  --gold-bright: #ffd77d;
  --copper:      #bd7d35;
  --copper-deep: #7a4a18;
  --red:         #c74334;
  --green:       #cfa94d;
  --blue:        #1783f7;
  --teal:        #d3a64c;
  --rose:        #c74334;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif:   "EB Garamond", Georgia, serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 44px -24px rgba(0,0,0,.72);
  --shadow-lg: 0 34px 90px -38px rgba(0,0,0,.9);
  --ring: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent);
  --t: .22s cubic-bezier(.4,0,.2,1);
}

/* ---------- DARK (default) ---------- */
[data-theme="dark"] {
  --bg:        #050505;
  --bg-2:      #0a0a0a;
  --surface:   #101012;
  --surface-2: #171719;
  --surface-3: #202023;
  --border:    #383027;
  --border-soft: #25211d;
  --text:      #fbf4e6;
  --text-dim:  #d8c7a7;
  --muted:     #a59780;
  --gold:        #d5a84f;
  --gold-bright: #ffd77d;
  --copper:      #bd7d35;
  --red:         #c74334;
  --green:       #cfa94d;
  --hero-glow:
    radial-gradient(900px 500px at 76% 8%, rgba(213,168,79,.22), transparent 64%),
    radial-gradient(680px 420px at 0% 16%, rgba(199,67,52,.13), transparent 60%),
    linear-gradient(140deg, #050505 0%, #0b0b0c 48%, #11100d 100%);
  color-scheme: dark;
}

/* ---------- LIGHT (parchment) ---------- */
[data-theme="light"] {
  --bg:        #f3ead8;
  --bg-2:      #fbf6ea;
  --surface:   #fffaf0;
  --surface-2: #f5ead5;
  --surface-3: #eee0c2;
  --border:    #d6c4a0;
  --border-soft: #e4d5b8;
  --text:      #201a12;
  --text-dim:  #54442f;
  --muted:     #74664d;
  --gold:        #a87925;
  --gold-bright: #8b5d12;
  --copper:      #a95431;
  --red:         #ba3d31;
  --green:       #317f54;
  --teal:        #a87925;
  --hero-glow:
    radial-gradient(900px 500px at 76% 8%, rgba(168,121,37,.22), transparent 64%),
    linear-gradient(140deg, #fff8e9 0%, #f5ead3 55%, #efe0be 100%);
  color-scheme: light;
  --shadow: 0 18px 44px -26px rgba(80,52,20,.45);
  --shadow-lg: 0 30px 70px -34px rgba(80,52,20,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 861px) {
  html {
    font-size: 80%;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  background:
    linear-gradient(180deg, var(--bg), var(--bg-2) 45%, var(--bg)),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,215,125,.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,125,.34) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: .01em; margin: 0; }

::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #e7c989, #b5703a);
  color: #20160a; box-shadow: 0 10px 26px -12px rgba(181,112,58,.8);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(181,112,58,.95); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-dark { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-dark:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent; padding: 10px 0;
  transition: padding var(--t);
}
/* floating inset bar — sits a little in from both edges so it never touches the walls */
.header-inner {
  display: flex; align-items: center; gap: .7rem; height: 52px;
  width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 0 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: 0 10px 30px -24px rgba(0,0,0,.65);
  transition: height var(--t), background var(--t), box-shadow var(--t), border-color var(--t);
}
/* condense + lift a touch more once scrolled */
.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .header-inner {
  height: 46px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}
.brand { display: flex; align-items: center; gap: .5rem; margin-right: .3rem; }
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.55)); transition: width var(--t), height var(--t); }
.site-header.scrolled .brand-logo { width: 34px; height: 34px; }
.brand-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a2014, #120d07); border: 1px solid var(--border);
  border-radius: 9px; box-shadow: inset 0 1px 0 rgba(231,201,137,.18); }
.brand-mark svg { width: 17px; height: 17px; fill: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .02em; color: var(--text); }
.brand-name span { color: var(--gold); }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: .6rem; color: var(--muted); margin-top: 2px; }

.main-nav { display: flex; gap: .1rem; margin-left: .4rem; }
.main-nav a {
  font-weight: 600; font-size: .82rem; color: var(--text-dim); padding: .35rem .55rem; border-radius: 7px;
  position: relative; white-space: nowrap; transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 9%, transparent); }

.header-tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn {
  position: relative; width: 33px; height: 33px; flex: none; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border-soft); border-radius: 9px; cursor: pointer;
  color: var(--text-dim); transition: var(--t);
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* compact header buttons + controls */
.header-tools .btn { padding: .42rem .8rem; font-size: .82rem; }
.header-tools .select-wrap select { padding: .38rem 1.4rem .38rem .55rem; font-size: .74rem; border-radius: 9px; }
.header-tools .select-wrap::after { font-size: .6rem; right: .45rem; }
.i-sun { display: none; }
[data-theme="light"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: block; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; font-family: var(--sans); font-weight: 600; font-size: .82rem;
  background: transparent; color: var(--text-dim); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: .5rem 1.6rem .5rem .7rem; cursor: pointer; transition: var(--t);
}
.select-wrap::after { content: "▾"; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: .7rem; }
.select-wrap select:hover { border-color: var(--gold); color: var(--gold-bright); }
.select-wrap option { background: var(--surface); color: var(--text); }

.cart-count[hidden] { display: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: #20160a;
  background: linear-gradient(135deg, #e7c989, #b5703a); border-radius: 999px;
}
.hdr-form { display: flex; align-items: center; }
.hdr-search {
  width: 0; opacity: 0; padding: 0; border: 0; transition: width var(--t), opacity var(--t), padding var(--t);
  background: var(--surface-2); color: var(--text); border-radius: 10px;
}
.hdr-search.open { width: 220px; opacity: 1; padding: .5rem .8rem; border: 1px solid var(--border); margin-left: .4rem; }

.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: .4rem; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: .2rem .7rem .2rem .2rem; cursor: pointer; color: var(--text); transition: var(--t); }
.user-chip:hover { border-color: var(--gold); }
.user-chip-name { font-weight: 600; font-size: .8rem; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; display: grid; }
.user-dropdown[hidden] { display: none; }
.user-dropdown a, .user-dropdown button { text-align: left; padding: .6rem .8rem; border-radius: 8px; font-size: .9rem;
  font-weight: 500; color: var(--text-dim); background: none; border: 0; cursor: pointer; font-family: var(--sans); }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--gold-bright); }

/* ---------- notification bell ---------- */
.notif-menu { position: relative; }
.notif-btn { position: relative; }
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; font-size: .64rem; font-weight: 800; color: #20160a;
  background: linear-gradient(135deg, #e7c989, #b5703a); border-radius: 999px; border: 1.5px solid var(--bg);
}
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: 86vw; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.notif-dropdown[hidden] { display: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-soft); }
.notif-head strong { font-size: .95rem; }
.notif-readall { background: none; border: 0; cursor: pointer; color: var(--gold-bright); font-size: .78rem; font-weight: 600; font-family: var(--sans); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-list > a { display: block; text-decoration: none; }
.notif-row { padding: .7rem 1rem; border-bottom: 1px solid var(--border-soft); display: grid; gap: .2rem; transition: background .15s; }
.notif-list > a:hover .notif-row { background: var(--surface-2); }
.notif-row p { margin: 0; font-size: .85rem; color: var(--text); line-height: 1.4; }
.notif-row span { font-size: .72rem; color: var(--muted); }
.notif-row.unread { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.notif-row.unread p::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); margin-right: .45rem; vertical-align: middle; }
.notif-empty { padding: 1.6rem 1rem; text-align: center; color: var(--muted); font-size: .85rem; }
.notif-foot { display: block; text-align: center; padding: .7rem; font-size: .82rem; font-weight: 600; color: var(--gold-bright); border-top: 1px solid var(--border-soft); }
.notif-foot:hover { background: var(--surface-2); }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700;
  font-family: var(--display); border: 1px solid rgba(255,255,255,.18); flex: none; }

.menu-toggle, .hide-sm { display: none; }

/* ---------- flash ---------- */
.flash-stack { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 22px; display: grid; gap: .5rem; position: relative; z-index: 2; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem;
  border-radius: 10px; font-weight: 500; font-size: .92rem; border: 1px solid; animation: slideDown .4s; }
.flash-success { background: color-mix(in srgb, var(--green) 16%, var(--surface)); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.flash-error   { background: color-mix(in srgb, var(--red) 16%, var(--surface));   border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.flash-x { background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; opacity: .7; line-height: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: var(--hero-glow); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-bright); padding: .4rem .9rem; border: 1px solid var(--border);
  border-radius: 999px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 800; margin: 1.3rem 0 0; letter-spacing: .005em;
  background: linear-gradient(135deg, var(--text) 35%, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.32rem); color: var(--text-dim); max-width: 33ch; margin: 1.3rem 0 2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--gold-bright); }
.hero-stat .l { font-size: .82rem; color: var(--muted); }

.hero-art { position: relative; height: 460px; }
.hero-card {
  position: absolute; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); background: var(--surface);
}
.hero-card .mini-art { width: 100%; height: 100%; }
.hero-card.c1 { width: 58%; height: 78%; right: 8%; top: 4%; z-index: 3; }
.hero-card.c2 { width: 44%; height: 56%; left: 0; top: 16%; z-index: 2; transform: rotate(-4deg); }
.hero-card.c3 { width: 40%; height: 48%; right: 0; bottom: 0; z-index: 4; transform: rotate(3deg); }
.hero-card .hc-tag { position: absolute; left: 10px; bottom: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; background: rgba(10,7,4,.7); color: var(--gold-bright); backdrop-filter: blur(4px); }
.hero-float { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.hero-float.f1 { left: -4%; bottom: 14%; }
.hero-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb,var(--green) 25%, transparent); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head > div { min-width: 0; display: block; }
.section-head .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
}
.section-head h2 { display: block; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: .4rem; max-width: 22ch; }
.section-head p { color: var(--muted); margin: .5rem 0 0; max-width: 52ch; }
.section-alt { background: linear-gradient(var(--bg-2), var(--bg)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.link-more { color: var(--gold-bright); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-more:hover { gap: .6rem; }

/* ---------- listing card ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0c0905; }
.card-media .mini-art { width: 100%; height: 100%; transition: transform .5s; }
.card:hover .card-media .mini-art,
.card:hover .card-media .listing-photo { transform: scale(1.05); }
.listing-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c0905;
  transition: transform .5s;
}
/* Honest "no photo yet" placeholder — replaces the old generated miniature art. */
.listing-noart {
  width: 100%; height: 100%; min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(160deg, var(--surface-2, #15110b), #0c0905);
  color: var(--muted); text-align: center; padding: .6rem;
}
.listing-noart svg { width: 30px; height: 30px; opacity: .45; }
.listing-noart span { font-size: .72rem; letter-spacing: .03em; opacity: .75; }
/* Compact contexts (small thumbnails) — icon only. */
.row-item .thumb .listing-noart span,
.cart-line .thumb .listing-noart span,
.offer-row .thumb .listing-noart span,
.detail-thumb .listing-noart span { display: none; }
.row-item .thumb .listing-noart svg,
.cart-line .thumb .listing-noart svg,
.offer-row .thumb .listing-noart svg,
.detail-thumb .listing-noart svg { width: 20px; height: 20px; }
.detail-media .listing-noart { aspect-ratio: 1/1; }
.quote-note { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: .8rem 1rem; color: var(--muted); font-size: .85rem; line-height: 1.5; margin-top: .5rem; }
.card-body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--text); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card-seller { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.verified-tick { width: 14px; height: 14px; flex: none; fill: var(--gold); vertical-align: middle; }
.detail-seller .verified-tick { width: 16px; height: 16px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding-top: .4rem; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.18rem; color: var(--gold-bright); }
.price small { display: block; font-family: var(--sans); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.price-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .28rem .55rem; border-radius: 6px; border: 1px solid; }
.badge-grade { position: absolute; top: 10px; left: 10px; z-index: 2; backdrop-filter: blur(6px); }
.grade-tabletop { background: rgba(63,111,176,.22); border-color: rgba(63,111,176,.55); color: #b9d2f2; }
.grade-parade   { background: rgba(181,112,58,.24); border-color: rgba(181,112,58,.6); color: #e9c79b; }
.grade-golden   { background: rgba(201,169,110,.26); border-color: var(--gold); color: var(--gold-bright); }
[data-theme="light"] .grade-tabletop { color: #25517f; }
[data-theme="light"] .grade-parade { color: #80471a; }
[data-theme="light"] .grade-golden { color: #876314; }
.badge-count { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(10,7,4,.65); border-color: transparent; color: var(--text-dim); backdrop-filter: blur(6px); }
.badge-featured { background: linear-gradient(135deg, #e7c989, #b5703a); color: #20160a; border-color: transparent; }
.faction-chip { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.faction-dot { width: 9px; height: 9px; border-radius: 50%; }

/* auction live bits */
.auc-clock { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; background: rgba(10,7,4,.72);
  color: var(--gold-bright); backdrop-filter: blur(6px); border: 1px solid var(--border); }
.auc-clock.urgent { color: #ffd0c4; border-color: var(--red); background: rgba(80,20,16,.7); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb,var(--red) 60%, transparent); } 50% { opacity: .5; box-shadow: 0 0 0 5px transparent; } }

/* ---------- how-it-works / feature trio ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: var(--t); }
.feature:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); transform: translateY(-4px); }
.feature .fnum { font-family: var(--display); font-size: 1.1rem; color: var(--copper); }
.feature .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb,var(--gold) 30%, transparent), transparent); border: 1px solid var(--border); }
.feature .ficon svg { width: 24px; height: 24px; stroke: var(--gold-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- grade explainer ---------- */
.grade-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.grade-card { border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.grade-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.grade-card.g-tabletop::before { background: #3f6fb0; }
.grade-card.g-parade::before { background: var(--copper); }
.grade-card.g-golden::before { background: linear-gradient(90deg, var(--gold-bright), var(--copper)); }
.grade-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.grade-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.grade-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- trust pillars ---------- */
.trust-row { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.trust-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); }
.trust-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 22px; overflow: hidden; padding: clamp(2.4rem,5vw,4rem); text-align: center;
  background: radial-gradient(900px 400px at 50% -40%, rgba(181,112,58,.4), transparent 60%), var(--surface); border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band p { color: var(--text-dim); max-width: 50ch; margin: 1rem auto 2rem; font-family: var(--serif); font-size: 1.15rem; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(2.4rem,5vw,3.6rem) 0 1.5rem; background: var(--hero-glow); border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: var(--text-dim); max-width: 60ch; font-family: var(--serif); font-size: 1.12rem; margin-top: .6rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.toolbar .count { color: var(--muted); font-size: .9rem; margin-right: auto; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-size: .82rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-dim); background: var(--surface); transition: var(--t); cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.chip.is-active { background: linear-gradient(135deg, #e7c989, #b5703a); color: #20160a; border-color: transparent; }
.filter-select { appearance: none; -webkit-appearance: none; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: .55rem 2rem .55rem .9rem; font-family: var(--sans); font-weight: 600; font-size: .85rem; cursor: pointer; }

/* ---------- listing detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #0c0905; position: relative; box-shadow: var(--shadow); }
.detail-media .mini-art { width: 100%; aspect-ratio: 1/1; }
.detail-media .listing-photo { aspect-ratio: 1/1; }
.detail-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-top: .8rem; }
.detail-thumb { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-soft); background: #0c0905; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: .4rem 0 .8rem; }
.detail-seller { display: flex; align-items: center; gap: .7rem; padding: .9rem; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); margin: 1.2rem 0; }
.detail-seller .meta { line-height: 1.3; }
.detail-seller .sname { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .35rem; }
.detail-seller .ssub { font-size: .8rem; color: var(--muted); }
.tier-badge { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .5rem; border-radius: 5px;
  background: color-mix(in srgb, var(--gold) 18%, transparent); border: 1px solid var(--gold); color: var(--gold-bright); }
.price-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; background: var(--surface-2); }
.price-box .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--gold-bright); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; margin: 1.4rem 0; }
.spec-list .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec-list .v { font-weight: 600; color: var(--text); }
.detail-desc { font-family: var(--serif); font-size: 1.12rem; color: var(--text-dim); line-height: 1.7; }
.protect-note { display: flex; gap: .7rem; padding: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); margin-top: 1.2rem; }
.protect-note svg { width: 22px; height: 22px; flex: none; stroke: var(--green); fill: none; stroke-width: 1.8; }
.protect-note p { margin: 0; font-size: .88rem; color: var(--text-dim); }
.protect-note strong { color: var(--text); }

/* bid form */
.bid-form { display: flex; gap: .6rem; margin-top: 1rem; }
.bid-form .input-money { position: relative; flex: 1; }
.bid-form input { width: 100%; padding: .85rem 1rem .85rem 2rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.1rem; font-weight: 700; font-family: var(--display); }
.bid-form .cur { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.bid-help { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.auction-condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin: .6rem 0 0;
  padding: .65rem .75rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  font-size: .82rem;
}
.auction-condition strong { color: var(--text); }
.auction-condition span { color: var(--gold-bright); font-weight: 800; }
.auction-condition.is-met {
  border-color: color-mix(in srgb, var(--green) 42%, var(--border));
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
.bid-history { margin-top: 1rem; border-top: 1px solid var(--border-soft); }
.bid-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--border-soft); font-size: .88rem; }
.bid-row .who { color: var(--text-dim); display: flex; align-items: center; gap: .5rem; }
.bid-row .amt { font-weight: 700; color: var(--gold-bright); font-family: var(--display); }

/* countdown big */
.countdown { display: flex; gap: .6rem; margin: .4rem 0 1rem; }
.cd-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; text-align: center; min-width: 56px; }
.cd-cell .n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--gold-bright); line-height: 1; }
.cd-cell .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.countdown.urgent .cd-cell { border-color: var(--red); }

/* ---------- commissions ---------- */
.comm-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; transition: var(--t); }
.comm-card:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }
.comm-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.comm-card h3 { font-size: 1.15rem; }
.comm-brief { color: var(--muted); font-size: .92rem; }
.comm-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-dim); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border-soft); }
.comm-meta b { color: var(--gold-bright); font-family: var(--display); }

/* ---------- showcase ---------- */
.masonry { columns: 4; column-gap: 1.2rem; }
.masonry .show-item { break-inside: avoid; margin-bottom: 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); position: relative; background: #0c0905; }
.masonry .show-item .mini-art,
.masonry .show-item .listing-photo { width: 100%; min-height: 260px; }
.show-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem; background: linear-gradient(transparent, rgba(8,5,3,.9));
  font-size: .82rem; color: var(--text); display: flex; align-items: center; gap: .5rem; opacity: 0; transition: var(--t); }
.show-item:hover .cap { opacity: 1; }

/* ---------- auth pages ---------- */
.auth-page { min-height: 70vh; display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 2.2rem; }
.auth-card .auth-logo { display: flex; justify-content: center; margin-bottom: .4rem; }
.auth-title { text-align: center; font-size: 1.6rem; margin-bottom: 1.4rem; }
.auth-form label { display: block; margin-bottom: .9rem; }
.auth-form label > span { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem; }
.auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=text],
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: 11px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-family: var(--sans); font-size: .95rem; transition: var(--t); }
.auth-form input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.upload-hint {
  display: block;
  margin-top: .38rem;
  color: var(--muted);
  font-size: .78rem;
}
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}
.image-preview {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.image-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border-soft);
  background: #0c0905;
}
.image-preview small {
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verify-callout {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}
.verify-callout strong { color: var(--gold-bright); }
.verify-callout p { margin: 0; color: var(--text-dim); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.1rem; }
.role-opt { position: relative; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: block; padding: .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); transition: var(--t); height: 100%; }
.role-opt strong { display: block; font-size: .92rem; color: var(--text); }
.role-opt small { color: var(--muted); font-size: .76rem; }
.role-opt input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); box-shadow: var(--ring); }
.check { display: flex !important; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--text-dim); margin: .2rem 0 1.2rem; }
.check input { margin-top: .15rem; accent-color: var(--copper); }
.form-error { color: #ffb4ab; background: color-mix(in srgb, var(--red) 18%, transparent); border: 1px solid color-mix(in srgb,var(--red) 45%, transparent);
  padding: .6rem .8rem; border-radius: 9px; font-size: .85rem; margin: 0 0 1rem; }
.auth-tabs { display: flex; gap: .4rem; background: var(--bg-2); padding: .3rem; border-radius: 12px; margin-bottom: 1.6rem; }
.auth-tab { flex: 1; padding: .6rem; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 600; font-family: var(--sans); cursor: pointer; }
.auth-tab.is-active { background: var(--surface); color: var(--gold-bright); box-shadow: var(--shadow); }
.auth-alt { text-align: center; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.auth-alt a { color: var(--gold-bright); font-weight: 600; }

/* ---------- fields (generic forms) ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row:has(> .field[hidden]) > .field:not([hidden]) { grid-column: 1 / -1; }
textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.dash-side { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.2rem; }
.dash-side .me { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 1rem; }
.dash-nav { display: grid; gap: .2rem; }
.dash-nav a { padding: .6rem .8rem; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--text-dim); }
.dash-nav a:hover, .dash-nav a.active { background: var(--surface-2); color: var(--gold-bright); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat-card { display: flex; align-items: center; gap: .85rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 1rem 1.05rem; transition: border-color .2s, transform .2s; }
.stat-card:hover { border-color: color-mix(in srgb, var(--gold) 34%, var(--border)); transform: translateY(-2px); }
.stat-card .stat-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat-card .stat-ic svg { width: 20px; height: 20px; }
.stat-ic-gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-bright); }
.stat-ic-green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.stat-ic-blue { background: color-mix(in srgb, #5b8fd6 20%, transparent); color: #8fb6ee; }
.stat-ic-copper { background: color-mix(in srgb, var(--copper) 22%, transparent); color: var(--gold-bright); }
.stat-card .stat-body { min-width: 0; }
.stat-card .n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.stat-card .l { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.stat-delta { display: inline-block; font-size: .72rem; font-weight: 700; margin-top: .22rem; color: var(--muted); }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: #ff9a8f; }

/* ---- dashboard summary hero + sparkline ---- */
.dash-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); }
.dash-sum-left { display: grid; gap: 1.1rem; }
.sum-head { display: flex; flex-direction: column; }
.sum-big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--gold-bright); line-height: 1; }
.sum-l { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.sum-sub { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.sum-sub .sum-n { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text); display: block; }
.sum-sub .sum-l { text-transform: none; letter-spacing: 0; }
.dash-sum-chart { border-left: 1px solid var(--border-soft); padding-left: 1.6rem; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; font-size: .8rem; color: var(--muted); }
.chart-head strong { color: var(--text); font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }
.spark { width: 100%; height: 60px; display: block; overflow: visible; }
.spark-area { fill: color-mix(in srgb, var(--gold) 16%, transparent); stroke: none; }
.spark-line { fill: none; stroke: var(--gold-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-dot { fill: var(--gold-bright); }
.dash-empty { padding: 1.4rem; text-align: center; color: var(--muted); display: grid; gap: .8rem; justify-items: center; }
.dash-empty p { margin: 0; font-size: .9rem; }
/* ---- offers ---- */
.offer-subhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.2rem 0 .4rem; }
.offer-subhead:first-child { margin-top: 0; }
.offer-row { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border-soft); }
.offer-row:last-child { border-bottom: 0; }
.offer-row .thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex: none; background: #0c0905; }
.offer-row .grow { flex: 1; min-width: 0; }
.offer-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex: none; }
.offer-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.status-pill.offer-pending { background: color-mix(in srgb, var(--copper) 22%, transparent); color: var(--gold-bright); }
.status-pill.offer-accepted { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.status-pill.offer-declined, .status-pill.offer-withdrawn, .status-pill.offer-expired { background: color-mix(in srgb, var(--red) 20%, transparent); color: #ffb4ab; }
.status-pill.offer-countered { background: color-mix(in srgb, #5b8fd6 24%, transparent); color: #8fb6ee; }
@media (max-width: 720px) {
  .dash-summary { grid-template-columns: 1fr; }
  .dash-sum-chart { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 1.1rem; }
}
.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.6rem; }
.panel h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.seller-checklist { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface)); }
.seller-check-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.seller-check-head h3 { margin-bottom: .25rem; }
.seller-check-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.seller-check-head strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.45rem;
}
.seller-check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
}
.seller-check-item {
  display: flex;
  gap: .65rem;
  min-width: 0;
  padding: .82rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.seller-check-item:hover { border-color: color-mix(in srgb, var(--gold) 42%, var(--border)); }
.seller-check-item .check-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--border);
  color: var(--bg);
  font-size: .78rem;
  font-weight: 900;
}
.seller-check-item.is-done .check-dot {
  border-color: var(--green);
  background: var(--green);
}
.seller-check-item b { display: block; color: var(--text); font-size: .86rem; }
.seller-check-item small { display: block; color: var(--muted); margin-top: .18rem; line-height: 1.35; }
.row-item { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border-soft); }
.row-item:last-child { border-bottom: 0; }
.row-item .thumb { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex: none; background: #0c0905; }
.row-item .grow { flex: 1; }
.status-pill { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.st-escrow { background: color-mix(in srgb, var(--copper) 22%, transparent); color: var(--gold-bright); }
.st-released { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.st-disputed { background: color-mix(in srgb, var(--red) 22%, transparent); color: #ffb4ab; }
.dash-feed {
  display: grid;
  gap: .55rem;
}
.dash-feed-row {
  display: grid;
  gap: .2rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.dash-feed-row.unread {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--border));
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}
.dash-feed-row > a,
.dash-feed-row > strong {
  color: var(--text);
  font-weight: 800;
}
.dash-feed-row > span {
  color: var(--muted);
  font-size: .78rem;
}
.dash-feed-row p {
  margin: .25rem 0 0;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.45;
}
.message-thread,
.moderation-card {
  display: grid;
  gap: .8rem;
  padding: .9rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.thread-head,
.moderation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}
.thread-head a,
.moderation-head a {
  color: var(--text);
  font-weight: 850;
}
.thread-head span,
.moderation-head span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: .15rem;
}
.message-bubbles {
  display: grid;
  gap: .55rem;
}
.message-bubble {
  max-width: 82%;
  padding: .7rem .8rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-2);
}
.message-bubble.mine {
  justify-self: end;
  border-color: color-mix(in srgb, var(--gold) 38%, var(--border));
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}
.message-bubble div {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  color: var(--muted);
  font-size: .72rem;
}
.message-bubble strong { color: var(--text-dim); }
.message-bubble p {
  margin: .25rem 0 0;
  color: var(--text);
  line-height: 1.45;
}
.message-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: end;
}
.message-reply textarea,
.moderation-note {
  width: 100%;
  min-height: 72px;
  padding: .72rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
.moderation-card > p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
}
.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.notice-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: .35rem;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #160f06;
  font: 800 .72rem/1 var(--sans);
}

/* ---------- leaderboard ---------- */
.lead-list { display: grid; gap: .6rem; }
.lead-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: 14px; transition: var(--t); }
.lead-row:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); transform: translateX(3px); }
.lead-row.top { background: linear-gradient(100deg, color-mix(in srgb,var(--gold) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb,var(--gold) 35%, var(--border)); }
.lead-rank { font-family: var(--display); font-weight: 800; font-size: 1.3rem; width: 44px; text-align: center; color: var(--muted); flex: none; }
.lead-row.top .lead-rank { font-size: 1.7rem; }
.lead-main { flex: 1; min-width: 0; }
.lead-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.lead-spec { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-stat, .lead-score { text-align: center; flex: none; }
.lead-stat small, .lead-score small { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lead-stat b, .lead-score b { font-family: var(--display); font-size: 1.1rem; color: var(--text); }
.lead-score { width: 70px; }
.lead-score b { color: var(--gold-bright); font-size: 1.3rem; }
.lead-stat .stars { font-size: .85rem; }

/* ---------- painter profile ---------- */
.painter-hero { position: relative; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: radial-gradient(700px 300px at 80% -40%, color-mix(in srgb,var(--gold) 18%, transparent), transparent), var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow); }
.painter-hero .avatar { box-shadow: 0 0 0 4px color-mix(in srgb,var(--gold) 25%, transparent); }
.painter-rankpill { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--gold-bright); text-align: center; line-height: 1; }
.painter-rankpill small { display: block; font-family: var(--sans); font-weight: 600; font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.painter-id { flex: 1; min-width: 220px; }
.painter-id h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); display: flex; align-items: center; gap: .5rem; }
.painter-sub { color: var(--text-dim); margin-top: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.painter-spec { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.painter-bio { font-family: var(--serif); color: var(--text-dim); margin: .6rem 0 0; max-width: 60ch; }
.painter-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.painter-from { font-size: .85rem; color: var(--muted); }
.painter-from b { color: var(--gold-bright); font-family: var(--display); font-size: 1.05rem; }
.review-item { display: flex; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid var(--border-soft); }
.review-item:last-child { border-bottom: 0; }

.stars-input { display: flex; gap: .15rem; }
.stars-input button { background: none; border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1; color: var(--border); padding: 0 .05rem; transition: color .1s; font-family: inherit; }
.stars-input button.on { color: var(--gold); }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(8,5,3,.66); backdrop-filter: blur(4px); animation: fadeIn .2s; overflow-y: auto; }
.modal { position: relative; width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem; margin: auto; }
.modal-close { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--gold-bright); }
.action-modal h2 {
  font-size: 1.55rem;
  margin: 0 2rem .45rem 0;
}
.modal-lede {
  color: var(--text-dim);
  margin: 0 0 1.1rem;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1rem;
}
.action-modal textarea {
  min-height: 145px;
}
@keyframes fadeIn { from { opacity: 0; } }
.quote-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; margin-top: .4rem; }
.quote-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--copper); margin-bottom: .5rem; }
.quote-row { display: flex; justify-content: space-between; padding: .3rem 0; color: var(--text-dim); font-size: .92rem; }
.quote-row.total { border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .6rem; font-family: var(--display); font-size: 1.15rem; color: var(--text); }
.quote-row.total b { color: var(--gold-bright); }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-line { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-soft); }
.cart-line .thumb { width: 88px; height: 110px; border-radius: 10px; overflow: hidden; flex: none; background: #0c0905; }
.cart-line .grow { flex: 1; }
.summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; color: var(--text-dim); }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .9rem; font-size: 1.2rem; font-weight: 700; color: var(--text); font-family: var(--display); }
.summary-row.total b { color: var(--gold-bright); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; stroke: var(--border); fill: none; stroke-width: 1.5; margin-bottom: 1rem; }

/* ---------- misc ---------- */
.pill-note { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; color: var(--muted); }
.divider { height: 1px; background: var(--border-soft); margin: 2rem 0; border: 0; }
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th, .tier-table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--border-soft); }
.tier-table th { font-family: var(--display); color: var(--gold-bright); font-size: .9rem; }
.tier-table td b { color: var(--gold-bright); font-family: var(--display); font-size: 1.1rem; }
.stars { color: var(--gold); letter-spacing: 1px; }

.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: grid; gap: .6rem; }
.toast { background: var(--surface); border: 1px solid var(--gold); border-radius: 12px; padding: .8rem 1.1rem; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .6rem; animation: toastIn .35s; }
.toast svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2.5; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: linear-gradient(var(--bg-2), var(--bg)); margin-top: 4rem; padding: 3.2rem 0 1.6rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: .02em; }
.footer-brand .brand-name span { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 42ch; margin: .8rem 0 0; line-height: 1.6; }
.footer-col h4 { font-family: var(--display); font-size: .95rem; color: var(--gold-bright); margin-bottom: .7rem; }
.footer-col a { display: block; color: var(--text-dim); font-size: .88rem; padding: .32rem 0; transition: color var(--t), padding-left var(--t); }
.footer-col a:hover { color: var(--gold-bright); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); font-size: .82rem; color: var(--muted); }

/* ---------- toolbar search ---------- */
.toolbar-search { position: relative; flex: 1; min-width: 220px; }
.toolbar-search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px;
  fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.toolbar-search input { width: 100%; padding: .7rem .9rem .7rem 2.4rem; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: var(--sans); font-size: .92rem; transition: var(--t); }
.toolbar-search input:focus { border-color: var(--gold); }
.filter-bar { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }


.header-inner,
.site-header.scrolled .header-inner {
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
  box-shadow: 0 12px 42px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}

.brand-logo,
.auth-card .auth-logo img {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}

.language-menu { position: relative; }
.language-btn {
  height: 33px;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
  color: var(--text-dim);
  padding: .32rem .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .74rem;
  cursor: pointer;
  transition: var(--t);
}
.language-btn:hover,
.language-btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, var(--surface));
}
.flag-svg {
  width: 24px;
  height: 16px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 10px -6px rgba(0,0,0,.7);
}
.language-btn .chev {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}
.language-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: 190px;
  display: grid;
  gap: .18rem;
  padding: .38rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.language-list[hidden] { display: none; }
.language-list button {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: .55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  padding: .58rem .55rem;
  font-family: var(--sans);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.language-list button:hover,
.language-list button.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--teal) 12%, var(--surface-2));
}
.language-list b {
  color: var(--muted);
  font-size: .68rem;
}

.verified-tick {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -2px;
  filter: drop-shadow(0 0 8px rgba(38,132,255,.45));
}
.detail-seller .verified-tick,
.painter-id .verified-tick { width: 19px; height: 19px; }

.hero {
  border-bottom: 1px solid var(--border-soft);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(79,211,181,.12), transparent 28%, rgba(215,173,90,.12) 72%, transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 78px);
}
.page-hero { position: relative; overflow: hidden; }
.hero h1,
.page-hero h1 {
  letter-spacing: 0;
}

.hero-kicker,
.trust-pill,
.faction-chip {
  border-radius: 6px;
}

.card,
.feature,
.grade-card,
.comm-card,
.panel,
.summary,
.dash-side,
.auth-card,
.modal,
.painter-hero,
.cta-band,
.lead-row {
  border-radius: 8px;
}

.card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 16px 52px -38px rgba(0,0,0,.85);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  z-index: 2;
}
.card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--teal) 50%, var(--gold));
  box-shadow: 0 24px 70px -36px rgba(0,0,0,.92);
}
.card-media::after,
.detail-media::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 42%, rgba(0,0,0,.28));
}
.card-body {
  gap: .62rem;
}
.card-title {
  letter-spacing: 0;
}
.card-seller strong,
.detail-seller .sname,
.lead-name {
  color: var(--text);
}
.badge-featured,
.chip.is-active,
.btn-primary,
.cart-count {
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
}
.grade-tabletop {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  border-color: color-mix(in srgb, var(--blue) 52%, transparent);
  color: #bddcff;
}
.grade-parade {
  background: color-mix(in srgb, var(--teal) 15%, transparent);
  border-color: color-mix(in srgb, var(--teal) 46%, transparent);
  color: #b9f0df;
}
.grade-golden {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
}

.toolbar,
.filter-bar {
  padding: .78rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.filter-select {
  min-height: 41px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.filter-select:hover,
.filter-select:focus,
.toolbar-search input:focus {
  border-color: var(--teal);
}
.faction-select {
  min-width: 190px;
}
.chip {
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}
.chip:hover {
  border-color: var(--teal);
  color: var(--text);
}

.price-box,
.spec-list,
.quote-box,
.stat-card {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.price,
.big,
.lead-score b {
  color: var(--gold-bright);
}
.auc-clock {
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
}
.live-dot {
  background: var(--rose);
}

.painter-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 11%, var(--surface)), var(--surface) 45%, color-mix(in srgb, var(--gold) 9%, var(--surface)));
}
.painter-hero .avatar {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 24%, transparent), 0 18px 42px -28px rgba(0,0,0,.75);
}
.lead-row.top {
  background:
    linear-gradient(100deg, color-mix(in srgb,var(--teal) 12%, var(--surface)), color-mix(in srgb,var(--gold) 10%, var(--surface)));
}
.masonry .show-item,
.detail-media,
.detail-thumb,
.cart-line .thumb,
.row-item .thumb {
  border-radius: 8px;
}
.cta-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, var(--surface)), var(--surface) 50%, color-mix(in srgb, var(--gold) 13%, var(--surface)));
}


.main-nav a.is-active,
.main-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 13%, transparent);
}
.language-btn:hover,
.language-btn[aria-expanded="true"],
.filter-select:hover,
.filter-select:focus,
.toolbar-search input:focus,
.chip:hover {
  border-color: var(--gold);
}
.language-btn[aria-expanded="true"],
.language-list button:hover,
.language-list button.is-active {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
}

.verified-tick {
  width: 18px;
  height: 18px;
  display: inline-block;
  overflow: visible;
  vertical-align: -4px;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(23,131,247,.38));
}
.detail-seller .verified-tick,
.painter-id .verified-tick { width: 20px; height: 20px; }

.hero,
.page-hero {
  background: var(--hero-glow);
}
.hero::before,
.page-hero::before {
  background:
    linear-gradient(90deg, rgba(213,168,79,.14), transparent 24%, rgba(255,215,125,.11) 68%, transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px);
  opacity: .72;
}
.home-hero {
  /* Padding-based vertical rhythm — no grid centering here.
     overflow:hidden (from .hero) can only ever clip the BOTTOM of the hero,
     never the top, so the first line of text is always fully visible. */
  padding: clamp(4rem, 8vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
  min-height: calc(100vh - 155px);
}
.home-hero .hero-sub {
  max-width: 43rem;
}
.hero-art-wrap {
  position: relative;
}
.hero-card {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--border));
  box-shadow: 0 30px 90px -44px rgba(0,0,0,.95), 0 0 0 1px rgba(255,215,125,.05);
}
.hero-card.c1 { animation: floatCard 7s ease-in-out infinite; }
.hero-card.c2 { animation: floatCard 8s ease-in-out infinite .9s; }
.hero-card.c3 { animation: floatCard 6.5s ease-in-out infinite .3s; }
.hero-float {
  background: rgba(16,16,18,.84);
  border-color: color-mix(in srgb, var(--gold) 36%, var(--border));
  backdrop-filter: blur(12px);
}
.hero-float .dot {
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent);
}
.hero-ledger {
  position: absolute;
  right: 4%;
  top: 6%;
  z-index: 6;
  width: min(220px, 68%);
  padding: .65rem .8rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border));
  border-radius: 10px;
  background: rgba(14,14,16,.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  will-change: transform;
  transition: box-shadow .3s ease;
}
.hero-ledger:hover {
  box-shadow: 0 24px 64px -20px rgba(0,0,0,.9), 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 30px -8px color-mix(in srgb, var(--gold) 25%, transparent);
}
.hero-ledger-inner {
  animation: floatLedger 5s ease-in-out infinite;
}
@keyframes floatLedger {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ledger-head {
  margin-bottom: .55rem;
}
.ledger-head strong {
  display: block;
  color: var(--gold-bright);
  font-size: .82rem;
}
.ledger-head span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin-top: .1rem;
}
.ledger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  margin-top: .4rem;
  font-size: .78rem;
  padding: .38rem .5rem;
  min-height: 30px;
}
.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .72rem;
  padding-top: .72rem;
  border-top: 1px solid var(--border-soft);
}
.ledger-row b {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .7rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255,255,255,.035);
  font-size: .78rem;
  font-weight: 700;
}
.hero-risk {
  display: grid;
  gap: .42rem;
  max-width: 38rem;
  margin-top: .9rem;
}
.hero-risk span {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.hero-risk span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}
.hero-stat .n {
  text-shadow: 0 0 28px color-mix(in srgb, var(--gold) 22%, transparent);
}

.proof-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  padding: 1.2rem 0;
}
.proof-strip .reveal {
  opacity: 1;
  transform: none;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.proof-item {
  min-height: 128px;
  padding: 1.25rem 1.35rem;
  border-right: 1px solid var(--border-soft);
}
.proof-item:last-child { border-right: 0; }
.proof-item span,
.trust-step span,
.mechanic-card span,
.roadmap-step span {
  color: var(--gold-bright);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}
.proof-item strong {
  display: block;
  margin-top: .45rem;
  color: var(--text);
}
.proof-item p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.compare-section {
  position: relative;
  background:
    radial-gradient(circle at 16% 0, color-mix(in srgb, var(--gold) 12%, transparent), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.compare-head h2 { max-width: 18ch; }
.compare-head p { max-width: 68ch; }
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 1rem;
}
.compare-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    radial-gradient(520px 280px at var(--sx,50%) var(--sy,0%), rgba(255,255,255,.065), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.compare-card-proof {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--border));
  background:
    radial-gradient(520px 280px at var(--sx,50%) var(--sy,0%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%),
    linear-gradient(135deg, rgba(213,168,79,.14), rgba(255,255,255,.018));
}
.compare-label {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: .24rem .62rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.compare-card h3 {
  margin: .8rem 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}
.compare-list {
  display: grid;
  gap: .78rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-list li {
  position: relative;
  min-height: 44px;
  padding: .75rem .85rem .75rem 2.4rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(0,0,0,.16);
  line-height: 1.45;
}
.compare-list li::before {
  position: absolute;
  left: .85rem;
  top: .85rem;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: .78rem;
}
.compare-list-risk li::before {
  content: "!";
  color: #f3c38b;
  border: 1px solid rgba(243,195,139,.42);
  background: rgba(120,52,24,.2);
}
.compare-list-proof li::before {
  content: "✓";
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--gold-bright);
  color: #12100b;
}
.standards-section {
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 34%),
    var(--bg);
}
.standards-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.standards-copy .eyebrow {
  color: var(--gold-bright);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.standards-copy h2 {
  margin-top: .55rem;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}
.standards-copy p {
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.standards-board {
  display: grid;
  gap: .72rem;
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border));
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  box-shadow: var(--shadow-lg);
}
.standard-row {
  position: relative;
  min-height: 92px;
  padding: 1rem 1rem 1rem 3.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    radial-gradient(360px 140px at var(--sx,50%) var(--sy,50%), rgba(213,168,79,.1), transparent 72%),
    rgba(0,0,0,.13);
}
.standard-row::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1.16rem;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, transparent);
  background: var(--gold-bright);
  color: #12100b;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 900;
}
.standard-row span {
  display: block;
  color: var(--gold-bright);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.standard-row strong {
  display: block;
  margin-top: .25rem;
  color: var(--text);
  line-height: 1.45;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-copy .eyebrow,
.seller-panel .eyebrow,
.markets-panel .eyebrow {
  color: var(--gold-bright);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.split-copy h2,
.seller-panel h2,
.markets-panel h2 {
  margin-top: .55rem;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}
.split-copy p,
.seller-panel p {
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
}
.signal-board {
  position: relative;
  display: grid;
  gap: .8rem;
}
.signal-board::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
}
.signal-line {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.2rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.signal-line::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 22px rgba(213,168,79,.28);
}
.signal-line span,
.market-wave span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.signal-line strong,
.market-wave strong {
  display: block;
  color: var(--text);
  margin-top: .25rem;
}
.signal-line-gold {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--border));
  background: linear-gradient(135deg, rgba(213,168,79,.14), rgba(255,255,255,.02));
}

.mechanic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mechanic-card {
  position: relative;
  min-height: 292px;
  padding: 1.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.046), rgba(255,255,255,.012)),
    var(--surface);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.mechanic-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: translateX(-100%);
  opacity: .7;
}
.mechanic-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 48%, var(--border));
  box-shadow: 0 24px 70px -42px rgba(0,0,0,.95);
}
.mechanic-card:hover::after {
  animation: shimmerLine 1.1s ease forwards;
}
.mechanic-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mechanic-card h3 {
  margin: .75rem 0 .55rem;
  font-size: 1.23rem;
}
.mechanic-card p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

.section-featured {
  background:
    linear-gradient(180deg, transparent, rgba(213,168,79,.035) 45%, transparent);
}
.card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
}
.grade-tabletop {
  background: color-mix(in srgb, var(--text-dim) 13%, transparent);
  border-color: color-mix(in srgb, var(--text-dim) 36%, transparent);
  color: var(--text-dim);
}
.grade-parade {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border-color: color-mix(in srgb, var(--gold) 46%, transparent);
  color: var(--gold-bright);
}
.grade-card.g-tabletop::before { background: linear-gradient(90deg, #8b8373, #d8c7a7); }
.grade-card.g-parade::before { background: linear-gradient(90deg, var(--copper), var(--gold)); }
.grade-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--gold-bright);
  font-size: .82rem;
}

.trust-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .48;
}
.trust-step {
  position: relative;
  padding: 3.1rem 1.2rem 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.trust-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 1.2rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(213,168,79,.12), 0 0 24px rgba(213,168,79,.36);
}
.trust-step h3 {
  margin-top: .2rem;
  font-size: 1.08rem;
}
.trust-step p {
  color: var(--muted);
  margin: .5rem 0 0;
  font-size: .9rem;
}

.seller-market-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
}
.seller-panel,
.markets-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    radial-gradient(520px 220px at 12% 0%, rgba(213,168,79,.13), transparent 62%),
    var(--surface);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 1.35rem;
}
.tier-row div {
  min-height: 126px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,.027);
}
.tier-row span {
  display: block;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
}
.tier-row strong,
.tier-row small {
  display: block;
}
.tier-row small {
  color: var(--muted);
  margin-top: .28rem;
  line-height: 1.45;
}
.markets-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}
.market-wave {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,.025);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.roadmap-step {
  min-height: 190px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.015));
}
.roadmap-step strong {
  display: block;
  margin-top: .8rem;
  color: var(--text);
}
.roadmap-step p {
  color: var(--muted);
  margin: .45rem 0 0;
  font-size: .9rem;
}
.cta-band {
  border-radius: 8px;
  background:
    radial-gradient(800px 360px at 50% -35%, rgba(213,168,79,.32), transparent 64%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    var(--surface);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: shimmerLine 3s ease-in-out infinite;
}

/* ---------- login experience ---------- */
.login-screen {
  min-height: 100vh;
  background:
    radial-gradient(760px 520px at 95% 20%, rgba(199,67,52,.16), transparent 58%),
    radial-gradient(760px 520px at 8% 86%, rgba(213,168,79,.14), transparent 58%),
    #050506;
}
.login-screen::before {
  opacity: .035;
}
.login-screen::after {
  opacity: .075;
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, #000 72%, transparent);
}
.login-landing {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  width: min(1260px, calc(100% - 64px));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}
.login-brand-pill,
.login-back {
  position: absolute;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(13,13,15,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
}
.login-brand-pill {
  left: 0;
  gap: .55rem;
  padding: .45rem .9rem .45rem .55rem;
  font-weight: 800;
}
.login-brand-pill img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
.login-brand-pill span {
  font-family: var(--sans);
  font-size: .92rem;
  letter-spacing: 0;
}
.login-back {
  right: 0;
  gap: .35rem;
  padding: .45rem .95rem;
  color: var(--text-dim);
  font-weight: 750;
  font-size: .9rem;
}
.login-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-back:hover,
.login-brand-pill:hover {
  border-color: color-mix(in srgb, var(--gold) 38%, var(--border));
  color: var(--gold-bright);
}
.login-copy {
  max-width: 690px;
}
.login-eyebrow,
.login-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.35;
}
.login-eyebrow > span:first-child,
.login-card-kicker > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(213,168,79,.6);
  flex: none;
}
.login-eyebrow > span:not(:first-child),
.login-card-kicker > span:not(:first-child) {
  width: auto;
  height: auto;
  min-width: 0;
  background: none;
  box-shadow: none;
}
.login-copy h1 {
  margin-top: 1rem;
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.login-copy h1 strong {
  color: var(--gold-bright);
  font-style: normal;
}
.login-copy p {
  max-width: 58ch;
  margin: 1.35rem 0 0;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}
.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 2rem;
}
.login-proof-grid div {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: .9rem;
  background: rgba(255,255,255,.035);
}
.login-proof-grid b,
.login-proof-grid span {
  display: block;
}
.login-proof-grid b {
  color: var(--gold-bright);
}
.login-proof-grid span {
  color: var(--muted);
  margin-top: .25rem;
  font-size: .82rem;
  line-height: 1.45;
}
.login-card.auth-card {
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  background: linear-gradient(180deg, rgba(33,33,37,.92), rgba(17,17,19,.92));
  border-color: rgba(255,255,255,.16);
  border-radius: 22px;
  box-shadow: 0 34px 90px -45px rgba(0,0,0,.92), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.login-card .auth-title {
  margin-top: .85rem;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 850;
  line-height: 1.18;
}
.login-card-kicker {
  display: flex;
  justify-content: center;
}
.login-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
  margin: 1.4rem 0 1.1rem;
}
.login-switch a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}
.login-switch a.is-active {
  background: linear-gradient(135deg, var(--gold-bright), #e0a12a);
  color: #171008;
  border-color: transparent;
}
.login-card form {
  display: grid;
  gap: .75rem;
}
.login-card label > span {
  display: none;
}
.login-card input {
  width: 100%;
  min-height: 47px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
}
.login-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213,168,79,.16);
  outline: 0;
}
.login-card .btn {
  min-height: 46px;
  margin-top: .15rem;
  border-radius: 10px;
}
.login-card .auth-alt,
.login-demo {
  color: var(--muted);
  text-align: center;
  font-size: .84rem;
}
.login-card .auth-alt a {
  color: var(--gold-bright);
  font-weight: 800;
}
.login-demo {
  margin: .45rem 0 0;
  opacity: .75;
}
.login-demo code {
  color: var(--gold-bright);
}

@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes shimmerLine {
  0% { transform: translateX(-100%); opacity: 0; }
  18% { opacity: .85; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* =========================================================================
   VISUAL UPGRADES — homepage polish
   ========================================================================= */

/* ---- scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--gold-bright), var(--copper));
  width: 0%; transition: width .08s linear;
  box-shadow: 0 0 10px rgba(213,168,79,.55);
}

/* ---- hero vignette ---- */
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ---- hero ember canvas ---- */
.hero-embers {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .7;
}

/* ---- hero heading shimmer ---- */
.hero-shimmer {
  background: linear-gradient(90deg, var(--text) 0%, var(--gold-bright) 25%, var(--text) 50%, var(--gold-bright) 75%, var(--text) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText { to { background-position: 200% center; } }

/* ---- card spotlight hover ---- */
.card, .mechanic-card, .grade-card, .comm-card, .trust-step, .roadmap-step, .proof-item {
  position: relative; overflow: hidden;
}
.card::before, .mechanic-card::before, .grade-card::before, .comm-card::before, .trust-step::before, .roadmap-step::before, .proof-item::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px 220px at var(--sx,50%) var(--sy,50%), rgba(213,168,79,.10), transparent 60%);
}
.card:hover::before, .mechanic-card:hover::before, .grade-card:hover::before, .comm-card:hover::before, .trust-step:hover::before, .roadmap-step:hover::before, .proof-item:hover::before {
  opacity: 1;
}

/* ---- angled section dividers ---- */
.section-divider {
  position: relative; height: 60px; overflow: hidden; pointer-events: none;
}
.section-divider svg {
  position: absolute; bottom: 0; width: 100%; height: 60px; display: block;
}
.section-divider path {
  fill: var(--bg-2);
}
.section-divider.flip path {
  fill: var(--bg);
}

/* ---- count-up stat helper ---- */
.hero-stat .n { font-variant-numeric: tabular-nums; }

/* ---- hero entrance animations ---- */
.hero-in { opacity: 0; transform: translateY(28px); animation: heroIn .9s cubic-bezier(.22,1,.36,1) forwards; }
.hero-kicker.hero-in { animation-delay: .15s; }
h1.hero-in           { animation-delay: .32s; }
.hero-sub.hero-in    { animation-delay: .48s; }
.hero-cta.hero-in    { animation-delay: .62s; }
.hero-proof.hero-in  { animation-delay: .74s; }
.hero-risk.hero-in   { animation-delay: .82s; }
.hero-stats.hero-in  { animation-delay: .94s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---- mouse-following glow in hero ---- */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55;
  background: radial-gradient(500px 360px at var(--mx,50%) var(--my,50%), rgba(213,168,79,.18), transparent 70%);
  transition: background .18s linear;
}

/* ---- scroll-down chevron ---- */
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 5; color: var(--muted); opacity: 0; animation: scrollIn 1s .8s forwards, scrollBounce 2.2s 1.6s ease-in-out infinite;
}
.hero-scroll svg { width: 22px; height: 22px; }
@keyframes scrollIn { to { opacity: 1; } }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---- staggered reveal delays ---- */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* ---- section header underline accent ---- */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 48px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--copper)); opacity: .85;
}

/* ---- proof strip upgrades ---- */
.proof-item {
  transition: transform var(--t), background var(--t); position: relative; overflow: hidden;
}
.proof-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.02); }
.proof-item span {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--copper)); color: #20160a; font-size: .72rem;
  box-shadow: 0 6px 18px -6px rgba(181,112,58,.55); margin-bottom: .5rem;
}

/* ---- mechanic cards: colored icon backgrounds ---- */
.mechanic-card { position: relative; overflow: hidden; }
.mechanic-card svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb,var(--gold) 22%,transparent), color-mix(in srgb,var(--copper) 14%,transparent));
  border: 1px solid color-mix(in srgb,var(--gold) 28%,transparent); stroke: var(--gold-bright);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.mechanic-card:nth-child(2) svg {
  background: linear-gradient(135deg, color-mix(in srgb,var(--red) 18%,transparent), color-mix(in srgb,var(--copper) 14%,transparent));
  border-color: color-mix(in srgb,var(--red) 28%,transparent); stroke: #ffd0c4;
}
.mechanic-card:nth-child(3) svg {
  background: linear-gradient(135deg, color-mix(in srgb,var(--green) 18%,transparent), color-mix(in srgb,var(--gold) 14%,transparent));
  border-color: color-mix(in srgb,var(--green) 28%,transparent); stroke: #e9dfc4;
}
.mechanic-card:nth-child(4) svg {
  background: linear-gradient(135deg, color-mix(in srgb,var(--blue) 18%,transparent), color-mix(in srgb,var(--teal) 14%,transparent));
  border-color: color-mix(in srgb,var(--blue) 28%,transparent); stroke: #bddcff;
}
.mechanic-card:hover svg { transform: scale(1.12) rotate(-4deg); box-shadow: 0 12px 28px -8px rgba(0,0,0,.55); }

/* ---- grade cards upgrade ---- */
.grade-card {
  transition: transform var(--t), border-color var(--t), box-shadow var(--t); cursor: default;
}
.grade-card:hover { transform: translateY(-5px); }
.grade-card.g-tabletop:hover { border-color: color-mix(in srgb, #3f6fb0 60%, var(--border)); box-shadow: 0 20px 50px -30px rgba(63,111,176,.35); }
.grade-card.g-parade:hover   { border-color: color-mix(in srgb, var(--copper) 60%, var(--border)); box-shadow: 0 20px 50px -30px rgba(181,112,58,.35); }
.grade-card.g-golden:hover   { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); box-shadow: 0 20px 50px -30px rgba(213,168,79,.35); }
.grade-card .stars { font-family: var(--display); font-size: .9rem; }

/* ---- trust step upgrades ---- */
.trust-step {
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.trust-step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.trust-step::before { animation: trustPulse 3s ease-in-out infinite; }
@keyframes trustPulse { 0%,100% { box-shadow: 0 0 0 6px rgba(213,168,79,.10), 0 0 24px rgba(213,168,79,.30); } 50% { box-shadow: 0 0 0 10px rgba(213,168,79,.06), 0 0 36px rgba(213,168,79,.45); } }

/* ---- roadmap timeline connector ---- */
.roadmap-grid { position: relative; }
.roadmap-grid::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .35;
}
.roadmap-step { position: relative; transition: transform var(--t), border-color var(--t); }
.roadmap-step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 30%, var(--border)); }
.roadmap-step span {
  display: inline-grid; place-items: center; background: var(--bg); border: 1px solid var(--gold);
  border-radius: 6px; padding: .15rem .45rem; position: relative; z-index: 2;
}

/* ---- CTA band pulse ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--copper), var(--gold-bright), var(--copper));
  background-size: 300% 300%; animation: ctaGrad 6s ease infinite; opacity: .45; filter: blur(14px);
}
@keyframes ctaGrad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---- featured / auctions section shimmer bg ---- */
.section-featured { position: relative; }
.section-featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 20% 30%, rgba(213,168,79,.045), transparent 60%);
}

/* ---- hero card 3D tilt ---- */
.hero-card { transition: transform .4s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.hero-card:hover { transform: perspective(800px) rotateX(2deg) rotateY(-2deg) scale(1.02); }

/* ---- link-more arrow animation ---- */
.link-more { transition: gap .25s, color .25s; }
.link-more::after { content: "→"; transition: transform .25s; display: inline-block; }
.link-more:hover::after { transform: translateX(4px); }

/* ---- signal board glow line ---- */
.signal-board::before { animation: signalPulse 4s ease-in-out infinite; }
@keyframes signalPulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* ---- marketplace / auctions section bg accents ---- */
.section:has(#featuredGrid)::before,
.section:has(#endingGrid)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 350px at 80% 20%, rgba(213,168,79,.04), transparent 55%);
}

/* ---- seller panel tier row hover ---- */
.tier-row div { transition: transform var(--t), border-color var(--t); }
.tier-row div:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }

/* ---- market wave hover ---- */
.market-wave { transition: transform var(--t), border-color var(--t); }
.market-wave:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--gold) 30%, var(--border)); }

/* ---- interior page polish ---- */
.page-hero-sm { padding: clamp(1.8rem,4vw,2.6rem) 0 .8rem; }
.page-hero-sm h1 { font-size: clamp(1.4rem,3vw,2rem); }
.marketplace-section { position: relative; }
.market-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.detail-page { padding-top: 2rem; }
.review-card {
  padding: 1.1rem; border: 1px solid var(--border-soft); border-radius: 12px;
  background: var(--surface); transition: border-color .3s;
}
.review-card:hover { border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.review-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.review-head strong { color: var(--text); }
.review-head .stars { margin-left: auto; color: var(--gold); letter-spacing: 1px; }
.review-body { margin: 0; color: var(--text-dim); font-family: var(--serif); line-height: 1.6; }
.price-box { transition: border-color .3s, box-shadow .3s; }
.price-box:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }

/* ---- global micro-improvements ---- */
.reveal { transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; }

/* ---- 3D perspective tilt on cards ---- */
.tilt-card { transform-style: preserve-3d; transition: transform .15s linear; }

/* ---- infinite marquee stats strip ---- */
.marquee-strip {
  overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 6%, var(--surface)), color-mix(in srgb, var(--copper) 6%, var(--surface)));
  padding: .85rem 0;
}
.marquee-track {
  display: inline-flex; gap: 2.5rem; align-items: center;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--gold-bright); letter-spacing: .02em; flex: none;
}
.marquee-track span:nth-child(even) { color: var(--muted); font-size: .7rem; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- sticky section indicator dots ---- */
.section-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: grid; gap: .55rem; padding: .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--border-soft);
}
.section-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--border); transition: background .25s, transform .25s, box-shadow .25s;
}
.section-dots button.is-active {
  background: var(--gold-bright); transform: scale(1.4);
  box-shadow: 0 0 10px rgba(213,168,79,.45);
}
@media (max-width: 1080px) { .section-dots { display: none; } }

/* ---- smooth theme transition ---- */
html, body, [data-theme] {
  transition: background-color .5s ease, color .5s ease;
}
[data-theme] .card, [data-theme] .mechanic-card, [data-theme] .grade-card, [data-theme] .comm-card,
[data-theme] .trust-step, [data-theme] .roadmap-step, [data-theme] .proof-item, [data-theme] .panel,
[data-theme] .dash-side, [data-theme] .summary, [data-theme] .auth-card, [data-theme] .painter-hero,
[data-theme] .cta-band, [data-theme] .lead-row, [data-theme] .seller-panel, [data-theme] .markets-panel {
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

/* ---- typewriter cursor ---- */
.type-cursor::after {
  content: "|"; color: var(--gold-bright); animation: typeBlink 1s step-end infinite; margin-left: 2px;
}
@keyframes typeBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- card shine sweep on hover ---- */
.card::after, .mechanic-card::after, .grade-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  transform: translateX(-100%); transition: opacity .3s;
}
.card:hover::after, .mechanic-card:hover::after, .grade-card:hover::after {
  opacity: 1; animation: shineSweep .7s ease forwards;
}
@keyframes shineSweep { to { transform: translateX(100%); } }

/* ---- sticky mini-nav ---- */
.mini-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  display: flex; justify-content: center; gap: .15rem; padding: .45rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.mini-nav.is-visible { transform: translateY(0); }
.mini-nav a {
  font-size: .76rem; font-weight: 600; color: var(--text-dim); padding: .35rem .7rem; border-radius: 7px;
  transition: color .2s, background .2s;
}
.mini-nav a:hover { color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 9%, transparent); }

/* ---- horizontal snap carousel ---- */
.carousel-wrap { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: .5rem; }
.carousel-wrap::-webkit-scrollbar { display: none; }
.carousel {
  display: flex; gap: 1.4rem; scroll-snap-type: x mandatory; scroll-padding: 22px;
}
.carousel .card {
  flex: 0 0 280px; scroll-snap-align: start;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  margin: -.25rem 0 .8rem;
}
.carousel-controls .icon-btn {
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--gold) 22%, var(--border));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.carousel-controls .icon-btn:hover {
  color: var(--gold-bright);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--border));
  box-shadow: 0 10px 30px -20px rgba(213,168,79,.8);
}
.carousel-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 560px) {
  .carousel .card { flex: 0 0 72vw; }
  .carousel-controls { justify-content: flex-start; }
}

/* ---- blur-to-focus image reveals ---- */
.blur-reveal { filter: blur(12px); opacity: .5; transition: filter .9s cubic-bezier(.22,1,.36,1), opacity .9s cubic-bezier(.22,1,.36,1); }
.blur-reveal.is-in { filter: blur(0); opacity: 1; }

/* ---- text decode effect ---- */
.decode-char { display: inline-block; min-width: .3em; }
.decode-char.is-resolved { animation: decodePop .35s cubic-bezier(.22,1,.36,1); }
@keyframes decodePop { 0% { transform: scale(1.3); opacity: .5; } 100% { transform: scale(1); opacity: 1; } }

/* ---- parallax cards helper ---- */
.hero-card { will-change: transform; }

/* ---- shipped upgrade pack ---- */
.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .55rem .8rem;
  border-radius: 8px;
  background: var(--gold-bright);
  color: #171008;
  font-weight: 800;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); outline: 0; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
@media (min-width: 861px) {
  .section { content-visibility: auto; contain-intrinsic-size: 760px; }
  .home-hero,
  .section-featured,
  .trust-section { content-visibility: visible; contain-intrinsic-size: auto; }
}
.home-factions-section .section-head,
.journey-section .section-head,
.social-proof-section .section-head { margin-bottom: 1.4rem; }
.faction-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.faction-card {
  min-height: 235px;
  padding: .8rem;
  border: 1px solid color-mix(in srgb, var(--accent, var(--gold)) 38%, var(--border));
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent), rgba(255,255,255,.025));
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.faction-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, var(--gold)) 70%, var(--border));
  box-shadow: 0 24px 60px -42px var(--accent, var(--gold));
}
.faction-art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #070707;
}
.faction-art .mini-art { width: 100%; height: 100%; }
.faction-card span,
.faction-card small {
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.faction-card strong {
  color: var(--text);
  line-height: 1.15;
}
.journey-grid,
.testimonial-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.policy-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.4rem;
}
.journey-step,
.testimonial-card,
.policy-card,
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.1rem;
}
.journey-step span,
.trust-process span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-bottom: .65rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
  color: #171008;
  font-weight: 900;
  font-size: .72rem;
}
.journey-step h3,
.testimonial-card strong,
.policy-card h3 { color: var(--text); }
.journey-step p,
.testimonial-card p,
.policy-card p,
.faq-item p { color: var(--text-dim); margin-bottom: 0; }
.testimonial-card .stars { color: var(--gold-bright); letter-spacing: .08em; margin-bottom: .75rem; }
.testimonial-card p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1rem;
}
.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--gold) 38%, var(--border)); }
.market-filter-panel {
  align-items: stretch;
  padding: .9rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.market-filter-panel .toolbar-search { flex: 1 1 260px; }
.market-filter-panel .filter-select { min-width: 150px; }
.filter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 41px;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.filter-check input {
  accent-color: var(--gold);
}
.filter-summary {
  color: var(--muted);
  font-size: .86rem;
}
.saved-search-panel {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .85rem 0 1rem;
  padding: .72rem .85rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.saved-search-panel[hidden] { display: none; }
.saved-search-panel strong {
  color: var(--gold-bright);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.saved-search-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: .28rem .55rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 750;
}
.saved-search-panel a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.compare-grid {
  align-items: stretch;
}
.compare-wrap {
  position: relative;
  display: grid;
  min-width: 0;
}
.compare-wrap .card {
  height: 100%;
}
.compare-pick {
  position: static;
  justify-self: start;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 28px;
  margin-bottom: .45rem;
  padding: .25rem .52rem;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border));
  border-radius: 999px;
  color: var(--text);
  background: rgba(12,9,5,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 850;
}
.compare-pick input {
  accent-color: var(--gold);
}
.compare-drawer {
  position: sticky;
  bottom: 14px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(240px, 1.6fr) auto;
  align-items: center;
  gap: .9rem;
  margin: 1rem auto 0;
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.compare-drawer[hidden] { display: none; }
.compare-drawer strong {
  display: block;
  color: var(--gold-bright);
}
.compare-drawer span {
  color: var(--muted);
  font-size: .8rem;
}
.compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.compare-list a {
  display: grid;
  gap: .12rem;
  min-width: 0;
  padding: .52rem .65rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255,255,255,.03);
}
.compare-list b,
.compare-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-list b {
  color: var(--text);
  font-size: .82rem;
}
.listing-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.listing-skeleton-grid[hidden] { display: none; }
.listing-skeleton-grid span {
  min-height: 360px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(100deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03));
  background-size: 220% 100%;
  animation: skeletonSweep 1.2s linear infinite;
}
@keyframes skeletonSweep { to { background-position: -220% 0; } }
.card-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .05rem;
}
.card-trust span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .42rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
}
.card-trust .verified-tick { width: 12px; height: 12px; }
.auction-info-rail,
.trust-process,
.listing-assurance,
.grade-guide {
  display: grid;
  gap: .8rem;
}
.auction-info-rail,
.trust-process {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.2rem;
}
.trust-process { grid-template-columns: repeat(4, 1fr); }
.auction-info-rail div,
.trust-process div,
.listing-assurance div,
.grade-guide div {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
  padding: 1rem;
}
.auction-info-rail strong,
.trust-process strong,
.listing-assurance strong,
.grade-guide span {
  display: block;
  color: var(--text);
}
.auction-info-rail span,
.trust-process p,
.listing-assurance small,
.grade-guide p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.listing-assurance {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}
.listing-assurance span {
  display: block;
  color: var(--gold-bright);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .9rem;
}
.detail-thumb {
  width: 100%;
  display: block;
  appearance: none;
  padding: 0;
  cursor: pointer;
}
.detail-thumb .mini-art { width: 100%; height: 100%; }
.detail-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 22%, transparent);
}
.grade-guide {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.2rem;
}
.password-field {
  position: relative;
}
.password-field input { padding-right: 4.8rem; }
.password-toggle {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  min-height: 32px;
  padding: 0 .65rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.login-demo-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-top: .9rem;
}
.login-demo-actions button {
  min-height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: var(--text-dim);
  font-weight: 800;
  cursor: pointer;
}
.login-demo-actions button:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .faction-rail { grid-template-columns: repeat(3, 1fr); }
  .journey-grid,
  .trust-process,
  .listing-assurance { grid-template-columns: repeat(2, 1fr); }
  .auction-info-rail,
  .testimonial-grid,
  .policy-grid,
  .grade-guide { grid-template-columns: 1fr; }
  .listing-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
  .seller-check-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 3; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .main-nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; gap: .2rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .grade-cards { grid-template-columns: 1fr; }
  .painter-hero { padding-top: 2.6rem; }
  .painter-cta { align-items: stretch; width: 100%; }
  .painter-cta .btn { width: 100%; }
  .lead-spec { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
  .masonry { columns: 2; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .seller-check-grid { grid-template-columns: 1fr; }
  .hide-on-mobile { display: none; }
  .faction-rail,
  .journey-grid,
  .faq-grid,
  .trust-process,
  .listing-assurance,
  .listing-skeleton-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .brand-text { display: none; }
  .header-inner { width: calc(100% - 18px); padding: 0 9px; }
  .header-tools { gap: .24rem; }
  .language-btn { width: 33px; justify-content: center; padding: .32rem; }
  .language-btn span,
  .language-btn .chev { display: none; }
  .select-wrap, .hide-sm { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .market-filter-panel { display: grid; grid-template-columns: 1fr; }
  .market-filter-panel .btn,
  .market-filter-panel .filter-select,
  .market-filter-panel .toolbar-search,
  .filter-check { width: 100%; min-width: 0; }
  .compare-drawer { grid-template-columns: 1fr; }
  .compare-list { grid-template-columns: 1fr; }
  .faction-card { min-height: 190px; }
  .testimonial-card p { font-size: 1rem; }
  .detail-actions .btn { flex: 1 1 100%; }
  .login-demo-actions { grid-template-columns: 1fr; }
  .spec-list, .field-row, .role-pick { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .user-chip-name { display: none; }
  .modal-overlay { padding: .75rem; }
  .modal { padding: 1.5rem; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { width: 100%; align-items: flex-start; }
  .message-reply { grid-template-columns: 1fr; }
  .message-bubble { max-width: 100%; }
  /* the whole card is a link on mobile — drop the redundant button + count badge */
  .card-foot .btn { display: none; }
  .badge-count:not(.badge-featured) { display: none; }
  .card-title { font-size: .95rem; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 10px; padding-right: 10px; }
  .hdr-form { display: none; }
  .auth-btn { padding: .42rem .64rem; }
  .header-inner { width: calc(100% - 12px); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .home-hero { min-height: auto; }
  .home-hero .hero-art { display: block; height: 390px; max-width: 620px; margin: 0 auto; }
  .hero-art-wrap { max-width: 720px; margin: 0 auto; width: 100%; }
  .hero-ledger { position: relative; right: auto; bottom: auto; width: 100%; margin: 1rem auto 0; }
  .proof-grid,
  .mechanic-grid,
  .trust-rail,
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid,
  .standards-grid { grid-template-columns: 1fr; }
  .seller-market-grid,
  .split-section,
  .login-landing { grid-template-columns: 1fr; }
  .login-landing { padding-top: 7rem; }
  .login-copy { max-width: 760px; }
  .login-card.auth-card { max-width: 520px; width: 100%; }
}
@media (max-width: 860px) {
  .home-hero .hero-art { display: none; }
  .proof-grid,
  .mechanic-grid,
  .trust-rail,
  .tier-row,
  .roadmap-grid,
  .login-proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .proof-item:last-child { border-bottom: 0; }
  .trust-rail::before { display: none; }
  .login-landing { width: min(100% - 32px, 640px); }
  .login-brand-pill,
  .login-back { top: .75rem; }
  .login-copy h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .login-card.auth-card { border-radius: 16px; }
}
@media (max-width: 560px) {
  .home-hero {
    padding: 2rem 0 2.5rem;
    min-height: calc(100vh - 106px);
  }
  .hero h1 { font-size: clamp(2rem, 12vw, 2.45rem); }
  .hero-sub { font-size: 1rem; margin: 1rem 0 1.2rem; }
  .hero-kicker { font-size: .68rem; line-height: 1.35; padding: .36rem .65rem; }
  .hero-cta { gap: .55rem; }
  .hero-cta .btn { width: 100%; min-height: 42px; padding: .68rem 1rem; font-size: .9rem; }
  .hero-proof span { width: 100%; justify-content: center; }
  .home-hero .hero-proof,
  .home-hero .hero-risk,
  .home-hero .hero-stats,
  .home-hero .hero-ledger { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .split-section { grid-template-columns: 1fr; }
  .signal-line { padding-left: 2.6rem; }
  .login-brand-pill span { display: none; }
  .login-back span { display: none; }
  .login-back,
  .login-brand-pill { min-height: 42px; }
  .login-copy p { font-size: 1.05rem; }
  .login-proof-grid { display: none; }
  .login-landing { gap: 1.35rem; padding-top: 5.8rem; }
  .login-copy,
  .login-card.auth-card,
  .login-card input { min-width: 0; }
  .login-copy h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.6vw, 2.05rem);
    line-height: 1.08;
    text-wrap: balance;
  }
  .login-card.auth-card { padding: 1.25rem; }
  .login-card .auth-title {
    max-width: 100%;
    font-size: clamp(1.15rem, 6.2vw, 1.55rem);
    line-height: 1.12;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .login-switch a {
    min-width: 0;
    padding: 0 .35rem;
    font-size: clamp(.72rem, 3.4vw, .86rem);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .login-card-kicker {
    flex-wrap: wrap;
    line-height: 1.4;
    text-align: center;
  }
  .login-landing {
    width: min(100% - 32px, 360px);
    max-width: 360px;
    margin-left: 16px;
    margin-right: auto;
  }
  .login-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .home-hero .hero-kicker { display: none; }
  .home-hero .hero-copy { padding-top: .4rem; }
  .login-copy h1 { font-size: clamp(1.6rem, 7.8vw, 1.95rem); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---- light mode overrides ---- */
[data-theme="light"] .listing-skeleton-grid span {
  background: linear-gradient(100deg, rgba(0,0,0,.04), rgba(0,0,0,.10), rgba(0,0,0,.04));
}
[data-theme="light"] .badge-count {
  background: rgba(255,255,255,.72);
  color: var(--text-dim);
}
[data-theme="light"] .card-trust span,
[data-theme="light"] .tier-badge,
[data-theme="light"] .trust-pill {
  background: rgba(0,0,0,.06);
  color: var(--text-dim);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .mechanic-card:hover,
[data-theme="light"] .grade-card:hover,
[data-theme="light"] .trust-step:hover,
[data-theme="light"] .proof-item:hover {
  background: rgba(0,0,0,.025);
}
[data-theme="light"] .filter-bar,
[data-theme="light"] .panel,
[data-theme="light"] .dash-side,
[data-theme="light"] .summary,
[data-theme="light"] .auth-card,
[data-theme="light"] .painter-hero,
[data-theme="light"] .cta-band,
[data-theme="light"] .seller-panel,
[data-theme="light"] .markets-panel {
  box-shadow: 0 12px 36px -20px rgba(60,40,15,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
[data-theme="light"] .hdr-search,
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder,
[data-theme="light"] .hdr-search::placeholder {
  color: var(--muted);
  opacity: .7;
}
[data-theme="light"] .icon-btn,
[data-theme="light"] .language-btn {
  border-color: var(--border);
  color: var(--text-dim);
}
[data-theme="light"] .icon-btn:hover,
[data-theme="light"] .language-btn:hover,
[data-theme="light"] .language-btn[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(168,121,37,.08);
}
[data-theme="light"] .language-list {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 4px 14px -4px rgba(60,40,15,.35);
}
[data-theme="light"] .modal::before {
  background: rgba(32,26,18,.45);
}
[data-theme="light"] .hero-vignette {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(243,234,216,.65) 100%);
}
[data-theme="light"] .scroll-progress {
  background: var(--gold);
}
[data-theme="light"] .hero-ledger {
  background: rgba(0,0,0,.04);
  border-color: var(--border-soft);
}
[data-theme="light"] .section-dots button {
  background: var(--border);
}
[data-theme="light"] .section-dots button.is-active {
  background: var(--gold);
}
[data-theme="light"] .grade-guide {
  background: rgba(0,0,0,.04);
  border-color: var(--border-soft);
}
[data-theme="light"] .compare-drawer {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 -8px 30px -10px rgba(60,40,15,.35);
}
[data-theme="light"] .cart-line {
  border-color: var(--border-soft);
}
[data-theme="light"] .empty-state {
  color: var(--muted);
}
[data-theme="light"] .live-dot {
  box-shadow: 0 0 0 2px var(--bg);
}
[data-theme="light"] .marquee-strip {
  border-color: var(--border-soft);
}
[data-theme="light"] .shimmerText {
  background: linear-gradient(90deg, var(--text) 0%, var(--gold) 50%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .detail-media::after,
[data-theme="light"] .card-media::after {
  background: linear-gradient(180deg, transparent 60%, rgba(243,234,216,.55) 100%);
}
[data-theme="light"] .hero-card::after,
[data-theme="light"] .faction-card::after {
  background: linear-gradient(180deg, transparent 55%, rgba(243,234,216,.7) 100%);
}
[data-theme="light"] .hero-embers {
  opacity: .55;
}
[data-theme="light"] .btn-dark {
  background: rgba(0,0,0,.75);
  color: #fff;
  border-color: transparent;
}
[data-theme="light"] .btn-dark:hover {
  background: rgba(0,0,0,.88);
}
[data-theme="light"] .chip {
  background: rgba(0,0,0,.04);
  border-color: var(--border-soft);
}
[data-theme="light"] .chip:hover,
[data-theme="light"] .chip.is-active {
  background: rgba(168,121,37,.10);
  border-color: var(--gold);
}
[data-theme="light"] .select-wrap::after {
  color: var(--muted);
}
[data-theme="light"] .user-dropdown {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .toast-stack .toast {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .toast-stack .toast.is-error {
  border-color: var(--red);
}
[data-theme="light"] .stars-input button {
  color: var(--border);
}
[data-theme="light"] .stars-input button.on {
  color: var(--gold);
}
[data-theme="light"] .quote-box {
  background: rgba(0,0,0,.04);
  border-color: var(--border-soft);
}
[data-theme="light"] .bid-history {
  background: rgba(0,0,0,.03);
}
[data-theme="light"] .bid-row {
  border-color: var(--border-soft);
}
[data-theme="light"] .review-card {
  background: rgba(0,0,0,.03);
  border-color: var(--border-soft);
}
[data-theme="light"] .review-item {
  border-color: var(--border-soft);
}
[data-theme="light"] .dash-feed a:hover {
  background: rgba(0,0,0,.04);
}
[data-theme="light"] .notice-count {
  background: var(--red);
  color: #fff;
}
[data-theme="light"] .pill-note {
  background: rgba(0,0,0,.05);
  border-color: var(--border-soft);
}
[data-theme="light"] .role-opt {
  background: rgba(0,0,0,.03);
  border-color: var(--border-soft);
}
[data-theme="light"] .role-opt input:checked + span {
  background: rgba(168,121,37,.10);
  border-color: var(--gold);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(251,246,234,.92);
  border-bottom-color: var(--border-soft);
}
[data-theme="light"] .main-nav a {
  color: var(--text-dim);
}
[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.is-active {
  color: var(--text);
}

/* =========================================================================
   PROFILE — Instagram-style painter page
   ========================================================================= */
.profile-hero {
  display: flex; gap: 2.5rem; align-items: flex-start; padding: 2rem 0 1.5rem;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  padding: 3px; display: flex; align-items: center; justify-content: center;
}
.profile-avatar-ring .avatar {
  width: 104px !important; height: 104px !important;
  font-size: 2.8rem !important; border-radius: 50%;
}
.profile-rank-pill {
  position: absolute; bottom: -4px; right: -4px;
  background: var(--gold); color: var(--bg);
  font-size: .62rem; font-weight: 800; padding: 2px 7px;
  border-radius: 999px; border: 2px solid var(--bg);
  font-family: var(--display); letter-spacing: .02em;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.profile-name { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; line-height: 1.1; }
.profile-stars { margin-bottom: .6rem; font-size: .9rem; }
.profile-stats-row { display: flex; gap: 2rem; margin: .8rem 0 1rem; }
.profile-stat { text-align: center; cursor: default; }
.profile-stat .n { font-size: 1.25rem; font-weight: 700; font-family: var(--display); line-height: 1.1; }
.profile-stat .l { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 1px; }
.profile-spec { font-size: .86rem; color: var(--muted); margin-bottom: .45rem; font-style: italic; }
.profile-bio { font-family: var(--serif); font-size: .95rem; color: var(--text-dim); margin: .4rem 0 .7rem; line-height: 1.65; max-width: 480px; }
.profile-rate { font-size: .84rem; color: var(--muted); margin: .4rem 0; }
.profile-req-badge {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  color: var(--green); font-size: .7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; margin-left: .4rem;
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}
.profile-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }

/* medals shelf */
.medals-shelf {
  display: flex; gap: .9rem; overflow-x: auto;
  padding: .9rem 0 .4rem; margin-top: .6rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.medals-shelf::-webkit-scrollbar { display: none; }
.medal-circle { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex-shrink: 0; cursor: default; }
.medal-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; background: var(--surface-2);
  transition: transform var(--t), box-shadow var(--t);
}
.medal-circle:hover .medal-ring { transform: scale(1.1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.medal-label { font-size: .62rem; color: var(--muted); text-align: center; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* profile tab nav */
.profile-tabs { display: flex; border-bottom: 1px solid var(--border-soft); margin: 2rem 0 1.5rem; gap: 0; }
.profile-tab {
  padding: .8rem 1.4rem; border: none; background: none;
  color: var(--muted); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
}
.profile-tab:hover { color: var(--text-dim); }
.profile-tab.is-active { color: var(--text); border-bottom-color: var(--gold); }

/* works grid */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.profile-grid-item { aspect-ratio: 1; overflow: hidden; position: relative; display: block; }
.profile-grid-item .mini-art,
.profile-grid-item .listing-photo { width: 100%; height: 100%; display: block; transition: transform .3s; }
.profile-grid-item:hover .mini-art,
.profile-grid-item:hover .listing-photo { transform: scale(1.05); }
.profile-grid-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.54);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.profile-grid-item:hover .profile-grid-overlay { opacity: 1; }

/* =========================================================================
   BLOG
   ========================================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 16px; overflow: hidden;
  display: block; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 44px -10px rgba(0,0,0,.38); }
.blog-card-media { height: 180px; overflow: hidden; }
.blog-card-media .mini-art { width: 100%; height: 100%; }
.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.blog-card-meta { display: flex; align-items: center; gap: .4rem; font-size: .77rem; color: var(--muted); margin-bottom: .5rem; }
.blog-card-title { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); line-height: 1.2; }
.blog-card-excerpt { font-size: .86rem; color: var(--text-dim); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* blog post */
.blog-post-layout { max-width: 740px; margin: 0 auto; }
.blog-post-cover { height: 320px; border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.blog-post-cover .mini-art { width: 100%; height: 100%; }
.blog-post-title { font-size: clamp(1.65rem, 4vw, 2.4rem); line-height: 1.1; margin-bottom: .9rem; }
.blog-post-meta { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .84rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft); }
.blog-post-body { font-family: var(--serif); font-size: 1.05rem; line-height: 1.85; color: var(--text-dim); }
.blog-post-body p { margin: 0 0 1.3em; }
.blog-post-body strong, .blog-post-body b { color: var(--text); font-weight: 600; }

/* =========================================================================
   VERIFICATION
   ========================================================================= */
.verify-page {
  min-height: 70vh;
  display: grid;
  align-items: center;
}
.verify-shell {
  max-width: 620px;
  text-align: center;
  padding: 3.5rem 1rem;
}
.verify-mark {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.verify-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verify-mark.is-ok { color: var(--green); box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 12%, transparent); }
.verify-mark.is-error { color: var(--red); box-shadow: 0 0 0 8px color-mix(in srgb, var(--red) 12%, transparent); }
.verify-shell .eyebrow {
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 850;
}
.verify-shell h1 { margin-top: .35rem; font-size: clamp(2rem, 5vw, 3rem); }
.verify-shell p { color: var(--text-dim); font-family: var(--serif); font-size: 1.12rem; }
.verify-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* =========================================================================
   ADMIN PANEL
   ========================================================================= */
.admin-layout { display: grid; grid-template-columns: 195px 1fr; gap: 1.5rem; align-items: start; }
.admin-nav { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: .5rem; position: sticky; top: 5.5rem; }
.admin-nav a { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: .84rem; font-weight: 500; transition: background .15s, color .15s; }
.admin-nav a svg { opacity: .7; flex-shrink: 0; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.is-active { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-bright); }
.admin-nav a.is-active svg { opacity: 1; }
.admin-panel-section { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 1.4rem; margin-bottom: 1.2rem; }
.admin-panel-section h3 { font-size: .95rem; margin-bottom: .8rem; color: var(--text-dim); letter-spacing: .03em; }
.activity-feed { display: flex; flex-direction: column; }
.activity-entry { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border-soft); font-size: .83rem; }
.activity-entry:last-child { border-bottom: none; }
.activity-action { font-weight: 700; flex-shrink: 0; font-family: var(--mono, monospace); font-size: .77rem; color: var(--gold-bright); white-space: nowrap; }
.activity-time { color: var(--muted); font-size: .74rem; flex-shrink: 0; white-space: nowrap; margin-left: auto; }
.user-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border-soft); }
.user-row:last-child { border-bottom: none; }
.medal-def-card { display: flex; align-items: center; gap: .8rem; padding: .8rem; background: var(--surface-2); border-radius: 10px; margin-bottom: .6rem; }
.medal-icon-big { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.admin-blog-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border-soft); }
.admin-blog-row:last-child { border-bottom: none; }
.admin-mail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.admin-mail-row:last-child { border-bottom: none; }
.admin-mail-row strong { display: block; color: var(--text); }
.admin-mail-row span { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.admin-mail-meta { text-align: right; flex: none; }
.admin-mail-meta a { color: var(--gold-bright); font-size: .8rem; font-weight: 800; }
.blog-editor { display: flex; flex-direction: column; gap: 1rem; }
.blog-editor textarea { min-height: 220px; font-family: var(--serif); font-size: .92rem; }

/* responsive */
@media (max-width: 860px) {
  .profile-hero { flex-direction: column; gap: 1.2rem; align-items: center; text-align: center; }
  .profile-bio { margin-left: auto; margin-right: auto; }
  .profile-stats-row { justify-content: center; gap: 1.4rem; }
  .profile-actions { justify-content: center; }
  .medals-shelf { justify-content: center; }
  .blog-post-cover { height: 200px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; }
  .admin-nav a { flex: 1 1 auto; justify-content: center; font-size: .75rem; padding: .5rem; }
  .admin-nav a svg { display: none; }
}

/* =========================================================================
   LAUNCH OPERATIONS + GUIDE PAGES
   ========================================================================= */
.launch-page { padding-top: clamp(2rem, 5vw, 4.5rem); }
.launch-hero { min-height: auto; padding-top: clamp(5.5rem, 9vw, 8rem); }
.launch-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}
.launch-head h1,
.launch-hero h1 {
  max-width: 980px;
  margin: .35rem 0 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .98;
}
.launch-head p,
.launch-hero p {
  max-width: 780px;
  margin: .8rem 0 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.launch-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.launch-panel {
  border: 1px solid rgba(201,169,110,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.launch-panel.wide { grid-column: 1 / -1; }
.launch-panel h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}
.launch-panel p { color: var(--text-dim); line-height: 1.65; }
.launch-muted { color: var(--muted); }
.launch-empty {
  border: 1px dashed rgba(201,169,110,.28);
  border-radius: 8px;
  padding: 1rem;
  color: var(--muted);
}
.ops-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.ops-stat-grid > div,
.ops-stat-row > div {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: .9rem;
  background: rgba(0,0,0,.2);
}
.ops-stat-grid span,
.ops-stat-row span,
.ops-row span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}
.ops-stat-grid strong,
.ops-stat-row strong {
  display: block;
  margin-top: .25rem;
  color: var(--text);
  font-size: 1.18rem;
}
.ops-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.ops-list { display: grid; gap: .75rem; }
.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .9rem;
  background: rgba(0,0,0,.18);
}
.ops-row > div { min-width: 0; }
.ops-row strong { display: block; color: var(--text); }
.ops-row p {
  margin: .5rem 0 0;
  color: var(--text-dim);
  font-size: .9rem;
}
.ops-row > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.ops-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: .25rem .65rem;
  border: 1px solid rgba(201,169,110,.35);
  color: var(--gold);
  background: rgba(201,169,110,.12);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.ops-approved,
.ops-resolved,
.ops-released,
.ops-up {
  color: #89d993;
  border-color: rgba(137,217,147,.35);
  background: rgba(137,217,147,.12);
}
.ops-rejected,
.ops-refunded,
.ops-down {
  color: #ff9a9a;
  border-color: rgba(255,154,154,.38);
  background: rgba(255,154,154,.12);
}
.ops-disputed,
.ops-open,
.ops-pending,
.ops-reviewing,
.ops-degraded {
  color: #ffd36e;
  border-color: rgba(255,211,110,.4);
  background: rgba(255,211,110,.12);
}
.ops-form { display: grid; gap: .85rem; }
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .9rem;
}
.ops-pre,
.ops-code {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  padding: .85rem;
}
.ops-pre {
  min-height: 96px;
  font-size: .78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.ops-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: .08em;
}
.ops-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}
.ops-inline-form input,
.ops-row select {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: var(--text);
  padding: .45rem .6rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-dim);
}
.photo-manager-grid,
.faction-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}
.photo-manager-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .7rem;
  background: rgba(0,0,0,.2);
}
.photo-manager-card img {
  width: 110px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #080706;
}
.photo-manager-card span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.photo-manager-card p {
  margin: .25rem 0 .55rem;
  color: var(--muted);
  font-size: .86rem;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

@media (max-width: 980px) {
  .launch-grid,
  .launch-grid.two,
  .ops-stat-grid,
  .ops-stat-row {
    grid-template-columns: 1fr;
  }
  .launch-head { display: block; }
  .launch-head .btn { margin-top: 1rem; }
  .ops-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-row > div:last-child { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .photo-manager-card { grid-template-columns: 1fr; }
  .photo-manager-card img { width: 100%; }
}

/* ---- print ---- */
@media print {
  .hero-embers, .hero-scroll, .section-dots, .marquee-strip, .hero-ledger,
  .live-dot, .toast-stack, .mini-nav, .hero-vignette, .hero-float { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  body { background: #fff !important; color: #000 !important; }
  .card, .grade-card, .mechanic-card, .trust-step, .proof-item {
    break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc !important;
  }
  a { text-decoration: underline; color: #000 !important; }
}
