/* ============================================
   BakraPeeri.com - Main Stylesheet
   Premium Livestock Marketplace
   ============================================ */

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

:root {
  --primary: #2E7D32;
  --primary-hover: #1B5E20;
  --secondary: #4CAF50;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --green-light: #F0FDF4;
  --green-border: #BBF7D0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.logo-dot { color: var(--secondary); }
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--green-light);
  color: var(--primary);
}
.nav-item.active {
  background: var(--green-light);
  color: var(--primary);
}
.nav-icon { font-size: 16px; }

/* (unused) */
.header-actions { display: none; }
.btn-orders, .btn-sell, .btn-cart, .cart-badge { display: none; }
.btn-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.45) 40%,
    rgba(255,255,255,0.72) 80%,
    rgba(250,250,250,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-block;
  background: var(--green-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid var(--green-border);
}

.hero-heading {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(255,255,255,0.8);
}

.hero-heading-green {
  color: var(--primary);
  display: block;
  font-size: clamp(42px, 6vw, 68px);
}

.hero-sub {
  font-size: 20px;
  color: #374151;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(255,255,255,0.9);
}

/* ===== SEARCH BAR ===== */
.search-container { width: 100%; max-width: 900px; margin: 0 auto; }

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(46,125,50,0.12);
  padding: 10px 10px 10px 24px;
  gap: 12px;
  height: 80px;
  border: 2px solid rgba(46,125,50,0.15);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-bar:focus-within {
  box-shadow: 0 8px 48px rgba(0,0,0,0.18), 0 0 0 3px rgba(46,125,50,0.15);
  border-color: var(--secondary);
}

.search-icon { font-size: 26px; flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}
.search-input::placeholder { color: #9CA3AF; }

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.filter-btn:hover { background: var(--green-light); }

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
  height: 58px;
}
.search-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46,125,50,0.35);
}

/* ===== CATEGORIES ===== */
.categories {
  background: #fff;
  padding: 48px 0 56px;
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.25s;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-border);
}

