/* ==========================================================================
   SPICEHUB - LUXURY BLACK & WHITE MINIMALIST ENVIRONMENT
   ========================================================================== */

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #121212;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-800: #27272a;
  --gray-900: #18181b;

  --border-light: #e4e4e7;
  --border-dark: #000000;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--gray-50);
  color: var(--black-soft);
  line-height: 1.5;
  padding-bottom: 80px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--black);
}

.brand-symbol {
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  letter-spacing: -0.05em;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand-text span {
  font-weight: 400;
  color: var(--gray-500);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.location-badge {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   LOCATION PROMPT BANNER (ASK TO ENABLE LOCATION FOR ACCURATE NEARBY VENDORS)
   ========================================================================== */
.location-prompt-bar {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--gray-800);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 180px;
}

.location-prompt-bar.hidden {
  max-height: 0 !important;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: none !important;
  pointer-events: none;
}

.prompt-bar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prompt-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prompt-pin {
  font-size: 1.15rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.prompt-text {
  display: flex;
  flex-direction: column;
}

.prompt-text strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.prompt-text span {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.35;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-prompt-enable {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-prompt-enable:hover {
  background: var(--gray-200);
}

.btn-prompt-dismiss {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.35rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.btn-prompt-dismiss:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .prompt-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }
  .prompt-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .btn-prompt-enable {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   TOP SEARCH & FILTER BAR
   ========================================================================== */
.controls-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 57px;
  z-index: 90;
}

.controls-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.2rem;
  font-size: 0.88rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--black);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  background: var(--white);
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.85rem;
}

.radius-select {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  outline: none;
  cursor: pointer;
}

.radius-select:focus {
  border-color: var(--black);
}

/* Monochrome Category Chips */
.chip-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--gray-200);
  color: var(--black);
}

.chip-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.chip-count {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.chip-btn.active .chip-count {
  background: var(--gray-800);
  color: var(--white);
}

/* ==========================================================================
   ALWAYS DISPLAYED EXTRACTION & BYPRODUCT LOTS SECTION
   ========================================================================== */
.spot-always-section {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spot-always-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}

.spot-always-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 1; }
}

.spot-always-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.spot-always-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.spot-always-scroll::-webkit-scrollbar {
  height: 4px;
}

.spot-always-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.spot-mini-card {
  min-width: 270px;
  max-width: 290px;
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.spot-mini-card:hover {
  border-color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.spot-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.spot-mini-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
}

.spot-mini-dist {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.spot-mini-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.spot-mini-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--black);
  background: var(--gray-200);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.spot-mini-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--black);
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--gray-200);
  margin-bottom: 0.55rem;
}

.spot-mini-actions {
  display: flex;
  gap: 0.4rem;
}

.spot-mini-actions .btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  flex: 1;
}

/* ==========================================================================
   CONTAINER & TOOLBAR
   ========================================================================== */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem;
}

.top-bar-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--black);
}

.btn-toggle-map {
  background: var(--white);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-map:hover {
  border-color: var(--black);
}

.btn-toggle-map.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Map Drawer (Monochrome aesthetic) */
#map-container {
  display: none;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

#map-view {
  width: 100%;
  height: 290px;
  filter: grayscale(100%) contrast(105%);
}

/* ==========================================================================
   PREMIUM BLACK & WHITE CARDS
   ========================================================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.listing-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.card-type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.tag-scrap {
  background: var(--black);
  color: var(--white);
}

.tag-wholesale {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

.tag-buyer {
  background: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-300);
}

.card-distance {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.card-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black-soft);
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

/* Card Highlights (Items Offered or Buyer Requirements) */
.card-highlight {
  background: var(--gray-50);
  border-left: 2px solid var(--black);
  padding: 0.6rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.85rem;
}

.buyer-highlight {
  background: var(--gray-100);
  border-left: 2px solid var(--gray-800);
}

.highlight-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.highlight-text {
  font-size: 0.82rem;
  color: var(--black);
  font-weight: 600;
  line-height: 1.35;
}

.highlight-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.3rem;
}

