/* =========================================================
   UsefulOld – Global Design System
   Colors: Primary #FF6B00 | Secondary #1E3A8A | WA #25D366
   Font:   Inter (400 500 600 700 800)
   Grid:   8px base unit
   ========================================================= */

/* ── 0. Custom Properties ─────────────────────────────── */
:root {
  /* Brand */
  --primary:        #FF6B00;
  --primary-dark:   #e55a00;
  --primary-light:  #fff3eb;
  --secondary:      #1E3A8A;
  --secondary-dark: #162d6f;
  --whatsapp:       #25D366;
  --whatsapp-dark:  #1da851;

  /* Neutral */
  --bg:        #F9FAFB;
  --bg2:       #F3F4F6;
  --white:     #ffffff;
  --text:      #111827;
  --text-light:#6B7280;
  --border:    #E5E7EB;

  /* Semantic */
  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;
  --info:    #0284c7;

  /* Design tokens */
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow:    0 1px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

  /* Spacing (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;

  /* Typography */
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-size: 1rem;
  --line:      1.6;

  /* Transitions */
  --transition: 0.2s ease;
}

/* ── 1. Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--font-size);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

/* ── 2. Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary{color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--text-light); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-bold{ font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-sm  { font-size: .82rem; }
.fs-xs  { font-size: .72rem; }

/* ── 3. Spacing Utilities ─────────────────────────────── */
.mt-1 { margin-top:    var(--sp-1); }
.mt-2 { margin-top:    var(--sp-2); }
.mt-3 { margin-top:    var(--sp-3); }
.mt-4 { margin-top:    var(--sp-4); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.ml-auto{ margin-left: auto; }
.p-3  { padding: var(--sp-3); }
.px-3 { padding-left: var(--sp-3); padding-right: var(--sp-3); }
.py-3 { padding-top:  var(--sp-3); padding-bottom: var(--sp-3); }

/* ── 4. Layout Utilities ──────────────────────────────── */
.d-flex        { display: flex; }
.d-grid        { display: grid; }
.align-center  { align-items: center; }
.align-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.justify-between{justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }
.gap-1  { gap: var(--sp-1); }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.hidden { display: none !important; }
.w-100  { width: 100%; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-2); }
@media(max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── 5. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
}

.btn-success  { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(1.08); }

.btn-danger   { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(1.08); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-outline-secondary:hover { background: var(--secondary); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg2); color: var(--text); }

