/* ============================================
   SegundaMano AI — Marketplace CSS
   Design: Modern, clean, emerald-green accent
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-bg: #ecfdf5;
  --secondary: #6b7280;
  --secondary-bg: #f3f4f6;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --success: #10b981;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --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.1), 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);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  flex-shrink: 0;
}
.navbar-brand:hover { color: var(--primary); }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.navbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 8px;
}
.navbar-search form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}
.navbar-search input {
  width: 100%;
  padding: 8px 12px 8px 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--gray-50);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.navbar-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: white;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: var(--danger-dark); }

.btn-google {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  gap: 6px;
  font-size: 13px;
}
.btn-google:hover { background: var(--gray-50); }

.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-pulse { animation: pulse-btn 2s ease-in-out infinite; }

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.btn-arrow { margin-left: 4px; transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Voice nav button */
.btn-voice-nav {
  padding: 6px 14px;
  font-size: 13px;
}
.nav-voice-text { display: none; }
@media (min-width: 768px) { .nav-voice-text { display: inline; } }

/* View Toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--gray-400);
  transition: all var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}
.toggle-btn:hover { color: var(--gray-600); background: var(--gray-50); }
.toggle-btn.active { color: var(--primary); background: var(--primary-bg); }

/* User Menu */
.user-menu { position: relative; }

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
}
.user-menu-btn:hover { border-color: var(--gray-300); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.chevron-down { transition: transform var(--transition); }
.user-menu-btn[aria-expanded="true"] .chevron-down { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 200;
}
.user-menu-btn[aria-expanded="true"] + .user-dropdown,
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.dropdown-header strong { display: block; font-size: 14px; }
.dropdown-email { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 14px;
  transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--gray-50); color: var(--gray-900); }

.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.lang-toggle:hover { border-color: var(--gray-300); }
.lang-current-flag { font-size: 16px; line-height: 1; }
.lang-current-code { font-weight: 600; color: var(--gray-700); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 160px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 200;
  overflow: hidden;
}
.lang-selector.open .lang-dropdown,
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-700);
  text-align: left;
}
.lang-option:hover { background: var(--gray-50); }
.lang-option.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-name { font-size: 13px; }

@media (max-width: 768px) {
  .navbar-search { display: none; }
  .view-toggle { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-actions { gap: 4px; }
  .lang-current-code { display: none; }
}

/* ===== HOME HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #059669 0%, #10b981 40%, #34d399 100%);
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a7f3d0;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-highlight {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-actions .btn-secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
}
.stat-label { font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== SECTIONS ===== */
.section { padding: 64px 20px; }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 48px;
  font-size: 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header .section-title { margin-bottom: 0; text-align: left; }
.see-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.see-all-link:hover svg { transform: translateX(3px); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-number {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
}
.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius);
  color: var(--primary);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* Categories */
.categories-section {
  background: white;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  transition: all var(--transition);
}
.category-card:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-icon { color: var(--gray-400); transition: color var(--transition); }
.category-card:hover .category-icon { color: var(--primary); }
.category-name { font-size: 12px; font-weight: 500; text-align: center; }

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

.listing-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
  text-decoration: none;
  color: var(--gray-800);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.listing-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}
.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.listing-card:hover .listing-card-image img { transform: scale(1.05); }

.listing-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
}

.listing-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-ai {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.listing-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-price {
  margin-bottom: 8px;
}
.price-amount { font-size: 20px; font-weight: 700; color: var(--primary); }
.price-currency { font-size: 14px; font-weight: 500; color: var(--primary); margin-left: 2px; }

.listing-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 12px;
  color: var(--gray-400);
}
.meta-location {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta-date { margin-left: auto; }

/* ===== DETAIL PAGE ===== */
.detail-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .detail-container { grid-template-columns: 1fr; }
}

