/* ArtConnect — Main Component Styles */

/* ───── Notifications ───── */
.ac-notif-wrap { position: relative; }
.ac-notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 999px; text-align: center;
  pointer-events: none;
}
.ac-notif-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 200;
}
.ac-notif-dropdown.is-open { display: block; }
.ac-notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
}
.ac-notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.ac-notif-item:hover { background: var(--surface); }
.ac-notif-item.unread { background: color-mix(in srgb, var(--navy) 4%, transparent); }
.ac-notif-item.unread .ac-notif-title { font-weight: 600; }
.ac-notif-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}
.ac-notif-title { font-size: 13px; line-height: 1.3; margin-bottom: 2px; }
.ac-notif-body  { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ac-notif-time  { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.ac-notif-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ───── Nav ───── */
.ac-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  transition: box-shadow .25s var(--ease), background-color .35s var(--ease);
}
.ac-nav.is-scrolled { box-shadow: 0 1px 0 var(--hairline); }

.ac-announce {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 7px var(--gutter); background: var(--ink); color: var(--bg);
  font-size: 12px; letter-spacing: .02em; overflow: hidden;
}
[data-theme="dark"] .ac-announce { background: var(--surface); color: var(--ink-soft); }
.ac-announce span { display: inline-flex; align-items: center; gap: 8px; }
.ac-announce .muted { color: rgba(245,240,235,.65); }
[data-theme="dark"] .ac-announce .muted { color: var(--muted); }

.ac-nav-row {
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.ac-nav-left { display: flex; align-items: center; gap: 48px; }
.ac-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ac-logo span { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; font-weight: 500; }

.ac-links { display: flex; gap: 28px; align-items: center; }
.ac-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.ac-links a:hover { color: var(--ink); }
.ac-links a.active { color: var(--ink); }
.ac-links a.active::after,
.ac-links a:hover::after {
  content: ''; position: absolute; inset: auto 0 -2px 0; height: 1px; background: var(--accent);
}

.ac-nav-right { display: flex; align-items: center; gap: 4px; }
.ac-icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink); border-radius: var(--radius); position: relative;
}
.ac-icon-btn:hover { background: var(--surface-2); }

.ac-badge {
  position: absolute; top: 4px; right: 4px; background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  padding: 0 4px; display: inline-flex; align-items: center; justify-content: center;
}
.ac-signin { margin-left: 8px; padding: 8px 14px !important; font-size: 13px; }

/* ── User menu ───────────────────────────────────────────── */
.ac-user-menu { position: relative; margin-left: 8px; }

.ac-user-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink);
  white-space: nowrap; transition: background .15s;
}
.ac-user-trigger:hover { background: var(--surface-2); }

.ac-user-avatar {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--ink-soft);
}
.ac-user-chevron { opacity: .45; flex-shrink: 0; }

/* Shared dropdown shell — used by user menu and sort dropdown */
.gal-sort-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 220px; padding: 6px; z-index: 200;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.gal-sort.is-open .gal-sort-menu,
.gal-sort-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.gal-sort-item {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 9px 12px; border-radius: 4px;
  font-size: 13px; white-space: nowrap; box-sizing: border-box;
  text-decoration: none; color: var(--ink);
}
.gal-sort-item:hover { background: var(--surface-2); }
.gal-sort-item.is-active { font-weight: 600; }

.ac-user-dropdown { right: 0; top: calc(100% + 8px); min-width: 220px; }

.ac-user-header {
  padding: 10px 12px 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.ac-user-header-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-user-header-email { font-size: 11px; color: var(--muted); margin-top: 2px; word-break: break-all; }

.ac-user-divider { border-top: 1px solid var(--hairline); margin: 4px 0; }

.ac-signout-btn {
  width: 100%; text-align: left; border: 0; background: none;
  color: var(--terracotta); cursor: pointer; font: inherit;
}

/* Mobile nav */
.ac-hamburger { display: none; }

/* Medium desktop: shrink gaps and hide secondary links + user name */
@media (max-width: 1200px) {
  .ac-nav-left { gap: 28px; }
  .ac-links { gap: 18px; }
  .ac-link-secondary { display: none; }
  .ac-user-name { display: none; }
}

/* Tablet / small desktop: hide nav links, show hamburger */
@media (max-width: 960px) {
  .ac-links { display: none; }
  .ac-hamburger { display: inline-flex; }
  .ac-announce .ac-announce-secondary { display: none; }
}

.ac-mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--surface); border-top: 1px solid var(--hairline);
  padding: 8px 0;
}
.ac-mobile-menu.is-open { display: flex; }
.ac-mobile-menu a {
  display: block; padding: 14px var(--gutter);
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}
.ac-mobile-menu a:hover { color: var(--ink); background: var(--surface-2); }

