/* ============================================
   PISSEN.JETZT – NEON NIGHTLIFE REDESIGN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --neon-blue: #4dc9f6;
  --neon-pink: #f472b6;
  --neon-purple: #a855f7;
  --neon-orange: #fb923c;
  --neon-yellow: #facc15;
  --neon-green: #4ade80;
  --neon-red: #f87171;
  --bg-dark: #0a0a14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.3);
  --glow-blue: 0 0 20px rgba(77, 201, 246, 0.4), 0 0 60px rgba(77, 201, 246, 0.15);
  --glow-pink: 0 0 20px rgba(244, 114, 182, 0.4), 0 0 60px rgba(244, 114, 182, 0.15);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.15);
  --glow-orange: 0 0 20px rgba(251, 146, 60, 0.4), 0 0 60px rgba(251, 146, 60, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  /* keep old color vars for compat */
  --red-50: #1a0a0a;
  --red-100: #2a1010;
  --red-500: #f87171;
  --red-600: #f472b6;
  --red-700: #db2777;
  --gray-50: rgba(255, 255, 255, 0.03);
  --gray-100: rgba(255, 255, 255, 0.06);
  --gray-200: rgba(255, 255, 255, 0.1);
  --gray-300: rgba(255, 255, 255, 0.2);
  --gray-400: rgba(255, 255, 255, 0.4);
  --gray-500: rgba(255, 255, 255, 0.5);
  --gray-600: rgba(255, 255, 255, 0.6);
  --gray-700: rgba(255, 255, 255, 0.75);
  --gray-800: rgba(255, 255, 255, 0.85);
  --gray-900: #f0f0f5;
  --green-500: #4ade80;
  --green-600: #22c55e;
  --green-100: rgba(34, 197, 94, 0.15);
  --amber-500: #facc15;
  --amber-100: rgba(250, 204, 21, 0.15);
  --blue-500: #4dc9f6;
  --blue-100: rgba(77, 201, 246, 0.15);
}

/* ============ LIGHT / DAY MODE ============ */
[data-theme="light"] {
  --neon-blue: #2563eb;
  --neon-pink: #db2777;
  --neon-purple: #7c3aed;
  --neon-orange: #ea580c;
  --neon-yellow: #ca8a04;
  --neon-green: #16a34a;
  --neon-red: #dc2626;
  --bg-dark: #f8fafc;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --glow-blue: 0 4px 16px rgba(37, 99, 235, 0.2);
  --glow-pink: 0 4px 16px rgba(219, 39, 119, 0.2);
  --glow-purple: 0 4px 16px rgba(124, 58, 237, 0.2);
  --glow-orange: 0 4px 16px rgba(234, 88, 12, 0.2);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --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;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
}

[data-theme="light"] .home-title {
  color: #2563eb;
  text-shadow: none;
}

[data-theme="light"] .home-tagline {
  color: #ea580c !important;
  text-shadow: none !important;
}

[data-theme="light"] .home-logo {
  filter: none;
}

[data-theme="light"] #home-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

[data-theme="light"] .find-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .find-button:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .find-button .icon-circle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .emergency-button {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.35);
}

[data-theme="light"] .filter-pill {
  background: white;
  border-color: #e5e7eb;
  color: #4b5563;
}

[data-theme="light"] .filter-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

[data-theme="light"] .filter-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .bottom-sheet,
[data-theme="light"] .list-view-header {
  background: white;
  border-color: #e5e7eb;
}

[data-theme="light"] .map-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .map-title {
  color: #2563eb;
  text-shadow: none;
}

[data-theme="light"] .route-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .location-error-card,
[data-theme="light"] .rating-card {
  background: white;
  border-color: #e5e7eb;
}

[data-theme="light"] .rating-title,
[data-theme="light"] .location-error-card h3 {
  color: #111827;
}

[data-theme="light"] .donation-popup {
  background: white;
  border-color: #e5e7eb;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .donation-popup-title {
  color: #2563eb;
  text-shadow: none;
}

