/* ═══════════════════════════════════════════════════
   Relist — Bubbly Modern Marketplace
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --blue:        #2563eb;
  --blue-light:  #60a5fa;
  --blue-dark:   #1e40af;
  --blue-bg:     #eff6ff;
  --red:         #ef4444;
  --red-dark:    #dc2626;
  --red-bg:      #fef2f2;
  --purple:      #8b5cf6;
  --orange:      #f97316;
  --amber:       #f59e0b;
  --teal:        #14b8a6;
  --dark:        #111827;
  --text:        #1f2937;
  --muted:       #6b7280;
  --gray:        #9ca3af;
  --border:      #e5e7eb;
  --bg:          #f3f4f8;
  --white:       #ffffff;
  --success:     #16a34a;
  --danger:      #dc2626;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.10);
  --shadow-xl:   0 24px 56px rgba(0,0,0,0.14);
  --r-xs:  6px;
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill:999px;
  --font:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font);
  background: #eef0f8;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Abstract colorful background blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 18%,  rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 92% 8%,   rgba(239, 68,  68,  0.09) 0%, transparent 55%),
    radial-gradient(ellipse 75% 55% at 82% 88%,  rgba(59, 130, 246, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 18% 88%,  rgba(168, 85, 247, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 52% 48%,  rgba(245, 158, 11, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 42% 68%,  rgba(20,  184, 166, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.text-muted { color: var(--muted); font-size: 0.82rem; }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.18s var(--ease);
  white-space: nowrap; line-height: 1.25; letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: var(--blue);  color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(37,99,235,0.4); transform: translateY(-1px); }
.btn-red      { background: var(--red);   color: white; box-shadow: 0 4px 14px rgba(239,68,68,0.3); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 6px 18px rgba(239,68,68,0.4); transform: translateY(-1px); }
.btn-blue     { background: var(--blue);  color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-danger   { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }
.btn-outline  { background: rgba(255,255,255,0.8); border: 2px solid var(--border); color: var(--text); backdrop-filter: blur(4px); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.btn-ghost    { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.5); color: var(--text); }
.btn-gold     { background: linear-gradient(135deg, var(--amber), var(--orange)); color: white; box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.45); }
.btn-lg   { padding: 0.8rem 1.8rem; font-size: 1rem; }
.btn-sm   { padding: 0.35rem 0.9rem; font-size: 0.78rem; }
.btn-block{ width: 100%; }
.btn-icon {
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  color: rgba(255,255,255,0.8); transition: background 0.15s;
  position: relative; flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,0.15); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white; font-size: 0.62rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ─── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--dark); }
.form-control {
  display: block; width: 100%; padding: 0.7rem 1rem;
  border-radius: var(--r-md); border: 2px solid var(--border);
  background: rgba(255,255,255,0.85); color: var(--text); font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s; backdrop-filter: blur(4px);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-control::placeholder { color: var(--gray); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.74rem; color: var(--muted); margin-top: 0.25rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.4rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.radio-group { display: flex; gap: 0.5rem; }
.radio-opt {
  flex: 1; padding: 0.6rem; border: 2px solid var(--border);
  border-radius: var(--r-md); text-align: center; cursor: pointer;
  font-size: 0.82rem; font-weight: 700; color: var(--muted); transition: all 0.15s;
  background: rgba(255,255,255,0.7);
}
.radio-opt.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

/* ─── Navbar ──────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 4px 20px rgba(30,58,138,0.35);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem; height: 62px;
}
.navbar-logo {
  font-size: 1.5rem; font-weight: 900; color: white;
  text-decoration: none; letter-spacing: -0.5px; flex-shrink: 0;
  cursor: pointer;
}
.logo-accent { color: #fca5a5; }
.navbar-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.12); border-radius: var(--r-pill);
  padding: 0 1rem; gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.2); transition: all 0.15s;
}
.navbar-search:focus-within { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); }
.navbar-search svg { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.navbar-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: white; font-size: 0.875rem; padding: 0.5rem 0;
}
.navbar-search input::placeholder { color: rgba(255,255,255,0.5); }
.navbar-actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }

.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); border-radius: var(--r-pill);
  padding: 0.35rem 0.7rem; cursor: pointer; font-size: 0.78rem; font-weight: 700;
  transition: background 0.15s;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: rgba(255,255,255,0.95); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  min-width: 140px; overflow: hidden; z-index: 200;
  backdrop-filter: blur(12px);
}
.lang-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem; cursor: pointer; font-size: 0.82rem;
  color: var(--text); font-weight: 600; transition: background 0.1s;
}
.lang-option:hover { background: var(--blue-bg); }
.lang-option.active { color: var(--blue); font-weight: 800; background: var(--blue-bg); }
.lang-code-tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 1px 5px;
  font-size: 0.7rem; font-weight: 700; color: var(--muted);
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 40%, #7c3aed 80%, #db2777 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 40%, rgba(255,255,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.hero h1 {
  font-size: 3.4rem; font-weight: 900; color: white;
  letter-spacing: -2px; line-height: 1.05; margin-bottom: 0.85rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-accent { color: #fca5a5; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-search-wrap {
  display: flex; max-width: 540px; margin: 0 auto 1.75rem;
  border-radius: var(--r-pill); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.95);
}
.hero-search-wrap input {
  flex: 1; padding: 0.95rem 1.4rem; border: none; outline: none;
  font-size: 0.95rem; color: var(--text); background: transparent;
}
.hero-search-wrap input::placeholder { color: var(--gray); }
.hero-search-wrap button {
  padding: 0 1.75rem; background: var(--red); color: white;
  border: none; cursor: pointer; font-size: 0.9rem; font-weight: 800;
  transition: background 0.15s; border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.hero-search-wrap button:hover { background: var(--red-dark); }
.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.hero-stats strong {
  display: block; font-size: 1.5rem; font-weight: 900;
  color: white; letter-spacing: -0.5px;
}

/* ─── Auctions strip ──────────────────────────────── */
.auctions-strip {
  background: rgba(255,255,255,0.7);
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.auctions-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
}
.auction-strip-label {
  color: var(--blue-dark); font-weight: 800; font-size: 0.85rem;
  white-space: nowrap; flex-shrink: 0;
}
.auction-strip-cards {
  display: flex; gap: 0.6rem; overflow-x: auto; flex: 1;
  scrollbar-width: none; -ms-overflow-style: none;
}
.auction-strip-cards::-webkit-scrollbar { display: none; }
.strip-card {
  flex-shrink: 0; background: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(37,99,235,0.15); border-radius: var(--r-lg);
  padding: 0.6rem 1rem; cursor: pointer;
  transition: all 0.18s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 130px; max-width: 170px;
}
.strip-card:hover { background: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.strip-card-title { color: var(--dark); font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-card-price { color: var(--blue); font-size: 0.75rem; font-weight: 800; }
.strip-card-timer { color: var(--muted); font-size: 0.68rem; }
.btn-strip {
  background: var(--blue); border: none;
  color: white; flex-shrink: 0; white-space: nowrap;
  border-radius: var(--r-pill); font-size: 0.78rem;
}
.btn-strip:hover { background: var(--blue-dark); }

/* ─── Categories ──────────────────────────────────── */
.categories-section {
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  position: sticky; top: 65px; z-index: 100;
  backdrop-filter: blur(10px);
}
.categories-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
}
.categories-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 0.45rem 1.1rem; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; background: rgba(255,255,255,0.8);
  color: var(--muted); transition: all 0.15s; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue); background: white; }
