/*
Theme Name: Gexo
Theme URI: https://gexo.ng
Author: Gexo Team
Description: Gexo - Nigeria's safest classified ads marketplace with escrow protection
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gexo
Tags: classifieds, marketplace, escrow, minimal
*/

/* ============================================
   GEXO DESIGN SYSTEM
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  /* Brand Colors */
  --gexo-ink:        #0D0D0D;
  --gexo-white:      #FAFAF8;
  --gexo-accent:     #FF4B2B;
  --gexo-accent-dim: #FF4B2B22;
  --gexo-green:      #00C896;
  --gexo-green-dim:  #00C89618;
  --gexo-muted:      #6B6B6B;
  --gexo-border:     #E8E8E4;
  --gexo-surface:    #F4F4F0;
  --gexo-surface-2:  #EEEEE9;
  --gexo-gold:       #F5A623;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.15s;
  --mid:  0.3s;
  --slow: 0.5s;

  /* Container */
  --max-w: 1280px;
  --max-w-sm: 720px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--gexo-white);
  color: var(--gexo-ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display { font-size: clamp(40px, 6vw, 80px); }
.text-h1      { font-size: clamp(28px, 4vw, 48px); }
.text-h2      { font-size: clamp(22px, 3vw, 36px); }
.text-h3      { font-size: clamp(18px, 2.5vw, 24px); }
.text-body-lg { font-size: 18px; line-height: 1.7; }
.text-body    { font-size: 16px; }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }

.text-muted   { color: var(--gexo-muted); }
.text-accent  { color: var(--gexo-accent); }
.text-green   { color: var(--gexo-green); }
.font-display { font-family: var(--font-display); }
.font-medium  { font-weight: 500; }
.font-bold    { font-weight: 700; }

/* ============================================
   LAYOUT
============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.container-sm {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.grid { display: grid; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gexo-ink);
  color: var(--gexo-white);
}
.btn-primary:hover {
  background: var(--gexo-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,75,43,0.3);
}

.btn-accent {
  background: var(--gexo-accent);
  color: white;
}
.btn-accent:hover {
  background: #e63d1f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,75,43,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--gexo-ink);
  border: 1.5px solid var(--gexo-border);
}
.btn-ghost:hover {
  border-color: var(--gexo-ink);
  background: var(--gexo-ink);
  color: var(--gexo-white);
}

.btn-green {
  background: var(--gexo-green);
  color: var(--gexo-ink);
  font-weight: 700;
}
.btn-green:hover {
  background: #00b085;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,200,150,0.3);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============================================
   HEADER / NAVIGATION
============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gexo-white);
  border-bottom: 1px solid var(--gexo-border);
  transition: box-shadow var(--mid) var(--ease);
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--gexo-ink);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--gexo-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { width: 16px; height: 16px; fill: white; }

/* Header search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 42px;
  background: var(--gexo-surface);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  padding: 0 44px 0 18px;
  font-size: 14px;
  color: var(--gexo-ink);
  transition: all var(--fast) var(--ease);
}

.header-search input::placeholder { color: var(--gexo-muted); }
.header-search input:focus {
  outline: none;
  border-color: var(--gexo-ink);
  background: white;
}

.header-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--gexo-ink);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--fast);
}
.header-search-btn:hover { background: var(--gexo-accent); }
.header-search-btn svg { width: 14px; height: 14px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-full);
  transition: all var(--fast) var(--ease);
  color: var(--gexo-muted);
}
.nav-link:hover { background: var(--gexo-surface); color: var(--gexo-ink); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gexo-ink);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--fast);
}
.header-avatar:hover { background: var(--gexo-accent); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gexo-ink);
  border-radius: 2px;
  transition: all var(--mid) var(--ease);
}

/* ============================================
   CATEGORY NAV BAR
============================================ */
.category-bar {
  background: white;
  border-bottom: 1px solid var(--gexo-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--sp-xl);
  height: 48px;
  min-width: max-content;
}

.cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--gexo-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--fast) var(--ease);
}
.cat-link:hover { color: var(--gexo-ink); border-bottom-color: var(--gexo-ink); }
.cat-link.active { color: var(--gexo-accent); border-bottom-color: var(--gexo-accent); }
.cat-link .cat-icon { font-size: 16px; }

/* ============================================
   HERO SECTION
============================================ */
.hero {
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gexo-accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--gexo-green-dim);
  color: var(--gexo-green);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gexo-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-lg);
}

.hero-title .accent { color: var(--gexo-accent); }

.hero-sub {
  font-size: 18px;
  color: var(--gexo-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  font-size: 13px;
  color: var(--gexo-muted);
}

.trust-icon { color: var(--gexo-green); }

/* Hero search (large) */
.hero-search {
  background: white;
  border: 1.5px solid var(--gexo-border);
  border-radius: var(--r-lg);
  padding: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  margin-top: var(--sp-xl);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px var(--sp-md);
  background: transparent;
}

.hero-search-select {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  background: var(--gexo-surface);
  border-radius: var(--r-md);
  cursor: pointer;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: var(--sp-xl);
  margin-top: var(--sp-xl);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--gexo-muted);
  margin-top: 4px;
}

/* Hero visual side */
.hero-visual {
  position: relative;
}

.hero-phone-mockup {
  background: var(--gexo-ink);
  border-radius: 32px;
  padding: 12px;
  width: 280px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-screen {
  background: var(--gexo-white);
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
}

/* Floating cards around phone */
.float-card {
  position: absolute;
  background: white;
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  font-size: 12px;
  font-weight: 500;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.float-card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.float-card-2 { bottom: 20%; right: -15%; animation-delay: 1.5s; }
.float-card-3 { top: 50%; left: -20%; animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   TRUST BANNER
============================================ */
.trust-banner {
  background: var(--gexo-ink);
  color: white;
  padding: var(--sp-xl) 0;
}

.trust-banner-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  text-align: center;
}

.trust-item-icon {
  font-size: 28px;
  margin-bottom: var(--sp-sm);
}
.trust-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.trust-item-desc { font-size: 13px; opacity: 0.6; line-height: 1.5; }

/* ============================================
   LISTINGS GRID
============================================ */
.section { padding: var(--sp-3xl) 0; }
.section-sm { padding: var(--sp-2xl) 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
}

.section-title {
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gexo-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--fast);
}
.section-link:hover { gap: 8px; }

/* Listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.listing-card {
  background: white;
  border: 1px solid var(--gexo-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--mid) var(--ease);
  cursor: pointer;
  position: relative;
}

.listing-card:hover {
  border-color: var(--gexo-ink);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.listing-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gexo-surface);
  position: relative;
}

.listing-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gexo-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gexo-border);
}

.listing-badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  background: var(--gexo-ink);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.listing-badge.featured { background: var(--gexo-gold); color: var(--gexo-ink); }
.listing-badge.verified { background: var(--gexo-green); color: var(--gexo-ink); }
.listing-badge.sold { background: var(--gexo-accent); }

.listing-fav {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all var(--fast);
  font-size: 14px;
}
.listing-fav:hover { transform: scale(1.15); }
.listing-fav.active { color: var(--gexo-accent); }

.listing-body {
  padding: var(--sp-md);
}

.listing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--gexo-ink);
  margin-bottom: 6px;
}

.listing-price .currency { font-size: 14px; font-weight: 600; opacity: 0.7; }

.listing-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gexo-ink);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gexo-muted);
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--gexo-border);
}

.seller-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gexo-surface);
  flex-shrink: 0;
  object-fit: cover;
}

.seller-info { font-size: 12px; }
.seller-name { font-weight: 500; color: var(--gexo-ink); }
.seller-rating { color: var(--gexo-gold); font-size: 11px; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gexo-green);
  background: var(--gexo-green-dim);
  padding: 2px 6px;
  border-radius: var(--r-full);
}

/* ============================================
   ESCROW EXPLAINER
============================================ */
.escrow-section {
  background: var(--gexo-ink);
  color: white;
  padding: var(--sp-3xl) 0;
  position: relative;
  overflow: hidden;
}

.escrow-section::after {
  content: 'GEXO';
  position: absolute;
  right: -60px;
  bottom: -40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 180px;
  opacity: 0.04;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.escrow-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.escrow-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gexo-green);
  margin-bottom: var(--sp-lg);
}

