/* ===================================================
   SMOKESTOP — PRIVATE SPACE LOCATOR DESIGN SYSTEM
   Dark Glassmorphic Stealth Theme
   =================================================== */

:root {
  --bg-core: #090c10;
  --bg-surface: #0f141d;
  --bg-surface-elevated: #161c26;
  --bg-card: rgba(22, 28, 38, 0.85);
  --bg-card-hover: rgba(31, 40, 56, 0.95);
  --bg-glass: rgba(15, 20, 29, 0.75);
  --bg-glass-heavy: rgba(11, 15, 22, 0.92);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);
  --border-glow: rgba(16, 185, 129, 0.25);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #090c10;

  /* Accent Glow Palette */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-emerald-dark: #065f46;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);

  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);

  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);

  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.35);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-neon-emerald: 0 0 20px rgba(16, 185, 129, 0.25);
  --shadow-neon-cyan: 0 0 20px rgba(6, 182, 212, 0.25);

  --header-height: 72px;
  --sidebar-width: 440px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* ===================================================
   APP HEADER
   =================================================== */
.app-header {
  height: var(--header-height);
  width: 100%;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast);
}
.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon-emerald);
}
.brand-shield {
  color: var(--accent-emerald);
  font-size: 20px;
}
.brand-smoke {
  position: absolute;
  bottom: 6px;
  right: 6px;
  color: var(--accent-cyan);
  font-size: 11px;
  animation: pulse-glow 3s infinite alternate;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.brand-title .highlight {
  color: var(--accent-emerald);
  text-shadow: 0 0 12px var(--accent-emerald-glow);
}
.version-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Header Center Search */
.header-center {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 40px 0 40px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  background: var(--bg-surface-elevated);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}
.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-confirm-target {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6) !important;
  animation: pulse-glow-btn 1.4s infinite alternate;
}
@keyframes pulse-glow-btn {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(6, 182, 212, 0.5); }
  100% { transform: scale(1.05); box-shadow: 0 0 24px rgba(16, 185, 129, 0.9); }
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-icon:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.stealth-btn {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}
.stealth-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  color: #ffffff;
}

/* ===================================================
   MAIN APP LAYOUT
   =================================================== */
.app-main {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--header-height));
  position: relative;
  overflow: hidden;
}

/* ===================================================
   SIDEBAR
   =================================================== */
.spots-sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 500;
  transition: transform var(--transition-normal), width var(--transition-normal);
  flex-shrink: 0;
}

.spots-sidebar.collapsed {
  transform: translateX(calc(-1 * var(--sidebar-width) + 48px));
}

.sidebar-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.sidebar-tabs {
  display: flex;
  gap: 6px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.sidebar-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.spots-sidebar.collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

/* Quick Filter Chips */
.quick-filter-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 20, 29, 0.6);
  white-space: nowrap;
}
.quick-filter-chips::-webkit-scrollbar {
  height: 3px;
}

.filter-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-chip.active {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Tab Content Areas */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.tab-content.active {
  display: flex;
  flex-direction: column;
}

.list-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.results-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.sort-selector select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 12px;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  outline: none;
}

/* Spot Cards Feed */
.spot-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.spot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-emerald);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.spot-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.spot-card:hover::before,
.spot-card.selected::before {
  opacity: 1;
}

.spot-card.selected {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  background: var(--bg-card-hover);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cat-single-stall { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.cat-hotel-lobby { background: rgba(6, 182, 212, 0.15); color: #38bdf8; }
.cat-outdoor-nook { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.cat-parking-alcove { background: rgba(139, 92, 246, 0.15); color: #c084fc; }

.card-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mini-badge.highlight-lock { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.2); }
.mini-badge.highlight-fan { color: #7dd3fc; border-color: rgba(6, 182, 212, 0.2); }
.mini-badge.highlight-code { color: #fcd34d; font-family: var(--font-mono); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.card-upvotes {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

/* Detailed Filters Tab Styling */
.filters-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.filter-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 13px;
}

.slider-input {
  width: 100%;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-secondary);
}
.custom-checkbox input {
  accent-color: var(--accent-emerald);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.filter-actions .btn {
  flex: 1;
}

/* Tips Panel */
.tips-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tip-card {
  display: flex;
  gap: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.tip-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
}
.tip-icon {
  font-size: 20px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.tip-body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================================
   MAP CONTAINER
   =================================================== */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
  background: #090c10;
}

#map {
  width: 100%;
  height: 100%;
  background: #090c10;
}

/* Dark Map Tiles Override */
.leaflet-container {
  background: #090c10 !important;
}

/* Floating Controls */
.map-floating-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 800;
}

.map-ctrl-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  position: relative;
}
.map-ctrl-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: scale(1.05);
}

.ctrl-tooltip {
  position: absolute;
  right: 54px;
  background: var(--bg-surface-elevated);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-subtle);
}
.map-ctrl-btn:hover .ctrl-tooltip {
  opacity: 1;
}