.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── 6. Badges / Pills ────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.4;
}
.badge-hot        { background: var(--primary);   color: #fff; }
.badge-verified   { background: var(--secondary); color: #fff; }
.badge-best-price { background: var(--success);   color: #fff; }
.badge-urgent     { background: var(--danger);    color: #fff; }
.badge-new        { background: var(--info);      color: #fff; }
.badge-premium    { background: #7c3aed;          color: #fff; }

/* Status badges */
.status-badge    { padding: 3px 10px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; }
.status-pending  { background: #fef9c3; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-sold     { background: #e0e7ff; color: #3730a3; }
.status-blocked  { background: #f1f5f9; color: #475569; }
.status-free     { background: #f0fdf4; color: #166534; }
.status-premium  { background: #fffbeb; color: #92400e; }

/* Nav/Admin count badge */
.nav-badge {
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ── 7. Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-header {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.card-body   { padding: var(--sp-3); }
.card-body-flush { padding: 0; }
.card-footer {
  padding: 14px var(--sp-3);
  border-top: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── 8. Alerts ────────────────────────────────────────── */
.alert {
  padding: 12px var(--sp-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-2);
  font-size: .9rem;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
}
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }

/* ── 9. Forms ─────────────────────────────────────────── */
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-label .required { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.12);
}
.form-control.is-invalid  { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
select.form-control  { cursor: pointer; }
textarea.form-control{ resize: vertical; min-height: 100px; }

.form-error { color: var(--danger);    font-size: .82rem; margin-top: 4px; }
.form-hint  { color: var(--text-light);font-size: .82rem; margin-top: 4px; }

/* ── 10. Header / Navigation ──────────────────────────── */
/* Topbar */
.topbar { background: var(--secondary-dark); color: #cbd5e1; font-size: .78rem; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-text  { color: #94a3b8; letter-spacing: .2px; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-links a { color: #cbd5e1; transition: color var(--transition); font-weight: 500; }
.topbar-links a:hover { color: #fff; }
.topbar-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(255,107,0,.35);
  transition: background var(--transition), box-shadow var(--transition);
}
.topbar-cta:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(255,107,0,.45); }

/* Main header */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px var(--sp-2);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; letter-spacing: -.3px; }
.logo-sub  { font-size: .62rem; color: var(--text-light); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 3px; display: block; }

/* Header search */
.header-search {
  flex: 1;
  display: flex;
  max-width: 600px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,.10); }
.header-search input  { flex: 1; padding: 10px 14px; border: none; background: transparent; font-size: .95rem; outline: none; min-width: 0; }
.header-search select { padding: 10px 8px; border: none; border-left: 1px solid var(--border); background: transparent; font-size: .85rem; outline: none; cursor: pointer; }
.btn-search { background: var(--primary); color: #fff; border: none; padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background var(--transition); }
.btn-search:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle { background: none; border: none; font-size: 1.5rem; cursor: pointer; display: none; padding: 4px; }

/* Navigation bar */
.main-nav { background: var(--secondary); }
.nav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  color: #cbd5e1;
  padding: 10px 14px;
  font-size: .88rem;
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav-link:hover,
.nav-link.active { color: #fff; border-bottom-color: var(--primary); background: rgba(255,255,255,.06); }
.nav-more { color: var(--primary) !important; font-weight: 600; }

/* ── 11. Hero ─────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,107,0,.18) 0, transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(37,211,102,.14) 0, transparent 45%),
    linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%);
  color: #fff;
  padding: 48px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.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.04'%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");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block; position: relative;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fde68a;
  font-size: .72rem; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.18; margin-bottom: 12px; position: relative; letter-spacing: -.5px; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1rem; color: #cbd5e1; max-width: 560px; margin: 0 auto 24px; position: relative; }

.hero-search {
  background: #fff;
  border-radius: var(--radius-full);
  display: flex;
  max-width: 600px;
  margin: 0 auto 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-search input { flex: 1; padding: 14px 24px; border: none; font-size: 1rem; outline: none; color: var(--text); }
.hero-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }

.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; position: relative; }
.hero-stat {
  text-align: left;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex; flex-direction: column;
  min-width: 140px;
  backdrop-filter: blur(4px);
}
.hero-stat-num   { font-size: 1.25rem; font-weight: 800; color: #fff; display: block; line-height: 1.2; }
.hero-stat-label { font-size: .72rem; color: #cbd5e1; font-weight: 600; letter-spacing: .3px; }

/* ── 12. Sections ─────────────────────────────────────── */
.section { padding: 48px 0; }
.section-white { background: var(--white); }
.section-sm { padding: 32px 0; }

.section-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-light); margin-bottom: 28px; font-size: .95rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }

/* CTA Banner */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), #2563eb);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section h2 span { color: var(--primary); }
.cta-section p { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 13. Category Cards ───────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  border: 2px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.category-card .name { font-size: .82rem; font-weight: 600; line-height: 1.3; }
.category-card .count { font-size: .72rem; color: var(--text-light); margin-top: 3px; display: block; }

/* ── 14. Listing Cards ────────────────────────────────── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.listing-card-image { position: relative; height: 190px; background: var(--bg2); overflow: hidden; flex-shrink: 0; }
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.listing-card:hover .listing-card-image img { transform: scale(1.06); }

.listing-card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }

.listing-card-body { padding: 12px 14px; flex: 1; }
.listing-card-title {
  font-size: .95rem; font-weight: 700; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card-price  { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.listing-card-meta   { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-light); }
.listing-card-location { display: flex; align-items: center; gap: 4px; }

.listing-card-footer { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.listing-card-footer .btn { flex: 1; font-size: .8rem; padding: 7px 8px; }

/* ── 15. Vendor Cards ─────────────────────────────────── */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.vendor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-3);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
  color: var(--text);
}
.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.vendor-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg2);
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--border);
}
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }

.vendor-avatar {
  width: 100%; height: 100%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; font-weight: 800;
}

.vendor-name   { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.vendor-rating { color: #f59e0b; font-size: .9rem; margin-bottom: 8px; }
.vendor-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.vendor-meta   { font-size: .8rem; color: var(--text-light); }

/* ── 16. Empty State ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px var(--sp-3);
  color: var(--text-light);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .95rem; }

/* ── 17. Pagination ───────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-light); cursor: not-allowed; }

/* ── 18. WhatsApp Sticky ──────────────────────────────── */
.whatsapp-sticky {
  position: fixed; bottom: 28px; right: 24px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 18px 12px 14px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-sticky:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-sticky svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── 19. Footer ───────────────────────────────────────── */
.site-footer { background: var(--secondary); color: #cbd5e1; margin-top: 64px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: #94a3b8; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  background: rgba(255,255,255,.1); color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; margin-top: 40px;
  text-align: center; font-size: .82rem; color: #64748b;
}

/* ── 20. Dashboard Layout ─────────────────────────────── */
.main-content { min-height: 60vh; }

.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0; min-height: 60vh; }

.dashboard-sidebar-menu {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.sidebar-menu-item:last-child { border-bottom: none; }
.sidebar-menu-item:hover,
.sidebar-menu-item.active { background: var(--primary); color: #fff; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon  { font-size: 1.6rem; margin-bottom: 8px; }
.stat-card-num   { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card-label { font-size: .82rem; color: var(--text-light); margin-top: 4px; font-weight: 600; }
.stat-card-alert { border-color: var(--danger); }
.stat-card-alert .stat-card-num { color: var(--danger); }

/* ── 21. Tables ───────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg2); font-weight: 700; color: var(--text); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fef6f0; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table-img { width: 48px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }

/* ── 22. Listing Detail ───────────────────────────────── */
.listing-detail { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 32px 0; }

.listing-gallery-main { border-radius: var(--radius); overflow: hidden; height: 380px; background: var(--bg2); margin-bottom: 10px; }
.listing-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.listing-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.listing-gallery-thumbs img {
  width: 68px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.listing-gallery-thumbs img:hover,
.listing-gallery-thumbs img.active { border-color: var(--primary); }

.listing-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 12px 0; }
.listing-action-buttons { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.listing-action-buttons .btn { font-size: 1rem; padding: 13px; }
.contact-count { font-size: .8rem; color: var(--text-light); text-align: center; margin-top: 6px; }

/* ── 23. Search & Filters ─────────────────────────────── */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0; align-items: start; }
.filter-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.filter-title { font-weight: 700; margin-bottom: 12px; font-size: .82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .8px; }

/* Pill-style filters (replaces radio rows) */
.filter-pills { display: flex; flex-direction: column; gap: 4px; }
.filter-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.filter-pill:hover { background: var(--bg2); }
.filter-pill.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
}
.filter-pill .pill-count { font-size: .72rem; color: var(--text-light); font-weight: 600; }
.filter-pill.active .pill-count { color: var(--primary); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; padding: 8px 10px; font-size: .88rem; }
.price-range .price-sep { color: var(--text-light); font-size: .82rem; }

/* Legacy filter-option (kept for compatibility, restyled) */
.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; font-size: .88rem; border-radius: var(--radius-sm); transition: background var(--transition); }
.filter-option:hover { background: var(--bg2); }
.filter-option input[type=checkbox],
.filter-option input[type=radio] { accent-color: var(--primary); }

.search-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-wrap: wrap; gap: 10px;
}
.search-count { font-weight: 600; font-size: .9rem; color: var(--text); }
.search-count strong { color: var(--primary); }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.active-filter-chip .x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg2); color: var(--text-light);
  font-size: .72rem; line-height: 1; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.active-filter-chip .x:hover { background: var(--danger); color: #fff; }

/* ── 24. Image Upload ─────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-area:hover,
.upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }

.upload-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.upload-preview-item { position: relative; width: 90px; height: 80px; border-radius: 6px; overflow: hidden; }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.7); color: #fff;
  border: none; border-radius: 50%;
  width: 20px; height: 20px;
  cursor: pointer; font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── 25. Rating Stars ─────────────────────────────────── */
.star-rating { display: flex; gap: 4px; }
.star { font-size: 1.4rem; cursor: pointer; color: #d1d5db; transition: color .15s; }
.star.filled, .star:hover, .star.hover { color: #f59e0b; }

/* ── 26. AI Loader ────────────────────────────────────── */
.ai-loading { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-light); }
.ai-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: ai-pulse 1.4s ease-in-out infinite; }
.ai-loading-dot:nth-child(2) { animation-delay: .2s; }
.ai-loading-dot:nth-child(3) { animation-delay: .4s; }
@keyframes ai-pulse { 0%,80%,100%{transform:scale(.6);opacity:.5} 40%{transform:scale(1);opacity:1} }

/* ── 27. Condition Bar ────────────────────────────────── */
.condition-bar { display: flex; gap: 3px; margin: 8px 0; }
.condition-bar span { height: 8px; flex: 1; border-radius: 4px; background: var(--border); }
.condition-bar span.filled { background: var(--primary); }

/* ── 28. Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { transform: scale(.95); opacity: 0; } }
.modal-header { padding: 16px var(--sp-3); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); padding: 2px 6px; border-radius: 4px; transition: background var(--transition); }
.modal-close:hover { background: var(--bg2); }
.modal-body { padding: var(--sp-3); }

/* ── 29. Vendor Panel Card ────────────────────────────── */
.vendor-profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-3);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.vendor-profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; font-weight: 800;
  margin: 0 auto 10px;
}
.vendor-profile-name  { font-weight: 700; font-size: 1rem; }
.vendor-profile-email { font-size: .8rem; color: var(--text-light); margin: 4px 0 8px; }

/* ── 30. Admin Panel ──────────────────────────────────── */
.admin-wrapper { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

.admin-sidebar { background: var(--secondary); color: #fff; display: flex; flex-direction: column; }
.admin-sidebar-logo {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1.2rem;
  font-weight: 800;
}
.admin-sidebar-logo span { font-size: .7rem; opacity: .6; display: block; font-weight: 400; margin-top: 2px; }

.admin-nav-section { padding: 10px 18px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: #475569; font-weight: 700; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  color: #94a3b8;
  font-size: .88rem;
  transition: all var(--transition);
}
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-item.nav-logout { color: #f87171; margin-top: auto; }
.admin-nav-item.nav-logout:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

.admin-main { background: var(--bg); display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.admin-topbar-welcome { font-weight: 700; color: var(--text-light); }
.admin-topbar-welcome span { color: var(--text); }
.admin-topbar-right { display: flex; gap: 12px; align-items: center; }
.admin-pending-badge {
  background: #fee2e2; color: #991b1b;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 600;
}

.admin-content { padding: 24px; flex: 1; }
.admin-page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; color: var(--text); }

/* ── 30b. Auth Pages (Login / Register) ───────────────── */
.auth-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(180deg, var(--bg) 0%, #eef2ff 100%);
}
.auth-page--standalone {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef2ff 0%, #fff7ed 100%);
}
.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(30,58,138,.12);
  overflow: hidden;
}
.auth-card-narrow { max-width: 420px; }
.auth-card-wide   { max-width: 680px; }

.auth-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%);
  color: #fff;
  padding: 28px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-header::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,107,0,.20) 0, transparent 50%);
  pointer-events: none;
}
.auth-header-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
  position: relative;
}
.auth-title { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; position: relative; letter-spacing: -.3px; }
.auth-subtitle { font-size: .85rem; color: rgba(255,255,255,.78); position: relative; }

.auth-body { padding: 28px; }
.auth-footer-text { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--text-light); }
.auth-footer-text a { color: var(--primary); font-weight: 700; }
.auth-footer-text a:hover { text-decoration: underline; }

