/* ============================================
   KNOW YOUR CITY — Glassmorphism Design System
   ============================================ */

/* Google Fonts loaded via <link> in HTML */

/* === Design Tokens === */
:root {
  /* Background */
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1435;
  --bg-gradient: linear-gradient(135deg, #0a0e27 0%, #1a1a4e 50%, #0d1b3e 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px);

  /* Accent Colors */
  --accent-cyan: #00d4ff;
  --accent-teal: #00b894;
  --accent-blue: #6c5ce7;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #00b894 100%);

  /* Safety Colors */
  --safe-green: #00e676;
  --moderate-amber: #ffab40;
  --caution-red: #ff5252;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Google Material Symbols === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

/* Inline icon helper — use .mi alongside text */
.mi {
  font-size: 1.15em;
  vertical-align: -0.15em;
  margin-right: 3px;
}

/* Feature card icons */
.feature-icon .material-symbols-outlined {
  font-size: 1.8rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hero floating card icon circles */
.icon-circle .material-symbols-outlined {
  font-size: 1.3rem;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* How It Works step icon */
.hiw-step-icon .material-symbols-outlined {
  font-size: inherit;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Safety stat icons */
.stat-icon .material-symbols-outlined {
  font-size: 1.4rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Toast icon */
.toast-icon .material-symbols-outlined {
  font-size: 2.2rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === Fast Fetch Spinner === */
.spinner-small {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
}

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

/* Toast icon */
.toast-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Social link icons */
.social-link .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: #0a0e27;
  background-image: linear-gradient(135deg, #0a0e27 0%, #1a1a4e 50%, #0d1b3e 100%);
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* === Utility === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.05);
}

/* === Floating Background Orbs === */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-blue);
  bottom: 10%;
  left: -80px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
  top: 50%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes floatOrb {

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

  25% {
    transform: translate(60px, -40px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 60px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(15, 10, 30, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  /* guarantees separation from logo */
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
  /* prevents logo from squishing */
}

.nav-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-brand-text span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 12px;
  /* reduced gap to fit all items */
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, background 0.3s ease, transform 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--accent-gradient);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
  transform-origin: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.nav-cta:hover {
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.35), 0 0 8px rgba(0, 184, 148, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.nav-cta:hover::before {
  opacity: 0.5;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  backdrop-filter: var(--glass-blur);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--safe-green);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-city-graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
}

.city-ring {
  position: absolute;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}

.city-ring-1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.city-ring-2 {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  border-color: rgba(0, 212, 255, 0.15);
  animation-direction: reverse;
  animation-duration: 25s;
}

.city-ring-3 {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  border-color: rgba(0, 184, 148, 0.15);
  animation-duration: 20s;
}

.city-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.floating-card {
  position: absolute !important;
  padding: 8px 14px !important;
  background: rgba(10, 14, 39, 0.75) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  animation: floatCard 6s ease-in-out infinite;
  white-space: nowrap;
  overflow: hidden;
  /* Contain the sliding color */
  position: absolute !important;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Faster, smoother transition */
}


/* Sliding Border Runner Layer */
.floating-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  clip-path: inset(0 100% 0 0); /* Start hidden on the left */
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.floating-card:hover::before {
  clip-path: inset(0 0 0 0); /* Expand to full border */
}

/* Sliding Background Layer */
.floating-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  opacity: 0.8;
}

.floating-card:hover::after {
  transform: translateX(0);
}

.floating-card .icon-circle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem !important;
  flex-shrink: 0;
}

.fc-1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
  border-left: 2.5px solid var(--safe-green) !important;
}

.fc-1::before {
  border-color: var(--safe-green) !important;
}

.fc-1::after {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.15), transparent);
}

.fc-1:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(0, 230, 118, 0.2);
}

.fc-1 .icon-circle {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 212, 255, 0.2)) !important;
  color: var(--safe-green) !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.fc-2 {
  top: 10%;
  right: -5%;
  animation-delay: -2s;
  border-left: 2.5px solid var(--accent-cyan) !important;
}

.fc-2::before {
  border-color: var(--accent-cyan) !important;
}

.fc-2::after {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
}

.fc-2:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.fc-2 .icon-circle {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(108, 92, 231, 0.2)) !important;
  color: var(--accent-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.fc-3 {
  bottom: 20%;
  left: -5%;
  animation-delay: -4s;
  border-left: 2.5px solid #a29bfe !important;
}

.fc-3::before {
  border-color: #a29bfe !important;
}

.fc-3::after {
  background: linear-gradient(90deg, rgba(162, 155, 254, 0.15), transparent);
}

.fc-3:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(162, 155, 254, 0.2);
}

.fc-3 .icon-circle {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.2), rgba(108, 92, 231, 0.2)) !important;
  color: #a29bfe !important;
  box-shadow: 0 0 15px rgba(162, 155, 254, 0.3);
}

.fc-4 {
  bottom: 10%;
  right: -10%;
  animation-delay: -3s;
  border-left: 2.5px solid var(--moderate-amber) !important;
}

.fc-4::before {
  border-color: var(--moderate-amber) !important;
}

.fc-4::after {
  background: linear-gradient(90deg, rgba(255, 171, 64, 0.15), transparent);
}

.fc-4:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(255, 171, 64, 0.2);
}

.fc-4 .icon-circle {
  background: linear-gradient(135deg, rgba(255, 171, 64, 0.2), rgba(255, 107, 107, 0.2)) !important;
  color: var(--moderate-amber) !important;
  box-shadow: 0 0 15px rgba(255, 171, 64, 0.3);
}