.escrow-title {
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-md);
  line-height: 1.1;
}

.escrow-desc {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
}

.escrow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.escrow-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--gexo-green);
}

.step-content-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.step-content-desc { font-size: 13px; color: rgba(255,255,255,0.5); }

/* Escrow visual */
.escrow-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}

.escrow-flow {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.escrow-flow-step {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--mid);
}

.escrow-flow-step.active {
  background: rgba(0,200,150,0.08);
  border-color: rgba(0,200,150,0.2);
}

.flow-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.flow-label { font-size: 13px; font-weight: 600; }
.flow-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.flow-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.flow-status.done { background: var(--gexo-green-dim); color: var(--gexo-green); }
.flow-status.pending { background: rgba(245,166,35,0.15); color: var(--gexo-gold); }
.flow-status.waiting { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

/* ============================================
   CATEGORIES SECTION
============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-md);
}

.category-card {
  background: white;
  border: 1px solid var(--gexo-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--mid) var(--ease);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--gexo-accent);
  background: var(--gexo-accent-dim);
  transform: translateY(-3px);
}

.category-emoji { font-size: 32px; margin-bottom: var(--sp-sm); }
.category-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.category-count { font-size: 12px; color: var(--gexo-muted); margin-top: 2px; }

/* ============================================
   SINGLE LISTING PAGE
============================================ */
.listing-page { padding: var(--sp-xl) 0 var(--sp-3xl); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gexo-muted);
  margin-bottom: var(--sp-xl);
}
.breadcrumb a { color: var(--gexo-muted); }
.breadcrumb a:hover { color: var(--gexo-ink); }
.breadcrumb-sep { opacity: 0.4; }

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-xl);
  align-items: flex-start;
}

/* Gallery */
.listing-gallery { position: relative; }

.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gexo-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-sm);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--r-sm);
  background: var(--gexo-surface);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--fast);
}
.gallery-thumb.active { border-color: var(--gexo-ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Listing detail */
.listing-detail { }

.listing-detail-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--gexo-ink);
  margin-bottom: var(--sp-sm);
}

.listing-detail-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.tag {
  background: var(--gexo-surface);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
}

.listing-detail-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gexo-muted);
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--gexo-border);
  border-bottom: 1px solid var(--gexo-border);
  margin: var(--sp-lg) 0;
}

/* Listing sidebar card */
.listing-sidebar-card {
  background: white;
  border: 1.5px solid var(--gexo-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.sidebar-card-head {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--gexo-border);
}

.sidebar-card-body { padding: var(--sp-lg); }

.escrow-guarantee {
  background: var(--gexo-green-dim);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  font-size: 13px;
  line-height: 1.5;
}

.escrow-guarantee-icon { font-size: 20px; margin-bottom: 6px; }
.escrow-guarantee-title { font-weight: 700; color: var(--gexo-green); font-size: 14px; }
.escrow-guarantee-desc { color: var(--gexo-muted); margin-top: 4px; font-size: 12px; }

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.seller-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--gexo-border);
}

.seller-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gexo-surface);
  object-fit: cover;
  flex-shrink: 0;
}

.seller-card-name { font-weight: 700; font-size: 15px; }
.seller-card-stats { font-size: 12px; color: var(--gexo-muted); margin-top: 2px; }

/* ============================================
   FORMS
============================================ */
.form-group { margin-bottom: var(--sp-lg); }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gexo-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gexo-ink);
  background: white;
  transition: border-color var(--fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gexo-ink);
}

.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gexo-muted); margin-top: 6px; }