.cat-pill.active { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* ─── Page layout ─────────────────────────────────── */
.page {
  max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; flex: 1;
}
.two-col {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem;
  align-items: start;
}

/* ─── Filters ─────────────────────────────────────── */
.filters-panel {
  background: rgba(255,255,255,0.82); border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: var(--r-xl); padding: 1.4rem;
  position: sticky; top: 112px;
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
}
.filter-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.25rem;
}
.filter-row { margin-bottom: 1rem; }
.filter-row label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.35rem; }
.price-range { display: flex; align-items: center; gap: 0.4rem; }
.price-range input {
  width: 70px; padding: 0.4rem 0.5rem;
  border: 2px solid var(--border); border-radius: var(--r-md);
  font-size: 0.8rem; text-align: center; background: rgba(255,255,255,0.9);
}
.price-range input:focus { outline: none; border-color: var(--blue); }
.price-range span { color: var(--muted); font-size: 0.8rem; }

/* ─── Listing grid + cards ────────────────────────── */
.listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem;
}
.listing-card {
  background: rgba(255,255,255,0.88); border-radius: var(--r-xl);
  border: 1.5px solid rgba(255,255,255,0.9); overflow: hidden;
  cursor: pointer; transition: all 0.2s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); background: white; border-color: rgba(37,99,235,0.1); }