.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  font-size: 0.8rem;
  color: var(--gray-800);
  position: relative;
  padding-left: 0.85rem;
  line-height: 1.4;
}

.highlight-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: 800;
}

/* Price & MOQ */
.card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.82rem;
}

.price-val {
  font-weight: 800;
  color: var(--black);
}

.price-moq {
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Card Action Buttons (Monochrome Minimal) */
.card-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

/* Primary Black Button */
.btn-whatsapp {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  flex: 1.3;
}

.btn-whatsapp:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

/* Outlined White Button */
.btn-call {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-light);
  flex: 1;
}

.btn-call:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

/* Icon Map Button */
.btn-map {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-light);
  padding: 0.55rem 0.75rem;
}

.btn-map:hover {
  border-color: var(--black);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-primary:hover {
  background: var(--gray-800);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--black);
}

.btn-outline:hover {
  border-color: var(--black);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.empty-state p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   MINIMAL FLOATING ACTION BUTTON (BLACK)
   ========================================================================== */
.fab-post {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
  z-index: 999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fab-post:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

/* ==========================================================================
   MINIMAL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--black);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-500);
}

.modal-close:hover {
  color: var(--black);
}

.modal-body {
  padding: 1.4rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   MOBILE SCREEN TUNING
   ========================================================================== */
@media (max-width: 640px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  .controls-section {
    padding: 0.75rem 1rem;
  }
  .container {
    padding: 1rem 0.85rem;
  }
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .fab-post {
    bottom: 1.1rem;
    right: 1.1rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   AI GEO-ANALYSIS & RADAR SCANNER OVERLAY
   ========================================================================== */
.ai-scan-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-scan-overlay.active {
  display: flex;
  opacity: 1;
}

.ai-scan-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

/* Radar Animation */
.ai-radar-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.circle-1 { width: 50px; height: 50px; }
.circle-2 { width: 95px; height: 95px; }
.circle-3 { width: 140px; height: 140px; border-color: rgba(255, 255, 255, 0.25); }

.radar-sweep {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(255, 255, 255, 0.3) 360deg);
  animation: radarRotate 2s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-core-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff;
  z-index: 2;
}

/* Radar Blips (Simulating found vendors/lots) */
.radar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: blipFade 2s infinite ease-in-out;
}

.blip-1 { top: 32px; left: 45px; animation-delay: 0.4s; }
.blip-2 { bottom: 35px; right: 38px; animation-delay: 1.1s; }
.blip-3 { top: 75px; right: 28px; animation-delay: 1.6s; }

@keyframes blipFade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 8px #ffffff; }
}

.ai-scan-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.ai-scan-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.ai-scan-sub {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-bottom: 1.35rem;
  line-height: 1.4;
}

/* Progress track */
.ai-progress-track {
  width: 100%;
  height: 4px;
  background: #27272a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ai-progress-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.35s ease;
}

.ai-log-stream {
  font-size: 0.75rem;
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 20px;
}

/* ==========================================================================
   MANDATORY GPS ACCESS GATE (WITHOUT ALLOW CANNOT ENTER SITE)
   ========================================================================== */
.gps-gate-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 1.25rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gps-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gps-gate-card {
  background: #000000;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95);
  position: relative;
}

.gps-gate-icon-pulse {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
}

.gps-gate-icon-pulse::after {
  content: "";
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  animation: gatePulse 2s infinite ease-out;
  opacity: 0.5;
}

@keyframes gatePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.gps-gate-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a1a1aa;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.gps-gate-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.55rem;
}

.gps-gate-desc {
  font-size: 0.83rem;
  color: #a1a1aa;
  line-height: 1.45;
  margin-bottom: 1.3rem;
}

.gps-gate-features {
  background: #09090b;
  border: 1px solid #18181b;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #d4d4d8;
}

.gate-feature-check {
  font-weight: 800;
  color: #ffffff;
  background: #27272a;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.btn-gate-enable {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.btn-gate-enable:hover {
  background: #e4e4e7;
}

.gps-gate-status {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.35;
}

.gps-gate-status.error {
  color: #f87171;
  background: #18181b;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #7f1d1d;
}