/* Gallery */
.detail-gallery { position: relative; }
.gallery-main {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-slide {
  display: none;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-slide.active { display: block; }
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  backdrop-filter: blur(4px);
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  gap: 8px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  color: var(--gray-700);
}
.gallery-nav:hover { background: white; box-shadow: var(--shadow-md); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}
.thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.thumb.active { border-color: var(--primary); }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail content */
.detail-content { min-width: 0; }

.detail-meta-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.detail-category {
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 500;
}
.detail-condition {
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-xl);
  font-size: 12px;
}

.detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.detail-price {
  margin-bottom: 20px;
}
.detail-price .price-amount { font-size: 32px; }
.detail-price .price-currency { font-size: 20px; }

.detail-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.detail-description { margin-bottom: 24px; }
.detail-description h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.detail-description p { font-size: 15px; line-height: 1.7; color: var(--gray-600); }

.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tag {
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.detail-seller { margin-bottom: 24px; }
.detail-seller h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}

.seller-avatar img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
}
.avatar-placeholder-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}
.seller-info {
  flex: 1;
  min-width: 0;
}
.seller-info strong { display: block; font-size: 14px; }
.seller-info span { font-size: 12px; color: var(--gray-500); }

.detail-actions {
  display: flex;
  gap: 8px;
}

/* Detail map */
.detail-map-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px;
}
.detail-map-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.detail-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===== LISTINGS PAGE ===== */
.listings-page {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  gap: 24px;
  min-height: 70vh;
}

.listings-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sidebar-header h2 { font-size: 16px; font-weight: 600; }
.sidebar-close { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-400); }

.filter-form { display: flex; flex-direction: column; gap: 16px; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 13px; font-weight: 500; color: var(--gray-600); }

.filter-form input[type="search"],
.filter-form input[type="number"],
.filter-form select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  background: white;
}
.filter-form input:focus,
.filter-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 0; flex: 1; }
.price-inputs span { color: var(--gray-400); }

.listings-main {
  flex: 1;
  min-width: 0;
}
.listings-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-toggle { display: none; }

.listings-count {
  font-size: 14px;
  color: var(--gray-500);
}
.listings-count span { font-weight: 600; color: var(--gray-800); }

@media (max-width: 768px) {
  .listings-page { flex-direction: column; }
  .listings-sidebar {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
    display: none;
  }
  .listings-sidebar.open { display: block; }
  .sidebar-close { display: block; }
  .filter-toggle { display: flex; }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.page-link {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-700);
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-current { font-size: 14px; color: var(--gray-500); }

/* ===== MAP PAGE ===== */
.page-map { overflow: hidden; }
.map-page {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
}
.map-3d-container {
  width: 100%;
  height: 100%;
}
.map-filters {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 280px;
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.map-filter-form { display: flex; flex-direction: column; gap: 10px; }
.mf-input, .mf-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  width: 100%;
}
.mf-row { display: flex; gap: 8px; }
.mf-half { width: 50%; }
.map-legend {
  position: absolute;
  bottom: 24px;
  left: 16px;
  background: white;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.dot-published { background: #10b981; }
.dot-sold { background: #ef4444; }

/* Mapbox popup override */
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
}
.mapboxgl-popup-close-button { font-size: 18px; padding: 4px 8px; color: var(--gray-400); }

/* ===== VOICE PAGE ===== */
.voice-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-section { display: none; width: 100%; }
.voice-section.active { display: block; }

.voice-card {
  position: relative;
  text-align: center;
  padding: 48px 32px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.voice-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.voice-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.voice-subtitle { color: var(--gray-500); margin-bottom: 40px; font-size: 16px; }

/* Mic Button */
.mic-button {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all var(--transition-slow);
}
.mic-button:hover { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16,185,129,0.15); }
.mic-button:active { transform: scale(0.95); }

.mic-button.recording {
  background: var(--danger);
  animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
}

.mic-ring, .mic-ring-2 {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.3;
  animation: ring-expand 2s ease-out infinite;
}
.mic-ring-2 { animation-delay: 1s; }
.mic-button.recording .mic-ring,
.mic-button.recording .mic-ring-2 { border-color: var(--danger); }

@keyframes ring-expand {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0; }
}

.mic-icon { position: relative; z-index: 1; }

.voice-timer {
  font-size: 36px;
  font-weight: 300;
  color: var(--gray-400);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.voice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all var(--transition);
}
.status-dot.recording { background: var(--danger); animation: blink 1s infinite; }
.status-dot.uploading { background: var(--warning); animation: blink 1.5s infinite; }
.status-dot.error { background: var(--danger); }

.voice-hints {
  text-align: left;
}
.voice-hints p { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.hint-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
  line-height: 1.4;
}
.hint-bubble svg { margin-top: 2px; flex-shrink: 0; color: var(--primary); }

/* Processing */
.processing-card { padding: 60px 32px; }
.processing-animation { display: flex; justify-content: center; gap: 6px; margin-bottom: 32px; }
.processing-wave {
  width: 8px; height: 40px;
  background: var(--primary);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}
.processing-wave:nth-child(2) { animation-delay: 0.2s; height: 56px; }
.processing-wave:nth-child(3) { animation-delay: 0.4s; height: 32px; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.processing-steps {
  margin-top: 32px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.p-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.p-step:last-child { border-bottom: none; }
.p-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}
.p-step-text {
  flex: 1;
  font-size: 14px;
}
.p-step-status { font-size: 16px; }
.p-step-status.done { color: var(--success); }
.p-step-status.active { color: var(--primary); animation: blink 1s infinite; }
.p-step-status.error { color: var(--danger); }

/* Clarification */
.clarify-fields { margin: 24px 0; text-align: left; }
.clarify-item {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.clarify-item label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--gray-600); }
.clarify-input-row {
  display: flex;
  gap: 8px;
}
.clarify-input { flex: 1; }
.clarify-send { flex-shrink: 0; }

/* Review */
.review-card { text-align: left; }
.review-card h2 { text-align: center; }
.review-card > p { text-align: center; margin-bottom: 32px; }

.review-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 640px) { .review-layout { grid-template-columns: 1fr; } }

.review-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.review-image-main img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  gap: 8px;
}
.image-placeholder p { font-size: 12px; }