/* ───── Hero ───── */
.ac-hero { padding: 48px 0 64px; }
.ac-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: clamp(24px,4vw,64px); align-items: stretch;
}
@media (max-width: 900px) {
  .ac-hero-grid { grid-template-columns: 1fr; }
  .ac-hero-art { aspect-ratio: 16/9; order: -1; }
}

.ac-hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-top: 16px; }
.ac-hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.ac-hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.ac-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px,7vw,104px); line-height: .96;
  letter-spacing: -.02em; margin: 24px 0 0; color: var(--ink);
}
.ac-hero h1 em { font-style: italic; color: var(--ink-soft); }
.hero-cursor {
  display: inline-block; font-style: italic; color: var(--accent);
  font-family: var(--serif); font-size: inherit; line-height: 1;
  animation: blink .75s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ac-hero-lede { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 44ch; margin: 28px 0 0; }
.ac-hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.ac-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 4px;
  margin-top: 32px; border-top: 1px solid var(--hairline); padding-top: 24px;
}
.ac-hero-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.ac-hero-stats .num { font-family: var(--serif); font-size: 28px; line-height: 1; }
.ac-hero-stats .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.ac-hero { overflow: visible; }
.ac-hero-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
  align-self: start;
}
.ac-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-hero-caption {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px;
  background: rgba(11,28,63,.78); backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius); color: #F4ECDB;
}
.ac-hero-caption .meta { font-family: var(--serif); font-size: 18px; line-height: 1.2; font-style: italic; }
.ac-hero-caption .meta b { font-style: normal; font-weight: 500; display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.ac-hero-caption .price { font-family: var(--serif); font-size: 22px; }
.ac-hero-side { position: absolute; top: 24px; left: 24px; display: flex; flex-direction: column; gap: 10px; }

.ac-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: rgba(244,236,219,.92); color: #0B1C3F;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.ac-pill.gold { background: var(--gold); color: #0B1C3F; }

/* ───── Section structure ───── */
.ac-section { padding: clamp(64px,9vw,120px) 0; }
.ac-section.tight { padding: clamp(40px,6vw,80px) 0; }
.ac-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.ac-section-head h2 { max-width: 18ch; }
.ac-section-head .right { display: flex; gap: 16px; align-items: center; }

/* ───── Manifesto ───── */
.ac-manifesto { background: var(--surface-2); padding: clamp(80px,12vw,160px) 0; position: relative; }
.ac-manifesto-inner { max-width: 920px; }
.ac-manifesto p {
  font-family: var(--serif); font-size: clamp(28px,3.4vw,44px);
  line-height: 1.22; color: var(--ink); margin: 0; letter-spacing: -.005em;
}
.ac-manifesto p em { font-style: italic; color: var(--ink-soft); }
.ac-manifesto .signature {
  margin-top: 32px; display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.ac-manifesto .signature .line { width: 40px; height: 1px; background: var(--accent); }

/* ───── Featured story ───── */
.ac-story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  align-items: stretch; background: var(--ink); color: #F4ECDB;
  border-radius: var(--radius-lg); overflow: hidden;
}
.ac-story-img { position: relative; aspect-ratio: 5/6; min-height: 480px; background: var(--navy-deep); }
.ac-story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-story-body { padding: clamp(32px,5vw,72px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.ac-story-body .eyebrow { color: var(--gold-soft); }
.ac-story-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3vw,42px); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.ac-story-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px,1.8vw,24px);
  line-height: 1.4; color: rgba(244,236,219,.85);
  border-left: 2px solid var(--gold); padding-left: 20px;
}
.ac-story-byline { display: flex; align-items: center; gap: 14px; font-size: 13px; }
@media (max-width: 900px) { .ac-story { grid-template-columns: 1fr; } }

