/* ═══════════════════════════════════════════════════════════
   TheWatchlist — Main Stylesheet
   Aesthetic: Refined luxury dark — obsidian, champagne gold, ivory
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --obsidian:    #0d0d0f;
  --charcoal:    #161618;
  --surface:     #1e1e22;
  --surface-2:   #26262c;
  --border:      #2e2e36;
  --border-soft: #3a3a44;

  --gold:        #c9a84c;
  --gold-light:  #e0bf78;
  --gold-dim:    #8a6e2e;
  --ivory:       #f5f0e8;
  --ivory-dim:   #c8c0b0;
  --white:       #ffffff;

  --text-primary:   #f0ece4;
  --text-secondary: #9e9a90;
  --text-muted:     #5e5a54;

  --success: #4caf77;
  --error:   #e05252;
  --warning: #d4a84b;

  --font-display: 'Times New Roman', Times, serif;
  --font-body:    'Times New Roman', Times, serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);

  --transition: 0.2s ease;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { display: block; max-width: 100%; height: auto; }

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

p { color: var(--text-secondary); }
small { font-size: 0.8rem; color: var(--text-muted); }

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem; height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo {
    display: block;
    height: 42px;
    width: auto;
    border-radius: 21px;
}
.brand-mark { font-size: 1.5rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.nav-links { display: flex; gap: 0.25rem; margin-right: auto; }
.nav-link {
  padding: 0.4rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--ivory); background: var(--surface); }
.nav-admin { color: var(--gold-dim) !important; }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.nav-user, .nav-auth { display: flex; gap: 0.75rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--ivory); font-size: 1.4rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; background: var(--charcoal); border-top: 1px solid var(--border); padding: 1rem 2rem; gap: 0.5rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text-secondary); padding: 0.5rem 0; font-size: 0.9rem; }

/* ── USER DROPDOWN ──────────────────────────────── */
.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.user-profile-btn:hover {
  background: var(--surface);
  color: var(--ivory);
  border-color: var(--border-soft);
}

.user-profile-btn[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--gold);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.7rem;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.user-profile-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-menu.open {
  display: flex;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
  white-space: nowrap;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--gold);
  padding-left: 1.25rem;
}

.dropdown-item-form {
  padding: 0;
  border: none;
  background: none;
}

.dropdown-item-logout {
  width: 100%;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.dropdown-item-logout:hover {
  background: var(--surface-2);
  color: var(--error);
  padding-left: 1.25rem;
}



/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold); color: var(--obsidian); border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--obsidian); }
.btn-outline {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--obsidian); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--ivory); border-color: var(--border-soft); }
.btn-lg { padding: 0.8rem 2rem; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 60%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--obsidian) 0%, #0a0a0c 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px; padding: 2rem;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 300;
  color: var(--ivory); margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--gold-dim); font-size: 1.2rem; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── TRUST STRIP ─────────────────────────────────── */
.trust-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1rem; padding: 1.2rem 2rem;
  background: var(--charcoal); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--text-secondary); }
.trust-icon { font-size: 1rem; }
.trust-sep { color: var(--border-soft); }

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3rem; gap: 1rem;
}
.section-header.centered { flex-direction: column; align-items: center; text-align: center; }
.section-sub { color: var(--text-secondary); font-size: 1rem; margin-top: 0.75rem; }
.link-gold { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ── LISTING CARDS ───────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.listing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  text-decoration: none; display: block;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-dim);
}
.listing-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface-2);
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: var(--text-muted);
}
.listing-card-condition {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(13,13,15,0.85); color: var(--gold);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px; border: 1px solid var(--gold-dim);
}
.listing-card-body { padding: 1.25rem; }
.listing-card-brand { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.listing-card-model { font-family: var(--font-display); font-size: 1.2rem; color: var(--ivory); margin-bottom: 0.5rem; line-height: 1.3; }
.listing-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.listing-card-meta span { font-size: 0.75rem; color: var(--text-muted); }
.listing-card-footer { display: flex; align-items: center; justify-content: space-between; }
.listing-card-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--ivory); }
.listing-card-bids { font-size: 0.72rem; color: var(--gold); }