[data-theme="light"] .donation-popup-btn {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

[data-theme="light"] .donation-popup-btn.highlight {
  background: #fee2e2;
  border-color: #dc2626;
}

[data-theme="light"] .seo-content h2 {
  color: #2563eb;
  text-shadow: none;
}

[data-theme="light"] .seo-feature {
  background: white;
  border-color: #e5e7eb;
}

[data-theme="light"] .seo-feature h3 {
  color: #7c3aed;
}

[data-theme="light"] .city-select-btn {
  border-color: transparent;
}

[data-theme="light"] .emergency-overlay {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
}

[data-theme="light"] .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #374151 !important;
}

[data-theme="light"] .back-btn {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}

[data-theme="light"] .view-toggle {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

[data-theme="light"] .toggle-btn.active {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast {
  background: #1f2937;
  border-color: transparent;
}

[data-theme="light"] .detail-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e5e7eb;
}

[data-theme="light"] #detail-screen {
  background: #ffffff;
}

[data-theme="light"] .list-view-container {
  background: #ffffff;
}

[data-theme="light"] .recenter-btn {
  background: white;
  border-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .donate-section {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 50%, #fed7aa 100%);
  border-color: #fde68a;
}

[data-theme="light"] .donate-text strong {
  color: #92400e;
}

[data-theme="light"] .donate-amount-btn {
  background: white;
  border-color: #fde68a;
  color: #374151;
}

[data-theme="light"] .donate-highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

[data-theme="light"] .donate-price {
  color: #1f2937;
}

[data-theme="light"] .rate-btn {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

[data-theme="light"] .map-filter-chip {
  background: white;
  border-color: #e5e7eb;
  color: #6b7280;
}

[data-theme="light"] .map-filter-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

[data-theme="light"] .admin-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: white;
}

[data-theme="light"] .loading-overlay {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .loading-spinner {
  border-color: #e5e7eb;
  border-top-color: #2563eb;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--bg-card-hover);
}

.theme-toggle:active {
  transform: scale(0.9);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ============ SCREENS ============ */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  will-change: transform, opacity;
}

.screen.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.screen.slide-left {
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

/* ============ HOME SCREEN ============ */
#home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: max(5vh, 40px);
  background: radial-gradient(ellipse at 50% 0%, rgba(77, 201, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    var(--bg-dark);
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 40px;
  z-index: 10;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-logo {
  font-size: 64px;
  margin-bottom: 8px;
  animation: neon-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(77, 201, 246, 0.5));
}

@keyframes neon-float {

  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 20px rgba(77, 201, 246, 0.5));
  }

  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 30px rgba(77, 201, 246, 0.8));
  }
}

.home-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(77, 201, 246, 0.6), 0 0 40px rgba(77, 201, 246, 0.3), 0 0 80px rgba(77, 201, 246, 0.15);
  margin-bottom: 4px;
}

.home-subtitle {
  font-size: 15px;
  color: var(--neon-pink);
  font-weight: 500;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
}

/* FIND BUTTON */
.find-button {
  position: relative;
  width: 260px;
  height: 160px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(77, 201, 246, 0.3) 100%);
  border: 2px solid var(--neon-blue);
  border-radius: 24px;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--glow-blue), inset 0 0 30px rgba(77, 201, 246, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 40px;
  -webkit-appearance: none;
  appearance: none;
}

.find-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(77, 201, 246, 0.6), 0 0 80px rgba(77, 201, 246, 0.25), inset 0 0 30px rgba(77, 201, 246, 0.08);
}

.find-button:active {
  transform: scale(0.97);
}

.find-button .icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(77, 201, 246, 0.15);
  border: 1px solid rgba(77, 201, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.find-button .btn-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  z-index: 1;
}

/* FILTERS */
.filters-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 320px;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.filter-pill.active {
  border-color: var(--neon-pink);
  background: rgba(244, 114, 182, 0.15);
  color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.25);
}

.filter-pill .pill-icon {
  font-size: 15px;
}

/* EMERGENCY BUTTON */
.emergency-button {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 24px auto 0;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.2) 0%, rgba(248, 113, 113, 0.2) 100%);
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: var(--glow-pink);
  animation: pulse-neon 2s infinite;
  transition: all 0.2s;
}

.emergency-button:active {
  transform: scale(0.95);
}

@keyframes pulse-neon {

  0%,
  100% {
    box-shadow: var(--glow-pink);
  }

  50% {
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.6), 0 0 80px rgba(244, 114, 182, 0.25);
  }
}