/* ───── Filter chips ───── */
.ac-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-chip {
  padding: 8px 16px; border: 1px solid var(--hairline-strong); background: transparent;
  color: var(--ink-soft); border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: all .2s var(--ease); cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center;
}
.ac-chip:hover { color: var(--ink); border-color: var(--ink); }
.ac-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ac-chip .count { color: var(--muted); margin-left: 6px; font-size: 11px; }
.ac-chip.is-active .count { color: rgba(245,240,235,.6); }

/* ───── Art grid ───── */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px 24px;
}
.ac-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px 32px; }
@media (max-width: 1100px) { .ac-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px)  { .ac-grid, .ac-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 16px; } }
@media (max-width: 480px)  { .ac-grid, .ac-grid.cols-3 { grid-template-columns: 1fr; } }

/* ───── Art card ───── */
.ac-card { display: flex; flex-direction: column; gap: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.ac-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
.ac-card-img {
  position: relative; background: var(--surface-2);
  overflow: hidden; aspect-ratio: 4/5;
}
.ac-card-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.ac-card-img:first-child { position: relative; }
.ac-card:hover .ac-card-slide[style=""] { transform: scale(1.04); transition: transform .6s var(--ease), opacity .35s ease; }

/* ── Carousel controls ── */
.ac-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.75); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: 0.45; transition: opacity .2s, background .2s;
  backdrop-filter: blur(6px); z-index: 3;
}
.ac-card-img:hover .ac-carousel-btn { opacity: 1; background: rgba(255,255,255,.95); }
.ac-carousel-prev { left: 8px; }
.ac-carousel-next { right: 8px; }
.ac-carousel-dots {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.ac-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
  transition: background .2s, transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.ac-carousel-dot.active { background: #fff; transform: scale(1.35); }

/* ── Wishlist heart ── */
.ac-save {
  position: absolute; top: 48px; right: 10px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 1; transition: background .2s, color .2s, transform .15s;
  backdrop-filter: blur(6px); z-index: 3; text-decoration: none;
}
.ac-save:hover { background: #fff; transform: scale(1.1); }
.ac-save.is-saved { color: #e53e3e; }
[data-theme="dark"] .ac-save { background: rgba(30,40,55,.88); color: var(--ink); }

/* ── Category tag + sale flag ── */
.ac-card-tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px;
  background: rgba(244,236,219,.92); color: var(--ink);
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 3px; z-index: 3; backdrop-filter: blur(4px);
}
.ac-sale-flag {
  position: absolute; bottom: 36px; left: 10px; padding: 2px 7px;
  background: #e53e3e; color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  border-radius: 3px; z-index: 3;
}

/* ── Card meta ── */
.ac-card-meta { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 8px; cursor: pointer; }
.ac-card-artist { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.ac-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.ac-card-price { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.ac-card.is-compact .ac-card-img { aspect-ratio: 1/1; }

/* ── Pricing: slash price + you save ── */
.ac-card-pricing { margin-top: 6px; }
.ac-card-prices { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.ac-sale-price { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 600; }
.ac-sale-price.on-sale { color: #e53e3e; }
.ac-compare-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.ac-save-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; padding: 2px 8px;
  background: rgba(22,163,74,.1); color: #15803d;
  font-size: 11px; font-weight: 600; border-radius: 4px;
}
[data-theme="dark"] .ac-save-badge { background: rgba(22,163,74,.15); color: #4ade80; }

/* ── Add to cart controls ── */
.ac-card-actions { padding: 10px 14px 14px; }
.ac-add-btn {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s; text-decoration: none;
}
.ac-add-btn:hover { background: #0a1830; color: #fff; }
.ac-qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--navy); border-radius: 8px; overflow: hidden;
}
.ac-qty-btn {
  width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.ac-qty-btn:hover { background: var(--navy); color: #fff; }
.ac-qty-num { flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); }
.ac-qty-plus { cursor: default; opacity: .35; }
.ac-qty-plus:hover { background: transparent; color: var(--navy); }
.ac-hidden { display: none !important; }

/* ───── Trust strip ───── */
.ac-trust-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.ac-trust-item {
  padding: 36px 32px; display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--hairline);
}
.ac-trust-item:last-child { border-right: 0; }
.ac-trust-item .ic { color: var(--accent); }
.ac-trust-item h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; line-height: 1.2; }
.ac-trust-item p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
@media (max-width: 800px) {
  .ac-trust-strip { grid-template-columns: repeat(2,1fr); }
  .ac-trust-item:nth-child(2) { border-right: 0; }
  .ac-trust-item:nth-child(1), .ac-trust-item:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}

/* ───── Categories ───── */
.ac-cats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 800px) { .ac-cats { grid-template-columns: repeat(2,1fr); } }
.ac-cat {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--surface-2); display: block;
}
.ac-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ac-cat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,28,63,.85) 100%);
}
.ac-cat:hover img { transform: scale(1.06); }
.ac-cat-label {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  color: #F4ECDB; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.ac-cat-label h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0; line-height: 1; }
.ac-cat-label .cnt { font-size: 12px; color: rgba(244,236,219,.75); margin-top: 4px; display: block; }
.ac-cat-arrow {
  width: 36px; height: 36px; border-radius: 999px; background: rgba(244,236,219,.9);
  color: #0B1C3F; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease);
}
.ac-cat:hover .ac-cat-arrow { transform: rotate(-45deg); }

/* ───── Strip (recently viewed) ───── */
.ac-strip { padding-bottom: 4px; }
.ac-strip > .ac-card { width: 280px; margin-right: 16px; }

/* ───── Newsletter ───── */
.ac-newsletter {
  background: var(--ink); color: #F4ECDB; border-radius: var(--radius-lg);
  padding: clamp(40px,6vw,72px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.ac-newsletter h2 { color: #F4ECDB; }
.ac-newsletter p { color: rgba(244,236,219,.75); margin: 16px 0 0; max-width: 50ch; }
.ac-news-form { display: flex; flex-direction: column; gap: 12px; }
.ac-news-form .row { display: flex; gap: 8px; }
.ac-news-form .input { background: rgba(244,236,219,.06); border-color: rgba(244,236,219,.2); color: #F4ECDB; }
.ac-news-form .input::placeholder { color: rgba(244,236,219,.4); }
.ac-news-form .input:focus { border-color: var(--gold); }
.ac-news-form .btn-sub { background: var(--gold); color: #0B1C3F; border-color: var(--gold); }
.ac-news-form .btn-sub:hover { background: var(--gold-soft); }
.ac-news-form .small { color: rgba(244,236,219,.55); font-size: 12px; }
@media (max-width: 800px) { .ac-newsletter { grid-template-columns: 1fr; } }

/* ───── Footer ───── */
.ac-footer { background: var(--surface-2); padding: 80px 0 32px; margin-top: 80px; }
.ac-footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; padding-bottom: 56px; }
.ac-footer-cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.ac-footer-cols h4 { font-family: var(--serif); font-weight: 500; font-size: 14px; margin: 0 0 16px; letter-spacing: .04em; }
.ac-footer-cols a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); }
.ac-footer-cols a:hover { color: var(--ink); }
.ac-footer-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.ac-footer-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ac-footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; }
@media (max-width: 900px) {
  .ac-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .ac-footer-cols { grid-template-columns: repeat(2,1fr); }
}

/* ───── Avatar ───── */
.ac-avatar {
  border-radius: 999px; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto; position: relative; font-weight: 500;
}
.ac-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-avatar-initials { position: relative; z-index: 1; font-family: var(--serif); }

/* ───── Search overlay ───── */
.ac-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,21,47,.55); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 24px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.ac-overlay.is-open { opacity: 1; pointer-events: auto; }
.ac-search-panel {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); width: 100%; max-width: 720px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-12px); opacity: 0;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.ac-overlay.is-open .ac-search-panel { transform: none; opacity: 1; }
.ac-search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline);
}
.ac-search-input-row input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font-family: var(--serif); font-size: 24px; outline: none;
}
.ac-search-input-row .kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--hairline-strong); padding: 2px 6px; border-radius: 3px; }
.ac-search-results { padding: 12px 0 16px; max-height: 60vh; overflow: auto; }
.ac-search-section { padding: 12px 22px 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ac-search-item { display: flex; align-items: center; gap: 14px; padding: 10px 22px; cursor: pointer; }
.ac-search-item:hover { background: var(--surface-2); }
.ac-search-item .thumb { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); flex: 0 0 auto; }
.ac-search-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-search-item .body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ac-search-item .body strong { font-weight: 500; font-size: 14px; }
.ac-search-item .body span { font-size: 12px; color: var(--muted); }
.ac-search-item .price { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); }

