/* ============================================
   NHA TARBADJU — Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #1A56DB;
  --primary-dark: #1E429F;
  --primary-light: #E1EFFE;
  --accent: #FF5A1F;
  --accent-dark: #E04A12;
  --accent-light: #FFF3EE;
  --green: #0E9F6E;
  --green-light: #DEF7EC;
  --yellow: #E3A008;
  --yellow-light: #FDF6B2;
  --red: #F05252;
  --red-light: #FDE8E8;
  --purple: #7E3AF2;
  --purple-light: #EDEBFE;
  --pink: #E74694;
  --pink-light: #FCE8F3;

  --dark: #111827;
  --medium: #374151;
  --muted: #6B7280;
  --light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --bg: #F9FAFB;
  --white: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }

/* --- Utilities --- */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span:first-child {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo-text span:last-child {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--medium);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg); color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--medium);
  font-weight: 500;
  transition: var(--transition);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-publicar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 90, 31, 0.3);
  white-space: nowrap;
}
.btn-publicar:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.4);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100%;
  background: var(--white);
  padding: 80px 20px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-menu-link:hover { background: var(--primary-light); color: var(--primary); }
.mobile-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light);
  padding: 16px 16px 4px;
}
.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--medium);
  font-weight: 500;
  transition: var(--transition);
}
.mobile-sub-link:hover { background: var(--bg); color: var(--primary); }
.mobile-btn-publicar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 12px;
  transition: var(--transition);
}
.mobile-btn-publicar:hover { background: var(--accent-dark); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0F2D6E 0%, #1A56DB 55%, #2D7DD2 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 90, 31, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; font-weight: 800; }
.hero h1 span { color: #FFD166; }
.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.search-select {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.search-input-wrap svg { color: var(--light); flex-shrink: 0; }
.search-input {
  flex: 1;
  font-size: 0.95rem;
  color: var(--dark);
  background: none;
}
.search-input::placeholder { color: var(--light); }
.search-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: var(--transition);
}
.hero-tag:hover { background: rgba(255, 255, 255, 0.22); }

/* Stats Bar */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-light); }
.stat-icon.orange { background: var(--accent-light); }
.stat-icon.green { background: var(--green-light); }
.stat-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-text span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 56px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title-wrap {}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: var(--dark); }
.section-subtitle { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: var(--transition);
}
.section-link:hover { gap: 8px; }

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  transition: all 0.2s;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.category-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.category-count {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Category Colors */
.cat-blue { background: var(--primary-light); }
.cat-orange { background: var(--accent-light); }
.cat-green { background: var(--green-light); }
.cat-yellow { background: var(--yellow-light); }
.cat-purple { background: var(--purple-light); }
.cat-pink { background: var(--pink-light); }
.cat-red { background: var(--red-light); }
.cat-gray { background: var(--border-light); }

/* ============================================
   LISTING CARDS — SERVICES
   ============================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
  transform: translateY(-3px);
}

/* Card visual header */
.card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 40px;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-novo { background: var(--green); color: var(--white); }
.badge-destaque { background: var(--yellow); color: var(--white); }
.badge-urgente { background: var(--red); color: var(--white); }
.badge-procuro { background: var(--purple); color: var(--white); }

.card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-category {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.card-location svg { width: 12px; height: 12px; }

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.card-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
}
.card-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.seller-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.seller-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seller-rating {
  font-size: 0.7rem;
  color: var(--yellow);
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-contact:hover { background: #0B7A56; }
.btn-contact svg { width: 14px; height: 14px; }

/* ============================================
   PRODUCT CARDS (Mercado)
   ============================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.product-condition {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.condition-novo { background: var(--green); color: var(--white); }
.condition-bom { background: var(--primary); color: var(--white); }
.condition-usado { background: var(--muted); color: var(--white); }

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}
.product-price .negociavel {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 68px;
  z-index: 50;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.filter-search svg { color: var(--light); width: 16px; height: 16px; flex-shrink: 0; }
.filter-search input { background: none; flex: 1; font-size: 0.875rem; color: var(--dark); }
.filter-search input::placeholder { color: var(--light); }

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.filter-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--medium);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.page-banner.services-banner {
  background: linear-gradient(135deg, #1E429F 0%, #1A56DB 100%);
}
.page-banner.market-banner {
  background: linear-gradient(135deg, #7E3AF2 0%, #FF5A1F 100%);
}
.page-banner-content {
  position: relative;
  color: var(--white);
}
.page-banner h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); }
.page-banner p { color: rgba(255,255,255,0.8); margin-top: 6px; font-size: 0.95rem; }
.page-banner-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.page-banner-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.page-banner-stat strong { color: var(--white); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #FF8C42);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-content { position: relative; }
.cta-banner h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.btn-cta-white {
  padding: 13px 28px;
  background: var(--white);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ============================================
   PUBLICAR FORM
   ============================================ */
.publicar-page { padding: 48px 0 80px; }
.publicar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.publicar-header {
  text-align: center;
  margin-bottom: 32px;
}
.publicar-header h1 { font-size: 1.6rem; color: var(--dark); }
.publicar-header p { color: var(--muted); margin-top: 6px; font-size: 0.9rem; }

/* Type Toggle */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 28px;
}
.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
}
.type-btn .type-icon { font-size: 24px; }
.type-btn .type-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.type-btn .type-sub { font-size: 0.7rem; color: var(--light); }
.type-btn.active {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.type-btn.active .type-label { color: var(--dark); }
.type-btn.active .type-icon { filter: none; }

/* Form Fields */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark);
  transition: all 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--light); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }

/* Contact group */
.contact-prefix {
  display: flex;
  align-items: center;
  gap: 0;
}
.prefix-badge {
  padding: 11px 14px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--medium);
  white-space: nowrap;
}
.contact-prefix .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-text { font-size: 0.85rem; color: var(--muted); }
.upload-text strong { color: var(--primary); }

/* Form submit */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

/* Form section title */
.form-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.success-desc { color: var(--muted); margin-bottom: 24px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
}
.btn-back:hover { background: var(--primary-dark); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  grid-column: 1 / -1;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.empty-desc { color: var(--muted); font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
}
.footer-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.social-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover { background: var(--primary); }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================
   RESULTS INFO BAR
   ============================================ */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 0.875rem;
  color: var(--muted);
}
.results-count strong { color: var(--dark); font-weight: 700; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }
.card, .product-card { animation: fadeInUp 0.35s ease forwards; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-actions { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 44px 0 52px; }
  .search-box { flex-wrap: wrap; }
  .search-select { width: 100%; }
  .search-input-wrap { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
  .search-btn { width: 100%; justify-content: center; }

  .stats-inner { gap: 0; }
  .stat-item { padding: 8px 16px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-inner { gap: 8px; }
  .filter-search { max-width: 100%; min-width: 0; flex: 1 1 100%; }

  .listings-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  .form-row { grid-template-columns: 1fr; }
  .publicar-card { padding: 24px; }

  .cta-banner { padding: 28px 24px; flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .filter-bar { top: 68px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 6px 10px; }
  .stat-text strong { font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tags { display: none; }
}

/* ============================================
   AUTH — NAV ELEMENTS
   ============================================ */
.btn-entrar {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-entrar:hover { background: var(--primary); color: var(--white); }

.nav-user {
  position: relative;
  align-items: center;
  gap: 0;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-user-btn:hover { border-color: var(--primary); }
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a,
.nav-user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--dark);
  text-align: left;
  background: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover { background: var(--bg); color: var(--primary); }
.nav-user-dropdown button { color: var(--red); }
.nav-user-dropdown button:hover { background: #FEF2F2; }

/* Mobile logout */
.mobile-logout-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.auth-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: fadeInUp 0.25s ease;
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.auth-modal-close:hover { background: var(--bg); color: var(--dark); }
.auth-modal-icon { font-size: 48px; margin-bottom: 16px; }
.auth-modal h3 { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.auth-modal p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.btn-auth-primary {
  display: block;
  padding: 13px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 10px;
}
.btn-auth-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auth-secondary {
  display: block;
  width: 100%;
  padding: 11px 24px;
  background: none;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-auth-secondary:hover { border-color: var(--medium); color: var(--dark); }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  padding: 40px 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.login-header h1 { font-size: 1.35rem; color: var(--dark); margin-bottom: 6px; }
.login-header p  { font-size: 0.875rem; color: var(--muted); }
.login-header a  { color: var(--primary); font-weight: 600; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 2px 8px rgba(66,133,244,0.2); }

.btn-phone {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-phone:hover { border-color: var(--primary); color: var(--primary); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--light);
  font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-error {
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  margin-bottom: 12px;
}

.auth-terms {
  font-size: 0.75rem;
  color: var(--light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}
.auth-terms a { color: var(--primary); }

/* ============================================
   CONTA PAGE
   ============================================ */
.conta-page { padding: 48px 0 80px; min-height: calc(100vh - 68px); }
.conta-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.conta-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.conta-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 12px;
}
.conta-user-name  { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.conta-user-email { font-size: 0.8rem; color: var(--muted); margin-top: 4px; word-break: break-all; }
.conta-since      { font-size: 0.75rem; color: var(--light); margin-top: 6px; margin-bottom: 20px; }
.conta-sidebar hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.btn-logout {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-logout:hover { border-color: var(--dark); color: var(--dark); }
.btn-delete-account {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  border: none;
  background: none;
  font-size: 0.78rem;
  color: var(--light);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.btn-delete-account:hover { color: var(--red); }

.conta-main { }
.conta-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* My listing items */
.my-listing-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.my-listing-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.my-listing-emoji {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.my-listing-info { flex: 1; min-width: 0; }
.my-listing-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-listing-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.my-listing-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-delete-listing {
  padding: 6px 14px;
  border: 1.5px solid #FECACA;
  border-radius: var(--radius-full);
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.btn-delete-listing:hover { background: #FEF2F2; }

@media (max-width: 768px) {
  .conta-layout { grid-template-columns: 1fr; }
  .conta-sidebar { position: static; }
  .my-listing-price { display: none; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
  .auth-modal { padding: 32px 20px; }
}

/* ============================================
   STARS — CARD DISPLAY
   ============================================ */
.card-stars-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0 6px;
  font-size: 0.78rem;
  font-family: inherit;
  transition: opacity 0.15s;
}
.card-stars-btn:hover { opacity: 0.75; }
.stars-filled { color: #F59E0B; letter-spacing: 1px; font-size: 0.85rem; }
.stars-empty  { color: var(--border); letter-spacing: 1px; font-size: 0.85rem; }
.stars-score  { font-weight: 700; color: var(--dark); }
.stars-label  { color: var(--light); font-size: 0.72rem; }

/* ============================================
   REVIEW MODAL
   ============================================ */
.review-modal-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: fadeInUp 0.25s ease;
}
.review-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.review-modal-header .auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
}
.review-modal-title  { font-size: 1rem; font-weight: 800; color: var(--dark); padding-right: 32px; }
.review-modal-seller { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.reviews-list { padding: 0 24px; }
.reviews-empty {
  text-align: center;
  color: var(--light);
  font-size: 0.875rem;
  padding: 24px 0 8px;
}
.review-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.review-meta { flex: 1; min-width: 0; }
.review-name  { font-size: 0.82rem; font-weight: 700; color: var(--dark); display: block; }
.review-stars { font-size: 0.8rem; color: #F59E0B; letter-spacing: 1px; }
.review-date  { font-size: 0.7rem; color: var(--light); flex-shrink: 0; }
.review-comment {
  font-size: 0.82rem;
  color: var(--medium);
  line-height: 1.5;
  margin: 0;
  padding-left: 42px;
}

.review-form {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.review-form-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--light);
  margin-bottom: 12px;
}
.star-picker {
  display: flex;
  gap: 6px;
}
.star-pick {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #F59E0B;
  padding: 0 2px;
  transition: transform 0.1s;
  line-height: 1;
  font-family: inherit;
}
.star-pick:hover { transform: scale(1.2); }

.review-gate {
  padding: 16px 24px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.review-already {
  margin: 0 24px 24px;
  padding: 12px 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #065F46;
}

/* ============================================
   CONTA — LISTING ACTIONS + STATUS
   ============================================ */
.my-listing-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.btn-mark-sold {
  padding: 6px 12px;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-full);
  background: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn-mark-sold:hover { background: #ECFDF5; }
.my-listing-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 4px;
}
.my-listing-status.sold { background: #ECFDF5; color: var(--green); border: 1px solid #A7F3D0; }
.my-listing-rating { font-size: 0.72rem; color: #F59E0B; font-weight: 700; margin-left: 6px; }
.my-listing-item.is-sold { opacity: 0.6; }
.my-listing-item.is-sold .my-listing-title { text-decoration: line-through; text-decoration-color: var(--light); }

@media (max-width: 600px) {
  .btn-mark-sold { display: none; }
  .review-modal-inner { max-height: 92vh; border-radius: var(--radius-md) var(--radius-md) 0 0; margin-top: auto; }
}

/* ============================================
   UPLOAD FOTO — PREVIEW
   ============================================ */
.upload-zone.has-file { padding: 14px; cursor: default; border-style: solid; border-color: var(--primary); background: var(--white); }
.upload-zone.has-file:hover { background: var(--white); }
.upload-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.upload-preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.btn-remove-photo {
  background: none;
  border: none;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-remove-photo:hover { background: var(--red-light); }

/* ============================================
   PAGINAÇÃO — BOTÃO VER MAIS
   ============================================ */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

/* ============================================
   DENUNCIAR — BOTÃO NOS CARDS
   ============================================ */
.btn-report {
  background: none;
  border: none;
  color: var(--light);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
}
.btn-report:hover { color: var(--red); background: var(--red-light); }

/* Formulário de denúncia dentro do review-modal-inner */
.report-form {
  padding: 16px 24px 24px;
}
.report-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--dark);
  transition: background 0.15s;
}
.report-option:hover { background: var(--bg); }
.report-option input[type="radio"] { cursor: pointer; accent-color: var(--primary); }

/* ============================================
   EDITAR ANÚNCIO — BOTÃO NA CONTA
   ============================================ */
.btn-edit-listing {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--medium);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn-edit-listing:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   TOASTS + MODAIS DE UI (substituem alert/confirm/prompt nativos)
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-info { background: var(--dark); }
.toast-icon { font-size: 1.05rem; flex-shrink: 0; }
.toast-msg { line-height: 1.4; }

.ui-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.ui-modal-overlay.show { opacity: 1; visibility: visible; }
.ui-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.94) translateY(6px);
  transition: transform 0.2s ease;
}
.ui-modal-overlay.show .ui-modal-box { transform: scale(1) translateY(0); }
.ui-modal-message {
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.ui-modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  margin-bottom: 18px;
}
.ui-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ui-modal-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}
.ui-modal-btn-cancel { background: var(--bg); color: var(--medium); }
.ui-modal-btn-cancel:hover { background: var(--border); }
.ui-modal-btn-confirm { background: var(--primary); color: white; }
.ui-modal-btn-confirm:hover { background: var(--primary-dark); }
.ui-modal-btn-danger { background: var(--red); color: white; }
.ui-modal-btn-danger:hover { filter: brightness(0.92); }

@media (max-width: 480px) {
  .toast-container { bottom: 12px; }
}