/* CITY SWITCHER */
.city-switcher {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.city-pill:hover {
  background: var(--bg-card-hover);
  color: var(--neon-blue);
  border-color: rgba(77, 201, 246, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(77, 201, 246, 0.15);
}

/* LOADING */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* LOCATION ERROR */
.location-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.location-error-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.location-error-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 32px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.location-error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.location-error-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.location-error-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.location-error-card .find-button {
  width: 100%;
  height: auto;
  padding: 14px 24px;
  margin-bottom: 8px;
}

.dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  margin-top: 4px;
}

.dismiss-btn:hover {
  color: var(--text-secondary);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============ MAP SCREEN ============ */
#map-screen {
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.map-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(77, 201, 246, 0.3);
}

.map-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(77, 201, 246, 0.3);
}

.view-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.toggle-btn {
  width: 36px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.toggle-btn.active {
  background: rgba(77, 201, 246, 0.15);
  box-shadow: 0 0 8px rgba(77, 201, 246, 0.2);
}

.map-filters {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.map-filters::-webkit-scrollbar {
  display: none;
}

.map-filter-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.map-filter-chip:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.map-filter-chip.active {
  background: rgba(244, 114, 182, 0.15);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* Map */
#map {
  flex: 1;
  width: 100%;
  height: 100%;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-top: 10px !important;
}

.leaflet-top.leaflet-right {
  top: 100px !important;
}

.leaflet-top.leaflet-right .leaflet-control {
  margin-top: 8px !important;
}

.leaflet-control-zoom a {
  background: rgba(10, 10, 20, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  color: var(--text-primary) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(20, 20, 40, 1) !important;
}

/* Recenter */
.recenter-btn {
  position: fixed;
  bottom: calc(55vh + 16px);
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 20, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-blue);
  font-size: 20px;
  cursor: pointer;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.recenter-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.recenter-btn:active {
  transform: scale(0.9);
}

/* Markers */
.toilet-marker {
  background: none;
  border: none;
}

.marker-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}

.marker-icon:hover {
  transform: scale(1.2);
}

.marker-icon.green {
  background: var(--neon-green);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.marker-icon.orange {
  background: var(--neon-orange);
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.5);
}

.marker-icon.blue {
  background: var(--neon-blue);
  box-shadow: 0 0 15px rgba(77, 201, 246, 0.5);
}

.marker-icon.red {
  background: var(--neon-pink);
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.5);
}

.user-marker {
  width: 16px;
  height: 16px;
  background: var(--neon-blue);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(77, 201, 246, 0.3), 0 0 15px rgba(77, 201, 246, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(77, 201, 246, 0.3), 0 0 15px rgba(77, 201, 246, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(77, 201, 246, 0.1), 0 0 25px rgba(77, 201, 246, 0.4);
  }
}

/* ============ BOTTOM SHEET ============ */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 700;
  background: linear-gradient(180deg, #12121e 0%, #0a0a14 100%);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
  max-height: 55vh;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
}

.bottom-sheet.collapsed {
  max-height: 72px;
}

.bottom-sheet.expanded {
  max-height: 80vh;
}

.sheet-handle-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 6px;
  cursor: grab;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-blue);
  background: none;
  border: none;
  cursor: pointer;
}

.toilet-list {
  overflow-y: auto;
  padding: 0 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  flex: 1;
}

/* TOILET CARDS */
.toilet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.toilet-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
}

.toilet-card:active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.99);
}

