/* ============================================================
   SHOAL MARKETPLACE — Complete Design System & Styles
   The Bahamas' Trusted Marketplace
   ============================================================ */

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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #00A8A8;
  --primary-dark:  #007B7B;
  --primary-light: #CCF0F0;
  --primary-bg:    #E8F8F8;
  --gold:          #F5A623;
  --gold-dark:     #D4891A;
  --coral:         #FF6B6B;
  --coral-dark:    #E84040;
  --navy:          #0D2B6B;
  --navy-light:    #1A3A8A;
  --white:         #FFFFFF;
  --bg:            #F7FAFC;
  --surface:       #FFFFFF;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;
  --text:          #1A202C;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --success:       #10B981;
  --warning:       #F59E0B;
  --error:         #EF4444;
  --info:          #3B82F6;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', var(--font-body);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.13);
  --shadow-card:0 2px 8px rgba(0,168,168,0.08), 0 1px 3px rgba(0,0,0,0.06);

  --header-h: 72px;
  --sidebar-w: 260px;
  --max-w: 1280px;
  --transition: 0.22s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }
.badge-gold      { background: #FEF3C7; color: #92400E; }
.badge-coral     { background: #FEE2E2; color: #991B1B; }
.badge-success   { background: #D1FAE5; color: #065F46; }
.badge-navy      { background: var(--navy); color: white; }
.badge-new       { background: var(--coral); color: white; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--radius-full); border: 1px solid var(--border-dark);
  font-size: 12px; color: var(--text-muted); background: white;
  cursor: pointer; transition: var(--transition);
}
.tag:hover, .tag.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 12px;
}
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; height: 44px; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
  white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn-sm  { height: 36px; padding: 0 14px; font-size: 0.82rem; border-radius: var(--radius-md); }
.btn-lg  { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: var(--radius-xl); }
.btn-xl  { height: 62px; padding: 0 40px; font-size: 1.05rem; border-radius: var(--radius-xl); }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,168,168,0.35); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,166,35,0.35); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,107,107,0.35); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: white; border-color: var(--border-dark); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.btn-outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-hint  { font-size: 0.8rem; color: var(--text-muted); }
.form-error { font-size: 0.8rem; color: var(--error); }
.input, .select, .textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem; background: white;
  color: var(--text); transition: var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,168,168,0.12);
}
.input::placeholder { color: var(--text-light); }
.input-lg { padding: 14px 18px; font-size: 1rem; border-radius: var(--radius-lg); }
.input-group { position: relative; }
.input-group .input { padding-left: 44px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.checkbox-group, .radio-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: white; border-radius: var(--radius-xl); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-header { padding: 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg); }

/* ─── Product Cards ─────────────────────────────────────────── */
.product-card {
  background: white; border-radius: var(--radius-xl); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow-card); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-image {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg);
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--coral); color: white;
  padding: 3px 8px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.product-badge.auction  { background: var(--navy); }