.floating-card:hover {
  transform: translateY(-3px) !important;
  /* Removed scale to keep original size */
  background: rgba(15, 20, 50, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1) !important;
  z-index: 100;
  cursor: pointer;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* === FEATURES === */
.features {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-label {
  justify-content: center;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Shimmer sweep on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transition: none;
  z-index: 0;
}

.feature-card:hover::after {
  animation: shimmerSweep 0.8s ease forwards;
}

@keyframes shimmerSweep {
  0% {
    left: -60%;
  }

  100% {
    left: 120%;
  }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:active {
  transform: translateY(-4px) scale(0.98);
  transition-duration: 0.1s;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-3deg);
}

.feature-icon.green {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.feature-card:hover .feature-icon.green {
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
}

.feature-icon.cyan {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.feature-card:hover .feature-icon.cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.feature-icon.purple {
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.feature-card:hover .feature-icon.purple {
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25);
}

.feature-icon.amber {
  background: rgba(255, 171, 64, 0.1);
  border: 1px solid rgba(255, 171, 64, 0.2);
}

.feature-card:hover .feature-icon.amber {
  box-shadow: 0 0 20px rgba(255, 171, 64, 0.25);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--accent-cyan);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === SAFETY EXPLORER === */
.safety-explorer {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.safety-header {
  margin-bottom: 56px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.area-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
  height: min-content;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.area-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.area-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scrollable Container for Data Inside Cards */
.scrollable-list-container {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

.scrollable-list-container::-webkit-scrollbar {
  width: 4px;
}

.scrollable-list-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}

.scrollable-list-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
  padding-right: 8px;
  position: relative;
  /* Thin custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) rgba(255, 255, 255, 0.05);
}

.scrollable-list-container::-webkit-scrollbar {
  width: 5px;
}

.scrollable-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.scrollable-list-container::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}

/* Indicator & Fade Mask */
.scroll-hint-wrapper {
  position: relative;
  margin-top: 10px;
}

.scroll-hint-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-secondary));
  pointer-events: none;
  opacity: 0.8;
  border-radius: 0 0 12px 12px;
}


.scroll-indicator-hint {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.9;
  animation: bounceHint 2s infinite;
  z-index: 5;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(10, 14, 39, 0.9);
  padding: 4px 12px;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}

/* Floating Pill Variant - sits 'outside' visibility */
.scroll-floating-pill {
  position: absolute;
  bottom: 25px; /* Floating on top of content at the bottom */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 100;
  animation: pulsePill 2.5s infinite;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.scroll-floating-pill:hover {
  background: rgba(0, 212, 255, 0.25);
  transform: translateX(-50%) translateY(-2px);
}

@keyframes pulsePill {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* Auth Modal Additions */
.auth-footer a:hover {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
}

#forgotPasswordSuccess {
  animation: forgotPasswordFadeIn 0.3s ease;
}

@keyframes forgotPasswordFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Account Nav Item */
.account-nav-item {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.user-greeting:hover {
  color: var(--accent-cyan);
}

.nav-logout-icon {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: var(--transition-fast);
}

.nav-logout-icon:hover {
  color: var(--caution-red);
  transform: translateX(2px);
}

/* Confirm Modal */
.confirm-modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.confirm-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 82, 82, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--caution-red);
}

.confirm-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.confirm-modal p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn-cancel {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
  padding: 10px 20px;
  background: var(--caution-red);
  border: none;
  color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-confirm:hover {
  background: #e53935;
}

.badge-safe {
  background: rgba(0, 230, 118, 0.12);
  color: var(--safe-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-moderate {
  background: rgba(255, 171, 64, 0.12);
  color: var(--moderate-amber);
  border: 1px solid rgba(255, 171, 64, 0.2);
}

.badge-caution {
  background: rgba(255, 82, 82, 0.12);
  color: var(--caution-red);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.area-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

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

.metric-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.metric-label {
  color: var(--text-secondary);
}

.metric-value {
  color: var(--text-primary);
  font-weight: 600;
}

.metric-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.metric-fill.green {
  background: var(--accent-gradient);
}

.metric-fill.amber {
  background: linear-gradient(90deg, var(--moderate-amber), #ffd740);
}

.metric-fill.red {
  background: linear-gradient(90deg, var(--caution-red), #ff8a80);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.how-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-header .section-label {
  justify-content: center;
}

.how-header .section-subtitle {
  margin: 0 auto;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 16.66%;
  width: 66.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal), var(--accent-blue));
  opacity: 0.2;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

/* === TESTIMONIALS === */
.testimonials {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-header .section-label {
  justify-content: center;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px 40px;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  width: 28px;
  border-radius: 5px;
}

/* === NEWSLETTER === */
.newsletter {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.newsletter-card {
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-card .section-label {
  justify-content: center;
}

.newsletter-card .section-title {
  margin-bottom: 12px;
}

.newsletter-card .section-subtitle {
  margin: 0 auto 40px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.newsletter-form button {
  padding: 16px 32px;
  white-space: nowrap;
}

/* === FOOTER === */
.footer {
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-brand {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SAFETY EXPLORER GRID === */
.safety-explorer {
  padding: var(--section-padding);
  background: rgba(10, 14, 39, 0.4);
  position: relative;
}

.safety-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px;
  margin-top: 48px;
  width: 100%;
}

.area-card {
  width: 100%;
  display: flex !important;
  flex-direction: column;
}

.area-card-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.area-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.area-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-safe {
  background: rgba(0, 230, 118, 0.1);
  color: var(--safe-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-moderate {
  background: rgba(255, 171, 64, 0.1);
  color: var(--moderate-amber);
  border: 1px solid rgba(255, 171, 64, 0.2);
}

.badge-caution {
  background: rgba(255, 82, 82, 0.1);
  color: var(--caution-red);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.area-details-hidden {
  padding: 24px;
}

.area-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.metric-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.metric-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-fill.green {
  background: linear-gradient(90deg, #00e676, #00c853);
}

.metric-fill.amber {
  background: linear-gradient(90deg, #ffab40, #ff9100);
}

.metric-fill.red {
  background: linear-gradient(90deg, #ff5252, #d50000);
}

.area-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.area-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Attractive Crime Incident Items */
.crime-incident-item {
  padding: 12px;
  background: rgba(255, 82, 82, 0.08);
  border: 1.5px solid rgba(255, 82, 82, 0.4);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crime-incident-item:hover {
  background: rgba(255, 82, 82, 0.12);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.15);
}

.crime-incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.crime-incident-type {
  color: var(--caution-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crime-incident-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.crime-incident-desc {
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .steps-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-container::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .location-dropdown,
  #weatherDropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 360px !important;
    top: 80px !important;
    position: fixed !important;
  }
}

/* === LOCATION SEARCH DROPDOWN (PREMIUM) === */
.location-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 380px;
  background: rgba(15, 20, 53, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
  padding: 20px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.location-dropdown.active {
  display: flex !important;
}

.location-dropdown-header {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  flex-shrink: 0;
}

.dropdown-back-btn:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.dropdown-back-btn svg {
  transition: transform 0.3s ease;
}

.dropdown-back-btn:hover svg {
  transform: scale(1.1);
}

.location-search-wrapper {
  position: relative;
  width: 100%;
}

.location-search-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 18px;
  padding-right: 45px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.location-search-wrapper input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.location-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.location-search-btn:hover {
  opacity: 1;
}

.location-current-btn {
  width: 100%;
  padding: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-current-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  border-style: solid;
}

.location-results {
  max-height: 250px;
  overflow-y: auto;
  margin: 4px -5px;
  padding-right: 5px;
}

.location-results::-webkit-scrollbar {
  width: 4px;
}

.location-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.location-result-item {
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin-bottom: 5px;
  animation: itemSlideIn 0.3s ease forwards;
}

@keyframes itemSlideIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

.location-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.location-result-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  margin-bottom: 2px;
}

.location-result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.location-searching {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.location-no-results {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--caution-red);
}

.location-current {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  display: flex;
  gap: 8px;
}

.location-current-label {
  color: var(--text-muted);
}

.location-current-city {
  color: var(--accent-cyan);
  font-weight: 600;
}


@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .testimonial-card {
    padding: 32px 20px;
  }

  .newsletter-card {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === Auth Modal === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Scrollbar for Modal */
.auth-modal::-webkit-scrollbar {
  width: 6px;
}

.auth-modal::-webkit-scrollbar-thumb {
  background: var(--glass-border-hover);
  border-radius: 10px;
}

.modal-overlay.active .auth-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.auth-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0 0 12px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.auth-tab.active {
  color: white;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
}

/* === Confirm Modal === */
.confirm-modal {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .confirm-modal {
  transform: translateY(0);
}

.confirm-modal h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.confirm-modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 16px;
}

.confirm-actions button {
  flex: 1;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: white;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .half {
  flex: 1;
}

.auth-error-message {
  color: var(--caution-red);
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
}

.auth-error-message.active {
  display: block;
}

.captcha-group {
  margin-top: 10px;
}

/* === Terms & Conditions Checkbox === */
.terms-checkbox-group {
  margin-top: 8px;
  margin-bottom: 8px;
}

.terms-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  user-select: none;
  padding: 8px 0;
}

.terms-checkbox-label input[type="checkbox"] {
  display: none;
}

.terms-checkbox-label .custom-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.terms-checkbox-label input[type="checkbox"]:checked+.custom-checkbox {
  background: linear-gradient(135deg, #00e5ff, #00e676);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.terms-checkbox-label input[type="checkbox"]:checked+.custom-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0a0b1a;
  font-size: 0.75rem;
  font-weight: 800;
}

.terms-checkbox-label:hover .custom-checkbox {
  border-color: rgba(0, 229, 255, 0.4);
}

.terms-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.terms-link:hover {
  color: #00e676;
  text-decoration: underline;
}

.terms-checkbox-group .auth-error-message {
  margin-top: 8px;
  margin-bottom: 0;
}

.btn-auth {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--accent-cyan);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

/* Auth Restricted UI */
.auth-restricted-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.auth-restricted {
  position: relative;
  cursor: pointer !important;
}

.auth-restricted * {
  pointer-events: none;
}

@keyframes lockShake {

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

  25% {
    transform: scale(1.1) rotate(5deg);
  }

  50% {
    transform: scale(1.1) rotate(-5deg);
  }

  75% {
    transform: scale(1.1) rotate(5deg);
  }
}

.lock-animation {
  animation: lockShake 0.4s ease;
}

/* ===== Toast Notification ===== */
.login-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  z-index: 9999;
  background: rgba(10, 14, 39, 0.85);
  border-left: 4px solid var(--accent-cyan);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-toast.show {
  top: 30px;
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-content h4 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.toast-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== LOGIN TOAST NOTIFICATION ===== */
.login-toast {
  position: fixed;
  top: 30px;
  right: -400px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

.login-toast.show {
  right: 30px;
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.toast-content h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 600;
}

.toast-content p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* === INTERACTIVE CRIME MAP & PANELS === */
.map-section {
  position: relative;
  height: 80vh;
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.map-container {
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* Map Insights Panel (Left) */
.map-insights {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 320px;
  max-height: calc(100% - 60px);
  z-index: 10;
  padding: 24px;
  overflow-y: auto;
}

.insights-header h3 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.insights-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.insight-block {
  margin-bottom: 20px;
}

.insight-block h4 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.insight-block p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.recent-reports h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

#reportsList {
  list-style: none;
}

#reportsList li {
  font-size: 0.85rem;
  padding: 10px 0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Crime Details Panel (Right) */
.crime-details-panel {
  position: absolute;
  top: 30px;
  right: -400px;
  /* Initially hidden */
  width: 350px;
  z-index: 10;
  padding: 30px;
  transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crime-details-panel.active {
  right: 30px;
}

.panel-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.panel-close:hover {
  opacity: 1;
}

.severity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.severity-safe {
  background: rgba(0, 230, 118, 0.2);
  color: var(--safe-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.severity-excellent {
  background: rgba(0, 176, 255, 0.2);
  color: #00b0ff;
  border: 1px solid rgba(0, 176, 255, 0.3);
}

.severity-good {
  background: rgba(0, 230, 118, 0.15);
  color: var(--safe-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.safety-perks {
  margin-top: 20px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.perk-item .perk-icon {
  font-size: 1.1rem;
}

.safety-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  padding: 12px;
  background: rgba(0, 230, 118, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.score-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--safe-green);
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#crimeTitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.crime-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.crime-divider {
  height: 1px;
  background: var(--glass-border);
  margin-bottom: 20px;
}

.crime-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.source-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.source-link a:hover {
  gap: 12px;
}

/* Custom Map Markers */
.custom-marker {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s;
}

.custom-marker:hover {
  transform: scale(1.3);
  z-index: 1000 !important;
}

.marker-red {
  background: var(--safe-green);
  box-shadow: 0 0 10px var(--safe-green);
}

.marker-yellow {
  background: #00b0ff;
  box-shadow: 0 0 10px #00b0ff;
}

.marker-green {
  background: var(--safe-green);
  box-shadow: 0 0 10px var(--safe-green);
}

.marker-safe {
  background: var(--safe-green);
  box-shadow: 0 0 12px var(--safe-green);
}

.marker-excellent {
  background: #00b0ff;
  box-shadow: 0 0 12px #00b0ff;
}

/* Map Search (Integrated in Insights Panel) */
.map-search-container {
  margin-bottom: 25px;
  width: 100%;
  padding: 8px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2px 10px;
}

.search-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  opacity: 0.7;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: 8px 0;
}

.search-box button {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 5px;
  margin-right: 5px;
}

.search-box button:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Official Report Disclosure Card */
.official-report-card {
  width: 90%;
  max-width: 550px;
  padding: 40px;
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

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

.report-header {
  margin-bottom: 30px;
}

.report-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.report-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: #fff;
}

.report-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.report-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.report-item p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.report-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 25px 0;
}

.narrative {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem !important;
}

.report-footer {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ref-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.report-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.report-link:hover {
  color: #fff;
  text-decoration: underline;
}

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

/* Password Toggle */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--accent-cyan);
}

/* Location Badge */
.location-badge {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 20px;
  color: var(--safe-green);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  animation: badgeFadeIn 0.6s ease forwards;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.location-badge:hover {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
  transform: none !important; /* Fix: Strict horizontal alignment */
}

.location-badge svg {
  color: var(--safe-green);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Location Dropdown */
.location-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  background: rgba(15, 10, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99999;
  animation: dropdownFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.location-dropdown.active {
  display: flex !important;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.location-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-dropdown-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.dropdown-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.dropdown-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.location-search-box {
  position: relative;
}

.location-search-box input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 44px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.location-search-box input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.search-icon-nav {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 20px !important;
  pointer-events: none;
}

.location-results {
  max-height: 280px;
  overflow-y: auto;
  margin: 0 -5px;
  padding-right: 5px;
}

.location-results::-webkit-scrollbar {
  width: 5px;
}

.location-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.location-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  animation: resultSlideIn 0.3s ease forwards;
}

@keyframes resultSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.location-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.location-result-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  color: var(--accent-cyan);
}

.location-result-info {
  display: flex;
  flex-direction: column;
}

.location-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.location-result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.location-current-btn {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.location-current-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* MOBILE RESPONSIVENESS FOR LOCATION SEARCH */
@media (max-width: 768px) {
  .location-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 450px;
    height: auto;
    max-height: 80vh;
    animation: dropdownMobileFadeIn 0.4s ease forwards;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
  }

  @keyframes dropdownMobileFadeIn {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  .location-results {
    max-height: 350px;
  }
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* ========== FEATURE PAGES ========== */

/* Clickable floating cards */
a.floating-card {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.floating-card:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 8px 32px rgba(0, 230, 118, 0.3);
  z-index: 10;
}

/* Feature Navbar */
.feature-navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 28, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.feature-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(0, 230, 200, 0.25);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: rgba(0, 230, 200, 0.1);
  border-color: var(--accent-cyan);
}

/* Feature Hero */
.feature-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-darker), var(--bg-primary));
}

.feature-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.feature-icon-large {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: bounceIn 0.8s ease;
}

.feature-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Feature Results Section */
.feature-results {
  padding: 40px 0 100px;
}

.results-header {
  margin-bottom: 30px;
}

.results-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.results-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* Result Card */
.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  animation: cardFadeUp 0.5s ease both;
}

.result-card:hover {
  border-color: rgba(0, 230, 200, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

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

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-rank {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

.result-badge {
  padding: 4px 12px;
  background: rgba(0, 176, 255, 0.12);
  color: #00b0ff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.result-badge-green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--safe-green);
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.result-type-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.result-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.result-detail a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.result-detail a:hover {
  text-decoration: underline;
}

.detail-icon {
  flex-shrink: 0;
}

.btn-direction {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 18px;
  background: var(--accent-gradient);
  color: var(--bg-darker);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-direction:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

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

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: var(--bg-darker);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

/* Info Banner (Metro page) */
.feature-info-banner {
  padding: 0 0 20px;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 14px;
}

.info-banner-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.info-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-banner-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .feature-hero h1 {
    font-size: 1.8rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .feature-navbar .container {
    padding: 0 16px;
  }

  .detail-panel {
    width: 95%;
    max-height: 90vh;
  }
}

/* Card Images */
.card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  margin: -24px -24px 16px -24px;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.clickable-card:hover .card-image {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-actions {
  margin-top: 8px;
}

.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-card:hover {
  border-color: rgba(0, 230, 200, 0.3);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}

.safety-indicator {
  font-size: 0.78rem;
  font-weight: 600;
}

/* Detail Overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.detail-overlay.active {
  display: flex;
}

.detail-panel {
  width: 100%;
  max-width: 680px;
  background: rgba(15, 18, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0;
  position: relative;
  animation: detailSlideUp 0.4s ease;
  overflow: hidden;
}

@keyframes detailSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.detail-close:hover {
  background: rgba(255, 82, 82, 0.5);
}

.detail-body {
  padding: 28px;
}

.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.detail-hero-image {
  width: calc(100% + 56px);
  margin: -28px -28px 20px -28px;
  height: 280px;
  object-fit: cover;
  display: block;
}

.detail-type-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--safe-green);
  margin-bottom: 16px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-info-item span:last-child {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
}

.detail-info-full {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary) !important;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

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

  .detail-hero-image {
    height: 200px;
  }
}

/* Star Ratings */
.card-rating,
.detail-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.star {
  font-size: 0.9rem;
  line-height: 1;
}

.star.full {
  color: #ffc107;
}

.star.half {
  color: #ffab40;
}

.star.empty {
  color: rgba(255, 255, 255, 0.12);
}

.rating-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffc107;
  margin-left: 4px;
}

.detail-rating {
  margin-bottom: 16px;
  gap: 3px;
}

.detail-rating .star {
  font-size: 1.2rem;
}

.detail-rating .rating-num {
  font-size: 1rem;
  margin-left: 6px;
}

.rating-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-left: 6px;
  font-weight: 400;
}

/* Location Dropdown */
.location-badge {
  cursor: pointer;
  position: relative;
}

.location-dropdown {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 320px;
  background: rgba(15, 20, 45, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  display: none;
  z-index: 99999;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: dropdownSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
}

.location-dropdown.active {
  display: flex !important;
  flex-direction: column;
}

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

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

.location-dropdown-header {
  padding: 14px 16px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-search-wrapper {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}

.location-search-wrapper input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}

.location-search-wrapper input:focus {
  border-color: rgba(0, 230, 118, 0.4);
}

.location-search-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--safe-green), var(--trust-teal));
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.location-search-btn:hover {
  transform: scale(1.05);
}

.location-results {
  max-height: 200px;
  overflow-y: auto;
}

.location-result-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.location-result-item:hover {
  background: rgba(0, 230, 118, 0.08);
}

.location-result-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.location-result-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.location-searching,
.location-no-results {
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.location-current {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.location-current-label {
  color: var(--text-secondary);
}

.location-current-city {
  color: var(--safe-green);
  font-weight: 600;
}

/* Toast Notification */
.kyc-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 35, 0.95);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 99999;
  transition: bottom 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.kyc-toast.show {
  bottom: 30px;
}

/* Safety Map Section */
.safety-map-section {
  padding: 80px 0 60px;
}

.safety-map-header {
  text-align: center;
  margin-bottom: 40px;
}

.safety-map-wrapper {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
  align-items: stretch;
}

.safety-map-info {
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

/* Scrollbar for safety analysis card */
.safety-map-info::-webkit-scrollbar {
  width: 6px;
}

.safety-map-info::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.safety-map-info::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.safety-map-box {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.safety-info-scrollable {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for Info Panel */
.safety-info-scrollable::-webkit-scrollbar {
  width: 6px;
}

.safety-info-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.safety-map-container {
  width: 100%;
  height: 480px;
  z-index: 1;
}

.safety-map-container .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #888 !important;
}

.safety-map-container .leaflet-control-attribution a {
  color: #aaa !important;
}

.safety-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.safety-map-box {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.safety-status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 999;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

/* Status States */
.status-high .status-dot,
.status-high .status-dot::after {
  background: #00e676;
}

.status-mid .status-dot,
.status-mid .status-dot::after {
  background: #ffab40;
}

.status-low .status-dot,
.status-low .status-dot::after {
  background: #ff5252;
}

#mapSafetyStats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 24px;
  width: 100%;
}

.safety-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.safety-stat:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

/* Category Colors */
.safety-stat:nth-child(1) .stat-icon {
  color: #00e676;
}

/* Police */
.safety-stat:nth-child(2) .stat-icon {
  color: #2196f3;
}

/* Hospital */
.safety-stat:nth-child(3) .stat-icon {
  color: #ff9800;
}

/* Fire */
.safety-stat:nth-child(4) .stat-icon {
  color: #9c27b0;
}

/* CCTV */

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.safety-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-item strong {
  color: var(--text-primary);
}

/* Current Location Button in Dropdown */
.location-current-btn {
  width: 100%;
  padding: 10px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 10px;
  color: var(--safe-green);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 0;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.location-current-btn:hover {
  background: rgba(0, 230, 118, 0.15);
}




/* === COMPREHENSIVE MOBILE RESPONSIVENESS === */

/* Tablet breakpoint */
@media (max-width: 900px) {
  .safety-map-wrapper {
    grid-template-columns: 1fr;
  }

  .safety-map-container {
    height: 350px;
  }

  .safety-map-info {
    max-height: none;
  }
}

@media (max-width: 768px) {

  /* ---- Reset section padding ---- */
  :root {
    --section-padding: 60px 0;
  }

  /* ---- Container ---- */
  .container {
    padding: 0 16px;
  }

  /* ---- NAVBAR MOBILE (hamburger menu) ---- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 90px 20px 32px;
    gap: 4px;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  /* Staggered slide-in animation for nav links */
  .nav-links.open li {
    animation: navSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
  }

  .nav-links.open li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .nav-links.open li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .nav-links.open li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .nav-links.open li:nth-child(4) {
    animation-delay: 0.2s;
  }

  .nav-links.open li:nth-child(5) {
    animation-delay: 0.25s;
  }

  .nav-links.open li:nth-child(6) {
    animation-delay: 0.3s;
  }

  .nav-links.open li:nth-child(7) {
    animation-delay: 0.35s;
  }

  .nav-links.open li:nth-child(8) {
    animation-delay: 0.4s;
  }

  .nav-links.open li:nth-child(9) {
    animation-delay: 0.45s;
  }

  .nav-links.open li:nth-child(10) {
    animation-delay: 0.5s;
  }

  @keyframes navSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    border: 1px solid transparent;
  }

  .nav-links a::after {
    display: none;
    /* Hide desktop underline on mobile */
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateX(4px);
  }

  .nav-cta {
    text-align: center;
    margin-top: 12px;
    justify-content: center;
    padding: 14px 24px !important;
    border-radius: 14px !important;
    font-size: 1.05rem !important;
  }

  .hamburger {
    display: flex;
  }

  /* ---- Account nav on mobile ---- */
  .account-nav-item {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .user-greeting {
    font-size: 0.88rem;
  }

  /* ---- Location badge on mobile ---- */
  .location-badge {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 184, 148, 0.06);
    border: 1px solid rgba(0, 184, 148, 0.15);
  }

  .location-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(40px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
  }

  .location-dropdown.active {
    display: flex !important;
    animation: mobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileSlideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  #mobileAccountNav.active .mobile-account-info {
    display: block !important;
  }

  /* ---- HERO ---- */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-stat h3 {
    font-size: 1.4rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    font-size: 1.6rem !important;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* ---- SAFETY MAP ---- */
  .safety-map-section {
    padding: 50px 0 40px;
  }

  .safety-map-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .safety-map-container {
    height: 280px;
    min-height: 280px;
  }

  .safety-map-legend {
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .legend-item {
    font-size: 0.68rem;
  }

  .safety-map-info {
    padding: 16px;
    max-height: none;
  }

  #mapSafetyStats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .safety-stat {
    padding: 10px;
    gap: 8px;
  }

  .stat-icon {
    font-size: 1.1rem;
  }

  .stat-num {
    font-size: 1.1rem !important;
  }

  /* ---- FEATURES GRID (MOBILE — Premium Card Layout) ---- */
  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feature-card {
    padding: 0 !important;
    text-align: left;
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  /* Colored left accent bar */
  .feature-card::before {
    content: '' !important;
    display: block !important;
    position: relative !important;
    width: 5px !important;
    min-width: 5px;
    height: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    -webkit-mask: none !important;
    mask: none !important;
    opacity: 1 !important;
    flex-shrink: 0;
    z-index: 1 !important;
    top: auto !important;
    left: auto !important;
  }

  /* Color the left bar per icon variant */
  .feature-card:nth-child(1)::before,
  .feature-card:nth-child(5)::before {
    background: rgba(0, 230, 118, 0.6) !important;
  }

  .feature-card:nth-child(2)::before,
  .feature-card:nth-child(6)::before {
    background: rgba(0, 212, 255, 0.6) !important;
  }

  .feature-card:nth-child(3)::before,
  .feature-card:nth-child(7)::before {
    background: rgba(108, 92, 231, 0.6) !important;
  }

  .feature-card:nth-child(4)::before,
  .feature-card:nth-child(8)::before {
    background: rgba(255, 171, 64, 0.6) !important;
  }

  .feature-card::after {
    display: none !important;
  }

  /* Icon styling on mobile */
  .feature-card .feature-icon {
    margin: 14px 0 14px 14px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
  }

  /* Text wrapper: stacks h3 + p vertically */
  .feature-text {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
  }

  .feature-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
  }

  /* Tap/hover states on mobile */
  .feature-card:hover,
  .feature-card:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(0, 212, 255, 0.2) !important;
  }

  .feature-card:active {
    transform: scale(0.98) !important;
    transition-duration: 0.1s;
  }

  .feature-card:hover .feature-icon {
    transform: scale(1.08) !important;
  }

  /* Staggered entrance for features */
  .feature-card.revealed {
    animation: featureSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
  }

  .feature-card:nth-child(1).revealed {
    animation-delay: 0.05s;
  }

  .feature-card:nth-child(2).revealed {
    animation-delay: 0.1s;
  }

  .feature-card:nth-child(3).revealed {
    animation-delay: 0.15s;
  }

  .feature-card:nth-child(4).revealed {
    animation-delay: 0.2s;
  }

  .feature-card:nth-child(5).revealed {
    animation-delay: 0.25s;
  }

  .feature-card:nth-child(6).revealed {
    animation-delay: 0.3s;
  }

  .feature-card:nth-child(7).revealed {
    animation-delay: 0.35s;
  }

  .feature-card:nth-child(8).revealed {
    animation-delay: 0.4s;
  }

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

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

  /* ---- SAFETY EXPLORER ---- */
  .safety-explorer {
    padding: 50px 0;
  }

  .area-search-wrapper {
    max-width: 100% !important;
    margin: 20px auto !important;
  }

  .area-search-wrapper input {
    font-size: 0.92rem !important;
    padding: 14px 16px !important;
    padding-right: 100px !important;
  }

  .area-search-wrapper .btn-primary {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    right: 6px !important;
    top: 6px !important;
  }

  #areaSearchResults {
    border-radius: 12px !important;
  }

  .area-card {
    padding: 18px !important;
  }

  .area-name {
    font-size: 1rem;
  }

  .area-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .area-tags {
    gap: 6px;
  }

  .area-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  /* ---- HOW IT WORKS ---- */
  .how-it-works {
    padding: 50px 0;
  }

  .hiw-timeline {
    max-width: 100%;
  }

  .hiw-step {
    gap: 14px;
  }

  .hiw-step-content {
    padding: 12px 14px;
    gap: 12px;
  }

  .hiw-step-icon {
    font-size: 1.5rem;
  }

  .hiw-step-text h3 {
    font-size: 0.95rem;
  }

  .hiw-step-text>p {
    font-size: 0.82rem;
  }

  .hiw-step-num {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .hiw-step-indicator {
    min-width: 40px;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials {
    padding: 50px 0;
  }

  .testimonial-card {
    padding: 24px 16px !important;
  }

  .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonial-quote::before {
    font-size: 2.5rem;
    top: -12px;
  }

  .testimonial-author {
    gap: 12px;
  }

  .author-avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .carousel-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .carousel-nav-btn.prev-btn {
    left: 4px;
  }

  .carousel-nav-btn.next-btn {
    right: 4px;
  }

  /* ---- FEEDBACK ---- */
  .feedback-section {
    padding: 50px 0 30px;
  }

  .feedback-form-wrapper {
    padding: 20px !important;
    margin: 20px auto 0;
  }

  .feedback-cities-row {
    flex-direction: column;
    gap: 0;
  }

  .feedback-arrow {
    display: none;
  }

  .feedback-field input,
  .feedback-field textarea {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-brand .nav-brand {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.78rem;
  }

  /* ---- AUTH MODAL ---- */
  .auth-modal {
    width: 94% !important;
    max-width: 400px;
    padding: 24px !important;
    max-height: 88vh;
    overflow-y: auto;
  }

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

  .form-row .half {
    width: 100%;
  }

  .auth-tabs {
    gap: 6px;
    margin-bottom: 20px;
  }

  .auth-tab {
    padding: 10px 8px;
    font-size: 0.95rem;
  }

  .btn-auth {
    padding: 12px;
  }

  /* ---- CONFIRM MODALS ---- */
  .confirm-modal {
    width: 92% !important;
    max-width: 360px;
    padding: 24px !important;
  }

  .confirm-modal h4 {
    font-size: 1.2rem;
  }

  .confirm-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* ---- NEWSLETTER ---- */
  .newsletter-card {
    padding: 30px 18px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* ---- INTERACTIVE MAP ---- */
  .map-section {
    height: 60vh;
    margin-top: 70px;
  }

  .map-insights {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: 300px;
    border-radius: 0;
    padding: 16px;
  }

  .crime-details-panel {
    width: 92%;
    max-width: 350px;
    right: -400px;
    top: auto;
    bottom: 10px;
  }

  .crime-details-panel.active {
    right: 4%;
  }

  /* ---- FACT POPUP ---- */
  #factPopup {
    max-width: 85vw !important;
    right: 10px !important;
    bottom: 16px !important;
    font-size: 0.88rem;
  }

  /* ---- RESULT CARDS (Feature pages) ---- */
  .results-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-hero h1 {
    font-size: 1.6rem;
  }

  .feature-hero p {
    font-size: 0.92rem;
  }

  /* ---- STEPS CONTAINER ---- */
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .steps-container::before {
    display: none;
  }

  /* ---- REPORT INFO GRID ---- */
  .report-info-grid {
    grid-template-columns: 1fr;
  }

  /* ---- LOGIN TOAST ---- */
  .login-toast {
    right: -100%;
    left: auto;
    transform: none;
    max-width: 90vw;
    font-size: 0.85rem;
  }

  .login-toast.show {
    right: 10px;
    left: auto;
    transform: none;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.7rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-stat h3 {
    font-size: 1.2rem;
  }

  .feature-card {
    padding: 18px 14px !important;
  }

  .navbar .container {
    padding: 0 12px;
  }

  .nav-brand-text {
    font-size: 1.1rem;
  }

  .nav-brand-icon {
    width: 34px;
    height: 34px;
  }

  .area-search-wrapper input {
    font-size: 0.85rem !important;
    padding-right: 90px !important;
  }
}

/* ---- RESTRICTED SHAKE ANIMATION ---- */
@keyframes restrictedShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.restricted-shake {
  animation: restrictedShake 0.4s ease;
}

/* ---- AUTH OVERLAY (blocks content for non-logged-in users) ---- */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(2px);
  z-index: 4999;
  display: none;
}

.auth-gate-overlay.active {
  display: block;
}

/* === MODALS === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal,
.confirm-modal {
  position: relative;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 90%;
  max-width: 400px;
  padding: 32px;
  background: rgba(15, 20, 53, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .auth-modal,
.modal-overlay.active .confirm-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-tab.active {
  background: var(--accent-gradient, linear-gradient(135deg, #00d4ff 0%, #00b894 100%));
  color: #000;
  font-weight: 600;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.form-group input {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.auth-error-message {
  color: #ff5252;
  font-size: 0.85rem;
  display: none;
}

.auth-cta {
  width: 100%;
  margin-top: 10px;
}

/* === SAFETY MAP === */
.safety-map-container {
  width: 100%;
  height: 400px;
  min-height: 400px;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  z-index: 1;
}

/* Navigation Widgets */
.nav-widgets {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px;
  margin-left: auto;
  margin-right: 20px;
}

@media (max-width: 900px) {
  .nav-container {
    padding: 0 12px;
    gap: 8px;
    justify-content: space-between;
  }

  .nav-brand {
    font-size: 1rem;
    margin-right: auto;
  }

  /* Show only the weather/temperature badge at the top on mobile */
  .nav-widgets {
    display: flex !important;
    margin-right: 10px;
    gap: 0;
  }

  .nav-widgets #loginNav,
  .nav-widgets #accountNav,
  .nav-widgets .location-badge {
    display: none !important;
  }

  .nav-widgets .weather-badge {
    display: flex !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
  }

  .nav-logout-btn-mobile {
    background: rgba(255, 78, 78, 0.1) !important;
    border: 1px solid rgba(255, 78, 78, 0.2) !important;
    color: var(--caution-red) !important;
    padding: 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
  }

  .nav-logout-btn-mobile:hover {
    background: rgba(255, 78, 78, 0.2) !important;
    transform: scale(1.05);
  }
}

/* Sidebar Widgets Extension */
.mobile-nav-widgets {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 24px;
}

.nav-links.open .mobile-nav-widgets {
  display: flex;
}

.mobile-widget-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease;
}

.mobile-widget-card:active {
  transform: scale(0.98);
}

.mobile-widget-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== CITY SCOUT CHATBOT STYLES ===== */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1) rotate(5deg);
}

.chatbot-icon {
  font-size: 32px;
}

.chatbot-tooltip {
  position: absolute;
  right: 75px;
  background: rgba(15, 10, 30, 0.9);
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: white;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-toggle:hover .chatbot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.chatbot-window {
  width: 380px;
  height: 550px;
  background: rgba(15, 10, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  margin-bottom: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  animation: chatbotPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatbotPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-name {
  font-weight: 700;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e676;
}

.chatbot-desc {
  font-size: 0.75rem;
  color: #8899aa;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: #8899aa;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message {
  align-self: flex-start;
  background: rgba(100, 100, 120, 0.15);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggest-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
}

.chatbot-input-area {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

.chatbot-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.chatbot-send-btn {
  background: var(--accent-gradient);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.typing-indicator {
  padding: 12px 16px;
  background: rgba(100, 100, 120, 0.1);
  border-radius: 18px;
  align-self: flex-start;
  color: #8899aa;
  font-size: 0.8rem;
  display: flex;
  gap: 4px;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  background: #8899aa;
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  from {
    opacity: 0.3;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Responsive Mobile Chat */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 70vh;
    bottom: 0px;
    right: 20px;
  }
}

/* === STANDARDIZED ADSENSE STYLES === */
.kyc-ad-container {
  width: 100%;
  margin: 40px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 100px;
}

.kyc-ad-container::before {
  content: 'Sponsored Content';
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hide legacy ad container entirely */
.ad-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Adjust for Safety Explorer Spacing */
#safety .kyc-ad-container {
  margin-top: -20px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e676;
}

.chatbot-desc {
  font-size: 0.75rem;
  color: #8899aa;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: #8899aa;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message {
  align-self: flex-start;
  background: rgba(100, 100, 120, 0.15);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggest-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
}

.chatbot-input-area {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

.chatbot-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.chatbot-send-btn {
  background: var(--accent-gradient);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.typing-indicator {
  padding: 12px 16px;
  background: rgba(100, 100, 120, 0.1);
  border-radius: 18px;
  align-self: flex-start;
  color: #8899aa;
  font-size: 0.8rem;
  display: flex;
  gap: 4px;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  background: #8899aa;
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  from {
    opacity: 0.3;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Responsive Mobile Chat */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 70vh;
    bottom: 0px;
    right: 20px;
  }
}

/* === STANDARDIZED ADSENSE STYLES === */
.kyc-ad-container {
  width: 100%;
  margin: 40px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 100px;
}

.kyc-ad-container::before {
  content: 'Sponsored Content';
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hide legacy ad container entirely */
.ad-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Adjust for Safety Explorer Spacing */
#safety .kyc-ad-container {
  margin-top: -20px;
  margin-bottom: 40px;
}
  .chatbot-wrapper {
    bottom: 20px;
    right: 20px;
  }

/* === CHECKBOX & AUTH UI REFINEMENT === */
.checkbox-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  text-align: left !important;
  width: 100%;
}

.checkbox-group input[type='checkbox'] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: var(--accent-cyan);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.85rem !important;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.checkbox-group a {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 500;
}

.auth-footer .forgot-link-btn,
.auth-footer a {
  transition: all 0.2s ease;
}

.auth-footer .forgot-link-btn:hover,
.auth-footer a:hover {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* === NAVIGATION BUTTONS === */
.btn-back-auth {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ccc;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-back-auth:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-back-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  color: var(--admin-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.btn-back-admin:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transform: translateX(-5px);
}