.card-emoji {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-emoji.green {
  background: rgba(74, 222, 128, 0.15);
}

.card-emoji.orange {
  background: rgba(251, 146, 60, 0.15);
}

.card-emoji.blue {
  background: rgba(77, 201, 246, 0.15);
}

.card-emoji.red {
  background: rgba(244, 114, 182, 0.15);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-features {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.feature-badge {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card);
}

.card-status {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-badge.open {
  background: rgba(74, 222, 128, 0.15);
  color: var(--neon-green);
}

.status-badge.closed {
  background: rgba(244, 114, 182, 0.15);
  color: var(--neon-pink);
}

.card-chevron {
  color: var(--text-muted);
  font-size: 18px;
}

/* ============ DETAIL SCREEN ============ */
#detail-screen {
  z-index: 20;
  background: var(--bg-dark);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 52px;
  flex-shrink: 0;
}

.detail-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
  text-align: center;
}

.detail-map-preview {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

#detail-map {
  width: 100%;
  height: 100%;
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.detail-close:hover {
  background: rgba(20, 20, 40, 0.9);
  transform: scale(1.1);
}

.detail-content {
  padding: 24px 20px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.detail-emoji-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.detail-emoji {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.detail-type {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.detail-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.detail-status {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.detail-distance {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-distance strong {
  color: var(--text-primary);
}

.detail-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.detail-section-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  padding-top: 1px;
  flex-shrink: 0;
}

.detail-section-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.detail-section-text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.detail-section-text .seasonal-note {
  color: var(--neon-orange);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}

.detail-features-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  margin-bottom: 4px;
}

.detail-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ROUTE BUTTON */
.route-button {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--neon-blue);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(77, 201, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: var(--neon-blue);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: var(--glow-blue);
  transition: all 0.2s;
}

.route-button:hover {
  box-shadow: 0 0 30px rgba(77, 201, 246, 0.5);
  transform: translateY(-1px);
}

.route-button:active {
  transform: scale(0.98);
}

/* REPORT */
.report-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.report-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.report-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.report-option:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: rgba(244, 114, 182, 0.08);
}

.report-option:active {
  transform: scale(0.97);
}

.report-alt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-alt-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
}

.report-alt-link:hover {
  color: var(--neon-blue);
}

/* DONATE */
.donate-section {
  margin-top: 24px;
  padding: 24px 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(250, 204, 21, 0.08) 100%);
  border: 1px solid rgba(251, 146, 60, 0.2);
  text-align: center;
}

.donate-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.donate-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.donate-text strong {
  color: var(--neon-orange);
  font-weight: 800;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.donate-amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1.5px solid rgba(251, 146, 60, 0.2);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.donate-amount-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.2);
  border-color: var(--neon-orange);
}

.donate-amount-btn:active {
  transform: scale(0.95);
}

.donate-emoji {
  font-size: 22px;
  line-height: 1;
}

.donate-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.donate-highlight {
  background: rgba(251, 146, 60, 0.15);
  border-color: var(--neon-orange);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.15);
}

.donate-highlight .donate-price {
  color: var(--neon-orange);
}

/* LIST VIEW */
.list-view-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.list-view-container.active {
  display: flex;
}

.list-view-header {
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 20, 0.95);
}

.list-view-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* ERROR */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-retry {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--neon-blue);
  color: var(--bg-dark);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ============ RATINGS ============ */
.detail-rating-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 4px;
}

.detail-rating-display.no-ratings {
  opacity: 0.5;
}

.rating-stars-display .star {
  font-size: 18px;
  margin-right: 1px;
}

.rating-stars-display .star.filled {
  color: var(--neon-orange);
}

.rating-stars-display .star.half {
  color: var(--neon-yellow);
  opacity: 0.7;
}

.rating-stars-display .star.empty {
  color: rgba(255, 255, 255, 0.15);
}

.rating-avg {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Rating Modal */
.rating-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.rating-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.rating-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rating-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.rating-emoji {
  font-size: 48px;
  margin-bottom: 8px;
}

.rating-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.rating-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.rating-category {
  margin-bottom: 16px;
}

.rating-cat-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star-row .star {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.15s;
}

.star-row .star.selected {
  color: var(--neon-orange);
  transform: scale(1.15);
}

.star-row .star:hover {
  transform: scale(1.2);
}

.rating-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--neon-orange) 0%, #d97706 100%);
  color: var(--bg-dark);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.rating-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* COMMUNITY ACTIONS */
.community-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.rate-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: rgba(251, 146, 60, 0.1);
  color: var(--neon-orange);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(251, 146, 60, 0.3);
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.rate-btn:active {
  transform: scale(0.97);
}

.status-report-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.status-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.status-btn {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s;
}

.status-btn.positive {
  color: var(--neon-green);
}

.status-btn.negative {
  color: var(--neon-pink);
}

.status-btn:active {
  transform: scale(0.93);
}