.form-error { border-color: var(--gexo-accent) !important; }
.form-error-msg { font-size: 12px; color: var(--gexo-accent); margin-top: 4px; }

/* Image upload */
.image-upload-zone {
  border: 2px dashed var(--gexo-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--mid);
}
.image-upload-zone:hover { border-color: var(--gexo-ink); background: var(--gexo-surface); }
.image-upload-icon { font-size: 36px; margin-bottom: var(--sp-sm); opacity: 0.4; }

/* ============================================
   CHAT / MESSAGES
============================================ */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 120px);
  border: 1px solid var(--gexo-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--gexo-border);
  overflow-y: auto;
}

.chat-sidebar-header {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--gexo-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.chat-thread {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  border-bottom: 1px solid var(--gexo-border);
  transition: background var(--fast);
}
.chat-thread:hover { background: var(--gexo-surface); }
.chat-thread.active { background: var(--gexo-accent-dim); }

.thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gexo-surface);
  flex-shrink: 0;
  position: relative;
}

.thread-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--gexo-green);
  border-radius: 50%;
  border: 2px solid white;
}

.thread-name { font-weight: 600; font-size: 14px; }
.thread-last { font-size: 12px; color: var(--gexo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { font-size: 11px; color: var(--gexo-muted); margin-left: auto; flex-shrink: 0; }
.thread-unread {
  background: var(--gexo-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Chat main */
.chat-main {
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--gexo-border);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.chat-msg { display: flex; gap: var(--sp-sm); max-width: 70%; }
.chat-msg.own { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gexo-surface);
  flex-shrink: 0;
}

.msg-bubble {
  background: var(--gexo-surface);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.own .msg-bubble {
  background: var(--gexo-ink);
  color: white;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.msg-time { font-size: 11px; color: var(--gexo-muted); margin-top: 4px; padding: 0 4px; }

/* Offer bubble */
.msg-offer {
  background: var(--gexo-green-dim);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  font-size: 13px;
}

.chat-input-area {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--gexo-border);
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--gexo-border);
  border-radius: var(--r-full);
  padding: 10px 16px;
  font-size: 14px;
  background: var(--gexo-surface);
  outline: none;
  transition: border-color var(--fast);
}
.chat-input:focus { border-color: var(--gexo-ink); background: white; }

/* ============================================
   USER DASHBOARD
============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0 var(--sp-3xl);
}

.dashboard-nav {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--gexo-muted);
  cursor: pointer;
  transition: all var(--fast);
  margin-bottom: 4px;
}
.dash-nav-item:hover { background: var(--gexo-surface); color: var(--gexo-ink); }
.dash-nav-item.active { background: var(--gexo-ink); color: white; }
.dash-nav-icon { font-size: 18px; }

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.dash-stat-card {
  background: white;
  border: 1px solid var(--gexo-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
}

.dash-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.dash-stat-label { font-size: 13px; color: var(--gexo-muted); margin-top: 4px; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--gexo-ink);
  color: white;
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-md);
}
.footer-logo span { color: var(--gexo-accent); }

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--sp-lg);
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--fast);
}
.footer-link:hover { color: white; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-lg);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  gap: var(--sp-sm);
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--fast);
  text-decoration: none;
  color: white;
}
.social-btn:hover { background: var(--gexo-accent); border-color: var(--gexo-accent); }

/* ============================================
   UTILITIES
============================================ */
.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 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-green { background: var(--gexo-green-dim); color: var(--gexo-green); }
.badge-gold  { background: rgba(245,166,35,0.12); color: var(--gexo-gold); }
.badge-red   { background: var(--gexo-accent-dim); color: var(--gexo-accent); }
.badge-gray  { background: var(--gexo-surface); color: var(--gexo-muted); }

.divider { height: 1px; background: var(--gexo-border); margin: var(--sp-lg) 0; }

.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-banner-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .escrow-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-xl: 24px; --sp-3xl: 60px; }
  .container { padding: 0 var(--sp-md); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-banner-inner { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav { display: none; }
  .header-search { display: none; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-lg); }
}