.product-badge.verified { background: var(--success); }
.product-favorite {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
  color: var(--text-muted); font-size: 14px;
}
.product-favorite:hover, .product-favorite.active { color: var(--coral); transform: scale(1.1); }
.product-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 10px; display: flex; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: var(--transition);
}
.product-actions .btn { flex: 1; height: 36px; font-size: 0.78rem; }
.product-info { padding: 14px 14px 16px; }
.product-title { font-weight: 600; font-size: 0.9rem; color: var(--text); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-seller { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.product-seller a { color: var(--primary); }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.product-price .original { text-decoration: line-through; color: var(--text-light); font-size: 0.8rem; font-weight: 400; margin-left: 4px; }
.product-price .sale { color: var(--coral); }
.product-condition { font-size: 0.72rem; color: var(--text-muted); border: 1px solid var(--border); padding: 2px 6px; border-radius: var(--radius-full); }
.product-footer { padding: 0 14px 14px; display: flex; align-items: center; justify-content: space-between; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.product-rating .stars { color: var(--gold); font-size: 12px; }
.product-location { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 3px; }

/* ─── Grid Layouts ──────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.products-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.categories-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: white; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-announcement {
  background: linear-gradient(90deg, var(--navy) 0%, var(--primary-dark) 100%);
  color: white; text-align: center; font-size: 0.78rem; font-weight: 500;
  padding: 8px 24px; letter-spacing: 0.3px;
}
.header-announcement a { color: var(--gold); font-weight: 600; margin-left: 4px; }
.header-main { height: var(--header-h); display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; font-weight: 700;
}
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.logo-text span:first-child { color: var(--primary); }
.logo-text span:last-child { color: var(--navy); }
.logo-tagline { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.5px; display: block; margin-top: -4px; font-weight: 400; }
.header-search {
  flex: 1; max-width: 560px; display: flex;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-full); overflow: hidden;
  transition: var(--transition);
}
.header-search:focus-within { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(0,168,168,0.1); }
.search-category {
  padding: 0 14px; border-right: 1px solid var(--border); background: none;
  font-size: 0.82rem; color: var(--text-muted); cursor: pointer; white-space: nowrap;
  appearance: none; min-width: 110px; font-weight: 500;
}
.search-category:focus { outline: none; }
.header-search input {
  flex: 1; padding: 0 16px; background: none;
  font-size: 0.9rem; color: var(--text);
}
.header-search input::placeholder { color: var(--text-light); }
.search-submit {
  margin: 5px; padding: 0 18px; background: var(--primary);
  color: white; border-radius: var(--radius-full); font-weight: 600;
  font-size: 0.85rem; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.search-submit:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; transition: var(--transition); cursor: pointer;
}
.header-icon-btn:hover { background: var(--bg); color: var(--primary); }
.header-icon-btn .count-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; border-radius: var(--radius-full);
  background: var(--coral); color: white; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.header-user { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-lg); transition: var(--transition); }
.header-user:hover { background: var(--bg); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: white; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.header-nav {
  display: flex; align-items: center; gap: 2px; padding: 0 24px;
  border-top: 1px solid var(--border); height: 44px; overflow-x: auto;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 5px; padding: 0 14px;
  height: 44px; font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent; position: relative;
}
.nav-item:hover, .nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-item i { font-size: 13px; }
.nav-dropdown {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 220px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: var(--transition); z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 0.875rem; color: var(--text); transition: var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg); color: var(--primary); }
.nav-dropdown-item i { width: 18px; color: var(--primary); }
.sell-btn {
  margin-left: auto; background: var(--gold); color: white; padding: 0 16px;
  height: 32px; border-radius: var(--radius-full); font-size: 0.8rem;
  font-weight: 700; display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.sell-btn:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0D2B6B 0%, #005F5F 40%, #00A8A8 100%);
  color: white; padding: 80px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-wave {
  position: absolute; bottom: -2px; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 60px; }
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  padding: 6px 16px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.82rem; font-weight: 500; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.2)} }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
}
.hero-title .highlight { color: var(--gold); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.85; max-width: 580px; margin: 0 auto 40px; }
.hero-search {
  max-width: 680px; margin: 0 auto 40px;
  display: flex; background: white; border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden;
}
.hero-search input {
  flex: 1; padding: 18px 20px; font-size: 1rem; color: var(--text);
  background: transparent;
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search .search-btn {
  padding: 12px 28px; background: var(--gold); color: white;
  font-weight: 700; font-size: 1rem; margin: 8px; border-radius: var(--radius-xl);
  transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.hero-search .search-btn:hover { background: var(--gold-dark); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tag {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.82rem; cursor: pointer; transition: var(--transition);
}
.hero-tag:hover { background: rgba(255,255,255,0.22); }
.hero-stats {
  margin-top: 60px; display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold);
}
.hero-stat .lbl { font-size: 0.82rem; opacity: 0.75; margin-top: 2px; }

/* ─── Trust Bar ─────────────────────────────────────────────── */
.trust-bar { background: white; border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 32px; border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 42px; height: 42px; border-radius: var(--radius-lg);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.trust-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 1px; }
.trust-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Category Grid ─────────────────────────────────────────── */
.category-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 20px 16px; text-align: center; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-card:hover .category-icon { background: var(--primary); color: white; }
.category-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 10px; transition: var(--transition);
}
.category-name { font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 3px; }
.category-count { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Auction card ──────────────────────────────────────────── */
.auction-timer {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--coral);
}
.timer-block {
  background: var(--navy); color: white;
  padding: 2px 6px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 700; min-width: 26px; text-align: center;
}
.bid-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ─── How it Works ──────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 36px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--primary-light) 20%, var(--primary-light) 80%, transparent);
  z-index: 0;
}
.step-card {
  text-align: center; position: relative; z-index: 1;
  background: white; padding: 32px 24px; border-radius: var(--radius-xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: white; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(0,168,168,0.3);
}
.step-icon { font-size: 28px; margin-bottom: 14px; }
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Banner / Promo ────────────────────────────────────────── */
.promo-banner {
  border-radius: var(--radius-2xl); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1A4B8A 100%);
  color: white; padding: 48px 40px; display: flex; align-items: center;
}
.promo-banner .promo-text { flex: 1; }
.promo-banner .promo-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.promo-banner .promo-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.promo-banner .promo-sub { opacity: 0.8; margin-bottom: 24px; }
.promo-deco {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-size: 120px; opacity: 0.12; user-select: none;
}