.card-img-wrap { position: relative; padding-top: 66%; background: var(--bg); overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--border); font-size: 2rem; font-weight: 900;
}
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s var(--ease); backdrop-filter: blur(4px);
  color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.fav-btn:hover { background: white; color: var(--red); transform: scale(1.12); }
.fav-btn.active { color: var(--red); }
.fav-btn.active svg { fill: var(--red); }
.badge {
  padding: 0.28rem 0.65rem; border-radius: var(--r-pill);
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-auction { background: var(--blue); color: white; }
.badge-fixed   { background: rgba(0,0,0,0.5); color: white; }
.badge-vb      { background: var(--orange); color: white; }
.badge-closed  { background: var(--gray); color: white; }
.badge-sold    { background: #16a34a; color: white; }
.badge-job-request { background: var(--purple); color: white; }
.badge-job-offer   { background: var(--teal); color: white; }
.card-price-pill {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(17,24,39,0.85); color: white;
  padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 800; backdrop-filter: blur(4px);
}
.card-body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.card-title { font-size: 0.875rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--muted);
  padding-top: 0.4rem; border-top: 1px solid var(--border); margin-top: auto;
}
.card-timer   { color: var(--blue); font-weight: 700; }
.card-bids    { color: var(--muted); }
.card-delivery{ color: var(--muted); }

/* ─── Jobs section ────────────────────────────────── */
.jobs-section {
  max-width: 1280px; margin: 0 auto 2rem; padding: 0 1.5rem;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.section-heading {
  font-size: 1.25rem; font-weight: 900; color: var(--dark);
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 0.5rem;
}
.section-heading-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.jobs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.job-card {
  background: rgba(255,255,255,0.88); border-radius: var(--r-xl);
  border: 1.5px solid rgba(255,255,255,0.9); padding: 1.1rem;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
  transition: all 0.2s; cursor: default;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); background: white; }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.job-title { font-size: 0.9rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.job-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; flex: 1; }
.job-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.job-price { font-weight: 800; color: var(--blue); font-size: 0.9rem; }
.job-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: auto; }
.job-actions { display: flex; gap: 0.4rem; }

/* ─── Jobs page ───────────────────────────────────── */
#page-jobs { flex: 1; }
.jobs-page-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.jobs-type-pill {
  padding: 0.45rem 1.1rem; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  border: 2px solid var(--border); background: rgba(255,255,255,0.8);
  color: var(--muted); transition: all 0.15s;
}
.jobs-type-pill:hover { border-color: var(--purple); color: var(--purple); }
.jobs-type-pill.active { background: var(--purple); border-color: var(--purple); color: white; }

/* ─── Create Job form ─────────────────────────────── */
.job-type-toggle { display: flex; gap: 0.6rem; }
.job-type-btn {
  flex: 1; padding: 0.75rem; border: 2px solid var(--border);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
  background: rgba(255,255,255,0.8); transition: all 0.15s;
}
.job-type-btn.active-request { border-color: var(--purple); color: var(--purple); background: rgba(139,92,246,0.07); }
.job-type-btn.active-offer   { border-color: var(--teal);   color: var(--teal);   background: rgba(20,184,166,0.07); }