/* LIVE STATUS */
.live-statuses {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.live-status-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.live-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}

.live-status-item.status-positive {
  color: var(--neon-green);
}

.live-status-item.status-negative {
  color: var(--neon-pink);
}

.status-ago {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

/* ============ EMERGENCY MODE ============ */
.emergency-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0a0a14 0%, #1a0a20 50%, #0f1a30 100%);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.emergency-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.emergency-content {
  text-align: center;
  padding: 24px;
  width: 100%;
  max-width: 400px;
}

.emergency-pulse {
  font-size: 64px;
  animation: emergency-bounce 1s infinite;
}

@keyframes emergency-bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.emergency-title {
  color: var(--neon-pink);
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0 8px;
  text-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
}

.emergency-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.emergency-result {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.emergency-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.emergency-distance,
.emergency-time {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.emergency-rating {
  margin: 12px 0;
  color: var(--text-primary);
}

.emergency-rating .star.filled {
  color: var(--neon-orange);
}

.emergency-rating .star.empty {
  color: rgba(255, 255, 255, 0.15);
}

.emergency-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}

.emergency-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.emergency-status.status-positive {
  background: rgba(74, 222, 128, 0.15);
  color: var(--neon-green);
}

.emergency-status.status-negative {
  background: rgba(244, 114, 182, 0.15);
  color: var(--neon-pink);
}

.emergency-go-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  animation: pulse-go 1.5s infinite;
  letter-spacing: 1px;
}

@keyframes pulse-go {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.emergency-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
}

/* ============ SEO CONTENT ============ */
.seo-content {
  margin-top: 40px;
  padding: 32px 20px;
  text-align: left;
  max-width: 520px;
  width: 100%;
}

@media (max-height:750px) {
  .seo-content {
    margin-top: 24px;
  }
}

.seo-content h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--neon-blue);
  margin-bottom: 10px;
  margin-top: 24px;
  text-shadow: 0 0 8px rgba(77, 201, 246, 0.2);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.seo-content strong {
  color: var(--text-primary);
}

.seo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.seo-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.seo-feature>span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.seo-feature h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-purple);
  margin-bottom: 6px;
}

.seo-feature p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* HOME LEGAL */
.home-legal {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
}

.home-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.home-legal a:hover {
  color: var(--neon-blue);
}

.home-legal span {
  margin: 0 6px;
}

/* LEGAL PAGES */
.legal-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-blue);
  text-decoration: none;
  margin-bottom: 16px;
}

.legal-container h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-container h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--neon-purple);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-container p {
  margin-bottom: 12px;
}

.legal-container ul {
  margin: 8px 0 16px 20px;
}

.legal-container li {
  margin-bottom: 6px;
}

.legal-container a {
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 24px;
  font-size: 14px;
}

/* CITY SELECTOR */
.city-select-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.city-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.city-select-btn:active {
  transform: scale(0.97);
}

.city-select-emoji {
  font-size: 28px;
  line-height: 1;
}

.city-select-name {
  font-size: 18px;
  flex: 1;
}

.city-select-count {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 400;
}

/* ============ LOCATION HINT BANNER ============ */
.location-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(77, 201, 246, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(77, 201, 246, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: hintFadeIn 0.5s ease 0.2s both;
}

@keyframes hintFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-hint-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.location-hint-text {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.4;
  flex: 1;
}

.location-hint-text strong {
  color: var(--neon-blue);
}

.location-hint-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(77, 201, 246, 0.3);
  background: rgba(77, 201, 246, 0.15);
  color: var(--neon-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.location-hint-btn:hover {
  background: rgba(77, 201, 246, 0.25);
  border-color: var(--neon-blue);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(77, 201, 246, 0.3);
}

.location-hint-btn:active {
  transform: scale(0.95);
}

/* ============ TOP CITIES GRID (2x2) ============ */
.city-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 16px;
}

.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-color) 30%, transparent) 0%, color-mix(in srgb, var(--card-color) 15%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--card-color) 35%, transparent);
  color: white;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--card-color) 25%, transparent);
}

.city-card:active {
  transform: scale(0.97);
}

.city-card-emoji {
  font-size: 32px;
  line-height: 1;
}

.city-card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.city-card-count {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
}