/* ── HOW IT WORKS ────────────────────────────────── */
.how-it-works { background: var(--charcoal); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num { font-family: var(--font-display); font-size: 3rem; color: var(--gold-dim); margin-bottom: 1rem; line-height: 1; }
.step h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--ivory); }

/* ── BRAND STRIP ─────────────────────────────────── */
.brand-strip { padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.brand-strip-inner { display: flex; gap: 1rem; padding: 0 2rem; flex-wrap: wrap; justify-content: center; max-width: 1280px; margin: 0 auto; }
.brand-pill {
  padding: 0.4rem 1.2rem; border: 1px solid var(--border-soft);
  border-radius: 100px; font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--text-secondary); text-transform: uppercase;
  transition: all var(--transition);
}
.brand-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner {
  padding: 6rem 2rem; text-align: center;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { margin-bottom: 2rem; }

/* ── CATALOG PAGE ────────────────────────────────── */
.catalog-page { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.filter-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; position: sticky; top: 88px;
}
.filter-section { margin-bottom: 1.5rem; }
.filter-section h3 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.filter-select, .filter-input {
  width: 100%; padding: 0.55rem 0.8rem;
  background: var(--charcoal); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem;
  transition: border-color var(--transition);
}
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--gold); }
.price-inputs { display: flex; gap: 0.5rem; align-items: center; }
.price-inputs span { color: var(--text-muted); flex-shrink: 0; }
.filter-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; cursor: pointer; }
.filter-check input { accent-color: var(--gold); }
.btn-full { width: 100%; margin-top: 0.25rem; }

.catalog-results {}
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }

/* ── LISTING DETAIL ──────────────────────────────── */
.detail-page { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.detail-breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; }
.detail-breadcrumb a { color: var(--text-muted); }
.detail-breadcrumb a:hover { color: var(--gold); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-gallery {}
.gallery-main { border-radius: var(--radius-md); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:5rem; color:var(--text-muted); }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition); }
.gallery-thumb:hover { border-color: var(--gold); }
.detail-badges { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge-condition { padding: 0.3rem 0.8rem; border: 1px solid var(--gold-dim); border-radius: 2px; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.badge-auth { padding: 0.3rem 0.8rem; border: 1px solid var(--success); border-radius: 2px; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--success); }
.detail-brand { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.detail-model { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ivory); margin-bottom: 0.25rem; }
.detail-ref { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.detail-price-block { margin-bottom: 2rem; }
.detail-price { font-family: var(--font-display); font-size: 2.2rem; color: var(--ivory); display: block; }
.detail-bid-info { font-size: 0.85rem; color: var(--gold); }
.detail-specs { border-top: 1px solid var(--border); margin-bottom: 2rem; font-size: 1rem; }
.spec-row { display: flex; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.spec-label { color: var(--text-muted); font-size: 0.95rem; }
.spec-value { color: var(--text-primary); font-weight: 500; font-size: 1rem; }
.detail-description { margin-bottom: 2rem; }
.detail-description h3 { font-family: var(--font-display); margin-bottom: 0.75rem; }
.detail-description p { font-size: 1rem; line-height: 1.9; }
.bid-form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.bid-form-block h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.bid-hint { font-size: 0.8rem; color: var(--gold); margin-bottom: 0.75rem; }
.bid-input-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.bid-currency { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-secondary); }
.bid-input {
  flex: 1; padding: 0.7rem 1rem;
  background: var(--charcoal); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--ivory);
  font-family: var(--font-display); font-size: 1.2rem;
}
.bid-input:focus { outline: none; border-color: var(--gold); }
.bid-comment {
  width: 100%; padding: 0.6rem 0.8rem; margin-bottom: 1rem;
  background: var(--charcoal); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem; resize: vertical;
}
.bid-comment:focus { outline: none; border-color: var(--gold); }
.bid-result { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-top: 0.75rem; }
.bid-result--success { background: rgba(76,175,119,0.1); border: 1px solid var(--success); color: var(--success); }
.bid-result--error   { background: rgba(224,82,82,0.1);  border: 1px solid var(--error);   color: var(--error);   }

/* ── AUTH ─────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: stretch; }
.auth-split { display: flex; width: 100%; min-height: 100vh; }
.auth-brand-panel {
  flex: 0 0 400px; background: var(--charcoal);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 3rem;
  background-image: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
}
.auth-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--ivory);
  border-left: 2px solid var(--gold); padding-left: 1rem;
  margin-top: auto;
}
.auth-quote cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-family: var(--font-body); letter-spacing: 0.06em; }
.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-form-inner h1 { margin-bottom: 0.5rem; }
.auth-sub { color: var(--text-secondary); margin-bottom: 2rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-input {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--charcoal); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--text-muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group-checks { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 0.1rem; }
.input-prefix { display: flex; align-items: center; gap: 0.5rem; }
.input-prefix span { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-secondary); flex-shrink: 0; }
.input-prefix .form-input { flex: 1; }
.form-section { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.form-section legend { font-family: var(--font-display); font-size: 1.1rem; color: var(--ivory); padding: 0 0.5rem; }
.form-submit-row { text-align: center; }
.form-footnote { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }

/* ── FILE UPLOAD ─────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-soft); border-radius: var(--radius-md);
  padding: 2.5rem; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.upload-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.photo-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.photo-thumb--lg { width: 120px; height: 120px; }

/* ── FORM PAGE ───────────────────────────────────── */
.form-page { max-width: 800px; margin: 0 auto; padding: 2rem; }
.form-page-header { text-align: center; margin-bottom: 2rem; }
.form-page-header p { margin-top: 0.5rem; font-size: 0.9rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-card--admin { background: var(--surface-2); border-color: var(--gold-dim); }

/* ── DASHBOARD ───────────────────────────────────── */
.dashboard-page { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-actions { display: flex; gap: 0.75rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 1.5rem; }
.dashboard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-header h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.mini-list { display: flex; flex-direction: column; gap: 0; }
.mini-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.mini-item:last-child { border-bottom: none; }
.mini-item-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.mini-item-info strong { font-size: 0.9rem; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item-meta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; font-size: 0.8rem; color: var(--text-muted); }
.link-sm { font-size: 0.75rem; color: var(--gold); white-space: nowrap; }
.empty-mini { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* ── ADMIN ───────────────────────────────────────── */
.admin-page { max-width: 1300px; margin: 0 auto; padding: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center;
}
.stat-card--gold { border-color: var(--gold-dim); background: rgba(201,168,76,0.05); }
.stat-value { font-family: var(--font-display); font-size: 2.5rem; color: var(--ivory); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
.stat-action { font-size: 0.75rem; color: var(--gold); }
.admin-actions h2 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.admin-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.admin-action-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-decoration: none;
  transition: all var(--transition);
}
.admin-action-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.action-icon { font-size: 1.8rem; display: block; margin-bottom: 0.75rem; }
.admin-action-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--ivory); }
.admin-action-card p { font-size: 0.8rem; color: var(--text-muted); }

.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: 0.6rem 1.25rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.tab:hover { color: var(--ivory); }
.tab-active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 1rem; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.admin-table td small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.admin-table tr:hover td { background: var(--surface); }
.empty-table { text-align: center; color: var(--text-muted); padding: 2rem !important; }

/* Verdict form */
.verdict-btns { display: flex; gap: 0.75rem; }
.verdict-opt {
  flex: 1; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem;
  transition: all var(--transition);
}
.verdict-opt--approve:has(input:checked) { border-color: var(--success); background: rgba(76,175,119,0.1); color: var(--success); }
.verdict-opt--reject:has(input:checked)  { border-color: var(--error);   background: rgba(224,82,82,0.1);  color: var(--error); }
.verdict-opt input { accent-color: var(--gold); }

/* ── BADGES ──────────────────────────────────────── */
.badge-sm {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border: 1px solid var(--border-soft);
  border-radius: 2px; color: var(--text-muted);
}
.badge-status { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px; }
.badge-active   { background: rgba(76,175,119,0.15); color: var(--success); border: 1px solid rgba(76,175,119,0.3); }
.badge-pending  { background: rgba(212,168,75,0.15); color: var(--warning); border: 1px solid rgba(212,168,75,0.3); }
.badge-approved { background: rgba(76,175,119,0.15); color: var(--success); border: 1px solid rgba(76,175,119,0.3); }
.badge-rejected { background: rgba(224,82,82,0.15);  color: var(--error);   border: 1px solid rgba(224,82,82,0.3); }
.badge-sold     { background: rgba(201,168,76,0.15); color: var(--gold);    border: 1px solid rgba(201,168,76,0.3); }
.badge-withdrawn{ background: rgba(94,90,84,0.15);   color: var(--text-muted); border: 1px solid var(--border); }
.badge-outbid   { background: rgba(224,82,82,0.1);   color: var(--error);   border: 1px solid rgba(224,82,82,0.2); }
.badge-accepted { background: rgba(76,175,119,0.15); color: var(--success); border: 1px solid rgba(76,175,119,0.3); }

/* ── ALERTS ──────────────────────────────────────── */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1.25rem; }
.alert-error   { background: rgba(224,82,82,0.1);  border: 1px solid rgba(224,82,82,0.35);   color: var(--error); }
.alert-success { background: rgba(76,175,119,0.1); border: 1px solid rgba(76,175,119,0.35);  color: var(--success); }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--charcoal); border-top: 1px solid var(--border);
  margin-top: auto; padding: 4rem 0 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem 3rem; display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 0.6rem; min-width: 140px; }