.auth-meta-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
}
.auth-meta-bar strong { color: var(--text); }

/* ── 30c. Polish ───────────────────────────────────────── */
::selection { background: rgba(255,107,0,.25); color: var(--text); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid var(--bg2); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Subtle button press */
.btn:active { transform: translateY(0) scale(.98); }

/* Link inside text */
a.text-link { color: var(--primary); font-weight: 600; }
a.text-link:hover { text-decoration: underline; }

/* Section title polish */
.section-title { letter-spacing: -.3px; }

/* ── 31. Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-wrapper { grid-template-columns: 180px 1fr; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-detail { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  #filterSidebar { display: none; }
  #filterSidebar.open { display: block; }
  .admin-wrapper { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; max-width: 100%; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav.open .nav-inner { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0; }
  .main-nav.open .nav-inner a { padding: 10px 14px; border-radius: 6px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 1.6rem; }
  .topbar-text { display: none; }
  .cta-section h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .listing-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .hero-stat { min-width: 0; flex: 1 1 45%; padding: 8px 12px; }
  .hero-stat-num { font-size: 1.05rem; }
  .auth-body { padding: 20px; }
  .auth-header { padding: 22px 20px 18px; }
}

/* ── Search Autocomplete ──────────────────────────────── */
.search-autocomplete {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1100;
  max-height: 380px;
  overflow-y: auto;
}
.autocomplete-section {
  padding: 6px 14px 2px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg);
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
}
.autocomplete-item:hover { background: var(--bg); }
.autocomplete-item .ac-icon { font-size: 1rem; flex-shrink: 0; }
.autocomplete-item .ac-text { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-item .ac-price { font-size: .82rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.38); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.35); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 70px; }
#galleryMain { cursor: zoom-in; }