/* ─── Seller Spotlight ──────────────────────────────────────── */
.seller-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.seller-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.seller-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: white; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 3px solid white; box-shadow: 0 4px 12px rgba(0,168,168,0.25);
}
.seller-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.seller-location { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.seller-stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.seller-stats { display: flex; justify-content: center; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.seller-stat .n { font-weight: 700; font-size: 1rem; color: var(--primary); }
.seller-stat .l { font-size: 0.72rem; color: var(--text-muted); }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 0.78rem; font-weight: 600; }

/* ─── App Download ──────────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, #E8F8F8 0%, #CCF0F0 100%);
  border-radius: var(--radius-2xl); padding: 64px 48px;
  display: flex; align-items: center; gap: 48px;
}
.app-content { flex: 1; }
.app-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.app-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: white;
  padding: 12px 20px; border-radius: var(--radius-lg);
  transition: var(--transition);
}
.app-btn:hover { background: #1A3A8A; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.app-btn i { font-size: 24px; }
.app-btn .sub { font-size: 0.7rem; opacity: 0.75; }
.app-btn .name { font-weight: 700; font-size: 0.9rem; }
.app-phone { font-size: 100px; opacity: 0.15; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.75); padding-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand .logo-text span:first-child { color: var(--primary); }
.footer-brand .logo-text span:last-child { color: white; }
.footer-about { font-size: 0.875rem; margin: 14px 0 20px; line-height: 1.7; opacity: 0.7; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-newsletter p { font-size: 0.875rem; margin-bottom: 12px; opacity: 0.7; }
.newsletter-form { display: flex; }
.newsletter-form input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg) 0 0 var(--radius-lg); color: white; font-size: 0.875rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button { padding: 10px 16px; background: var(--primary); color: white; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-weight: 600; transition: var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.payment-icon { padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 600; color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }
.footer-lang {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full);
  font-size: 0.78rem; cursor: pointer;
}

/* ─── Listings Page ─────────────────────────────────────────── */
.listings-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 28px; padding: 32px 0 64px; }
.filter-sidebar { position: sticky; top: calc(var(--header-h) + 16px); height: fit-content; }
.filter-panel { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.filter-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.filter-header h3 { font-weight: 700; font-size: 0.95rem; }
.filter-section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.875rem; margin-bottom: 12px; cursor: pointer;
}
.filter-section-title i { font-size: 12px; color: var(--text-muted); transition: var(--transition); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-option input { accent-color: var(--primary); }
.filter-option label { font-size: 0.875rem; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.filter-option .count { font-size: 0.75rem; color: var(--text-muted); }
.price-range { padding-top: 8px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.82rem; text-align: center; }
.price-inputs span { color: var(--text-muted); font-size: 0.875rem; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 0.9rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }
.results-sort { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.results-sort label { color: var(--text-muted); }
.results-sort select { padding: 6px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.875rem; background: white; }
.view-toggles { display: flex; gap: 4px; }
.view-toggle { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.view-toggle.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.active-filter { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--primary-bg); border: 1px solid var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500; }
.active-filter button { color: var(--primary); background: none; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; }

/* ─── Product Detail Page ───────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; padding: 32px 0 64px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--bg); margin-bottom: 12px; cursor: zoom-in; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.gallery-thumb { width: 70px; height: 70px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-buy-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.product-buy-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); }
.product-price-main { margin-bottom: 20px; }
.price-main { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.price-original { text-decoration: line-through; color: var(--text-light); font-size: 1rem; margin-left: 8px; }
.price-save { color: var(--success); font-size: 0.875rem; font-weight: 600; }
.product-condition-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.875rem; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.buy-actions .btn { width: 100%; height: 50px; font-size: 1rem; }
.buy-meta { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.buy-meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.buy-meta-row i { width: 18px; color: var(--primary); }
.seller-mini { background: var(--bg); border-radius: var(--radius-lg); padding: 16px; display: flex; align-items: center; gap: 12px; margin-top: 16px; cursor: pointer; border: 1px solid var(--border); transition: var(--transition); }
.seller-mini:hover { border-color: var(--primary); }
.seller-mini .avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--navy)); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.seller-mini .info { flex: 1; }
.seller-mini .name { font-weight: 700; font-size: 0.9rem; }
.seller-mini .rating { font-size: 0.78rem; color: var(--text-muted); }
.product-tabs { margin-top: 32px; border-bottom: 2px solid var(--border); display: flex; gap: 0; }
.product-tab { padding: 12px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.product-tab-content { padding: 24px 0; font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; }
.review-meta .name { font-weight: 600; font-size: 0.875rem; }
.review-meta .date { font-size: 0.75rem; color: var(--text-light); }
.review-stars { color: var(--gold); font-size: 12px; }
.review-text { font-size: 0.875rem; color: var(--text-muted); }
.bid-section { background: var(--primary-bg); border: 2px solid var(--primary-light); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
.bid-current { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.bid-amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.bid-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.bid-input-row { display: flex; gap: 8px; margin-top: 12px; }
.bid-input-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--primary-light); border-radius: var(--radius-md); background: white; }
.offer-dialog { background: var(--bg); border: 1.5px dashed var(--border-dark); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 12px; font-size: 0.875rem; color: var(--text-muted); text-align: center; cursor: pointer; transition: var(--transition); }
.offer-dialog:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* ─── Sell / Create Listing ─────────────────────────────────── */
.sell-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 32px 0 64px; align-items: start; }
.progress-steps { display: flex; align-items: center; margin-bottom: 32px; }
.progress-step { display: flex; align-items: center; gap: 0; flex: 1; }
.progress-step:last-child { flex: none; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; border: 2px solid var(--border); background: white; color: var(--text-muted); flex-shrink: 0; transition: var(--transition); }
.progress-step.active .step-dot { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(0,168,168,0.15); }
.progress-step.done .step-dot { border-color: var(--success); background: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.progress-step.done .step-line { background: var(--success); }
.step-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }
.progress-step.active .step-label { color: var(--primary); }
.progress-step.done .step-label { color: var(--success); }
.form-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.form-section-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: var(--primary); }
.photo-upload-area {
  border: 2px dashed var(--border-dark); border-radius: var(--radius-xl);
  padding: 40px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--bg);
}
.photo-upload-area:hover { border-color: var(--primary); background: var(--primary-bg); }
.photo-upload-area i { font-size: 40px; color: var(--primary); margin-bottom: 12px; }
.photo-upload-area h3 { font-weight: 700; margin-bottom: 6px; }
.photo-upload-area p { font-size: 0.875rem; color: var(--text-muted); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.photo-thumb { aspect-ratio: 1; border-radius: var(--radius-md); border: 1.5px solid var(--border); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.photo-thumb.add { border-style: dashed; color: var(--text-light); font-size: 24px; }
.photo-thumb.add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.ai-assist-banner { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: white; border-radius: var(--radius-xl); padding: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.ai-assist-banner i { font-size: 28px; color: var(--gold); }
.ai-assist-banner h4 { font-weight: 700; margin-bottom: 4px; }
.ai-assist-banner p { font-size: 0.82rem; opacity: 0.8; }
.listing-preview { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.listing-preview h4 { font-weight: 700; margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.listing-tips { margin-top: 20px; }
.tip-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.tip-item:last-child { border-bottom: none; }
.tip-item i { color: var(--primary); margin-top: 2px; }

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); }
.dash-sidebar { background: var(--navy); color: white; padding: 24px 0; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.dash-user { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.dash-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #007B7B); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.dash-username { font-weight: 700; font-size: 0.9rem; }
.dash-level { font-size: 0.72rem; opacity: 0.6; }
.dash-rating { color: var(--gold); font-size: 12px; margin-top: 4px; }
.dash-nav-group { margin-bottom: 8px; }
.dash-nav-label { padding: 8px 20px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.4; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 0.875rem; opacity: 0.75; cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.dash-nav-item:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.dash-nav-item.active { opacity: 1; background: rgba(255,255,255,0.1); border-left-color: var(--primary); color: white; }
.dash-nav-item i { width: 18px; text-align: center; }
.dash-nav-item .badge-sm { margin-left: auto; background: var(--coral); color: white; font-size: 10px; padding: 1px 6px; border-radius: var(--radius-full); font-weight: 700; }
.dash-main { padding: 28px 32px; background: var(--bg); }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.dash-date { font-size: 0.875rem; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.stat-change { font-size: 0.78rem; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; float: right; margin-top: -40px; }
.chart-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-weight: 700; font-size: 1rem; }
.chart-bar-wrapper { display: flex; align-items: flex-end; gap: 12px; height: 160px; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chart-bar { width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); transition: var(--transition); min-width: 30px; }
.chart-bar:hover { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.chart-bar-label { font-size: 0.7rem; color: var(--text-muted); }
.chart-bar-value { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.table-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.table-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-title { font-weight: 700; font-size: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 20px; background: var(--bg); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.status-pill.active    { background: #D1FAE5; color: #065F46; }
.status-pill.pending   { background: #FEF3C7; color: #92400E; }
.status-pill.sold      { background: var(--primary-light); color: var(--primary-dark); }
.status-pill.shipped   { background: #E0E7FF; color: #3730A3; }
.status-pill.completed { background: #D1FAE5; color: #065F46; }
.status-pill.cancelled { background: #FEE2E2; color: #991B1B; }
.listing-row-img { width: 44px; height: 44px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid var(--border); }

/* ─── Messages ──────────────────────────────────────────────── */
.messages-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - var(--header-h)); }
.conversations-panel { border-right: 1px solid var(--border); background: white; display: flex; flex-direction: column; }
.conv-search { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.conv-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.conv-item:hover, .conv-item.active { background: var(--bg); }
.conv-item.active { background: var(--primary-bg); border-left: 3px solid var(--primary); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--navy)); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 0.875rem; margin-bottom: 3px; }
.conv-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-time { font-size: 0.72rem; color: var(--text-light); }
.conv-unread { background: var(--primary); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-panel { display: flex; flex-direction: column; background: var(--bg); }
.chat-header { background: white; border-bottom: 1px solid var(--border); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 60%; }
.msg-bubble { padding: 10px 14px; border-radius: var(--radius-xl); font-size: 0.875rem; line-height: 1.5; }
.msg.received .msg-bubble { background: white; border: 1px solid var(--border); border-radius: 4px var(--radius-xl) var(--radius-xl) var(--radius-xl); }
.msg.sent { align-self: flex-end; }
.msg.sent .msg-bubble { background: var(--primary); color: white; border-radius: var(--radius-xl) var(--radius-xl) 4px var(--radius-xl); }
.msg-time { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }
.msg.sent .msg-time { text-align: right; }
.chat-product { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; max-width: 280px; }
.chat-product img { width: 48px; height: 48px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.chat-product .title { font-size: 0.82rem; font-weight: 600; }
.chat-product .price { font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.chat-input-bar { background: white; border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input-bar textarea { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-xl); resize: none; max-height: 120px; font-size: 0.875rem; transition: var(--transition); }
.chat-input-bar textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,168,168,0.1); }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: white; border-radius: var(--radius-2xl); max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(0.95); transition: var(--transition); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px 24px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ─── Toast ─────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border-left: 4px solid var(--primary); font-size: 0.875rem; min-width: 280px; max-width: 400px; animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-close { margin-left: auto; color: var(--text-light); cursor: pointer; font-size: 16px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: span 2; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-buy-panel { position: relative; top: auto; }
  .gallery { position: relative; top: auto; }
  .sell-layout { grid-template-columns: 1fr; }
  .listing-preview { position: relative; top: auto; }
}
.mobile-menu-btn,
.mobile-menu-overlay,
.mobile-menu {
  display: none;
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
}


@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-main { padding: 0 16px; }
  .header-search { display: none; }
  .header-nav { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero-stats { gap: 24px; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; padding: 0 16px; gap: 12px; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; width: 100%; }
  .trust-item:last-child { border-bottom: none; }
  .section { padding: 40px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: relative; top: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .messages-layout { grid-template-columns: 1fr; }
  .conversations-panel { display: none; }
  .promo-deco { display: none; }
  .promo-banner { padding: 32px 24px; }
  .app-section { flex-direction: column; padding: 40px 24px; }

  /* Mobile Menu */
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
  .mobile-menu-btn:hover { background: var(--primary-bg); border-color: var(--primary); }
  .mobile-menu-btn i { font-size: 16px; color: var(--text); }

  .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
  .mobile-menu-overlay.open { display: flex; opacity: 1; visibility: visible; }

  .mobile-menu { display: block; position: absolute; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100vh; background: white; box-shadow: var(--shadow-xl); transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .mobile-menu-overlay.open .mobile-menu { transform: translateX(0); }

  .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
  .mobile-menu-logo { display: flex; align-items: center; gap: 12px; }
  .mobile-menu-logo .logo-icon { font-size: 24px; }
  .mobile-menu-logo .logo-text { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
  .mobile-menu-logo .logo-tagline { font-size: 0.75rem; color: var(--text-muted); }
  .mobile-menu-close { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
  .mobile-menu-close:hover { background: var(--error); border-color: var(--error); color: white; }

  .mobile-menu-search { padding: 16px 20px; border-bottom: 1px solid var(--border); }

  .mobile-menu-section { padding: 20px; border-bottom: 1px solid var(--border); }
  .mobile-menu-section:last-child { border-bottom: none; }
  .mobile-menu-title { font-weight: 700; font-size: 0.875rem; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

  .mobile-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; transition: var(--transition); border-radius: var(--radius-md); }
  .mobile-menu-item:hover { background: var(--primary-bg); color: var(--primary); padding-left: 8px; }
  .mobile-menu-item i { width: 18px; color: var(--text-muted); }
  .mobile-menu-item:hover i { color: var(--primary); }
  .mobile-badge { background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); margin-left: auto; }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8eef3 50%, #f1f5f9 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-dark); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 60px; margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.empty-sub { font-size: 0.875rem; color: var(--text-muted); }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; cursor: pointer; border: 1.5px solid var(--border); background: white; color: var(--text-muted); transition: var(--transition); font-weight: 500; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 700; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ─── Auth pages ────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-bg) 0%, #E8F0FE 100%); padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius-2xl); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 0.82rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-login { display: flex; gap: 10px; }
.social-login-btn { flex: 1; height: 44px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.social-login-btn:hover { border-color: var(--primary); background: var(--primary-bg); }