.city-card-count::after {
  content: ' 🚽';
}

/* ============ CITY PILL GRID ============ */
.city-grid-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.city-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--pill-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill-color) 25%, transparent);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.city-pill-btn:hover {
  background: color-mix(in srgb, var(--pill-color) 22%, transparent);
  border-color: color-mix(in srgb, var(--pill-color) 50%, transparent);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pill-color) 20%, transparent);
}

.city-pill-btn:active {
  transform: scale(0.96);
}

.city-pill-btn span:first-child {
  font-size: 15px;
}

.pill-count {
  font-size: 11px;
  opacity: 0.5;
  font-weight: 400;
  margin-left: 2px;
}

/* ============ ALL CITIES BUTTON ============ */
.city-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  border: none;
}

.city-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
}

.city-all-btn:active {
  transform: scale(0.97);
}

.city-all-count {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 400;
}

/* ============ LIGHT THEME OVERRIDES ============ */
[data-theme="light"] .location-hint {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .location-hint-text {
  color: #64748b;
}

[data-theme="light"] .location-hint-btn {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: #2563eb;
}

[data-theme="light"] .city-card {
  border-color: color-mix(in srgb, var(--card-color) 20%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .city-pill-btn {
  background: color-mix(in srgb, var(--pill-color) 8%, white);
  border-color: color-mix(in srgb, var(--pill-color) 18%, transparent);
  color: #475569;
}

[data-theme="light"] .city-pill-btn:hover {
  color: #1e293b;
}

[data-theme="light"] .city-all-btn {
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}

/* DONATION POPUP */
.donation-popup {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid rgba(77, 201, 246, 0.15);
  border-radius: 20px;
  padding: 24px;
  z-index: 10000;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 201, 246, 0.1);
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.donation-popup.visible {
  bottom: 24px;
}

.donation-popup-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.donation-popup-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(77, 201, 246, 0.3);
}

.donation-popup-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.donation-popup-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.donation-popup-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 56px;
}

.donation-popup-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(77, 201, 246, 0.3);
}

.donation-popup-btn.highlight {
  background: rgba(244, 114, 182, 0.15);
  border-color: var(--neon-pink);
}

.donation-popup-btn.highlight:hover {
  background: rgba(244, 114, 182, 0.25);
}

.donation-popup-btn-emoji {
  font-size: 22px;
  margin-bottom: 4px;
}

.donation-popup-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s;
}

.donation-popup-dismiss:hover {
  color: var(--text-secondary);
}

/* ADMIN */
.admin-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.admin-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.admin-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-stat:last-child {
  border-bottom: none;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--neon-blue);
  background: rgba(77, 201, 246, 0.1);
  color: var(--neon-blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.admin-btn:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-1px);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.admin-log {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.admin-log.visible {
  display: block;
}

.admin-nav {
  margin-top: 24px;
  text-align: center;
}

.admin-nav a {
  font-size: 14px;
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ANALYTICS */
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: linear-gradient(135deg, rgba(77, 201, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(77, 201, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  color: var(--text-primary);
}

.kpi-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
  color: var(--neon-blue);
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 20px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chart-bar {
  width: 100%;
  max-width: 32px;
  background: linear-gradient(180deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.chart-bar-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart-bar-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
  flex-shrink: 0;
}

.admin-stat:nth-child(1) .rank-badge {
  background: rgba(250, 204, 21, 0.15);
  color: var(--neon-yellow);
}

.admin-stat:nth-child(2) .rank-badge {
  background: var(--bg-card);
  color: var(--text-muted);
}

.admin-stat:nth-child(3) .rank-badge {
  background: rgba(251, 146, 60, 0.15);
  color: var(--neon-orange);
}

/* RESPONSIVE */
@media (min-width:768px) {
  .bottom-sheet {
    width: 380px;
    left: 16px;
    right: auto;
    bottom: 16px;
    border-radius: var(--radius-xl);
    max-height: calc(100vh - 120px);
  }

  .bottom-sheet.collapsed {
    max-height: 72px;
  }

  .bottom-sheet.expanded {
    max-height: calc(100vh - 120px);
  }

  #detail-screen {
    width: 100%;
    left: 0;
    border-radius: 0;
  }
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
}