.review-image-thumbs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.review-image-thumbs img {
  width: 48px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.review-image-thumbs img.active { border-color: var(--primary); }

.upload-btn { position: relative; overflow: hidden; width: 100%; justify-content: center; }
.upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Review fields */
.review-fields { min-width: 0; }
.rf-group { margin-bottom: 14px; }
.rf-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--gray-600); }
.rf-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  background: white;
}
.rf-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.rf-textarea { resize: vertical; min-height: 80px; }
.rf-row { display: flex; gap: 12px; }
.rf-row .rf-group { flex: 1; }

.review-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Success */
.success-card { padding: 60px 32px; }
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scale-in 0.5s ease;
}
@keyframes scale-in {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ===== DASHBOARD ===== */
.dashboard-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dashboard-header h1 { font-size: 24px; font-weight: 700; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
}
.stat-card .stat-number { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); }

.dashboard-filters { margin-bottom: 16px; }
.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  overflow-x: auto;
}
.filter-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-tab.active { background: white; color: var(--gray-800); box-shadow: var(--shadow-sm); }
.filter-tab:hover { color: var(--gray-700); }

.dashboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all var(--transition);
}
.dashboard-item:hover { border-color: var(--gray-200); box-shadow: var(--shadow-sm); }

.di-image {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.di-image img { width: 100%; height: 100%; object-fit: cover; }
.di-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
}

.di-info { flex: 1; min-width: 0; }
.di-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.di-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
}
.di-price { font-weight: 600; color: var(--primary); }
.di-status {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  margin-top: 4px;
}
.status-published { background: var(--primary-bg); color: var(--primary); }
.status-draft { background: var(--gray-100); color: var(--gray-600); }
.status-sold { background: #fef2f2; color: var(--danger); }
.status-hidden { background: var(--warning); color: white; }
.status-deleted { background: var(--gray-200); color: var(--gray-500); }

.di-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ===== EDIT FORM ===== */
.edit-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.edit-header h1 { font-size: 24px; font-weight: 700; }

.edit-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
@media (max-width: 768px) { .edit-grid { grid-template-columns: 1fr; } }

.edit-form h3 { font-size: 16px; font-weight: 600; margin: 20px 0 12px; }
.ef-group { margin-bottom: 16px; }
.ef-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--gray-600); }
.ef-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.ef-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.ef-textarea { resize: vertical; min-height: 100px; }
.ef-row { display: flex; gap: 12px; }
.ef-row .ef-group { flex: 1; }