/* ───── Cart drawer ───── */
.ac-drawer-bg {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(6,21,47,.4); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.ac-drawer-bg.is-open { opacity: 1; pointer-events: auto; }
.ac-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px,92vw); z-index: 1002;
  background: var(--surface); border-left: 1px solid var(--hairline);
  box-shadow: -24px 0 60px rgba(6,21,47,.2); transform: translateX(100%);
  transition: transform .35s var(--ease); display: flex; flex-direction: column;
}
.ac-drawer.is-open { transform: none; }
.ac-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--hairline);
}
.ac-drawer-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; }
.ac-drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.ac-cart-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.ac-cart-row .thumb { width: 84px; height: 100px; flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.ac-cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-cart-row .body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ac-cart-row .title { font-family: var(--serif); font-style: italic; font-size: 16px; }
.ac-cart-row .artist { font-size: 12px; color: var(--muted); }
.ac-cart-row .row-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.ac-cart-row .price { font-family: var(--serif); font-size: 15px; }
.ac-cart-row .remove { background: 0; border: 0; font-size: 12px; color: var(--muted); text-decoration: underline; padding: 0; }
.ac-cart-row .remove:hover { color: var(--terracotta); }
.ac-drawer-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.ac-drawer-empty h4 { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 400; margin: 16px 0 6px; }
.ac-drawer-foot { padding: 20px 24px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 14px; }
.ac-drawer-foot .totals { display: flex; justify-content: space-between; font-size: 14px; }
.ac-drawer-foot .grand { font-family: var(--serif); font-size: 22px; }
.ac-drawer-foot .escrow-note { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }

/* ───── Toast ───── */
.ac-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 13px; z-index: 1200; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
}
.ac-toast.is-open { opacity: 1; transform: translateX(-50%); }
[data-theme="dark"] .ac-toast { background: var(--surface); }