.footer-links h4 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2rem; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ── UTILITIES ───────────────────────────────────── */
.mt-lg { margin-top: 1.5rem; }
.text-body { font-size: 0.9rem; line-height: 1.8; color: var(--text-secondary); }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 0.8rem; }
.spec-grid {}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mini-item { flex-direction: column; align-items: flex-start; }
}

/* ── LIGHT THEME OVERRIDES ─────────────────────────── */
html[data-theme="light"] {
  --obsidian:    #ffffff;
  --charcoal:    #f6f6f8;
  --surface:     #ffffff;
  --surface-2:   #fafafa;
  --border:      #e6e6ea;
  --border-soft: #f0f0f3;

  --gold:        #b8873a;
  --gold-light:  #d1a85a;
  --gold-dim:    #7d6126;
  --ivory:       #111111;
  --ivory-dim:   #555555;
  --white:       #ffffff;

  --text-primary:   #111111;
  --text-secondary: #444444;
  --text-muted:     #6b6b6b;

  --shadow-sm: 0 2px 8px rgba(16,16,16,0.06);
  --shadow-md: 0 8px 32px rgba(16,16,16,0.08);
}

html[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .nav-toggle { color: var(--ivory); }
html[data-theme="light"] .nav-mobile { background: var(--charcoal); }
html[data-theme="light"] .listing-card { background: var(--surface); }
html[data-theme="light"] .brand-name { color: var(--gold); }

/* Ensure interactive elements remain visible */
html[data-theme="light"] a { color: var(--gold); }
html[data-theme="light"] .btn-ghost { color: var(--text-secondary); border-color: var(--border); }
html[data-theme="light"] .btn-gold { color: #ffffff; }
html[data-theme="light"] .alert-error { color: #c41c1c; }
html[data-theme="light"] .alert-success { color: #2e7d4e; }