/* ─── Detail page ─────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; margin-bottom: 1.5rem; transition: color 0.15s;
  background: rgba(255,255,255,0.7); padding: 0.45rem 1rem;
  border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(255,255,255,0.9);
}
.back-link:hover { color: var(--blue); background: white; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.gallery-card {
  background: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm);
}
.main-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.main-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border); }
.main-image-placeholder svg { width: 48px; height: 48px; }
.thumbs { display: flex; gap: 0.5rem; padding: 0.75rem; }
.thumb {
  width: 64px; height: 48px; border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; border: 2.5px solid transparent; opacity: 0.7; transition: all 0.15s;
}
.thumb.active { border-color: var(--blue); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.desc-card {
  background: rgba(255,255,255,0.88); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl); padding: 1.4rem; margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.desc-card h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 0.6rem; }
.desc-card p { font-size: 0.875rem; color: var(--text); line-height: 1.65; }
.detail-panel {
  background: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl); padding: 1.6rem;
  position: sticky; top: 110px; box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.meta-chip {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
}
.detail-title {
  font-size: 1.4rem; font-weight: 900; color: var(--dark);
  line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: -0.5px;
}
.divider { border: none; border-top: 1.5px solid var(--border); margin: 1rem 0; }
.detail-price { font-size: 2.2rem; font-weight: 900; color: var(--red); letter-spacing: -1px; }
.detail-price-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.vb-price-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: white; border-radius: var(--r-pill);
  padding: 0.4rem 1rem; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.auction-panel {
  border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 1rem; margin-bottom: 0.75rem; background: var(--blue-bg);
}
.auction-label { font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 0.2rem; }
.auction-top-bid { font-size: 1.8rem; font-weight: 900; color: var(--dark); letter-spacing: -1px; }
.auction-timer-badge {
  background: var(--blue-bg); color: var(--blue);
  border: 2px solid #bfdbfe; border-radius: var(--r-md);
  padding: 0.5rem 0.85rem; font-size: 0.875rem; font-weight: 800;
  text-align: center; margin: 0.75rem 0;
}
.bid-row-input { display: flex; gap: 0.5rem; margin: 0.75rem 0 0.35rem; }
.bid-row-input input {
  flex: 1; padding: 0.65rem 1rem;
  border: 2px solid var(--border); border-radius: var(--r-md); font-size: 0.9rem;
  background: white;
}
.bid-row-input input:focus { outline: none; border-color: var(--blue); }
.bid-min-hint { font-size: 0.74rem; color: var(--muted); }
.seller-row { display: flex; align-items: center; gap: 0.85rem; margin: 0.5rem 0; }
.seller-ava {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.seller-name-link { font-weight: 800; cursor: pointer; color: var(--dark); transition: color 0.15s; }
.seller-name-link:hover { color: var(--blue); }
.seller-since { font-size: 0.74rem; color: var(--muted); }
.payment-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.payment-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 0.3rem 0.8rem;
  font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.bids-list { margin-top: 0.75rem; }
.bids-list h4 { font-size: 0.82rem; font-weight: 800; margin-bottom: 0.5rem; }
.bid-entry {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}
.bid-entry:last-child { border: none; }
.bid-entry.top { color: var(--text); font-weight: 700; }
.bid-amount { font-weight: 800; color: var(--dark); }

/* ─── Create listing ──────────────────────────────── */
.create-wrap { max-width: 700px; margin: 0 auto; }
.create-header { margin-bottom: 2rem; }
.create-header h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.5px; }
.create-header p { color: var(--muted); margin-top: 0.35rem; font-size: 0.9rem; }
.form-section {
  background: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl); padding: 1.6rem; margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.form-section-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue); margin-bottom: 1.25rem;
}
.type-toggle { display: flex; gap: 0.6rem; }
.type-toggle-btn {
  flex: 1; padding: 0.7rem; border: 2px solid var(--border);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  font-size: 0.82rem; font-weight: 800; color: var(--muted);
  background: rgba(255,255,255,0.8); transition: all 0.15s;
}
.type-toggle-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.type-toggle-btn[data-type="vb"].active { border-color: var(--orange); color: var(--orange); background: rgba(249,115,22,0.07); }
.delivery-opts { display: flex; gap: 0.6rem; }
.delivery-btn {
  flex: 1; padding: 0.6rem; border: 2px solid var(--border);
  border-radius: var(--r-lg); text-align: center; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  background: rgba(255,255,255,0.8); transition: all 0.15s;
}
.delivery-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
#drop-zone {
  border: 2.5px dashed var(--border); border-radius: var(--r-xl);
  padding: 2.5rem; text-align: center; cursor: pointer; transition: all 0.15s;
  background: rgba(255,255,255,0.5);
}
#drop-zone:hover, #drop-zone.drag { border-color: var(--blue); background: var(--blue-bg); }
.upload-title { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 0.25rem; }
.upload-hint { font-size: 0.78rem; color: var(--muted); }
.upload-icon { color: var(--gray); margin: 0 auto 0.75rem; display: block; }
#img-previews { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.preview-item {
  position: relative; width: 80px; height: 60px;
  border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6);
  color: white; border: none; border-radius: 50%;
  width: 16px; height: 16px; cursor: pointer; font-size: 9px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ─── Auth modal ──────────────────────────────────── */
#auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; backdrop-filter: blur(6px); padding: 1rem;
}
.auth-box {
  background: rgba(255,255,255,0.96); border-radius: var(--r-xl);
  width: 100%; max-width: 430px; padding: 2.2rem;
  box-shadow: var(--shadow-xl); position: relative;
  border: 1.5px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
}
.auth-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg); border: none; font-size: 1.1rem;
  cursor: pointer; color: var(--muted); line-height: 1;
  width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; border-radius: 50%; transition: all 0.15s;
}
.auth-close:hover { background: var(--border); color: var(--dark); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: 0.8rem; text-align: center; cursor: pointer;
  font-size: 0.875rem; font-weight: 700; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: all 0.15s;
}
.auth-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.auth-title { font-size: 1.3rem; font-weight: 900; color: var(--dark); margin-bottom: 1.25rem; letter-spacing: -0.5px; }

/* Verify email panel */
.modal-title { font-size: 1.4rem; font-weight: 900; color: var(--dark); letter-spacing: -0.5px; }
.modal-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; margin-bottom: 1.5rem; }
.verify-email-highlight { font-weight: 800; color: var(--blue); }
.verify-code-input { margin: 1.25rem 0; }
.verify-code-input input {
  width: 100%; text-align: center; letter-spacing: 0.3em;
  font-size: 2rem; font-weight: 900; padding: 0.8rem;
  border: 2.5px solid var(--border); border-radius: var(--r-lg);
  color: var(--dark); background: rgba(255,255,255,0.9);
}
.verify-code-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.verify-resend { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.verify-resend a { color: var(--blue); cursor: pointer; font-weight: 700; }
.forgot-link { text-align: center; margin-top: 0.75rem; font-size: 0.82rem; }
.forgot-link a { color: var(--muted); cursor: pointer; }
.forgot-link a:hover { color: var(--blue); }

/* ─── Avatar upload ──────────────────────────────── */
.avatar-upload-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

/* ─── Ratings ─────────────────────────────────────── */
.rating-summary { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1rem; }
.rating-stars-display { color: #f59e0b; letter-spacing: 0.05em; }
.rating-form { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem; }
.star-picker { display: flex; gap: 0.25rem; font-size: 1.75rem; cursor: pointer; margin: 0.5rem 0; }
.star-picker .star { transition: color .1s; color: var(--muted); }
.star-picker .star:hover { color: #f59e0b; }
.ratings-list { margin-bottom: 1.5rem; }
.rating-item { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rating-item:last-child { border-bottom: none; }
.rating-item-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.rating-comment-text { font-size: 0.85rem; color: var(--muted); }

/* ─── Chat / Inbox ────────────────────────────────── */
.chat-shell {
  height: calc(100vh - 65px);
  display: grid; grid-template-columns: 300px 1fr;
}
.chat-sidebar { border-right: 1.5px solid var(--border); overflow-y: auto; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); }
.chat-header {
  padding: 1rem 1.25rem; font-size: 0.9rem; font-weight: 800;
  border-bottom: 1.5px solid var(--border); color: var(--dark);
  position: sticky; top: 0; background: rgba(255,255,255,0.9); z-index: 1;
}
.conv-item {
  padding: 0.9rem 1.25rem; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background 0.1s;
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.conv-item:hover, .conv-item.active { background: rgba(37,99,235,0.05); }
.conv-ava {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem; flex-shrink: 0;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 800; font-size: 0.85rem; color: var(--dark); }
.conv-listing-name { font-size: 0.72rem; color: var(--blue); font-weight: 700; }
.conv-preview { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; }
.conv-unread {
  background: var(--red); color: white; font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; flex-shrink: 0;
}
.chat-main { display: flex; flex-direction: column; background: var(--bg); }
.chat-head {
  padding: 1rem 1.25rem; background: rgba(255,255,255,0.9);
  border-bottom: 1.5px solid var(--border); display: flex; align-items: center; gap: 0.75rem;
}
.chat-head .conv-ava { width: 34px; height: 34px; font-size: 0.8rem; }
.chat-listing-ref { font-size: 0.75rem; color: var(--muted); }
.chat-listing-ref a { color: var(--blue); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--muted); font-size: 0.875rem; gap: 0.5rem; }
.chat-empty svg { color: var(--border); }
.msg-group { display: flex; gap: 0.5rem; align-items: flex-end; max-width: 70%; }
.msg-group.own { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; flex-shrink: 0;
}
.msg-ts { font-size: 0.65rem; color: var(--gray); margin-bottom: 0.15rem; }
.msg-group.own .msg-ts { text-align: right; }
.msg-bubble {
  padding: 0.6rem 1rem; border-radius: 18px;
  font-size: 0.875rem; line-height: 1.45; word-wrap: break-word;
}
.msg-group:not(.own) .msg-bubble { background: white; border: 1.5px solid var(--border); border-bottom-left-radius: 5px; }
.msg-group.own .msg-bubble { background: var(--blue); color: white; border-bottom-right-radius: 5px; }
.chat-input-bar {
  padding: 0.85rem 1.25rem; background: rgba(255,255,255,0.9);
  border-top: 1.5px solid var(--border); display: flex; gap: 0.75rem;
}
.chat-input-bar input {
  flex: 1; border: 2px solid var(--border); border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem; font-size: 0.875rem; outline: none;
  background: rgba(255,255,255,0.9);
}
.chat-input-bar input:focus { border-color: var(--blue); }

/* ─── Profile ─────────────────────────────────────── */
.profile-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: white; border-radius: var(--r-xl); padding: 2rem 1.75rem;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.25rem;
  box-shadow: 0 8px 28px rgba(30,64,175,0.3);
}
.profile-ava {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.6rem; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.profile-name { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; }
.profile-meta { opacity: 0.7; font-size: 0.82rem; margin-top: 0.2rem; }
.profile-bio { opacity: 0.88; font-size: 0.9rem; margin-top: 0.4rem; }
.section-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.edit-panel {
  background: rgba(255,255,255,0.88); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl); padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ─── Misc ────────────────────────────────────────── */
.results-bar { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; font-weight: 600; }
.empty-state { text-align: center; padding: 4rem 2rem; grid-column: 1/-1; }
.empty-state-icon { color: var(--border); margin: 0 auto 1rem; display: block; font-size: 3rem; }
.empty-state h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.empty-state p  { color: var(--muted); font-size: 0.875rem; }
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; }
.page-btn {
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; border: 2px solid var(--border); background: rgba(255,255,255,0.85);
  color: var(--text); transition: all 0.15s;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); background: white; }
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ─── Toast ───────────────────────────────────────── */
.toasts {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.85rem 1.2rem; border-radius: var(--r-lg); font-size: 0.85rem;
  font-weight: 700; color: white; box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s var(--ease); min-width: 220px; max-width: 320px;
}
.toast-success { background: linear-gradient(135deg, #16a34a, #15803d); }
.toast-error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast-info    { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
@keyframes toastIn  { from { transform: translateX(110%) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to   { transform: translateX(110%) scale(0.9); opacity: 0; } }

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
  color: rgba(255,255,255,0.65);
  padding: 3rem 2rem 1.75rem; margin-top: auto;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name { font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.footer-brand-accent { color: #fca5a5; }
.footer-tagline { font-size: 0.82rem; opacity: 0.6; line-height: 1.55; margin-bottom: 0.6rem; max-width: 260px; }
.footer-col h4 {
  color: white; font-size: 0.78rem; font-weight: 800; margin-bottom: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.82rem; cursor: pointer; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fca5a5; }
.footer-bottom {
  max-width: 1280px; margin: 1.25rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem;
}

/* ─── Saved page ─────────────────────────────────── */
.saved-empty { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.saved-empty svg { opacity: 0.3; margin-bottom: 1rem; }
.saved-empty h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--text); }

/* ─── Dark mode toggle ────────────────────────────── */
.theme-btn {
  background: none; border: none; cursor: pointer; padding: 0.4rem;
  color: rgba(255,255,255,0.7); border-radius: 50%; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { color: white; background: rgba(255,255,255,0.12); }

/* ─── Dark mode ───────────────────────────────────── */
[data-theme="dark"] body { background: #0a0a0a; }
[data-theme="dark"] { --text: #fafafa; --muted: #888; --gray: #555; --border: #2a2a2a; --bg: #111; --white: #0a0a0a; --blue-bg: #0d1520; --red-bg: #1a0a0a; --shadow-sm: 0 2px 8px rgba(0,0,0,0.5); --shadow-md: 0 6px 20px rgba(0,0,0,0.6); --shadow-lg: 0 12px 32px rgba(0,0,0,0.7); }
[data-theme="dark"] .listing-card { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .listing-card:hover { background: #161616; border-color: #3a3a3a; }
[data-theme="dark"] .filters-panel { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .form-control, [data-theme="dark"] input[type="text"], [data-theme="dark"] input[type="email"], [data-theme="dark"] input[type="password"], [data-theme="dark"] input[type="number"], [data-theme="dark"] select, [data-theme="dark"] textarea { background: #0a0a0a; border-color: #2a2a2a; color: #fafafa; }
[data-theme="dark"] .auth-box { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .auth-tab { color: #888; }
[data-theme="dark"] .auth-tab.active { color: var(--blue); }
[data-theme="dark"] .auth-tabs { border-bottom-color: #2a2a2a; }
[data-theme="dark"] .auth-title { color: #fafafa; }
[data-theme="dark"] .form-label, [data-theme="dark"] label { color: #ccc; }
[data-theme="dark"] .forgot-link a { color: #888; }
[data-theme="dark"] .forgot-link a:hover { color: var(--blue); }
[data-theme="dark"] .modal { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .card-body { background: transparent; }
[data-theme="dark"] .fav-btn { background: rgba(0,0,0,0.7); color: #888; }
[data-theme="dark"] .fav-btn:hover { background: #1a1a1a; color: var(--red); }
[data-theme="dark"] .detail-box, [data-theme="dark"] .seller-card, [data-theme="dark"] .bid-box, [data-theme="dark"] .detail-meta { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .chat-sidebar, [data-theme="dark"] .chat-main, [data-theme="dark"] .chat-input-bar { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .conv-item { border-color: #2a2a2a; }
[data-theme="dark"] .conv-item:hover, [data-theme="dark"] .conv-item.active { background: #0a0a0a; }
[data-theme="dark"] .msg-bubble.mine { background: var(--blue); }
[data-theme="dark"] .msg-bubble.theirs { background: #1a1a1a; color: #fafafa; }
[data-theme="dark"] .navbar-search input { background: rgba(255,255,255,0.06); color: white; }
[data-theme="dark"] .empty-state { background: transparent; }
[data-theme="dark"] .page-section { background: rgba(17,17,17,0.8); }
[data-theme="dark"] .two-col { background: transparent; }
[data-theme="dark"] .card-img-placeholder { background: #1a1a1a; }
[data-theme="dark"] .categories-section { background: #0a0a0a; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .cat-pill { background: #1a1a1a; color: #fafafa; border-color: #2a2a2a; }
[data-theme="dark"] .cat-pill:hover { background: #222; border-color: #555; color: white; }
[data-theme="dark"] .cat-pill.active { background: var(--blue); border-color: var(--blue); color: white; }
[data-theme="dark"] .card-title { color: #fafafa; }
[data-theme="dark"] .card-footer { color: #888; }
[data-theme="dark"] .form-section { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .form-group label { color: #ccc; }
[data-theme="dark"] .form-section-title { color: var(--blue); }
[data-theme="dark"] .type-toggle-btn { background: #1a1a1a; border-color: #2a2a2a; color: #888; }
[data-theme="dark"] .type-toggle-btn.active { background: #0d1520; border-color: var(--blue); color: var(--blue); }
[data-theme="dark"] .delivery-btn { background: #1a1a1a; border-color: #2a2a2a; color: #888; }
[data-theme="dark"] #drop-zone { background: #0d1520; border-color: var(--blue); }
[data-theme="dark"] #drop-zone:hover, [data-theme="dark"] #drop-zone.drag { background: #111d2e; border-color: var(--blue-light); }
[data-theme="dark"] .upload-title { color: #fafafa; }
[data-theme="dark"] .upload-icon { color: #555; }
[data-theme="dark"] .section-heading { color: #fafafa; }
[data-theme="dark"] .section-title { color: #fafafa; }
[data-theme="dark"] .filter-label { color: #fafafa; }
[data-theme="dark"] .filter-row label { color: #ccc; }
[data-theme="dark"] .results-bar { color: #888; }
[data-theme="dark"] .text-muted { color: #666; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #fafafa; }
[data-theme="dark"] p { color: #ccc; }
[data-theme="dark"] .back-link { background: #1a1a1a; border-color: #2a2a2a; color: #888; }
[data-theme="dark"] .back-link:hover { background: #222; color: #fafafa; }
[data-theme="dark"] #recently-viewed-wrap { background: rgba(0,0,0,0.4); border-bottom-color: #2a2a2a; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-sidebar { height: 260px; }
}
@media (max-width: 640px) {
  .navbar-search { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .page { padding: 1.25rem 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
}