/* ───── Section divider ───── */
.ac-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0 auto; max-width: 200px; }
.ac-divider::before, .ac-divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline-strong); }
.ac-divider .diamond { width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }

/* ───── Page hero (interior pages) ───── */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px,5vw,64px); letter-spacing: -.015em; margin: 12px 0 8px; line-height: 1.02; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0 0 20px; font-size: 15px; }

/* ───── Breadcrumbs ───── */
.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 16px 0; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: .5; }

/* ───── Stats bar ───── */
.stats-bar { display: flex; gap: 24px; font-size: 13px; color: var(--muted); align-items: center; flex-wrap: wrap; padding-bottom: 24px; }
.stats-bar b { color: var(--ink); font-weight: 600; }
.stats-bar .live { color: var(--accent); }

/* ───── Empty state ───── */
.ac-empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--hairline-strong); border-radius: var(--radius); }
.ac-empty h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 12px 0 6px; }
.ac-empty p { color: var(--muted); margin: 0 0 18px; }

/* ───── Auth modal ───── */
.ac-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(6,21,47,.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.ac-modal.is-open { opacity: 1; pointer-events: auto; }
.ac-modal-card {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 440px; padding: 36px;
  box-shadow: var(--shadow-lg); transform: translateY(8px);
  transition: transform .3s var(--ease);
}
.ac-modal.is-open .ac-modal-card { transform: none; }
.ac-modal h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 0; }
.ac-modal .sub { color: var(--muted); margin: 8px 0 28px; font-size: 14px; }
.ac-role-select { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.ac-role-btn { border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink); padding: 14px 8px; border-radius: var(--radius); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.ac-role-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ac-modal-form { display: flex; flex-direction: column; gap: 12px; }
.ac-modal-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.ac-modal-foot a { color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ───── Artist card (directory) ───── */
.artist-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease);
}
.artist-card:hover { box-shadow: var(--shadow-md); }
.artist-card-cover { position: relative; aspect-ratio: 3/2; background: var(--surface-2); overflow: hidden; }
.artist-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.artist-card:hover .artist-card-cover img { transform: scale(1.04); }
.artist-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.artist-card-meta { display: flex; flex-direction: column; gap: 2px; }
.artist-card-name { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); }
.artist-card-sub { font-size: 13px; color: var(--muted); }
.artist-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.artist-card-stats { font-size: 12px; color: var(--muted); }