/* ── Scroll-to-Top ───────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}
.scroll-top-btn:hover { background: var(--primary); transform: translateY(-3px); }
.scroll-top-btn.visible { display: flex; }

/* ── Recently Viewed shelf ───────────────────────────── */
.rv-shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.rv-shelf::-webkit-scrollbar { height: 4px; }
.rv-shelf::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.rv-card { flex: 0 0 150px; text-decoration: none; color: inherit; }
.rv-card img {
  width: 150px;
  height: 105px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform var(--transition);
}
.rv-card:hover img { transform: scale(1.03); }
.rv-card-title {
  font-size: .8rem;
  font-weight: 600;
  margin-top: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text);
}
.rv-card-price { font-size: .82rem; font-weight: 700; color: var(--primary); margin-top: 2px; }

/* ── Enquiry form ────────────────────────────────────── */
.enquiry-form-wrap { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.enquiry-form-wrap .form-group { margin-bottom: 8px; }

/* ── Admin quick action ──────────────────────────────── */
.mb-3 { margin-bottom: 20px; }

/* ── "NEW" listing badge ────────────────────────────── */
.badge-new { background: linear-gradient(135deg,#10b981,#059669); color:#fff; }

/* ── Sticky mobile contact bar ──────────────────────── */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  padding: 10px 16px;
  z-index: 995;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  align-items: center;
}
.sticky-contact-bar.visible { display: flex !important; }
@media (min-width: 769px) {
  .sticky-contact-bar { display: none !important; }
}
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 74px; }
}