/* Center Crosshair Target Overlay */
.map-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 860;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crosshair-ring {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px dashed rgba(16, 185, 129, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  animation: rotate-slow 12s linear infinite;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crosshair-line {
  position: absolute;
  background: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.crosshair-h {
  width: 76px;
  height: 1.5px;
}
.crosshair-v {
  width: 1.5px;
  height: 76px;
}

.crosshair-pin {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  color: #10b981;
  font-size: 32px;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.crosshair-shadow {
  position: absolute;
  bottom: calc(50% - 4px);
  left: 50%;
  transform: translate(-50%, 0);
  width: 12px;
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  filter: blur(1px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* While map is being panned, lift the pin */
.map-is-dragging .crosshair-pin {
  transform: translate(-50%, -16px);
}
.map-is-dragging .crosshair-shadow {
  transform: translate(-50%, 0) scale(0.6);
  opacity: 0.4;
}

/* Crosshair Guidance Banner */
.crosshair-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 920;
  max-width: 520px;
  width: calc(100% - 32px);
  animation: slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.crosshair-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-icon-pulse {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: pulse-ring 1.8s infinite;
  flex-shrink: 0;
}

.target-text {
  display: flex;
  flex-direction: column;
}
.target-text strong {
  font-size: 13.5px;
  color: #ffffff;
}
.target-text span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.crosshair-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  z-index: 800;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-emerald { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }
.dot-amber { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.dot-purple { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }

/* Custom Leaflet Map Markers */
.custom-pin-marker {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px;
  height: 38px;
  background: transparent !important;
  border: none !important;
}

.marker-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  opacity: 0.4;
  animation: marker-pulse 2s infinite;
  pointer-events: none;
}

.marker-core {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}
.marker-core:hover {
  transform: scale(1.2);
}

.marker-single-stall .marker-core { background: var(--accent-emerald); box-shadow: 0 0 14px var(--accent-emerald); }
.marker-single-stall .marker-ring { background: var(--accent-emerald); }

.marker-hotel-lobby .marker-core { background: var(--accent-cyan); box-shadow: 0 0 14px var(--accent-cyan); }
.marker-hotel-lobby .marker-ring { background: var(--accent-cyan); }

.marker-outdoor-nook .marker-core { background: var(--accent-amber); box-shadow: 0 0 14px var(--accent-amber); }
.marker-outdoor-nook .marker-ring { background: var(--accent-amber); }

.marker-parking-alcove .marker-core { background: var(--accent-purple); box-shadow: 0 0 14px var(--accent-purple); }
.marker-parking-alcove .marker-ring { background: var(--accent-purple); }

@keyframes marker-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.85; }
  60% { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* User Location Radar Marker */
.user-radar-marker {
  position: absolute !important;
  width: 24px;
  height: 24px;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.user-radar-dot {
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px #38bdf8, 0 0 4px #0284c7;
  z-index: 2;
}
.user-radar-wave {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: marker-pulse 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

/* Custom Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}
.leaflet-popup-tip {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
}
.popup-card {
  padding: 14px 16px;
  min-width: 220px;
}
.popup-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.popup-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.popup-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 10px;
}
.popup-view-btn {
  width: 100%;
  padding: 6px 12px;
  font-size: 12px;
}

/* ===================================================
   MODALS & DRAWERS
   =================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}
.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.header-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.header-icon-box.danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.modal-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Spot Details Card Modal */
.spot-detail-card {
  width: 100%;
  max-width: 640px;
  padding: 28px;
}

.detail-header {
  margin-bottom: 20px;
}
.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.detail-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}
.detail-address {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.telemetry-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.telemetry-box.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
}
.telem-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.telem-val-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.telem-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
}
.telem-max {
  font-size: 11px;
  color: var(--text-muted);
}
.stars-row {
  font-size: 11px;
  color: #f59e0b;
}

.telem-badge {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fan-badge { color: #38bdf8; }
.lock-badge { color: #34d399; }
.traffic-badge { color: #fbbf24; }

/* Access Code Callout */
.access-callout {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.callout-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-icon {
  color: var(--accent-amber);
}
.callout-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fbbf24;
}
.btn-copy-code {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}
.btn-copy-code:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff;
}
.callout-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.meta-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.spot-description-text {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tag-badge {
  font-size: 11px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.spot-action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Reviews Section */
.reviews-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.reviews-section-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.anon-note {
  font-size: 11.5px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.add-review-form {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.rating-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 4px;
}
.picker-star {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.picker-star.active {
  color: #f59e0b;
}

.confirm-select {
  width: auto;
  padding: 4px 10px;
  font-size: 12px;
}

.form-footer-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.author-input {
  max-width: 180px;
  padding: 6px 10px;
  font-size: 12px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.review-author {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}
.review-badge {
  font-size: 10.5px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.review-comment {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* Add Spot Card Modal */
.add-spot-card {
  width: 100%;
  max-width: 620px;
  padding: 28px;
}

.new-spot-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}
.col-half {
  flex: 1;
}

.location-picker-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
}
.location-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.btn-link:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Report Spot Modal */
.report-card {
  width: 100%;
  max-width: 480px;
  padding: 26px;
}

/* ===================================================
   ADMIN MODERATION PORTAL
   =================================================== */
.admin-card {
  width: 100%;
  max-width: 980px;
  min-height: 580px;
  padding: 28px;
}

.admin-login-view {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}
.admin-shield-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-emerald);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-neon-emerald);
}
.admin-login-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.admin-login-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pin-input {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  padding-right: 40px;
}
.btn-toggle-pin {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.pin-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}
.pin-hint code {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.auth-error-msg {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* Admin Dashboard Header */
.admin-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-title-group h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.verified-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Admin KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.kpi-card.highlight-green {
  border-color: rgba(16, 185, 129, 0.3);
}
.kpi-card.highlight-red {
  border-color: rgba(244, 63, 94, 0.3);
}
.kpi-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}
.kpi-card.highlight-green .kpi-value { color: #34d399; }
.kpi-card.highlight-red .kpi-value { color: #fb7185; }

/* Admin Nav Tabs */
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.admin-tab:hover {
  color: var(--text-primary);
}
.admin-tab.active {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

.admin-tab-pane {
  display: none;
}
.admin-tab-pane.active {
  display: block;
}

.pane-header {
  margin-bottom: 16px;
}
.pane-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.pane-header p {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-search-sm {
  max-width: 240px;
  padding: 6px 12px;
  font-size: 12.5px;
}

/* Admin Tables */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* Analytics & Charts */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}
.chart-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}
.chart-container {
  height: 220px;
  position: relative;
}

/* Audit Log */
.audit-log-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.audit-log-box {
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.log-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}
.log-time {
  color: var(--text-muted);
  margin-right: 8px;
}
.log-action {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Admin Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.settings-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.settings-card.danger-card {
  border-color: rgba(244, 63, 94, 0.3);
}

.backup-actions-row {
  display: flex;
  gap: 10px;
}

/* ===================================================
   CAMOUFLAGE / QUICK EXIT DECOY OVERLAY
   =================================================== */
.camo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111827;
  color: #e5e7eb;
  z-index: 99999;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
}

.camo-top-bar {
  background: #1f2937;
  border-bottom: 1px solid #374151;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.camo-brand {
  font-size: 14px;
  font-weight: 600;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
}
.camo-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9ca3af;
}
.camo-return-btn {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.camo-return-btn:hover {
  background: #4b5563;
  color: #ffffff;
}

.camo-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.camo-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.camo-kpi {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 14px;
}
.camo-kpi span {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.camo-kpi strong {
  font-size: 18px;
  color: #f9fafb;
}

.camo-table-wrapper {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  overflow: hidden;
}
.camo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.camo-table th {
  background: #111827;
  padding: 10px 14px;
  text-align: left;
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
}
.camo-table td {
  padding: 10px 14px;
  border-top: 1px solid #374151;
  color: #d1d5db;
}

/* ===================================================
   TOAST NOTIFICATIONS
   =================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}
.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.95);
}
.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.95);
}
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Distance Badge on Spot Card */
.card-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Mobile Handle */
.mobile-sheet-handle {
  display: none;
  width: 100%;
  padding: 10px 0 6px 0;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.handle-bar {
  width: 42px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.mobile-sheet-handle:hover .handle-bar {
  background: var(--accent-emerald);
}

/* Mobile Floating GPS Pill */
.mobile-gps-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  z-index: 850;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.mobile-gps-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-emerald);
}

/* Mobile Floating Action Button (FAB) */
.mobile-fab-add {
  display: none;
  position: absolute;
  bottom: 84px;
  right: 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  z-index: 850;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-fab-add:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(11, 15, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1500;
  padding-bottom: env(safe-area-inset-bottom, 0);
  align-items: center;
  justify-content: space-around;
}

.mob-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex: 1;
}
.mob-nav-item i {
  font-size: 17px;
}
.mob-nav-item:hover,
.mob-nav-item.active {
  color: var(--accent-emerald);
}

.mob-nav-item.highlight-cta {
  position: relative;
  top: -10px;
}
.mob-cta-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  border: 2px solid var(--bg-core);
}

/* ===================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   =================================================== */
@media (max-width: 900px) {
  :root {
    --header-height: 60px;
  }

  body {
    padding-bottom: 64px; /* Space for bottom nav */
  }

  .app-header {
    padding: 0 12px;
  }
  .brand-subtitle, .live-pill, .version-badge {
    display: none;
  }
  .brand-title {
    font-size: 17px;
  }
  .logo-icon-wrapper {
    width: 36px;
    height: 36px;
  }
  .brand-shield {
    font-size: 16px;
  }
  .header-center {
    flex: 1;
    max-width: none;
    margin: 0 8px;
  }
  .search-box input {
    height: 36px;
    font-size: 13px;
    padding-left: 36px;
  }
  .search-box .search-icon {
    left: 11px;
    font-size: 12px;
  }
  .header-right .add-spot-btn {
    display: none; /* Accessible via bottom nav & FAB */
  }
  .stealth-btn {
    padding: 6px 10px;
  }
  .stealth-btn .btn-text {
    display: none;
  }
  .admin-lock-btn {
    display: none; /* Accessible via bottom nav */
  }

  /* App Main Layout on Mobile */
  .app-main {
    flex-direction: column-reverse;
    height: calc(100vh - var(--header-height) - 64px);
    position: relative;
  }

  .map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }

  /* Bottom Sheet Transformation */
  .mobile-sheet-handle {
    display: flex;
  }

  .spots-sidebar {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 160px; /* Default Peek mode */
  }

  .spots-sidebar.sheet-peek {
    height: 160px;
  }
  .spots-sidebar.sheet-half {
    height: 52vh;
  }
  .spots-sidebar.sheet-full {
    height: calc(100vh - var(--header-height) - 64px);
    border-radius: 0;
  }
  .spots-sidebar.sheet-hidden {
    transform: translateY(100%);
  }

  .sidebar-header {
    padding: 8px 14px;
  }
  .sidebar-toggle-btn {
    display: none;
  }

  .quick-filter-chips {
    padding: 8px 12px;
  }

  .map-floating-controls {
    top: 14px;
    right: 12px;
    gap: 8px;
  }
  .map-ctrl-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .map-legend {
    display: none; /* Hide legend on small mobile screens to keep map clean */
  }

  .mobile-fab-add {
    display: inline-flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }

  /* Modals as bottom sheets on mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    width: 100%;
    padding: 22px 18px;
    border-bottom: none;
    animation: modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes modal-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .telemetry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-kpi-grid, .analytics-grid, .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    max-height: 92vh;
  }

  /* Form inputs size for mobile */
  .form-input {
    font-size: 15px;
    padding: 10px 12px;
  }
}