/* ───── Dashboard layout ───── */
.dash-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }

.dash-sidebar {
  background: var(--surface); border-right: 1px solid var(--hairline);
  padding: 32px 0; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto;
}
.dash-sidebar-brand { padding: 0 24px 24px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.dash-sidebar-brand .role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--surface-2); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-top: 8px;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); transition: all .2s var(--ease);
  border-left: 2px solid transparent;
}
.dash-nav-item:hover { color: var(--ink); background: var(--surface-2); }
.dash-nav-item.active { color: var(--ink); border-left-color: var(--accent); background: var(--surface-2); }
.dash-nav-item svg { flex: 0 0 auto; }
.dash-nav-group { padding: 16px 24px 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.dash-main { padding: clamp(24px,4vw,48px); }
.dash-header { margin-bottom: 32px; }
.dash-header h1 { font-family: var(--serif); font-size: clamp(28px,3vw,38px); font-weight: 400; margin: 0 0 4px; }
.dash-header p { color: var(--muted); font-size: 14px; margin: 0; }

/* ───── Stat cards ───── */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.stat-card .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-card .value { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--ink); }
.stat-card .delta { font-size: 12px; color: #1F8A5B; display: flex; align-items: center; gap: 4px; }
.stat-card .delta.neg { color: var(--terracotta); }

/* ───── Data table ───── */
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th { padding: 12px 16px; text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--hairline); }
.ac-table td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); vertical-align: middle; }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table tr:hover td { background: var(--surface-2); }
.ac-table-wrap { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.ac-table-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.ac-table-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 0; }

/* ───── Status badges ───── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge-paid      { background: rgba(31,138,91,.1);  color: #1F8A5B; }
.badge-processing{ background: rgba(201,168,76,.15); color: #8a6800; }
.badge-shipped   { background: rgba(63,110,140,.1);  color: #3F6E8C; }
.badge-delivered { background: rgba(31,138,91,.1);  color: #1F8A5B; }
.badge-disputed  { background: rgba(181,83,42,.1);  color: var(--terracotta); }
.badge-pending   { background: rgba(107,103,89,.1);  color: var(--muted); }
.badge-active    { background: rgba(31,138,91,.1);  color: #1F8A5B; }
.badge-inactive  { background: rgba(181,83,42,.1);  color: var(--terracotta); }

/* ───── Order timeline ───── */
.order-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.order-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 1px; background: var(--hairline);
}
.timeline-step { display: flex; gap: 20px; padding: 0 0 32px; position: relative; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 999px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 2px solid var(--hairline); color: var(--muted); position: relative; z-index: 1;
}
.timeline-dot.done { background: #1F8A5B; border-color: #1F8A5B; color: white; }
.timeline-dot.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timeline-body { flex: 1; padding-top: 4px; }
.timeline-body h4 { font-weight: 600; font-size: 15px; margin: 0 0 2px; color: var(--ink); }
.timeline-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* ───── Chat layout ───── */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); height: calc(100vh - 76px); overflow: hidden; }
@media (max-width: 800px) { .chat-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.chat-sidebar { border-right: 1px solid var(--hairline); overflow-y: auto; }
.chat-thread {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--hairline); cursor: pointer; transition: background .15s;
  text-decoration: none; color: inherit;
}
.chat-thread:hover, .chat-thread.active { background: var(--surface-2); }
.chat-thread-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-thread-time { font-size: 11px; color: var(--muted); }
.chat-thread-unread { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }

/* Main panel */
.chat-main { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chat-protect-banner { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 12px; color: #92400e; flex-shrink: 0; }

/* Messages */
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 72%; }
.chat-msg:not(.outgoing) { align-self: flex-start; }
.chat-msg.outgoing { align-self: flex-end; flex-direction: row-reverse; }

/* Bubbles — background applied directly on .chat-bubble */
.chat-bubble {
  padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  font-size: 14px; line-height: 1.55; word-break: break-word; white-space: pre-wrap;
  background: var(--surface-2); color: var(--ink);
}
.chat-msg.outgoing .chat-bubble {
  background: var(--navy, #0B1C3F); color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.chat-time { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.chat-msg.outgoing .chat-time { text-align: right; }
.voice-bubble { padding: 8px 10px; }
.voice-bubble audio { display: block; max-width: 240px; }
.chat-bubble-img { padding: 4px; }
.chat-bubble-file { padding: 10px 14px; }

/* Input bar */
.chat-input-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--hairline);
  background: var(--bg); flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: 9px 14px; border: 1px solid var(--hairline-strong);
  border-radius: 20px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); resize: none; min-height: 38px; max-height: 140px;
  outline: none; line-height: 1.5; overflow-y: auto;
}
.chat-input:focus { border-color: var(--ink); }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 999px; border: none;
  background: var(--navy, #0B1C3F); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s;
}
.chat-send-btn:hover { opacity: .82; }
.voice-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.voice-btn:hover { background: var(--surface-2); color: var(--ink); }
.voice-btn.recording { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.recording-indicator { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dc2626; }
.rec-dot { width: 8px; height: 8px; border-radius: 999px; background: #dc2626; animation: rec-blink 1s ease-in-out infinite; }
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* call icon buttons in chat header */
.call-icon-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.call-icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ───── Notifications panel ───── */
.notif-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(201,168,76,.06); }
.notif-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; margin-top: 6px; }
.notif-body { flex: 1; font-size: 13px; }
.notif-body strong { color: var(--ink); }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ───── Form sections ───── */
.form-section { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.form-section h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-group.full { grid-column: 1 / -1; }

/* ───── Image upload ───── */
.img-upload-zone {
  border: 2px dashed var(--hairline-strong); border-radius: var(--radius);
  padding: 48px; text-align: center; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s;
}
.img-upload-zone:hover { border-color: var(--ink); background: var(--surface-2); }
.img-upload-zone .icon { color: var(--muted); margin: 0 auto 12px; }
.img-upload-zone p { color: var(--muted); margin: 0; font-size: 14px; }
.img-upload-zone .size-hint { font-size: 12px; margin-top: 4px; }

/* ───── Pagination ───── */
.ac-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 64px 0 16px; }
.ac-page { width: 40px; height: 40px; background: transparent; border: 1px solid transparent; color: var(--ink-soft); font-size: 13px; border-radius: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ac-page:hover { border-color: var(--hairline-strong); color: var(--ink); }
.ac-page.active { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* ───── Auth pages ───── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 520px 1fr;
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

.auth-card {
  padding: 48px 56px 64px;
  display: flex; flex-direction: column; gap: 0;
  max-width: 520px;
}
@media (max-width: 600px) {
  .auth-card { padding: 32px 20px 48px; }
}

.auth-brand { margin-bottom: 40px; }
.auth-head { margin-bottom: 28px; }
.auth-title { font-family: var(--serif); font-size: clamp(24px,3vw,32px); font-weight: 400; margin: 0 0 8px; color: var(--ink); }
.auth-sub { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

.auth-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.auth-alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
[data-theme="dark"] .auth-alert-error { background: rgba(153,27,27,.15); border-color: rgba(153,27,27,.4); color: #FCA5A5; }
[data-theme="dark"] .auth-alert-success { background: rgba(22,101,52,.15); border-color: rgba(22,101,52,.4); color: #86EFAC; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  color: var(--ink); font-size: 14px; font-weight: 500;
  border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  margin-bottom: 20px;
}
.btn-google:hover { background: var(--surface-2); border-color: var(--ink-soft); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--hairline); }

.auth-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }

.input-password-wrap { position: relative; }
.input-password-wrap .input { padding-right: 44px; }
.input-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  opacity: .5; padding: 4px; transition: opacity .2s;
}
.input-eye:hover { opacity: 1; }

.field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.field-error { display: block; font-size: 11px; color: #DC2626; margin-top: 4px; }
.input-error { border-color: #DC2626 !important; }

.ac-checkbox {
  width: 16px; height: 16px; border: 1.5px solid var(--hairline-strong);
  border-radius: 3px; cursor: pointer; accent-color: var(--navy);
  flex-shrink: 0;
}

.auth-switch { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 0; }
.auth-link { color: var(--navy); font-weight: 500; text-decoration: none; }
[data-theme="dark"] .auth-link { color: var(--gold-soft); }
.auth-link:hover { text-decoration: underline; }

/* Role selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px;
  border: 1.5px solid var(--hairline); border-radius: 8px;
  cursor: pointer; transition: border-color .2s, background .2s;
  text-align: center;
}
.role-option input[type="radio"] { display: none; }
.role-option:hover { border-color: var(--navy); }
.role-option.is-selected { border-color: var(--navy); background: rgba(11,28,63,.04); }
[data-theme="dark"] .role-option.is-selected { background: rgba(201,168,76,.06); border-color: var(--gold); }
.role-icon { color: var(--navy); }
[data-theme="dark"] .role-icon { color: var(--gold-soft); }
.role-label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.role-desc { font-size: 11px; color: var(--muted); margin: 0; }

/* Auth side panel */
.auth-side {
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 64px;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,.12) 0%, transparent 60%);
}
.auth-side-inner { position: relative; z-index: 1; max-width: 360px; }
.auth-quote {
  font-family: var(--serif); font-size: clamp(22px,2.5vw,30px);
  color: #F4ECDB; font-style: italic; font-weight: 400;
  line-height: 1.45; margin: 0 0 16px; quotes: none;
}
.auth-cite { font-size: 13px; color: var(--gold-soft); letter-spacing: .04em; display: block; margin-bottom: 48px; }

.auth-side-stats {
  display: flex; gap: 32px;
}
.auth-side-stats > div { display: flex; flex-direction: column; gap: 4px; }
.auth-stat-num { font-family: var(--serif); font-size: 28px; color: #F4ECDB; line-height: 1; }
.auth-stat-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,236,219,.5); }