/* ── Bulk actions bar ────────────────────────────────── */
.bulk-actions-bar {
  background: var(--secondary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
  font-weight: 600;
}
.bulk-actions-bar.visible { display: flex; }
.bulk-actions-bar select {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-size: .85rem;
  cursor: pointer;
  flex: 1;
  max-width: 220px;
}
.bulk-actions-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Expiry warning badges ────────────────────────────── */
.badge-expiring {
  background: #fde68a;
  color: #92400e;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 4px;
  vertical-align: middle;
}
.badge-expired-warn {
  background: #fecaca;
  color: #7f1d1d;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── AI Chatbot Widget ─────────────────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 300px;
  z-index: 970;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
  font-size: .9rem;
}
.chatbot-header {
  background: linear-gradient(135deg, #1e3a8a, #0f2660);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  user-select: none;
}
.chatbot-body {
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
}
.chatbot-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .83rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg.bot {
  background: #f3f4f6;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.bot.fallback {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
  font-style: italic;
}
.chat-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-input {
  display: flex;
  padding: 8px;
  gap: 6px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}
.chatbot-input input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .83rem;
  outline: none;
  font-family: inherit;
}
.chatbot-input input:focus { border-color: var(--primary); }
.chatbot-input button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
  white-space: nowrap;
}
.chatbot-input button:hover { opacity: .9; }
.chat-typing-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  margin: 0 2px;
  animation: chatDot 1.2s infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: .2s; }
.chat-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%,80%,100%{transform:scale(.8);opacity:.5} 40%{transform:scale(1.2);opacity:1} }
@media (max-width: 480px) {
  .chatbot-widget { right: 8px; width: calc(100vw - 16px); bottom: 70px; }
}

/* ── AI Smart Search Bar ─────────────────────────────── */
.ai-smart-search {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.ai-smart-search-hint {
  font-size: .78rem;
  color: var(--text-light);
}

/* ── Listing Tags / Keywords ─────────────────────────── */
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.listing-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #bfdbfe;
  transition: background .15s;
}
.listing-tag:hover { background: #dbeafe; color: #1e40af; }