.cat-goats { background: #F0FDF4; }
.cat-cows  { background: #EFF6FF; }
.cat-qasai { background: #FFF1F2; }
.cat-food  { background: #FFFBEB; }
.cat-accessories { background: #F5F3FF; }
.cat-deals { background: #ECFDF5; }

.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #F59E0B;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.cat-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cat-emoji-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: transform 0.3s;
}
.cat-card:hover .cat-emoji-wrap { transform: scale(1.06); }
.cat-card:hover .cat-img { transform: scale(1.06); }

.cat-deals-img {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  font-size: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-tag {
  font-size: 80px;
  font-weight: 900;
  color: #EF4444;
  line-height: 1;
}

.cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cat-arrow {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.cat-arrow-purple { background: #7C3AED; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--green-light);
  padding: 32px 0;
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon { font-size: 36px; }

.trust-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.trust-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: #BBF7D0;
}

/* ===== POPULAR SEARCHES ===== */
.popular-searches {
  padding: 48px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.popular-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.popular-star { font-size: 24px; }

.popular-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--bg);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}
.chip:hover {
  background: var(--green-light);
  border-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.popular-corner {
  position: absolute;
  right: 24px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.corner-bubble {
  background: var(--green-light);
  border: 2px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.corner-img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ===== FEATURED SECTION ===== */
.featured {
  padding: 56px 0;
  background: var(--bg);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.listing-skeleton {
  height: 320px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaeb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== LISTING CARD (no-image design) ===== */
.listing-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-border);
}

/* Top badge bar */
.listing-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
}

/* Large category emoji */
.listing-cat-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

/* Verified pill */
.verified-pill {
  background: var(--green-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--green-border);
}

.listing-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f3f4f6;
}
.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.listing-card:hover .listing-img { transform: scale(1.05); }

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.listing-badge.verified { background: var(--primary); }
.listing-badge.deal { background: #EF4444; }

.listing-body { padding: 16px; }

.listing-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.listing-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.listing-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.listing-price-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.listing-location {
  font-size: 13px;
  color: var(--text-muted);
}

.listing-contact {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.listing-contact:hover { background: var(--primary-hover); }

/* ===== SEARCH PAGE ===== */
.search-page-bar {
  background: var(--green-light);
  padding: 20px 0;
  border-bottom: 2px solid var(--green-border);
  position: sticky;
  top: 72px;
  z-index: 90;
}

.search-bar-compact {
  height: 60px;
  padding: 8px 8px 8px 20px;
}
.search-bar-compact .search-icon { font-size: 20px; }
.search-bar-compact .search-input { font-size: 16px; }
.search-bar-compact .search-btn {
  height: 44px;
  padding: 10px 28px;
  font-size: 16px;
}

/* ===== RESULTS SECTION ===== */
.results-section {
  padding: 40px 0 64px;
  min-height: 60vh;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }

.results-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.results-query-text { color: var(--primary); }

.results-count {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sort-select {
  padding: 10px 16px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--secondary); }

/* AI Summary */
.ai-summary {
  background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
  border: 2px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.ai-summary.hidden { display: none; }

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.ai-badge {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.ai-summary-text {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}

/* Results Layout */
.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.filters-sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 148px;
}

.filter-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F3F4F6;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.filter-option:hover { color: var(--text); }
.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.price-input {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 8px 8px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.price-input:focus { border-color: var(--secondary); }

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--secondary); }

/* Toggle */
.toggle-switch { display: flex; align-items: center; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider {
  width: 48px;
  height: 26px;
  background: #E5E7EB;
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(22px); }

.apply-filter-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 8px;
  transition: all 0.2s;
}
.apply-filter-btn:hover { background: var(--primary-hover); }

/* Loading */
.loading-state {
  text-align: center;
  padding: 80px 24px;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #E5E7EB;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Error */
.error-state {
  text-align: center;
  padding: 64px 24px;
  background: #FFF5F5;
  border-radius: var(--radius-md);
}
.error-emoji { font-size: 56px; display: block; margin-bottom: 16px; }
.error-state h3 { font-size: 24px; margin-bottom: 8px; }
.error-state p { color: var(--text-muted); margin-bottom: 20px; }

.retry-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

/* No results */
.no-results {
  text-align: center;
  padding: 64px 24px;
}
.no-results-emoji { font-size: 56px; display: block; margin-bottom: 16px; }
.no-results h3 { font-size: 24px; margin-bottom: 8px; }

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.results-grid.hidden { display: none; }

/* Source badge (replaces old listing-badge on cards) */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #BFDBFE;
}

/* Listing footer actions row */
.listing-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* View Ad button */
.listing-view-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  text-decoration: none;
}
.listing-view-btn:hover {
  background: var(--green-light);
}

/* Seller name row */
.listing-seller {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F3F4F6;
}

/* Price row (updated) */
.listing-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Hidden */
.hidden { display: none !important; }

/* Related Searches */
.related-searches {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #F3F4F6;
}
.related-searches h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #E5E7EB;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 15px;
  color: #9CA3AF;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #1F2937;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--primary); }

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 15px;
  color: #9CA3AF;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--secondary); }

.footer-col p {
  font-size: 15px;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6B7280;
}

/* ===== POST FREE AD BUTTON ===== */
.btn-post-ad {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-post-ad:hover { background: #1B5E20; transform: translateY(-1px); }
.active-post-ad { background: #1B5E20; box-shadow: 0 0 0 3px rgba(46,125,50,0.25); }

/* ===== SELL PAGE ===== */
.sell-hero {
  background: #fff;
  border-bottom: 2px solid #F3F4F6;
  padding: 28px 0;
}
.sell-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sell-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #111827;
}
.sell-hero-sub {
  font-size: 14px;
  color: #6B7280;
}
.sell-hero-back {
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  transition: all 0.2s;
}
.sell-hero-back:hover { border-color: #9CA3AF; color: #374151; }

.sell-section { padding: 40px 0 64px; background: var(--bg); }

.sell-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  border: 1px solid #F0F0F0;
}
.form-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F3F4F6;
}
.form-card-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.form-card-title { font-size: 20px; font-weight: 800; color: var(--text); }

/* Form fields */
.form-field { margin-bottom: 20px; }
.form-field:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label-sub {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 13px;
}
.req { color: #EF4444; margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}
.form-input.input-error, .form-select.input-error, .form-textarea.input-error {
  border-color: #EF4444;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

.field-error {
  display: none;
  font-size: 13px;
  color: #EF4444;
  font-weight: 600;
  margin-top: 5px;
}

/* Input with prefix (PKR) */
.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
.input-with-prefix { padding-left: 52px; }

/* Photo Upload Zone */
.photo-upload-zone {
  border: 2px dashed #BBF7D0;
  border-radius: var(--radius-md);
  background: var(--green-light);
  min-height: 120px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  padding: 16px;
}
.photo-upload-zone:hover, .photo-upload-zone.drag-over {
  border-color: var(--secondary);
  background: #E8F5E9;
}
.photo-upload-zone.drag-over { transform: scale(1.01); }

.photo-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.photo-upload-icon { font-size: 40px; margin-bottom: 8px; }
.photo-upload-text { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.photo-upload-sub  { font-size: 13px; color: var(--text-muted); }

.file-input-hidden { display: none; }

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.photo-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: #e5e7eb;
}
.photo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.photo-thumb-main-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(46,125,50,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}

/* Video Upload Zone */
.video-upload-zone {
  border: 2px dashed #E5E7EB;
  border-radius: var(--radius-md);
  background: #FAFAFA;
  min-height: 90px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 16px;
}
.video-upload-zone:hover { border-color: var(--secondary); background: var(--green-light); }

.video-preview-wrap { display: flex; flex-direction: column; gap: 10px; }
.video-preview-player {
  width: 100%;
  border-radius: var(--radius-sm);
  max-height: 240px;
  background: #000;
}
.video-remove-btn {
  align-self: flex-start;
  background: #FEE2E2;
  color: #EF4444;
  border: 1px solid #FECACA;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.video-remove-btn:hover { background: #FECACA; }

/* Bidding toggle row */
.bidding-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--green-border);
}

/* Submit button */
.sell-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 16px;
}
.sell-submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 18px 56px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(46,125,50,0.3);
}
.sell-submit-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46,125,50,0.4);
}
.sell-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.sell-submit-note {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* Tips Sidebar */
.sell-tips-sidebar { position: sticky; top: 88px; }

.tips-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  border: 1px solid #F0F0F0;
}
.tips-card-green {
  background: var(--green-light);
  border-color: var(--green-border);
  position: relative;
}
.tips-free-badge {
  background: #F59E0B;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 10px;
}
.tips-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tips-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== LISTING DETAIL PAGE ===== */
.listing-not-found { padding: 80px 0; text-align: center; }
.not-found-box {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
}
.not-found-emoji { font-size: 64px; margin-bottom: 16px; display: block; }
.not-found-box h2 { font-size: 28px; margin-bottom: 8px; }
.not-found-box p { color: var(--text-muted); margin-bottom: 24px; }
.nf-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin: 0 6px;
  transition: all 0.2s;
}
.nf-btn-green {
  background: var(--primary);
  color: #fff;
}
.nf-btn:hover { background: var(--primary); color: #fff; }
.nf-btn-green:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.listing-breadcrumb-bar {
  background: var(--green-light);
  border-bottom: 1px solid var(--green-border);
  padding: 12px 0;
}

.listing-detail-section { padding: 32px 0 64px; }

.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 4/3;
  max-height: 420px;
}
.carousel-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-media {
  width: 100%;
  height: 100%;
}
.carousel-img { object-fit: contain; background: #111; }
.carousel-video { object-fit: contain; }

.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 14px;
  gap: 12px;
  height: 100%;
}
.carousel-placeholder-emoji { font-size: 72px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  margin-bottom: 20px;
}
.carousel-thumb {
  width: 70px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  font-size: 20px;
  transition: border-color 0.15s;
}
.carousel-thumb-active { border-color: var(--primary); }
.carousel-thumb-video-icon { font-size: 22px; }

/* Listing Detail Title / Badges */
.listing-detail-title-row {
  margin-bottom: 20px;
}
.listing-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.lbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}
.lbadge-cat {
  background: var(--green-light);
  color: var(--primary);
  border: 1px solid var(--green-border);
}
.lbadge-local {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.listing-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.listing-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.listing-detail-desc-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0F0F0;
}
.detail-section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F3F4F6;
}
.listing-detail-desc {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  white-space: pre-line;
}

/* Listing Detail Sidebar */
.listing-detail-sidebar { position: sticky; top: 88px; }

/* Price Card */
.price-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--green-border);
  margin-bottom: 16px;
}
.price-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.price-value {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}
.price-sub { font-size: 14px; color: var(--text-muted); }

.bid-current-highlight {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bid-current-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.bid-current-amount { font-size: 22px; font-weight: 800; color: var(--primary); }
.bid-count { font-size: 13px; color: var(--text-muted); }

/* Seller Card */
.seller-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0F0F0;
  margin-bottom: 16px;
}
.seller-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid var(--green-border);
}
.seller-name { font-size: 17px; font-weight: 700; color: var(--text); }
.seller-location { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
  margin-bottom: 8px;
}
.whatsapp-btn:hover { background: #1EB958; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.wa-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Safety Card */
.safety-card {
  background: #FFFBEB;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid #FDE68A;
}
.safety-title { font-size: 15px; font-weight: 700; color: #92400E; margin-bottom: 10px; }
.safety-list { display: flex; flex-direction: column; gap: 6px; }
.safety-list li { font-size: 13px; color: #78350F; padding-left: 16px; position: relative; }
.safety-list li::before { content: '•'; position: absolute; left: 0; color: #D97706; }

/* ===== BIDDING SECTION ===== */
.bidding-section {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0F0F0;
  margin-top: 8px;
}
.bidding-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Bid History */
.bid-history-card { /* no extra card styling — inherits parent */ }
.no-bids-msg {
  color: var(--text-muted);
  font-size: 15px;
  padding: 24px 0;
  text-align: center;
}

.bids-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bids-table th {
  background: var(--green-light);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 2px solid var(--green-border);
}
.bids-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}
.bid-row-even { background: #FAFAFA; }
.bid-row-odd  { background: #fff; }
.bid-row-top  { }
.bid-top-amount { font-weight: 800; color: var(--primary); }

/* Place Bid Form */
.place-bid-card {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 2px solid var(--green-border);
}
.bid-current-info {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  border: 1px solid var(--green-border);
}
.bid-current-info strong { color: var(--primary); font-weight: 800; }

.place-bid-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  margin-top: 8px;
}
.place-bid-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,125,50,0.35); }

.bid-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
}

/* Local listing card highlight */
.listing-card-local {
  border-color: var(--green-border);
  background: linear-gradient(to bottom, #F6FFF7, #fff);
}
.listing-card-local:hover { border-color: var(--primary); }

/* Thumbnail image inside search card (for local listings with photos) */
.listing-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.listing-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.listing-card:hover .listing-thumb-img { transform: scale(1.05); }

/* Local listing badge in search results */
.source-badge-local {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
}

@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { gap: 16px; }
  .trust-divider { display: none; }

  /* Sell page */
  .sell-layout { grid-template-columns: 1fr; }
  .sell-tips-sidebar { position: static; }
  .form-row-2 { grid-template-columns: 1fr; }

  /* Listing detail */
  .listing-detail-layout { grid-template-columns: 1fr; }
  .listing-detail-sidebar { position: static; }
  .bidding-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { height: 64px; padding: 6px 6px 6px 16px; }
  .search-btn { padding: 12px 20px; font-size: 16px; height: 50px; }
  .header-actions .btn-orders, .header-actions .btn-login { display: none; }
  .hero-content { padding: 40px 16px 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .popular-corner { display: none; }

  /* Sell page mobile */
  .sell-hero-title { font-size: 24px; }
  .form-card { padding: 20px 16px; }
  .sell-submit-btn { padding: 16px 36px; font-size: 17px; }
  .listing-detail-title { font-size: 20px; }
  .price-value { font-size: 28px; }
  .btn-post-ad { padding: 8px 14px; font-size: 13px; }

  /* Auth page mobile */
  .auth-card { margin: 16px; padding: 24px 20px; }
}

/* ===== AUTHENTICATION STYLES ===== */

/* ── Auth page layout ── */
.auth-page {
  min-height: calc(100vh - 68px - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #F3F4F6;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  border: 1px solid #E5E7EB;
}

/* ── Auth logo mark ── */
.auth-logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  justify-content: center;
}

.auth-logo-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.auth-logo-title span {
  color: var(--primary);
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: var(--font);
}

.auth-tab-btn.active {
  background: #111827;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.auth-tab-btn:not(.active):hover {
  background: #E5E7EB;
  color: #111827;
}

/* ── Form ── */
.auth-form {
  animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Submit button ── */
.auth-submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46,125,50,0.35);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Switch link ── */
.auth-switch-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-switch-link a {
  color: var(--primary);
  font-weight: 700;
}

.auth-switch-link a:hover {
  text-decoration: underline;
}

/* ── Alert messages ── */
.auth-alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.auth-alert-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* ── Password eye toggle ── */
.input-eye-wrap {
  position: relative;
}

.input-eye-wrap .form-input {
  padding-right: 48px;
}

.eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  line-height: 1;
}

.eye-toggle:hover { background: var(--green-light); }

/* ===== USER BAR (sell page) ===== */
.user-bar {
  background: #F8FAFC;
  color: var(--text-muted);
  border-bottom: 1px solid #E5E7EB;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}

.user-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-bar-logout {
  color: #EF4444;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s;
}

.user-bar-logout:hover { opacity: 0.75; }

/* ===== HEADER AUTH AREA ===== */
.header-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-user-avatar { font-size: 14px; }
.header-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.header-user-sep { color: #9CA3AF; font-size: 12px; }
.header-logout-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}
.header-logout-link:hover { color: #EF4444; }

.btn-logout-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #E5E7EB;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-logout-header:hover {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FECACA;
}

#headerAuthArea {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== DELETE LISTING BUTTON ===== */
.delete-listing-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 20px;
  background: transparent;
  color: #DC2626;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  text-align: center;
}

.delete-listing-btn:hover:not(:disabled) {
  background: #FEE2E2;
  border-color: #DC2626;
}

.delete-listing-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