.edit-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.edit-images { position: sticky; top: 88px; align-self: start; height: fit-content; }
.edit-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.edit-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}
.edit-image-item img { width: 100%; height: 100%; object-fit: cover; }
.edit-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}
.edit-image-item:hover .edit-image-overlay { opacity: 1; }
.edit-image-overlay button {
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
}
.edit-image-overlay button:hover { background: white; }
.edit-img-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.edit-upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.edit-upload-area:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 13px;
}
.upload-label:hover { color: var(--primary); }

/* ===== ERROR PAGES ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.error-card {
  text-align: center;
}
.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  display: block;
}
.error-card h1 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.error-card p { color: var(--gray-500); margin-bottom: 24px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-400);
}
.empty-state svg { margin: 0 auto 16px; }
.empty-state h3 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ===== LOADING SPINNER ===== */
.loading-spinner { text-align: center; padding: 48px 20px; }
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.3s ease;
  max-width: 360px;
}
.toast-success { background: var(--primary); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--gray-700); }

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== PROFILE ===== */
.profile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
}
.profile-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary-bg);
}
.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.profile-stat { text-align: center; }
.ps-number { display: block; font-size: 20px; font-weight: 700; color: var(--primary); }
.ps-label { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.profile-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 20px 0;
  margin-top: auto;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  padding-bottom: 32px;
}
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 24px; } }

.footer-brand strong { font-size: 18px; color: white; display: block; margin-bottom: 0; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-brand-row img {
  border-radius: 8px;
  flex-shrink: 0;
}
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-column h4 { font-size: 13px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-column a:hover { color: var(--primary); }

.footer-stats {
  background: var(--gray-800);
  border-top: 1px solid var(--gray-700);
  padding: 12px 20px;
}

.footer-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-400);
}

.footer-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.footer-stat-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.footer-stat-item strong {
  color: var(--gray-200);
  font-weight: 600;
}
.footer-stat-item .footer-visit-time {
  color: var(--gray-300);
}
.footer-stat-divider {
  color: var(--gray-600);
  user-select: none;
}
.footer-stat-icon {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 768px) {
  .footer-stats-inner {
    font-size: 12px;
    gap: 6px;
  }
  .footer-stat-divider { margin: 0 2px; }
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--gray-500); }

/* ===== MAPBOX FIX ===== */
.mapboxgl-ctrl-logo { display: none !important; }
.mapboxgl-popup { z-index: 20; }

/* ===== ALLAUTH OVERRIDES ===== */
.socialaccount_providers { list-style: none; }

/* ===== PHOTO UPLOAD ===== */
.photo-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  background: var(--gray-50);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 24px;
}
.photo-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}
.photo-dropzone svg { color: var(--primary); margin-bottom: 12px; }
.dropzone-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.dropzone-hint { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.dropzone-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.photo-preview-item {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-note-group { text-align: left; margin-bottom: 20px; }
#photo-analyze-btn { width: 100%; max-width: 420px; }
#photo-review-main img,
#photo-review-thumbs img {
  border-radius: 12px;
  object-fit: cover;
}
#photo-review-main img { width: 100%; max-height: 280px; }
#photo-review-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
#photo-review-thumbs img { width: 64px; height: 64px; }

/* ===== AUTH ===== */
.auth-container {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-subtitle { color: var(--gray-500); margin-bottom: 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-form .rf-group { margin-bottom: 14px; text-align: left; }
.auth-errors, .field-error {
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 10px;
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
  .nav-voice-text { display: none; }
  .btn-voice-nav { padding: 8px 10px; }
}