.auth-perks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(244,236,219,.8);
}

/* Password reset */
.auth-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  margin-bottom: 32px;
}
.auth-back-link:hover { color: var(--ink); }
.ac-page.arrow { width: auto; padding: 0 14px; }

/* ── Testimonial cards ── */
.ac-testimonial {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.ac-testimonial-stars { line-height: 1; }
.ac-testimonial-quote {
  font-size: 14px; line-height: 1.75; color: var(--ink-soft);
  font-style: italic; margin: 0; flex: 1;
}
.ac-testimonial-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}

/* ───── Auction Box ───── */
.det-auction-box {
  border: 2px solid var(--gold); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px;
  background: linear-gradient(135deg, #fffbf2 0%, #fff 100%);
}
[data-theme="dark"] .det-auction-box { background: var(--surface); border-color: var(--gold); }
.det-auction-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.auction-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #e67e22; background: #fdf2e9; border-radius: 20px; padding: 4px 12px;
}
.auction-countdown {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.det-auction-bids {
  margin-bottom: 16px;
}
.auction-top-bid {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.auction-top-bid .label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.auction-top-bid .amount { font-size: 26px; font-weight: 700; color: var(--navy); font-family: var(--serif); }
.auction-top-bid .count { font-size: 13px; color: var(--muted); }
.det-bid-form { display: flex; gap: 10px; align-items: stretch; }
.det-bid-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: var(--sans); min-width: 0;
}
.det-bid-input:focus { outline: none; border-color: var(--navy); }

/* ───── Flash alerts ───── */
.ac-alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.ac-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
